PageRenderTime 81ms CodeModel.GetById 18ms RepoModel.GetById 8ms app.codeStats 0ms

/baser/plugins/blog/views/blog/smartphone/default/archives.php

https://github.com/hashing/basercms
PHP | 47 lines | 25 code | 4 blank | 18 comment | 1 complexity | 4d5366d39eb2c8303c02848fb7f9ead5 MD5 | raw file
Possible License(s): MIT
  1. <?php
  2. /* SVN FILE: $Id$ */
  3. /**
  4. * [PUBLISH] ブログアーカイブ一覧
  5. *
  6. * PHP versions 5
  7. *
  8. * baserCMS : Based Website Development Project <http://basercms.net>
  9. * Copyright 2008 - 2012, baserCMS Users Community <http://sites.google.com/site/baserusers/>
  10. *
  11. * @copyright Copyright 2008 - 2012, baserCMS Users Community
  12. * @link http://basercms.net baserCMS Project
  13. * @package baser.plugins.blog.views
  14. * @since baserCMS v 0.1.0
  15. * @version $Revision$
  16. * @modifiedby $LastChangedBy$
  17. * @lastmodified $Date$
  18. * @license http://basercms.net/license/index.html
  19. */
  20. $bcBaser->setDescription($blog->getTitle().'|'.$bcBaser->getContentsTitle().'のアーカイブ一覧です。');
  21. ?>
  22. <!-- title -->
  23. <h2 class="contents-head">
  24. <?php $blog->title() ?>
  25. </h2>
  26. <!-- archives title -->
  27. <h3 class="contents-head">
  28. <?php $bcBaser->contentsTitle() ?>
  29. </h3>
  30. <section class="box news">
  31. <!-- list -->
  32. <?php if(!empty($posts)): ?>
  33. <ul>
  34. <?php foreach($posts as $post): ?>
  35. <li><?php $blog->postLink($post, '<span class="date">'.$blog->getPostDate($post).'</span><br />'.$blog->getPostTitle($post)) ?></li>
  36. <?php endforeach; ?>
  37. </ul>
  38. <?php else: ?>
  39. <p class="no-data">記事がありません</p>
  40. <?php endif; ?>
  41. </section>
  42. <!-- pagination -->
  43. <?php $bcBaser->pagination('simple'); ?>