Example #1
0
            ?>
</li>
			<li id="tools-social"><?php 
            if (function_exists('ilsb')) {
                ilsb();
            }
            ?>
</li>
			</ul>
		</div><!--/articletools-->

		<div id="relatedposts" class="sidebar-section">
			<h2><span>Related Posts</span></h2>
			<?php 
            if (function_exists('similar_posts')) {
                similar_posts();
            }
            ?>
		</div><!--/relatedposts-->

		<?php 
        }
    } else {
        print '';
    }
    ?>

	<?php 
}
?>
Example #2
0
 function widget_rrm_similar_posts($args)
 {
     extract($args);
     $options = get_option('widget_rrm_similar_posts');
     $condition = $options['condition'] ? $options['condition'] : 'true';
     $condition = stristr($condition, "return") ? $condition : "return " . $condition;
     $condition = rtrim($condition, '; ') . ' || is_admin();';
     if (eval($condition)) {
         $title = empty($options['title']) ? __('Similar Posts', 'post_plugins') : $options['title'];
         if (!($number = (int) $options['number'])) {
             $number = 10;
         } else {
             if ($number < 1) {
                 $number = 1;
             } else {
                 if ($number > 15) {
                     $number = 15;
                 }
             }
         }
         echo $before_widget;
         echo $before_title . $title . $after_title;
         similar_posts('limit=' . $number);
         echo $after_widget;
     }
 }
/**
* Shows related posts by plugin
* Only show if plugin is active
*
* @since 0.2.2
*
* @plugin - http://wasabi.pbwiki.com/Related%20Entries
* @plugin - http://rmarsh.com/plugins/similar-posts
* @plugin - http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin
***********************************************************/
function hybrid_related_posts()
{
    if (function_exists('related_posts') || function_exists('similar_posts') || function_exists('wp_related_posts')) {
        echo '<div class="related-posts">';
        echo '<h3>' . __('Related Posts', 'options') . '</h3>';
        if (function_exists('related_posts')) {
            echo '<ul class="related">';
            related_posts();
            echo '</ul>';
        } elseif (function_exists('similar_posts')) {
            similar_posts();
        } elseif (function_exists('wp_related_posts')) {
            wp_related_posts();
        }
        echo '</div>';
    }
}
Example #4
0
        if (function_exists('emo_vote_display')) {
            ?>
 
                                   <p><div style="text-align:center"><strong><small>No time for a comment? Simply click on one of the colours below to let me know how you found this post.</small></strong></div></p>
                                   <?php 
            emo_vote_display('', '', '');
            ?>
				<?php 
        }
        ?>

				<?php 
        if (function_exists('similar_posts')) {
            ?>
                                   <?php 
            similar_posts('limit=3&skip=0&prefix=<div class="similar">Other similar posts you might like: &output_template={link}&divider= | &suffix=</div>');
            ?>
				<?php 
        }
        ?>
				
				<hr class="hide" />
			</div>
			<div class="secondary snap_noshots">
				<div class="abt-this-page"><?php 
        _e('About this entry', 'hemingwayex');
        ?>
</div>
				<div class="featured">
					<?php 
        if ($post->post_excerpt) {