function widget($args, $instance)
    {
        if (!is_single()) {
            return;
        }
        global $post;
        extract($args, EXTR_SKIP);
        /* Our variables from the widget settings. */
        $title = apply_filters('widget_title', $instance['title'], $instance, $this->id_base);
        /* Before widget (defined by themes). */
        echo $before_widget;
        /* Display the widget title if one was input (before and after defined by themes). */
        if ($title != '') {
            echo $before_title . $title . $after_title;
        }
        // End IF Statement
        /* Widget content. */
        // Add actions for plugins/themes to hook onto.
        do_action($this->woo_widget_cssclass . '_top');
        // Load widget content here.
        ?>
	<div id="post-meta">
		<ul>
			<li class="twitter"><a href="http://twitter.com/home?status=<?php 
        _e('Currently reading', 'woothemes');
        ?>
 <?php 
        echo esc_attr(get_permalink($post));
        ?>
"><?php 
        _e('Tweet This Post', 'woothemes');
        ?>
</a></li>
			<li class="facebook"><a href="http://www.facebook.com/sharer.php?u=<?php 
        echo esc_url(get_permalink($post));
        ?>
&t=<?php 
        the_title_attribute();
        ?>
"><?php 
        _e('Share on Facebook', 'woothemes');
        ?>
</a></li>
			<li class="surl"><?php 
        the_shortlink(__('Shortlink', 'woothemes'), __('Shortlink', 'woothemes'));
        ?>
</li>
		</ul>
	</div><!--/.post-meta-->
<?php 
        // Add actions for plugins/themes to hook onto.
        do_action($this->woo_widget_cssclass . '_bottom');
        /* After widget (defined by themes). */
        echo $after_widget;
    }
Ejemplo n.º 2
0
" pubdate><?php 
        the_time('F jS, Y');
        ?>
</time> <!-- by <?php 
        the_author();
        ?>
 -->
            			</div>
                </header>
                
                <div class="content">              			
            			<?php 
        the_excerpt('Read the rest of this entry &raquo;');
        ?>
                  <p class="read-more"><?php 
        the_shortlink("read the rest", $title, $before, $after);
        ?>
&#8230;</p>
                </div>
          		</article>
            </li>
            <?php 
        $postcount++;
        ?>
          	<?php 
    }
    ?>
        	</ul>
      		<?php 
    if (show_posts_nav()) {
        ?>
Ejemplo n.º 3
0
		<span class="addtrackback"><a href="<?php 
        trackback_url();
        ?>
"><?php 
        _e('Trackback', 'inove');
        ?>
</a></span>
	<?php 
    }
    ?>
	<?php 
    if (function_exists('the_shortlink')) {
        // Require plugin: http://wordpress.org/extend/plugins/simple-shortlinks/
        ?>
		<span class="addtrackback"><?php 
        the_shortlink(__('Short link', 'inove'));
        ?>
</span>
	<?php 
    }
    ?>
	<div class="fixed"></div>
</div>

<div id="commentlist">
	<!-- comments START -->
	<ol id="thecomments">
	<?php 
    if ($comments && count($comments) - count($trackbacks) > 0) {
        // for WordPress 2.7 or higher
        if (function_exists('wp_list_comments')) {