PageRenderTime 48ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/hashing/basercms
PHP | 49 lines | 27 code | 4 blank | 18 comment | 2 complexity | 6b77af148e084ae20e06fcbf26fcaddb MD5 | raw file
Possible License(s): MIT
  1. <?php
  2. /* SVN FILE: $Id$ */
  3. /**
  4. * [SMARTPHONE] ブログトップ
  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->getDescription());
  21. ?>
  22. <!-- title -->
  23. <h2 class="contents-head">
  24. <?php $blog->title() ?>
  25. </h2>
  26. <!-- description -->
  27. <?php if($blog->descriptionExists()): ?>
  28. <section class="blog-description">
  29. <?php $blog->description() ?>
  30. </section>
  31. <?php endif ?>
  32. <section class="box news">
  33. <!-- list -->
  34. <?php if(!empty($posts)): ?>
  35. <ul>
  36. <?php foreach($posts as $post): ?>
  37. <li><?php $blog->postLink($post, '<span class="date">'.$blog->getPostDate($post).'</span><br />'.$blog->getPostTitle($post)) ?></li>
  38. <?php endforeach; ?>
  39. </ul>
  40. <?php else: ?>
  41. <p class="no-data">記事がありません</p>
  42. <?php endif; ?>
  43. </section>
  44. <!-- pagination -->
  45. <?php $bcBaser->pagination('simple'); ?>