PageRenderTime 44ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://github.com/hashing/basercms
PHP | 65 lines | 41 code | 5 blank | 19 comment | 2 complexity | 231164db065a72ba16311d32a63ae3ac 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->css(array('/blog/css/style','colorbox/colorbox'), array('inline' => true));
  21. $bcBaser->js('jquery.colorbox-min', false);
  22. //$bcBaser->setTitle($this->pageTitle.'|'.$blog->getTitle());
  23. $bcBaser->setDescription($blog->getTitle().'|'.$bcBaser->getContentsTitle().'のアーカイブ一覧です。');
  24. ?>
  25. <script type="text/javascript">
  26. $(function(){
  27. if($("a[rel='colorbox']").colorbox) $("a[rel='colorbox']").colorbox({transition:"fade"});
  28. });
  29. </script>
  30. <!-- title -->
  31. <h2 class="contents-head">
  32. <?php $blog->title() ?>
  33. </h2>
  34. <!-- archives title -->
  35. <h3 class="contents-head">
  36. <?php $bcBaser->contentsTitle() ?>
  37. </h3>
  38. <!-- list -->
  39. <?php if(!empty($posts)): ?>
  40. <?php foreach($posts as $post): ?>
  41. <div class="post">
  42. <h4 class="contents-head">
  43. <?php $blog->postTitle($post) ?>
  44. </h4>
  45. <?php $blog->postContent($post,true,true) ?>
  46. <div class="meta"><span>
  47. <?php $blog->category($post) ?>
  48. &nbsp;
  49. <?php $blog->postDate($post) ?>
  50. &nbsp;
  51. <?php $blog->author($post) ?>
  52. </span></div>
  53. <?php $bcBaser->element('blog_tag', array('post' => $post)) ?>
  54. </div>
  55. <?php endforeach; ?>
  56. <?php else: ?>
  57. <p class="no-data">記事がありません</p>
  58. <?php endif; ?>
  59. <!-- pagination -->
  60. <?php $bcBaser->pagination('simple'); ?>