Exemplo n.º 1
0
</a></h1>
                <?php 
} else {
    ?>
                    <h2 class="name"><a href="<?php 
    echo site_url();
    ?>
"><?php 
    echo blog_title();
    ?>
</a></h2>
                <?php 
}
?>
                <p class="desc"><?php 
echo blog_tagline();
?>
</p>   
                <ul class="social list-inline">
                    <li><a href="<?php 
echo config('social.twitter');
?>
"><i class="fa fa-twitter"></i></a></li>                   
                    <li><a href="<?php 
echo config('social.google');
?>
"><i class="fa fa-google-plus"></i></a></li>
                    <li><a href="<?php 
echo config('social.facebook');
?>
"><i class="fa fa-facebook"></i></a></li>
Exemplo n.º 2
0
         header("location: {$login}");
     }
     die;
 } elseif ($static === 'blog') {
     if (config('blog.enable') !== 'true') {
         return not_found();
     }
     if (!login()) {
         file_cache($_SERVER['REQUEST_URI']);
     }
     $page = from($_GET, 'page');
     $page = $page ? (int) $page : 1;
     $perpage = config('posts.perpage');
     $posts = get_posts(null, $page, $perpage);
     $total = '';
     $tl = blog_tagline();
     if ($tl) {
         $tagline = ' - ' . $tl;
     } else {
         $tagline = '';
     }
     if (empty($posts) || $page < 1) {
         // a non-existing page
         render('no-posts', array('title' => 'Blog - ' . blog_title(), 'description' => blog_title() . ' Blog Homepage', 'canonical' => site_url(), 'bodyclass' => 'noposts', 'is_front' => true));
         die;
     }
     render('main', array('title' => 'Blog - ' . blog_title(), 'description' => blog_title() . ' Blog Homepage', 'canonical' => site_url() . 'blog', 'page' => $page, 'posts' => $posts, 'bodyclass' => 'inblog', 'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; Blog', 'pagination' => has_pagination($total, $perpage, $page), 'is_blog' => true));
 } elseif ($static === 'front') {
     $redir = site_url();
     header("location: {$redir}", TRUE, 301);
 } else {