<?php 
        echo $commentcount;
        ?>
 }</li>
                        <?php 
    }
}
?>
                </ul>
                <h3>Post populares por visitas</h3>
                <?php 
if (function_exists('app_get_mostpopular')) {
}
?>
                    <?php 
wpp_get_mostpopular('limit=3');
?>
            </div>
            <!-- /columna central -->
            <div class="col-md-4">
                <a class="twitter-timeline" href="https://twitter.com/PixelariumStd" data-widget-id="574515089438564352" data-chrome="nofooter" data-tweet-limit="3">Tweets por @PixelariumStd.</a>
                <script>
                    ! function (d, s, id) {
                        var js, fjs = d.getElementsByTagName(s)[0],
                            p = /^http:/.test(d.location) ? 'http' : 'https';
                        if (!d.getElementById(id)) {
                            js = d.createElement(s);
                            js.id = id;
                            js.src = p + "://platform.twitter.com/widgets.js";
                            fjs.parentNode.insertBefore(js, fjs);
                        }
<div class="row">
	<div class="large-12 columns">
		<h2><i class="flaticon-trending"></i>What's Haute</h2>
	</div>
	<ul class="more-to-love inline-list small-block-grid-12 medium-block-grid-5 large-block-grid-5">
		<?php 
wpp_get_mostpopular(array('limit' => 5, 'order_by' => 'views', 'range' => 'daily', 'wpp_start' => " ", 'wpp_end' => " ", 'post_type' => 'post', 'pid' => $excludePosts));
?>
	</ul>
</div>
    ?>
/assets/images/home/cb-submit_fotovideo.png" alt="Submit Foto & Video" />
        </a>
      </div>

      <div class="news-popular">
        <div class="title-image">
          <img class="img img-responsive" src="<?php 
    bloginfo('template_url');
    ?>
/assets/images/smart-news/cb_news-popularpost.png" alt="" />
        </div>
        <div class="main-popular-title">
          <?php 
    if (function_exists("wpp_get_mostpopular")) {
        wpp_get_mostpopular("\n                post_type=post&\n                range=all&\n                limit=6&\n                cat=3&\n                stats_date=1&\n                stats_date_format='j M Y'&\n                stats_views=0&\n                post_html='<li>{title}<br><span class=\"date\">{date}</span></li>' ");
    }
    ?>
        </div>
      </div>
      <div class="news-topics">
        <div class="title-image">
          <img src="<?php 
    bloginfo('template_url');
    ?>
/assets/images/smart-news/cb_news-topics.png" alt="" />
        </div>
        <div class="main-topics">
          <p>
            <?php 
    //TODO: wordpress doesn't support tags based on category
Beispiel #4
0
        </a>
        </div>
    </div>



    <?php 
if (wp_is_mobile()) {
    display_ad(halfpage);
} else {
    display_ad(content);
}
?>

    <div class="popular-posts">
    <h2>Popular</h2>
    <?php 
wpp_get_mostpopular('range=weekly&order_by=views&post_type=post&freshness=1&thumbnail_width=300&thumbnail_height=175&stats_views=0&limit=5&post_html="<li><div>{thumb}</div>{title}{stats}</li>"');
?>
    </div>
    
    </aside>

    <?php 
display_ad(bottom);
?>
    
</main>

<?php 
get_footer();
Beispiel #5
0
/images/logo.png">
					</a>
				</div>
				<nav class="hide-mobile">
					<?php 
echo wp_nav_menu(array('theme_location' => '', 'menu' => '', 'container' => 'div', 'container_class' => '', 'container_id' => '', 'menu_class' => 'menu', 'menu_id' => '', 'echo' => true, 'fallback_cb' => 'wp_page_menu', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s<li class="li-pesquisar"><input type="text" placeholder="PESQUISAR"></li></ul>', 'depth' => 0, 'walker' => new description_walker()));
?>
				</nav>
			</div>

			<div id="sub-menu">
				<div class="titulo-submenu">+ Acessados</div>
				<div class="container-menu-bottom">
					<?php 
if (function_exists('wpp_get_mostpopular')) {
    wpp_get_mostpopular("stats_views=0&thumbnail_width=''&thumbnail_height=''&stats_comments=0&range=daily&rating=1&limit=11");
}
?>
				</div>
			</div>

			<div id="parent-carros" class="box-submenu container no-padding hide">
				<div class="col-md-2 nav-submenu2">
					<ul>
						<li><a href="#">Ver todos os carros</a></li>
					</ul>
				</div>
				<div class="col-md-10 container-submenu">
					<?php 
$the_cat = get_categories('hide_empty=0&child_of=1');
foreach ($the_cat as $category) {
/**
 * Template tag - gets popular posts. Deprecated in 2.0.3, use wpp_get_mostpopular instead.
 *
 * @since	1.0
 * @param	mixed	args
 */
function get_mostpopular($args = NULL)
{
    return wpp_get_mostpopular($args);
}
Beispiel #7
0
	</div>

	<section id="comment">
		<?php 
comments_template('/templates/comments-news.php');
?>
	</section>

	<section id="popular-post">
		<img class="img img-responsive" src="<?php 
bloginfo('template_url');
?>
/assets/images/smart-news/cb_news-popularpost.png" alt="Popular Post" />
		<?php 
if (function_exists('wpp_get_mostpopular')) {
    wpp_get_mostpopular("\n\t\t\t\t\t\t\theader='Popular Posts'&\n\t\t        \tlimit=4&\n\t\t        \trange=all&\n\t\t        \tpost_type=post&\n\t\t        \twpp_start='<div class=\"row\">'&\n\t\t        \twpp_end='</div>'&\n\t\t        \ttitle_by_words=1&\n\t\t        \tthumbnail_width=200&\n\t\t        \tthumbnail_height=130&\n\t\t        \tpost_html='<div class=\"col-md-3 pp-content\">{thumb}<div class=\"pp-title\"><b>{title}</b></div></div>'\n\t\t        \t");
}
?>
	</section>

	<footer>
	  	<?php 
wp_link_pages(['before' => '<nav class="page-nav"><p>' . __('Pages:', 'sage'), 'after' => '</p></nav>']);
?>
	</footer>

</article>


<?php 
function view_related_post()
Beispiel #8
0
    $category_id = $categories[0]->cat_ID;
    wpp_get_mostpopular("range=weekly&limit=8&freshness=1&order_by=views&title_length=8&title_by_words=1&thumbnail_width=40&thumbnail_height=40&stats_views=0&cat=\"{$category_id}, -208\"&post_html=\"<li>{thumb} <a href='{url}'>{text_title}</a> </li>\"");
    ?>
                    </div>
                    <div id="month_featured">
                    <?php 
    $categories = get_the_category();
    $category_id = $categories[0]->cat_ID;
    wpp_get_mostpopular("range=monthly&limit=8&freshness=1&order_by=views&title_length=8&title_by_words=1&thumbnail_width=40&thumbnail_height=40&stats_views=0&cat=\"{$category_id}, -208\"&post_html=\"<li>{thumb} <a href='{url}'>{text_title}</a> </li>\"");
    ?>
                    </div>
                    <div id="all_featured" style="display:block;">
                    <?php 
    $categories = get_the_category();
    $category_id = $categories[0]->cat_ID;
    wpp_get_mostpopular("range=all&limit=8&freshness=1&order_by=views&title_length=8&title_by_words=1&thumbnail_width=40&thumbnail_height=40&stats_views=0&cat=\"{$category_id}, -208\"&post_html=\"<li>{thumb} <a href='{url}'>{text_title}</a> </li>\"");
    ?>
                    </div>
                <?php 
}
?>

            </div><!-- Fin SectionToptracks -->

            <style type="text/css">
            .RightAdvise 
            {
                width: 100%;
                padding: 10px 0;
                background: rgba(56,56,56,0.8);
                display: inline-block;
Beispiel #9
0
<div class="ly-sidebar">
  <?php 
if (!is_page('ranking')) {
    ?>
  <div class="sidebar-box">
    <h2 class="section-title"><i class="fa fa-thumbs-up"></i>ランキング</h2>
    <?php 
    wpp_get_mostpopular(array('order_by' => 'views', 'limit' => 5, 'post_type' => 'post', 'thumbnail_width' => 100, 'thumbnail_height' => 100, 'post_html' => "<li><a href=\\'{url}\\'><div class='thumb'>{thumb_img}</div><div class='text'>{text_title}</div></a></li>"));
    ?>
    <div class="sidebar-more no-mgn">
      <a href="/ranking" class="btn primary">もっと見る</a>
    </div>
  </div>
  <?php 
}
?>
  <div class="sidebar-box">
    <h2 class="section-title"><i class="fa fa-folder-open"></i>カテゴリ</h2>
    <ul class="sidebar-category">
      <?php 
$cats = get_terms('category', array('orderby' => 'order', 'hide_empty' => false));
$catList = "";
foreach ($cats as $c) {
    $catName = $c->name;
    $catLink = get_category_link($c->term_id);
    $catList .= "<li>";
    $catList .= "<a href='" . $catLink . "'>" . $catName . "<i class='fa fa-chevron-right'></i></a>";
    $catList .= "</li>";
}
echo $catList;
?>
Beispiel #10
0
          <li><a href="#post-all">全て</a></li>
        </ul>
        <div class="tab-contents">
          <div id="post-weekly" class="tab-contents-child">
            <?php 
wpp_get_mostpopular(array('order_by' => 'views', 'limit' => 5, 'post_type' => 'post', 'range' => 'weekly', 'thumbnail_width' => 160, 'thumbnail_height' => 160, 'wpp_start' => '<ul class="widget-post widget-post--ranking">', 'post_html' => "<li class='widget-post__list'><a href=\\'{url}\\' class='clearfix'><div class='widget-post__thumb'>{thumb_img}</div><div class='widget-post__body'><h3 class='widget-post__title'>{text_title}</h3></div></a></li>"));
?>
          </div>
          <div id="post-monthly" class="tab-contents-child" style="display:none;">
            <?php 
wpp_get_mostpopular(array('order_by' => 'views', 'limit' => 5, 'post_type' => 'post', 'range' => 'monthly', 'thumbnail_width' => 160, 'thumbnail_height' => 160, 'wpp_start' => '<ul class="widget-post widget-post--ranking">', 'post_html' => "<li class='widget-post__list'><a href=\\'{url}\\' class='clearfix'><div class='widget-post__thumb'>{thumb_img}</div><div class='widget-post__body'><h3 class='widget-post__title'>{text_title}</h3></div></a></li>"));
?>
          </div>
          <div id="post-all" class="tab-contents-child" style="display:none;">
            <?php 
wpp_get_mostpopular(array('order_by' => 'views', 'limit' => 5, 'post_type' => 'post', 'range' => 'all', 'thumbnail_width' => 160, 'thumbnail_height' => 160, 'wpp_start' => '<ul class="widget-post widget-post--ranking">', 'post_html' => "<li class='widget-post__list'><a href=\\'{url}\\' class='clearfix'><div class='widget-post__thumb'>{thumb_img}</div><div class='widget-post__body'><h3 class='widget-post__title'>{text_title}</h3></div></a></li>"));
?>
          </div>
        </div>
      </dd>
    </dl>

    <dl class="widget">
      <dt class="widget__head">
        <h2 class="widget__title">人気ぴーぽーランキング</h2>
      </dt>
      <dd class="widget__body">
        <ul class="side-tab tab-link">
          <li class="current"><a href="#people-weekly">今週</a></li>
          <li><a href="#people-monthly">今月</a></li>
          <li><a href="#people-all">全て</a></li>
<?php

if (function_exists('wpp_get_mostpopular')) {
    $args = '
limit=5&
range=all&
order_by=views&
thumbnail_width=75&
thumbnail_height=75&
cat="' . $now_id . '"&
wpp_start=""&
wpp_end=""&
post_start="<div class="popular-post"><ul>"&
post_end="</ul></div>"&
stats_comments=0';
    wpp_get_mostpopular($args);
}
?>
<div class="clear"></div>
Beispiel #12
0
<div id="bottom-append">

	<?php 
if (is_single()) {
    ?>
	
	<div id="related-reads" class="widget post-list">
		<h3><em>Related</em> Reads</h3>	
		<?php 
    related_posts();
    ?>
	</div>
	<?php 
}
?>

	<div id="popular-reads" class="widget post-list">
		<h3><em>Popular</em> Reads</h3>	
		<?php 
if (function_exists('wpp_get_mostpopular')) {
    wpp_get_mostpopular("range=weekly&order_by=views&limit=5&stats_comments=0&pages=0");
}
?>
	</div>
</div> <!-- appends to the end of every post listing and single post -->
Beispiel #13
0
?>
		</div>
		<h2 class="smalltitle"><?php 
echo '<img src="' . get_bloginfo('template_directory') . '/images/comments16px.png" alt="kommentar"/> ';
?>
 Diesen Monat Heiß &amp; Fettig</h2>
		<div class="sidebar-section smalltext colorscheme_navi" id="sidebar-popularposts">
			<?php 
//echo do_shortcode( '[google_top_content pageviews=1 number=10 showhome=no time=2628000 timeval=1]' );
//Liste der meistgelesenen Artikel im letzten Monat (Plugin: WordPress Popular Posts)
if (function_exists('wpp_get_mostpopular')) {
    wpp_get_mostpopular("header=Meistgelesen&limit=5&range=monthly&order_by=views&post_type=post,comic&stats_views=1&stats_comments=0");
}
//Liste der meistkommentierten Artukel im letzten Monat (Plugin: WordPress Popular Posts)
if (function_exists('wpp_get_mostpopular')) {
    wpp_get_mostpopular("header=Meistkommentiert&limit=5&range=monthly&order_by=comments&post_type=post,comic&stats_comments=1&pages=0");
}
?>
		</div>
		
		
		<div class="sidebar-section">
			<h2 class="smalltitle"><?php 
echo '<img src="' . get_bloginfo('template_directory') . '/images/tag16px.png" alt="tag"/> ';
?>
 Themen</h2>
			<p class="colorscheme_navi" style="text-align:center;">
				<?php 
//Tagcloud. Das hier sind nach langer Analyse etablierte Schriftgrößen. Ischschwör!
wp_tag_cloud('smallest=8&largest=22&unit=pt');
?>
/**
 * Template tag - gets popular posts. Deprecated in 2.0.3, use wpp_get_mostpopular instead.
 *
 * @since	1.0
 * @param	mixed	args
 */
function get_mostpopular($args = NULL)
{
    trigger_error('The get_mostpopular() has been deprecated since 2.0.3. Please use wpp_get_mostpopular() instead.', E_USER_WARNING);
    return wpp_get_mostpopular($args);
}
Beispiel #15
0
wp_reset_postdata();
?>
                    </section>

                    <section class="col-xs-12 col-sm-6 col-md-6 col-lg-6 more_consult">
                         <h2>Les plus consultés</h2>
                         <?php 
wpp_get_mostpopular('
                         post_type="recette"
                         &thumbnail_width=100&thumbnail_height=100
                         &limit=3
                         &excerpt_length=100  
                         &post_html="
                         <a href=\'{url}\'>
                            <article>
                                <div class=\'left_picture\'>
                                    {thumb_img}
                                </div>
                                <div class=\'right_text\'>
                                    <h3>{text_title}</h3>
                                    <p>{summary}</p>
                                </div>
                            </article>
                        </a>"');
?>
                    </section>
                    <div class="clear"></div>
                </div>
        </div>
    </div>
</body>
function new_homepage()
{
    global $featured;
    ?>
    <div id="content" class="home-content">

        <h2><?php 
    echo bloginfo('title');
    ?>
</h2>
        <p class="tagline"><?php 
    echo bloginfo('description');
    ?>
</p>
        <?php 
    echo show_categories();
    ?>

        <?php 
    echo featured_series(smarter_slug($featured), $featured->slug);
    ?>

        <h2>Read more posts</h2>
        <?php 
    echo list_posts('latest');
    ?>

        <?php 
    if (function_exists('wpp_get_mostpopular')) {
        wpp_get_mostpopular("range=monthly&limit=10&post_type=post");
    }
    ?>

    </div>
<?php 
}