Initial Commit N° : 001 - V.4.3.3
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?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();
|
||||
Reference in New Issue
Block a user