コード例 #1
0
    function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_title', $instance['title']);
        echo $before_widget;
        ?>
							                  <?php 
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        wp_gdsr_render_article(10, false, 'soft', 24);
        echo $after_widget;
    }
コード例 #2
0
ファイル: tag.php プロジェクト: ryanlfoster/govintranet
            echo "</p></div>";
        }
        ?>
					</div>
				<?php 
        if ($post_type == 'Post_tag') {
            echo "All intranet pages tagged with \"" . get_the_title() . "\"";
        } else {
            if ($post_type == 'Category') {
                echo "All intranet pages categorised as \"" . get_the_title() . "\"";
            }
        }
        the_excerpt();
        //for rating stories
        if (function_exists('wp_gdsr_render_article')) {
            wp_gdsr_render_article(44, true, 'soft', 16);
        }
        ?>
					</div>
					<?php 
        echo "<hr>";
    }
    if ($tagged->max_num_pages > 1 && $postsfound) {
        ?>
				<?php 
        if (function_exists('wp_pagenavi')) {
            ?>
					<?php 
            wp_pagenavi(array('query' => $tagged));
            ?>
					<?php 
コード例 #3
0
        <div class="top_news_featured_footer">

          <a href="<?php 
    the_permalink();
    ?>
" class="leer_mas_footer">Leer m&aacute;s</a>
          <p class="comments"><a href="<?php 
    comments_link();
    ?>
" class="comments"><?php 
    comments_number('cero', 'uno', 'm&aacute;s');
    ?>
 comentarios</a></p>
          <div class="rate"><?php 
    wp_gdsr_render_article();
    ?>
</div>

        </div>

      <?php 
}
?>

      </div> <!-- top_news_featured -->

      <div id="most_voted" class="top_news_featured">
      <?php 
unset($new_post);
$new_post = get_from_header(2, $text);