Current File : /home/aventura/www/site/wp-content/plugins/victheme_core/vtcore/html/element.php
<?php
/**
 * Helper class for quick shortcut in building generic html element
 *
 * @author jason.xie@victheme.com
 */
class VTCore_Html_Element
extends VTCore_Html_Base {

  protected $context = array(
    'type' => '',
    'attributes' => array(),
  );

  public function buildElement() {
    $this->addAttributes($this->getContext('attributes'));
    if ($this->getContext('text')) {
      $this->setText($this->getContext('text'));
    }
  }
}