Skip to content

Commit

Permalink
Merge pull request #740 from sillsdev/develop
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 c50fcfc + 8746f4d commit 9c1c215
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')

?>
?>

0 comments on commit 9c1c215

Please sign in to comment.