Skip to content

Commit

Permalink
Merge pull request #739 from sillsdev/feature/blog-roll
Browse files Browse the repository at this point in the history
Fix blog roll plugin
  • Loading branch information
phillip-hopper authored Nov 7, 2024
2 parents fb996c9 + 728a76e commit 8746f4d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
38 changes: 19 additions & 19 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
The wp_list_bookmarks_plus function is an evolution of the wp_list_bookmarks function that is privded with Wordpress. Having this function here will allow this plugin to evolve even further than originally intended in the future.
*/

define ('WPRBLVERSION', '2.1.7');
define ('WPRBLVERSION', '2.1.8.Webonary');

function walk_bookmarks_plus($bookmarks, $args = '' ) {
$defaults = array(
Expand Down Expand Up @@ -167,6 +167,7 @@ function wp_list_bookmarks_plus ($args = '') {
'catdescription_after'=> '</p>'
);
$r = wp_parse_args( $args, $defaults );
$r['limit'] = intval($r['limit']);
extract( $r, EXTR_SKIP );
$output = '';
if ($categorize) {
Expand Down Expand Up @@ -232,7 +233,7 @@ function wp_list_bookmarks_plus ($args = '') {
function renderlinks_tc_hnd ($att,$content=null) {
$wprbr_n = 'WP Render Blogroll Links ';
$wprbl_v = WPRBLVERSION;
extract (shortcode_atts(array('showhide'=>0,'show_images'=>1,'always_show_names'=>0,'show_names_under_images'=>0,'excludecat'=>'','limit'=>'-1','forcerel'=>'','linkclass'=>'','livelinks'=>0,'catorder'=>'ASC','catorderby'=>'name','order'=>'ASC','orderby'=>'name','catid' => '','catname' => '','showcatdesc' => '0','showdesc' => '0','showbrk'=> ' ','showdash'=> '0','notitle'=>'0','rss_image'=>'/wp-includes/images/rss.png','show_rss'=>0), $att));
extract (shortcode_atts(array('showhide'=>0,'show_images'=>1,'always_show_names'=>0,'show_names_under_images'=>0,'excludecat'=>'','limit'=>-1,'forcerel'=>'','linkclass'=>'','livelinks'=>0,'catorder'=>'ASC','catorderby'=>'name','order'=>'ASC','orderby'=>'name','catid' => '','catname' => '','showcatdesc' => '0','showdesc' => '0','showbrk'=> ' ','showdash'=> '0','notitle'=>'0','rss_image'=>'/wp-includes/images/rss.png','show_rss'=>0), $att));
if ($notitle=="1"){$notitletag='&categorize=0&title_li= ';} else {$notitletag='';}
if ($showbrk=="1"){$brk="<br />";} else if ($showdash=="1") {$brk=" - ";} else {$brk=' ';}
$wprbl_s = '
Expand Down Expand Up @@ -466,4 +467,4 @@ function renderlinks_admin() {
add_action('wp_head', 'wprbl_add_javascript');
add_shortcode('wp-blogroll', 'renderlinks_tc_hnd')

?>
?>

2 comments on commit 8746f4d

@phillip-hopper
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity Webonary / Pull Requests Build 540 is now running

@phillip-hopper
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity Webonary / Pull Requests Build 540 outcome was SUCCESS
Summary: Running Build time: 00:00:07

Please sign in to comment.