Current File : /home/aventura/www/site/wp-content/plugins/victheme_timeline/element/end.php |
<?php
/**
* Helper class for building the timeline end elements
*
* @author jason.xie@victheme.com
*/
class VTCore_Timeline_Element_End
extends VTCore_Timeline_Models_Event {
protected $context = array(
'type' => 'div',
'text' => '',
'classtype' => 'end',
'direction' => 'center',
'attributes' => array(
'class' => array(
'timeline-end'
),
),
);
protected $content;
public function buildElement() {
$this->addAttributes($this->getContext('attributes'));
$this->content = $this
->addChildren(new VTCore_Html_Element(array(
'type' => 'div',
'attributes' => array(
'class' => array('timeline-end-wrapper'),
),
)))
->lastChild();
$this->content->setText($this->getContext('text'));
$this->setChildrenPointer('content');
}
}