Beispiel #1
0
		<?php 
        }
    } else {
        print '';
    }
    ?>

	<?php 
}
?>

	<div id="recentposts" class="sidebar-section">
		<h2><span>Recent Posts</span></h2>
		<?php 
if (function_exists('recent_posts')) {
    recent_posts();
}
?>
	</div><!--/recentposts-->

	<div id="recentcomments" class="sidebar-section">
		<h2><span>Recent Comments</span></h2>
		<?php 
if (function_exists('recent_comments')) {
    recent_comments();
}
?>
	</div><!--/recentcomments-->

</div><!--/sidebar1-->
Beispiel #2
0
                        <ul class="nav nav-tabs" role="tablist">
                            <li role="presentation" class="active"><a href="#recent-posts" aria-controls="recent-posts" role="tab" data-toggle="tab">Recent Posts</a></li>
                            <?php 
if (config('views.counter') === 'true') {
    ?>
                            <li role="presentation"><a href="#popular-posts" aria-controls="popular-posts" role="tab" data-toggle="tab">Popular Posts</a></li>
                            <?php 
}
?>
                        </ul>
                        <!-- Tab content -->
                        <div class="tab-content">
                            <div role="tabpanel" class="tab-pane active" id="recent-posts">
                                <h2 class="hide">Recent Posts</h2>
                                <?php 
$lists = recent_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">
Beispiel #3
0
    <div id="content-wrapper">
        <div class="container">
            <section id="content">
                <?php 
echo content();
?>
            </section>
        </div>
    </div>
    <div id="footer-wrapper">
        <div class="container">
            <footer id="footer">
                <div class="footer-column">
                    <div class="recent column">
                        <div class="inner"><h3>Recent Posts</h3><?php 
echo recent_posts();
?>
</div>
                    </div>
                    <div class="archive column">
                        <div class="inner"><h3>Archive</h3><?php 
echo archive_list();
?>
</div>
                    </div>
                    <div class="tagcloud column">
                        <div class="inner"><h3>Tags</h3><?php 
echo tag_cloud();
?>
</div>
                    </div>