echo $l->url; ?> "><i class="fa fa-link"></i> Read more</a> </div><!--//content--> </div> <?php } ?> </div> <?php if (config('views.counter') === 'true') { ?> <div role="tabpanel" class="tab-pane" id="popular-posts"> <h2 class="hide">Popular Posts</h2> <?php $lists = popular_posts(true); ?> <?php $char = 60; ?> <?php foreach ($lists as $l) { ?> <?php if (strlen(strip_tags($l->title)) > $char) { $recentTitle = shorten($l->title, $char) . '...'; } else { $recentTitle = $l->title; } ?> <div class="item">
$login = site_url() . 'login'; header("location: {$login}"); } }); // Show admin/popular get('/admin/popular', function () { $user = $_SESSION[config("site.url")]['user']; $role = user('role', $user); if (login()) { config('views.root', 'system/admin/views'); if ($role === 'admin') { config('views.root', 'system/admin/views'); $page = from($_GET, 'page'); $page = $page ? (int) $page : 1; $perpage = 20; $posts = popular_posts(true, $perpage); $total = ''; if (empty($posts) || $page < 1) { // a non-existing page render('no-posts', array('title' => 'Popular posts - ' . blog_title(), 'description' => blog_description(), 'canonical' => site_url(), 'bodyclass' => 'noposts')); die; } $tl = blog_tagline(); if ($tl) { $tagline = ' - ' . $tl; } else { $tagline = ''; } render('popular-posts', array('title' => 'Popular posts - ' . blog_title(), 'description' => blog_description(), 'canonical' => site_url(), 'heading' => 'Popular posts', 'page' => $page, 'posts' => $posts, 'bodyclass' => 'popular-posts', 'breadcrumb' => '', 'pagination' => has_pagination($total, $perpage, $page))); } else { render('denied', array('title' => 'Popular posts - ' . blog_title(), 'description' => blog_description(), 'canonical' => site_url(), 'bodyclass' => 'denied', 'breadcrumb' => ''));
<script type="text/javascript"><!-- google_ad_client = "pub-9924508648745616"; /* 336x280, 作成済み 09/08/05 */ google_ad_slot = "3366334648"; google_ad_width = 336; google_ad_height = 280; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> <h3>人気記事トップ10</h3> <p><?php popular_posts(5); ?> <h3>トラックバック</h3> <p><?php trackback_url(true); ?> </p> <?php comments_template(); ?> </div> </div>
echo social(); ?> </div> <div class="recent"> <h3>Recent Posts</h3> <?php echo recent_posts(); ?> </div> <?php if (config('views.counter') === 'true') { ?> <div class="popular"> <h3>Popular Posts</h3> <?php echo popular_posts(); ?> </div> <?php } ?> <div class="archive"> <h3>Archive</h3> <?php echo archive_list(); ?> </div> <?php if (disqus()) { ?> <div class="comments">
<div id="footer" class="wrap"> <div class="left-col"> <div class="popular wrap"> <h2><?php _e('Most Popular Articles', woothemes); ?> </h2> <ul> <!-- Gets the posts with the most comments --> <?php popular_posts(); ?> </ul> </div> </div> <div id="subscribe" class="right-col"> <h2><?php _e('Subscribe to RSS', woothemes); ?> </h2> <p class="rss"><?php _e('If you enjoyed the post, make sure you subscribe to the RSS feed', woothemes); ?> .</p> <p> <a href="<?php if (get_option('woo_feedburner_url') != "") { echo get_option('woo_feedburner_url');
$my_query = new WP_Query("cat=9&showposts=2"); while ($my_query->have_posts()) { $my_query->the_post(); $title = $post->post_title; $link = get_permalink($post->ID); $shortContentText = $post->post_content; $shortContentText = strip_tags($shortContentText); $shortContentText = substr($shortContentText, 0, 800); $lastSpaceOnEarth = strpos($shortContentText, '.', 50); $shortContentText = substr($shortContentText, 0, $lastSpaceOnEarth + 1); $shortContentText = str_replace(".", ".<br/>", $shortContentText); echo '<div class="boxes"><a href="' . $link . '">' . $title . '</a><br/>' . $shortContentText . '</div>'; } echo '<div class="boxes" style="padding-top:15px;text-align:right;float:right;"> <p class="segnala2"><a href="' . get_category_link(9) . '" class="segnala">Tutte le news</a></p></div>'; echo '<h2 class="blue secondLine">Le più lette</h2>'; popular_posts('limit=2&output_template=<div class="boxesSecondLine">{link}</div>÷r='); } elseif (in_category('49') || in_category('47') || in_category('50') || in_category('142')) { $do_not_duplicate = $post->ID; echo '<h2 class="blue">Sullo scaffale</h2>'; $my_query = new WP_Query("cat=47=&showposts=2"); while ($my_query->have_posts()) { $my_query->the_post(); $title = $post->post_title; $link = get_permalink($post->ID); $shortContentText = $post->post_content; $shortContentText = strip_tags($shortContentText); $shortContentText = substr($shortContentText, 0, 800); $lastSpaceOnEarth = strpos($shortContentText, '.', 50); $shortContentText = substr($shortContentText, 0, $lastSpaceOnEarth + 1); $shortContentText = str_replace(".", ".<br/>", $shortContentText); echo '<div class="boxes"><a href="' . $link . '">' . $title . '</a><br/>' . $shortContentText . '</div>';