children = array();
$this->title = $title;
$this->name = $name;
$this->hidden_property = $hidden_property;
$this->hidden_value = $hidden_value;
}
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) {
$hidden = false;
if (!empty($this->hidden_property)){
if (qodef_option_get_value($this->hidden_property)==$this->hidden_value)
$hidden = true;
}
?>
style="display: none">
title; ?>
children as $child) {
$this->renderChild($child, $factory);
}
?>
render($factory);
}
}
/*
Class: QodeContainer
A class that initializes Qode Container
*/
class QodeContainer implements iLayoutNode, iRender {
public $children;
public $name;
public $hidden_property;
public $hidden_value;
public $hidden_values;
function __construct($name="",$hidden_property="",$hidden_value="",$hidden_values=array()) {
$this->children = array();
$this->name = $name;
$this->hidden_property = $hidden_property;
$this->hidden_value = $hidden_value;
$this->hidden_values = $hidden_values;
}
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) {
$hidden = false;
if (!empty($this->hidden_property)){
if (qodef_option_get_value($this->hidden_property)==$this->hidden_value)
$hidden = true;
else {
foreach ($this->hidden_values as $value) {
if (qodef_option_get_value($this->hidden_property)==$value)
$hidden = true;
}
}
}
?>
style="display: none">
children as $child) {
$this->renderChild($child, $factory);
}
?>
render($factory);
}
}
/*
Class: QodeContainerNoStyle
A class that initializes Qode Container without css classes
*/
class QodeContainerNoStyle implements iLayoutNode, iRender {
public $children;
public $name;
public $hidden_property;
public $hidden_value;
public $hidden_values;
function __construct($name="",$hidden_property="",$hidden_value="",$hidden_values=array()) {
$this->children = array();
$this->name = $name;
$this->hidden_property = $hidden_property;
$this->hidden_value = $hidden_value;
$this->hidden_values = $hidden_values;
}
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) {
$hidden = false;
if (!empty($this->hidden_property)){
if (qodef_option_get_value($this->hidden_property)==$this->hidden_value)
$hidden = true;
else {
foreach ($this->hidden_values as $value) {
if (qodef_option_get_value($this->hidden_property)==$value)
$hidden = true;
}
}
}
?>
style="display: none">
children as $child) {
$this->renderChild($child, $factory);
}
?>
render($factory);
}
}
/*
Class: QodeGroup
A class that initializes Qode Group
*/
class QodeGroup implements iLayoutNode, iRender {
public $children;
public $title;
public $description;
function __construct($title="",$description="") {
$this->children = array();
$this->title = $title;
$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: QodeNotice
A class that initializes Qode Notice
*/
class QodeNotice implements iRender {
public $children;
public $title;
public $description;
public $notice;
public $hidden_property;
public $hidden_value;
public $hidden_values;
function __construct($title="",$description="",$notice="",$hidden_property="",$hidden_value="",$hidden_values=array()) {
$this->children = array();
$this->title = $title;
$this->description = $description;
$this->notice = $notice;
$this->hidden_property = $hidden_property;
$this->hidden_value = $hidden_value;
$this->hidden_values = $hidden_values;
}
public function render($factory) {
$hidden = false;
if (!empty($this->hidden_property)){
if (qodef_option_get_value($this->hidden_property)==$this->hidden_value)
$hidden = true;
else {
foreach ($this->hidden_values as $value) {
if (qodef_option_get_value($this->hidden_property)==$value)
$hidden = true;
}
}
}
?>
style="display: none">
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: QodeTitle
A class that initializes Qode Title
*/
class QodeTitle implements iRender {
private $name;
private $title;
public $hidden_property;
public $hidden_values = array();
function __construct($name="",$title="",$hidden_property="",$hidden_value="") {
$this->title = $title;
$this->name = $name;
$this->hidden_property = $hidden_property;
$this->hidden_value = $hidden_value;
}
public function render($factory) {
$hidden = false;
if (!empty($this->hidden_property)){
if (qodef_option_get_value($this->hidden_property)==$this->hidden_value)
$hidden = true;
}
?>
obtainAccessToken();
if($responseObj->status) {
$message = esc_html__('You have successfully connected with your Twitter account. If you have any issues fetching data from Twitter try reconnecting.', 'qode');
} else {
$message = $responseObj->message;
}
}
$buttonText = $twitterApi->hasUserConnected() ? esc_html__('Re-connect with Twitter', 'bridge') : esc_html__('Connect with Twitter', 'qode');
?>
storeCode();
$instagram_api->getAccessToken();
$message = esc_html__('You have successfully connected with your Instagram account. If you have any issues fetching data from Instagram try reconnecting.', 'qode');
} else {
$instagram_api->storeCodeRequestURI();
}
}
$buttonText = $instagram_api->hasUserConnected() ? esc_html__('Re-connect with Instagram', 'qode') : esc_html__('Connect with Instagram', 'qode');
?>