PageRenderTime 38ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/baser/plugins/feed/views/feed/smartphone/default.php

https://github.com/hashing/basercms
PHP | 42 lines | 23 code | 1 blank | 18 comment | 2 complexity | 37239c91b2f2a21e6540ec3843743f47 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.feed.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. ?>
  21. <cake:nocache>
  22. <?php $bcBaser->cacheHeader() ?>
  23. </cake:nocache>
  24. <?php if(!empty($items)): ?>
  25. <?php foreach($items as $key => $item): ?>
  26. <?php $class = array('clearfix', 'post-'.($key+1)) ?>
  27. <?php if($bcArray->first($items, $key)): ?>
  28. <?php $class[] = 'first' ?>
  29. <?php elseif($bcArray->last($items, $key)): ?>
  30. <?php $class[] = 'last' ?>
  31. <?php endif ?>
  32. <li class="<?php echo implode(' ', $class) ?>">
  33. <a href="<?php echo $item['link']['value']; ?>">
  34. <span class="date"><?php echo date("Y.m.d",strtotime($item['pubDate']['value'])) ?></span><br />
  35. <span class="title"><?php echo $item['title']['value']; ?></span>
  36. </a>
  37. </li>
  38. <?php endforeach ?>
  39. <?php else: ?>
  40. <p style="text-align:center"></p>
  41. <?php endif ?>