/baser/plugins/blog/views/blog/default/archives.php
PHP | 65 lines | 41 code | 5 blank | 19 comment | 2 complexity | 231164db065a72ba16311d32a63ae3ac MD5 | raw file
Possible License(s): MIT
- <?php
- /* SVN FILE: $Id$ */
- /**
- * [PUBLISH] ブログアーカイブ一覧
- *
- * PHP versions 5
- *
- * baserCMS : Based Website Development Project <http://basercms.net>
- * Copyright 2008 - 2012, baserCMS Users Community <http://sites.google.com/site/baserusers/>
- *
- * @copyright Copyright 2008 - 2012, baserCMS Users Community
- * @link http://basercms.net baserCMS Project
- * @package baser.plugins.blog.views
- * @since baserCMS v 0.1.0
- * @version $Revision$
- * @modifiedby $LastChangedBy$
- * @lastmodified $Date$
- * @license http://basercms.net/license/index.html
- */
- $bcBaser->css(array('/blog/css/style','colorbox/colorbox'), array('inline' => true));
- $bcBaser->js('jquery.colorbox-min', false);
- //$bcBaser->setTitle($this->pageTitle.'|'.$blog->getTitle());
- $bcBaser->setDescription($blog->getTitle().'|'.$bcBaser->getContentsTitle().'のアーカイブ一覧です。');
- ?>
- <script type="text/javascript">
- $(function(){
- if($("a[rel='colorbox']").colorbox) $("a[rel='colorbox']").colorbox({transition:"fade"});
- });
- </script>
- <!-- title -->
- <h2 class="contents-head">
- <?php $blog->title() ?>
- </h2>
- <!-- archives title -->
- <h3 class="contents-head">
- <?php $bcBaser->contentsTitle() ?>
- </h3>
- <!-- list -->
- <?php if(!empty($posts)): ?>
- <?php foreach($posts as $post): ?>
- <div class="post">
- <h4 class="contents-head">
- <?php $blog->postTitle($post) ?>
- </h4>
- <?php $blog->postContent($post,true,true) ?>
- <div class="meta"><span>
- <?php $blog->category($post) ?>
-
- <?php $blog->postDate($post) ?>
-
- <?php $blog->author($post) ?>
- </span></div>
- <?php $bcBaser->element('blog_tag', array('post' => $post)) ?>
- </div>
- <?php endforeach; ?>
- <?php else: ?>
- <p class="no-data">記事がありません。</p>
- <?php endif; ?>
- <!-- pagination -->
- <?php $bcBaser->pagination('simple'); ?>