My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php use_helper('Date') ?>
<?php foreach ($items as $item):
$params = new LyraConfig($item->getRawValue());
?>
<h2 class="article-title">
<?php
if($params->get('linked_title')) {
echo link_to($item->getTitle(), $item->getContentType()->getType() . '_show', $item);
} else {
echo $item->getTitle();
}
?>
</h2>
<?php include_partial('article/byline', array('item' => $item, 'params' => $params));?>
<div class="article-summary">
<?php
echo $item->getSummary(ESC_RAW);
if($params->get('show_read_more') && trim($item->getContent())): ?>
<span class="article-readmore">
<?php echo link_to(__('LINK_READMORE'), $item->getContentType()->getType() . '_show', $item, array('title'=>$item->getTitle()))?>
</span>
<?php endif ?>
</div>
<div class="article-separator"></div>
<?php endforeach; ?>

Change log

r48 by gimassimo on Apr 12, 2010   Diff
Restructured management of configuration
parameters (LyraConfig, LyraParams).
Go to: 
Project members, sign in to write a code review

Older revisions

r41 by gimassimo on Feb 8, 2010   Diff
Added 'page' content type. Modified
backend routes of article module to
always include content type ID in URL.
r35 by gimassimo on Jan 14, 2010   Diff
Added management of configuration
parameters for article content type.
r24 by gimassimo on Nov 26, 2009   Diff
Added 'byline' partial to display
author username and creation date in
article lists and article full view.
Changed LyraArticleForm so that
'created_by' and 'updated_by' fields
...
All revisions of this file

File info

Size: 862 bytes, 25 lines
Powered by Google Project Hosting