- $this->elementStart('p');
- $this->element('a', array('href' => $this->moreUrl(),
- 'class' => 'more'),
- $this->moreTitle());
- $this->elementEnd('p');
+ $this->showMore();
+ }
+
+ $this->out->elementEnd('div');
+ }
+
+ function showTitle()
+ {
+ $link = $this->link();
+ if (!empty($link)) {
+ $this->out->elementStart('h2');
+ $this->out->element('a', array('href' => $link), $this->title());
+ $this->out->elementEnd('h2');
+ } else {
+ $this->out->element('h2', null,
+ $this->title());