29 lines
688 B
PHP
29 lines
688 B
PHP
<?php
|
|
/**
|
|
* Shortcode attributes
|
|
* @var $atts
|
|
* @var $content - shortcode content
|
|
*/
|
|
|
|
if (!defined('ABSPATH')) :
|
|
die('-1');
|
|
endif;
|
|
|
|
$GLOBALS['nasa_current_layout'] = $this->layout;
|
|
|
|
$atts = vc_map_get_attributes($this->getShortcode(), $atts);
|
|
$this->resetVariables($atts, $content);
|
|
extract($atts);
|
|
|
|
$this->setGlobalTtaInfo();
|
|
$prepareContent = $this->getTemplateVariable('content');
|
|
|
|
ob_start();
|
|
|
|
$file = ELESSI_CHILD_PATH . '/vc_templates/tta_global_layout/' . $this->layout . '_layout.php';
|
|
include is_file($file) ? $file : ELESSI_THEME_PATH . '/vc_templates/tta_global_layout/' . $this->layout . '_layout.php';
|
|
|
|
unset($GLOBALS['nasa_current_layout']);
|
|
|
|
return ob_get_clean();
|