PageRenderTime 50ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/hashing/basercms
PHP | 62 lines | 39 code | 5 blank | 18 comment | 1 complexity | e44aae51baa7da2ccc03b9db1299ff5b MD5 | raw file
Possible License(s): MIT
  1. <?php
  2. /* SVN FILE: $Id$ */
  3. /**
  4. * [MOBILE] ブログ
  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. <hr size="1" style="width:100%;height:1px;margin:2px 0;padding:0;color:#CCCCCC;background:#CCCCCC;border:1px solid #CCCCCC;" />
  24. <div style="text-align:center;background-color:#8ABE08;"> <span style="color:white;"><?php echo $bcBaser->getContentsTitle(); ?></span> </div>
  25. <hr size="1" style="width:100%;height:1px;margin:2px 0;padding:0;color:#CCCCCC;background:#CCCCCC;border:1px solid #CCCCCC;" />
  26. <br />
  27. <!-- description -->
  28. <div><?php $blog->description() ?></div>
  29. <br />
  30. <!-- pagination -->
  31. <?php $bcBaser->pagination() ?>
  32. <br />
  33. <br />
  34. <!-- list -->
  35. <?php if(!empty($posts)): ?>
  36. <?php foreach($posts as $post): ?>
  37. <span style="color:#8ABE08"></span>
  38. <?php $blog->postTitle($post) ?>
  39. <hr size="1" style="width:100%;height:1px;margin:2px 0;padding:0;color:#8ABE08;background:#8ABE08;border:1px solid #8ABE08;" />
  40. <br />
  41. <?php $blog->postContent($post,false,true) ?>
  42. <br />
  43. <p align="right">
  44. <?php $blog->category($post) ?>
  45. <br />
  46. <?php $blog->postDate($post) ?>
  47. <br />
  48. <?php $blog->author($post) ?>
  49. </p>
  50. <hr size="1" style="width:100%;height:1px;margin:2px 0;padding:0;color:#CCCCCC;background:#CCCCCC;border:1px solid #CCCCCC;" />
  51. <br />
  52. <?php endforeach; ?>
  53. <?php else: ?>
  54. <p class="no-data">記事がありません</p>
  55. <?php endif; ?>
  56. <!-- pagination -->
  57. <?php echo $bcBaser->pagination() ?>