Example #1
0
function sociable_shortcode()
{
    return sociable_html();
}
function pickle_sidebar()
{
    ?>
<div id="side_bar">
        <div id="sociable">
            <?php 
    if (function_exists('sociable_html')) {
        echo sociable_html();
    }
    ?>
 
        </div>
        <div id="tag_cloud">
            <h2>Tags</h2> 
            <?php 
    wp_tag_cloud($args);
    $args = array('smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45, 'format' => 'flat', 'separator' => '\\n', 'orderby' => 'name', 'order' => 'ASC', 'link' => 'view', 'taxonomy' => 'post_tag', 'echo' => true);
    ?>
         
        </div>
        <div id="join">
        <?php 
    theme_my_login();
    ?>
    
        </div>
    </div>
<?php 
}
Example #3
0
                    <a href="<?php 
        the_permalink();
        ?>
" rel="bookmark" title="Permanent Link to <?php 
        the_title();
        ?>
"><?php 
        the_title();
        ?>
</a>
                    <?php 
        if (function_exists('sociable_html')) {
            ?>
                    <div class="share">
                        <?php 
            print sociable_html();
            ?>
 
                    </div>
                    <?php 
        }
        ?>
                </h2>
                <div class="info clearfix">
                    <div class="date"><?php 
        the_time('F jS, Y');
        ?>
</div>
                    <div class="comments">
                        &nbsp;&bull;&nbsp;<img src="<?php 
        bloginfo('stylesheet_directory');
Example #4
0
	/**
	 * Loop through the settings and check whether Sociable should be outputted.
	 */
	function sociable_display_hook($content='') {
		$conditionals = get_option('sociable_conditionals');
		if ((is_home()     and $conditionals['is_home']) or
		    (is_single()   and $conditionals['is_single']) or
		    (is_page()     and $conditionals['is_page']) or
		    (is_category() and $conditionals['is_category']) or
			(is_tag() 	   and $conditionals['is_tag']) or
		    (is_date()     and $conditionals['is_date']) or
			(is_author()   and $conditionals['is_author']) or
		    (is_search()   and $conditionals['is_search'])) {
			$content .= sociable_html();
		} elseif ((is_feed() and $conditionals['is_feed'])) {
			$sociable_html = sociable_html();
			$sociable_html = strip_tags($sociable_html,"<a><img>");
			$content .= $sociable_html . "<br/><br/>";
		}
		return $content;
	}
Example #5
0
 function sociable_display_hook($content = '')
 {
     $conditionals = get_option('sociable_conditionals');
     if (is_home() and $conditionals['is_home'] or is_single() and $conditionals['is_single'] or is_page() and $conditionals['is_page'] or is_category() and $conditionals['is_category'] or is_date() and $conditionals['is_date'] or is_search() and $conditionals['is_search'] or 0) {
         $content .= sociable_html();
     }
     return $content;
 }