children as $child) {
$this->renderChild($child, $factory);
} ?>
render($factory);
}
}
/*
Class: CallaElatedContainer
A class that initializes Elated Container
*/
class CallaElatedContainer implements iCallaElatedLayoutNode, iCallaElatedRender {
public $children;
public $name;
public $dependency;
function __construct($name="", $dependency = array()) {
$this->children = array();
$this->name = $name;
$this->dependency = $dependency;
}
public function hasChidren() {
return (count($this->children) > 0)?true:false;
}
public function getChild($key) {
return $this->children[$key];
}
public function addChild($key, $value) {
$this->children[$key] = $value;
}
public function render($factory) {
$containerClass = '';
$data = array();
if ( ! empty( $this->dependency ) ) {
$show = array_key_exists('show',$this->dependency) ? calla_elated_return_dependency_options_array( $this->dependency['show'], false ) : array();
$hide = array_key_exists('hide',$this->dependency) ? calla_elated_return_dependency_options_array( $this->dependency['hide'], true ) : array();
$showDataValues = '';
$hideDataValues = '';
$hideContainer = true;
$containerClass = 'eltdf-dependency-holder';
if ( ! empty( $show ) ) {
$showDataValues = $show['data_values'];
$hideContainer = $show['hide_container'];
}
if ( ! empty( $hide ) ) {
$hideDataValues = $hide['data_values'];
$hideContainer = $hide['hide_container'];
}
$data['data-show'] = ! empty( $showDataValues ) ? json_encode( $showDataValues ) : '';
$data['data-hide'] = ! empty( $hideDataValues ) ? json_encode( $hideDataValues ) : '';
if ( $hideContainer ) {
$containerClass .= ' eltdf-hide-dependency-holder';
}
}
?>
>
children as $child) {
$this->renderChild($child, $factory);
} ?>
render($factory);
}
}
/*
Class: CallaElatedContainerNoStyle
A class that initializes Elated Container without css classes
*/
class CallaElatedContainerNoStyle implements iCallaElatedLayoutNode, iCallaElatedRender {
public $children;
public $name;
public $dependency;
function __construct($name="",$args=array(), $dependency = array()) {
$this->children = array();
$this->name = $name;
$this->dependency = $dependency;
$this->args = $args;
}
public function hasChidren() {
return (count($this->children) > 0)?true:false;
}
public function getChild($key) {
return $this->children[$key];
}
public function addChild($key, $value) {
$this->children[$key] = $value;
}
public function render($factory) {
$containerClass = '';
$data = array();
if ( ! empty( $this->dependency ) ) {
$show = array_key_exists('show',$this->dependency) ? calla_elated_return_dependency_options_array( $this->dependency['show'], false ) : array();
$hide = array_key_exists('hide',$this->dependency) ? calla_elated_return_dependency_options_array( $this->dependency['hide'], true ) : array();
$showDataValues = '';
$hideDataValues = '';
$hideContainer = true;
$containerClass = 'eltdf-dependency-holder';
if ( ! empty( $show ) ) {
$showDataValues = $show['data_values'];
$hideContainer = $show['hide_container'];
}
if ( ! empty( $hide ) ) {
$hideDataValues = $hide['data_values'];
$hideContainer = $hide['hide_container'];
}
$data['data-show'] = ! empty( $showDataValues ) ? json_encode( $showDataValues ) : '';
$data['data-hide'] = ! empty( $hideDataValues ) ? json_encode( $hideDataValues ) : '';
if ( $hideContainer ) {
$containerClass .= ' eltdf-hide-dependency-holder';
}
}
?>
>
children as $child) {
$this->renderChild($child, $factory);
} ?>
render($factory);
}
}
/*
Class: CallaElatedGroup
A class that initializes Elated Group
*/
class CallaElatedGroup implements iCallaElatedLayoutNode, iCallaElatedRender {
public $children;
public $title;
public $description;
function __construct($title_label="",$description="") {
$this->children = array();
$this->title = $title_label;
$this->description = $description;
}
public function hasChidren() {
return (count($this->children) > 0)?true:false;
}
public function getChild($key) {
return $this->children[$key];
}
public function addChild($key, $value) {
$this->children[$key] = $value;
}
public function render($factory) { ?>
title); ?>
description); ?>
children as $child) {
$this->renderChild($child, $factory);
} ?>
render($factory);
}
}
/*
Class: CallaElatedNotice
A class that initializes Elated Notice
*/
class CallaElatedNotice implements iCallaElatedRender {
public $children;
public $title;
public $description;
public $notice;
function __construct($title_label="",$description="",$notice="") {
$this->children = array();
$this->title = $title_label;
$this->description = $description;
$this->notice = $notice;
}
public function render($factory) {?>
title); ?>
description); ?>
notice); ?>
children = array();
$this->next = $next;
}
public function hasChidren() {
return (count($this->children) > 0)?true:false;
}
public function getChild($key) {
return $this->children[$key];
}
public function addChild($key, $value) {
$this->children[$key] = $value;
}
public function render($factory) { ?>
">
children as $child) {
$this->renderChild($child, $factory);
} ?>
render($factory);
}
}
/*
Class: CallaElatedTitle
A class that initializes Elated Title
*/
class CallaElatedTitle implements iCallaElatedRender {
private $name;
private $title;
function __construct($name="",$title_label="") {
$this->title = $title_label;
$this->name = $name;
}
public function render($factory) { ?>