Exemplo n.º 1
0
 /**
  * Create a new instance.
  *
  * @param \Database\Result $objElement The object from the database.
  */
 public function __construct($objElement)
 {
     parent::__construct($objElement);
     $this->arrData = $objElement->row();
     // Get space and CSS ID from the parent element (!)
     $this->space = deserialize($objElement->space);
     $this->cssID = deserialize($objElement->cssID, true);
     $this->typePrefix = $objElement->typePrefix ?: $this->typePrefix;
     $this->strKey = $objElement->type;
     $arrHeadline = deserialize($objElement->headline);
     $this->headline = is_array($arrHeadline) ? $arrHeadline['value'] : $arrHeadline;
     $this->hl = is_array($arrHeadline) ? $arrHeadline['unit'] : 'h1';
 }
Exemplo n.º 2
0
 /**
  * Initial hooks on creation.
  */
 function __construct()
 {
     add_filter('hybrid_prefix', array($this, 'hybrid_prefix'));
     parent::__construct();
 }
Exemplo n.º 3
0
 /**
  * Initial hooks on creation.
  */
 function __construct()
 {
     add_filter('hybrid_prefix', array($this, 'hybrid_prefix'));
     parent::__construct();
     add_action('after_setup_theme', array($this, 'default_filters'), 3);
 }