Current File : /home/aventura/www/site/wp-content/plugins/victheme_timeline/element/start.php
<?php
/**
 * Helper class for building the timeline major elements
 *
 * @author jason.xie@victheme.com
 */
class VTCore_Timeline_Element_Start
extends VTCore_Timeline_Models_Event {

  protected $context = array(
    'type' => 'div',
    'text' => '',
    'classtype' => 'start',
    'direction' => 'center',
    'attributes' => array(
      'class' => array(
        'timeline-start'
      ),
    ),
  );

  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-start-wrapper'),
        ),
      )))
      ->lastChild();

    $this->content->setText($this->getContext('text'));
    $this->setChildrenPointer('content');

  }
}