+
+ params->get('show_page_heading')) : ?>
+
+ item->pagination) && !$this->item->paginationposition && $this->item->paginationrelative) {
+ echo $this->item->pagination;
+ }
+ ?>
+
+ get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date')
+ || $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author') || $assocParam; ?>
+
+ render('above-title'); ?>
+ get('show_title')) : ?>
+
+
+
+
+ $params, 'item' => $this->item]); ?>
+
+
+
+ item->event->afterDisplayTitle; ?>
+
+
+ $this->item, 'params' => $params, 'astroidArticle' => $astroidArticle, 'position' => 'above']); ?>
+
+
+ get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
+ item->tagLayout = new FileLayout('joomla.content.tags'); ?>
+ item->tagLayout->render($this->item->tags->itemTags); ?>
+
+
+
+ item->event->beforeDisplayContent; ?>
+
+ get('urls_position', 0) === 0) : ?>
+ loadTemplate('links'); ?>
+
+
+ get('access-view')) : ?>
+ item->pagination) && !$this->item->paginationposition && !$this->item->paginationrelative) :
+ echo $this->item->pagination;
+ endif;
+ ?>
+ item->toc)) :
+ echo $this->item->toc;
+ endif; ?>
+ item); ?>
+ render('before-content'); ?>
+
+ item->text; ?>
+
+ render('after-content'); ?>
+
+
+
+ $this->item, 'params' => $params, 'astroidArticle' => $astroidArticle, 'position' => 'below']); ?>
+
+ get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
+ item->tagLayout = new FileLayout('joomla.content.tags'); ?>
+ item->tagLayout->render($this->item->tags->itemTags); ?>
+
+
+
+ item->pagination) && $this->item->paginationposition && !$this->item->paginationrelative) :
+ echo $this->item->pagination;
+ ?>
+
+
+ get('urls_position', 0) === 1) : ?>
+ loadTemplate('links'); ?>
+
+
+ get('show_noauth') == true && $user->get('guest')) : ?>
+ item); ?>
+ item->introtext); ?>
+
+ get('show_readmore') && $this->item->fulltext != null) : ?>
+ getMenu(); ?>
+ getActive(); ?>
+ id; ?>
+
+ setVar('return', base64_encode(RouteHelper::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language))); ?>
+ $this->item, 'params' => $params, 'link' => $link]); ?>
+
+
+ item->pagination) && $this->item->paginationposition && $this->item->paginationrelative) :
+ echo $this->item->pagination;
+ ?>
+
+ renderSocialShare(); ?>
+ renderAuthorInfo(); ?>
+ renderComments(); ?>
+ renderRelatedPosts(); ?>
+
+ item->event->afterDisplayContent; ?>
+
\ No newline at end of file
diff --git a/framework/html/com_content/article/default_links.php b/framework/html/com_content/article/default_links.php
new file mode 100644
index 00000000..7a9cbda3
--- /dev/null
+++ b/framework/html/com_content/article/default_links.php
@@ -0,0 +1,91 @@
+item->urls);
+
+// Create shortcuts to some parameters.
+$params = $this->item->params;
+if ($urls && (!empty($urls->urla) || !empty($urls->urlb) || !empty($urls->urlc))) :
+?>
+
+ params->get('show_page_heading')) : ?>
+
+
+
+ params->get('show_category_title', 1)) : ?>
+ <>
+ category->title; ?>
+ >
+
+
+
+ params->get('show_cat_tags', 1) && !empty($this->category->tags->itemTags)) : ?>
+ category->tagLayout = new FileLayout('joomla.content.tags'); ?>
+ category->tagLayout->render($this->category->tags->itemTags); ?>
+
+
+ params->get('show_description', 1) || $this->params->def('show_description_image', 1)) : ?>
+
+ params->get('show_description_image') && $this->category->getParams()->get('image')) : ?>
+ $this->category->getParams()->get('image'),
+ 'alt' => empty($this->category->getParams()->get('image_alt')) && empty($this->category->getParams()->get('image_alt_empty')) ? false : $this->category->getParams()->get('image_alt'),
+ ]
+ ); ?>
+
+
+ params->get('show_description') && $this->category->description) : ?>
+ category->description, '', 'com_content.category'); ?>
+
+
+
+
+
+ lead_items) && empty($this->link_items) && empty($this->intro_items)) : ?>
+ params->get('show_no_articles', 1)) : ?>
+
+
+
+
+
+
+
+ lead_items)) : ?>
+
+ lead_items as &$item) : ?>
+
+ item = &$item;
+ echo $this->loadTemplate('item');
+ ?>
+
+
+
+
+
+ intro_items)) : ?>
+ params->get('blog_class', ''); ?>
+ params->get('num_columns') > 1) : ?>
+ params->get('num_columns'); ?>
+
+
+
+ intro_items as $key => &$item) : ?>
+
+ item = & $item;
+ echo $this->loadTemplate('item');
+ ?>
+
+
+
+
+
+
+ link_items)) : ?>
+
+ loadTemplate('links'); ?>
+
+
+
+ maxLevel != 0 && !empty($this->children[$this->category->id])) : ?>
+
+ params->get('show_category_heading_title_text', 1) == 1) : ?>
+
+
+ loadTemplate('children'); ?>
+
+
+ params->def('show_pagination', 1) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?>
+
+ params->def('show_pagination_results', 1)) : ?>
+
+ pagination->getPagesCounter(); ?>
+
+
+
+
+
+
\ No newline at end of file
diff --git a/framework/html/com_content/category/blog_item.php b/framework/html/com_content/category/blog_item.php
new file mode 100644
index 00000000..73d5404f
--- /dev/null
+++ b/framework/html/com_content/category/blog_item.php
@@ -0,0 +1,128 @@
+item, true);
+
+$template = Astroid\Framework::getTemplate();
+$document = Astroid\Framework::getDocument();
+
+// Create shortcuts to some parameters.
+$params = $this->item->params;
+$canEdit = $params->get('access-edit');
+$info = $params->get('info_block_position', 0);
+$images = json_decode($this->item->images);
+
+// Check if associations are implemented. If they are, define the parameter.
+$assocParam = (Associations::isEnabled() && $params->get('show_associations'));
+
+$tpl_params = $template->getParams();
+
+// Post Format
+$post_attribs = new Registry(json_decode($this->item->attribs));
+$post_format = $post_attribs->get('post_format', 'standard');
+
+$info_block_layout = ASTROID_JOOMLA_VERSION > 3 ? 'joomla.content.info_block' : 'joomla.content.info_block.block';
+
+$currentDate = Factory::getDate()->format('Y-m-d H:i:s');
+$isUnpublished = ($this->item->state == ContentComponent::CONDITION_UNPUBLISHED || $this->item->publish_up > $currentDate)
+ || ($this->item->publish_down < $currentDate && $this->item->publish_down !== null);
+
+?>
+
+
+
+
+
+ getImage();
+ if ((!empty($images->image_intro)) && $post_format == 'standard') {
+ echo LayoutHelper::render('joomla.content.intro_image', $this->item);
+ } else if (is_string($image) && !empty($image)) {
+ echo '
';
+ $document->include('blog.modules.image', ['image' => $image, 'title' => $this->item->title, 'item' => $this->item]);
+ echo '
';
+ } else {
+ echo LayoutHelper::render('joomla.content.post_formats.post_' . $post_format, array('params' => $post_attribs, 'item' => $this->item));
+ }
+ ?>
+
+ renderPostTypeIcon(); ?>
+ renderArticleBadge(); ?>
+
+
+ $params, 'item' => $this->item]); ?>
+
+
+
+ get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date')
+ || $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author') || $assocParam); ?>
+
+
+ $this->item, 'params' => $params, 'astroidArticle' => $astroidArticle, 'position' => 'above')); ?>
+
+ get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
+ item->tags->itemTags); ?>
+
+
+
+ item); ?>
+
+
+ get('show_intro')) : ?>
+
+ item->event->afterDisplayTitle; ?>
+
+
+
+ item->event->beforeDisplayContent; ?>
+
+ item->introtext; ?>
+
+
+
+
+ $this->item, 'params' => $params, 'astroidArticle' => $astroidArticle, 'position' => 'below')); ?>
+
+ get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
+ item->tags->itemTags); ?>
+
+
+
+ item->event->beforeDisplayContent; ?>
+ get('show_readmore') && $this->item->readmore) :
+ if ($params->get('access-view')) :
+ $link = Route::_(RouteHelper::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language));
+ else :
+ $menu = Factory::getApplication()->getMenu();
+ $active = $menu->getActive();
+ $itemId = $active->id;
+ $link = new Uri(Route::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false));
+ $link->setVar('return', base64_encode(RouteHelper::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language)));
+ endif; ?>
+
+ $this->item, 'params' => $params, 'link' => $link]); ?>
+
+
+
+
+
+
+ item->event->afterDisplayContent; ?>
+
\ No newline at end of file
diff --git a/framework/html/com_content/category/blog_links.php b/framework/html/com_content/category/blog_links.php
new file mode 100644
index 00000000..6e2764d2
--- /dev/null
+++ b/framework/html/com_content/category/blog_links.php
@@ -0,0 +1,24 @@
+
+
+ params->get('show_page_heading') != 0) : ?>
+
+
+ lead_items)) : ?>
+
+ lead_items as &$item) : ?>
+
+ item = & $item;
+ echo $this->loadTemplate('item');
+ ?>
+
+
+
+
+
+ intro_items)) : ?>
+ params->get('blog_class', ''); ?>
+ params->get('num_columns') > 1) : ?>
+ params->get('num_columns'); ?>
+
+
+ intro_items as $key => &$item) : ?>
+
+ item = & $item;
+ echo $this->loadTemplate('item');
+ ?>
+
+
+
+
+
+ link_items)) : ?>
+
+ loadTemplate('links'); ?>
+
+
+
+ params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2 && $this->pagination->pagesTotal > 1)) : ?>
+
+ params->def('show_pagination_results', 1)) : ?>
+
+ pagination->getPagesCounter(); ?>
+
+
+ pagination->getPagesLinks(); ?>
+
+
+
\ No newline at end of file
diff --git a/framework/html/com_content/featured/default_item.php b/framework/html/com_content/featured/default_item.php
new file mode 100644
index 00000000..86907dff
--- /dev/null
+++ b/framework/html/com_content/featured/default_item.php
@@ -0,0 +1,128 @@
+item, true);
+
+$template = Astroid\Framework::getTemplate();
+$document = Astroid\Framework::getDocument();
+
+// Create shortcuts to some parameters.
+$params = $this->item->params;
+$canEdit = $params->get('access-edit');
+$info = $params->get('info_block_position', 0);
+$images = json_decode($this->item->images);
+
+// Check if associations are implemented. If they are, define the parameter.
+$assocParam = (Associations::isEnabled() && $params->get('show_associations'));
+
+$tpl_params = $template->getParams();
+
+// Post Format
+$post_attribs = new Registry(json_decode($this->item->attribs));
+$post_format = $post_attribs->get('post_format', 'standard');
+
+$info_block_layout = ASTROID_JOOMLA_VERSION > 3 ? 'joomla.content.info_block' : 'joomla.content.info_block.block';
+
+$currentDate = Factory::getDate()->format('Y-m-d H:i:s');
+$isUnpublished = ($this->item->state == ContentComponent::CONDITION_UNPUBLISHED || $this->item->publish_up > $currentDate)
+ || ($this->item->publish_down < $currentDate && $this->item->publish_down !== null);
+
+?>
+
+
+
+
+
+ getImage();
+ if ((!empty($images->image_intro)) && $post_format == 'standard') {
+ echo LayoutHelper::render('joomla.content.intro_image', $this->item);
+ } else if (is_string($image) && !empty($image)) {
+ echo '
';
+ $document->include('blog.modules.image', ['image' => $image, 'title' => $this->item->title, 'item' => $this->item]);
+ echo '
';
+ } else {
+ echo LayoutHelper::render('joomla.content.post_formats.post_' . $post_format, array('params' => $post_attribs, 'item' => $this->item));
+ }
+ ?>
+
+ renderPostTypeIcon(); ?>
+ renderArticleBadge(); ?>
+
+
+ $params, 'item' => $this->item]); ?>
+
+
+
+ get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date')
+ || $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author') || $assocParam); ?>
+
+
+ $this->item, 'params' => $params, 'astroidArticle' => $astroidArticle, 'position' => 'above')); ?>
+
+ get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
+ item->tags->itemTags); ?>
+
+
+
+ item); ?>
+
+
+ get('show_intro')) : ?>
+
+ item->event->afterDisplayTitle; ?>
+
+
+
+ item->event->beforeDisplayContent; ?>
+
+ item->introtext; ?>
+
+
+
+
+ $this->item, 'params' => $params, 'astroidArticle' => $astroidArticle, 'position' => 'below')); ?>
+
+ get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
+ item->tags->itemTags); ?>
+
+
+
+ item->event->beforeDisplayContent; ?>
+ get('show_readmore') && $this->item->readmore) :
+ if ($params->get('access-view')) :
+ $link = Route::_(RouteHelper::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language));
+ else :
+ $menu = Factory::getApplication()->getMenu();
+ $active = $menu->getActive();
+ $itemId = $active->id;
+ $link = new Uri(Route::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false));
+ $link->setVar('return', base64_encode(RouteHelper::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language)));
+ endif; ?>
+
+ $this->item, 'params' => $params, 'link' => $link]); ?>
+
+
+
+
+
+
+ item->event->afterDisplayContent; ?>
+
\ No newline at end of file
diff --git a/framework/html/com_content/featured/default_links.php b/framework/html/com_content/featured/default_links.php
new file mode 100644
index 00000000..6e2764d2
--- /dev/null
+++ b/framework/html/com_content/featured/default_links.php
@@ -0,0 +1,24 @@
+
+';
- foreach ($this->logs as $log) {
- echo $log->render();
- }
- echo '
';
- }
-
- /*
- * Checks to see if the Page Builder is used.
- * If true, then removing the container so page builder can have full control
- * Current supported page builders Quix, JD Builder, Sp Page Builder
- */
-
- public function isPageBuilder()
- {
- $jinput = JFactory::getApplication()->input;
- $option = $jinput->get('option', '');
- $view = $jinput->get('view', '');
- if (($option == "com_sppagebuilder" && $view == "page") || ($option == "com_quix" && $view == "page") || ($option == "com_jdbuilder" && $view == "page")) {
- return TRUE;
- } else {
- return FALSE;
- }
- }
-
- public function addStyledeclaration($styles, $device = 'desktop')
- {
- if ($this->cssFile) {
- $this->_styles[$device][] = $styles;
- } else {
- $document = JFactory::getDocument();
- $document->addStyledeclaration($styles);
- }
- }
-
- public function addScriptDeclaration($script)
- {
- $document = JFactory::getDocument();
- $document->addScriptDeclaration($script);
- }
-
- public function addScript($js)
- {
- $template_directory = JPATH_THEMES . "/" . $this->template . "/js/";
- if (file_exists($template_directory . $js)) {
- $this->_js[$js] = JURI::root() . 'templates/' . $this->template . "/js/" . $js;
- } else {
- $this->_js[$js] = $js;
- }
- }
-
- public function buildAstroidCSS($version, $css = '')
- {
- $prefix = 'astroid-';
- if ($this->cssFile) {
- $issetPreset = JFactory::getApplication()->input->get('preset', '');
- if (!empty($issetPreset)) {
- $prefix = 'preset-';
- }
-
- $template_dir = JPATH_SITE . '/templates/' . $this->template . '/css';
- if (!file_exists($template_dir . '/' . $prefix . $version . '.css')) {
- if (empty($issetPreset)) {
- AstroidFrameworkHelper::clearCache($this->template, 'astroid');
- }
- $styles = preg_grep('~^' . $prefix . '.*\.(css)$~', scandir($template_dir));
- foreach ($styles as $style) {
- unlink($template_dir . '/' . $style);
- }
- file_put_contents($template_dir . '/' . $prefix . $version . '.css', $css);
- }
- }
- $document = JFactory::getDocument();
- $document->addStyleSheet(JURI::root() . 'templates/' . $this->template . '/css/' . $prefix . $version . '.css');
- }
-
- public function loadCSSFile()
- {
- if ($this->cssFile) {
- $styles = [];
- foreach (['desktop', 'tablet', 'mobile'] as $device) {
- if ($device == 'mobile') {
- $styles[] = '@media (max-width: 767.98px) {' . implode('', $this->_styles[$device]) . '}';
- } elseif ($device == 'tablet') {
- $styles[] = '@media (max-width: 991.98px) {' . implode('', $this->_styles[$device]) . '}';
- } else {
- $styles[] = implode('', $this->_styles[$device]);
- }
- }
- $styles = implode('', $styles);
- $document = JFactory::getDocument();
- $mediaVersion = $document->getMediaVersion();
- $version = md5($styles);
- $this->buildAstroidCSS($version, $styles);
- }
- }
-
- public function getStyleDeclaration()
- {
- $styles = [];
- foreach (['desktop', 'tablet', 'mobile'] as $device) {
- if ($device == 'mobile') {
- $styles[] = '@media (max-width: 767.98px) {' . implode('', $this->_styles[$device]) . '}';
- } elseif ($device == 'tablet') {
- $styles[] = '@media (max-width: 991.98px) {' . implode('', $this->_styles[$device]) . '}';
- } else {
- $styles[] = implode('', $this->_styles[$device]);
- }
- }
- $styles = implode('', $styles);
- return $styles;
- }
-
- public function loadJS()
- {
- $document = JFactory::getDocument();
- foreach ($this->_js as $key => $js) {
- if ($key == 'custom.js') {
- $template_directory = JPATH_THEMES . "/" . $this->template . "/js/";
- if (!file_exists($template_directory . $key)) {
- continue;
- }
- }
- $document->addScript($js, ['version' => $document->getMediaVersion()]);
- }
- }
-
- public function _loadModule($errorContent)
- {
-
- // Expression to search for(module Position)
- $regex = '/{loadposition\s(.*?)}/i';
-
- preg_match_all($regex, $errorContent, $matches, PREG_SET_ORDER);
-
- if ($matches) {
- foreach ($matches as $match) {
- $matcheslist = explode(',', $match[1]);
- $position = trim($matcheslist[0]);
- $output = $this->_load($position);
- // We should replace only first occurrence in order to allow positions with the same name to regenerate their content:
- $errorContent = preg_replace("|$match[0]|", $output, $errorContent, 1);
- }
- }
-
- // Expression to search for(id)
- $regexmodid = '/{loadmoduleid\s([1-9][0-9]*)}/i';
-
- preg_match_all($regexmodid, $errorContent, $matchesmodid, PREG_SET_ORDER);
-
- // If no matches, skip this
- if ($matchesmodid) {
- foreach ($matchesmodid as $match) {
- $id = trim($match[1]);
- $output = $this->_loadid($id);
-
- // We should replace only first occurrence in order to allow positions with the same name to regenerate their content:
- $errorContent = preg_replace("|$match[0]|", $output, $errorContent, 1);
- }
- }
-
- return $errorContent;
- }
-
- public function _load($position)
- {
- $this->modules[$position] = '';
- $document = JFactory::getDocument();
- $renderer = $document->loadRenderer('module');
- $modules = JModuleHelper::getModules($position);
- ob_start();
-
- foreach ($modules as $module) {
- echo $renderer->render($module);
- }
-
- $this->modules[$position] = ob_get_clean();
-
- return $this->modules[$position];
- }
-
- public function _loadid($id)
- {
- $this->modules[$id] = '';
- $document = JFactory::getDocument();
- $renderer = $document->loadRenderer('module');
- $modules = JModuleHelper::getModuleById($id);
- ob_start();
-
- if ($modules->id > 0) {
- echo $renderer->render($modules);
- }
-
- $this->modules[$id] = ob_get_clean();
-
- return $this->modules[$id];
- }
-
- public function SeletedMedia()
- {
- $params = JComponentHelper::getParams('com_media');
- return $params->get('image_path', 'images');
- }
-
- public function _loadFontAwesome()
- {
- $plugin = JPluginHelper::getPlugin('system', 'astroid');
- $assets = JURI::root() . 'media' . '/' . 'astroid' . '/' . 'assets' . '/' . 'fontawesome';
- $plugin_params = new JRegistry($plugin->params);
- $astroid_load_fontawesome = $plugin_params->get('astroid_load_fontawesome', "cdn");
- $document = JFactory::getDocument();
- if ($astroid_load_fontawesome == "local") {
- $document->addStyleSheet($assets . '/css/font-awesome.css');
- $document->addStyleSheet($assets . '/webfonts');
- } elseif ($astroid_load_fontawesome == "cdn") {
- $document->addStyleSheet("https://use.fontawesome.com/releases/v" . AstroidFrameworkConstants::$fontawesome_version . "/css/all.css");
- }
- }
-
- public function getPresets()
- {
- $presets_path = JPATH_SITE . "/templates/{$this->template}/astroid/presets/";
- if (!file_exists($presets_path)) {
- return [];
- }
- $files = array_filter(glob($presets_path . '/' . '*.json'), 'is_file');
- $presets = [];
- foreach ($files as $file) {
- $json = file_get_contents($file);
- $data = \json_decode($json, true);
- $preset = ['title' => pathinfo($file)['filename'], 'colors' => [], 'preset' => [], 'thumbnail' => '', 'name' => pathinfo($file)['filename']];
- if (isset($data['title']) && !empty($data['title'])) {
- $preset['title'] = \JText::_($data['title']);
- }
- if (isset($data['thumbnail']) && !empty($data['thumbnail'])) {
- $preset['thumbnail'] = \JURI::root() . 'templates/' . $this->template . '/' . $data['thumbnail'];
- }
- if (isset($data['colors'])) {
- $colors = [];
- $properties = [];
- foreach ($data['colors'] as $prop => $color) {
- if (is_array($color)) {
- foreach ($color as $subprop => $color2) {
- if (!empty($color2)) {
- $properties[$prop][$subprop] = $color2;
- $colors[] = $color2;
- }
- }
- } else {
- if (!empty($color)) {
- $properties[$prop] = $color;
- $colors[] = $color;
- }
- }
- }
- $colors = array_keys(array_count_values($colors));
- $preset['colors'] = array_unique($colors);
- $preset['preset'] = $properties;
- }
- $presets[] = $preset;
- }
- return $presets;
- }
-
- public function inspect()
- {
- // fix for typography
- $extension = \JTable::getInstance('extension');
- $id = $extension->find(array('element' => 'astroid', 'type' => 'library'));
- $extension->load($id);
- $frameworkInfo = json_decode($extension->manifest_cache, true);
- if ($frameworkInfo['version'] < 2.3) {
- foreach (['body', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'] as $typo) {
- $typoType = $this->params->get($typo . '_typography');
- if (trim($typoType) == 'custom') {
- $typoOption = $typo . '_typography_options';
- $typoParams = $this->params->get($typoOption);
- foreach (['font_size', 'font_size_unit', 'letter_spacing', 'letter_spacing_unit', 'line_height', 'line_height_unit'] as $prop) {
- if (!is_string($typoParams->{$prop})) {
- $typoParams->{$prop} = $typoParams->{$prop}->desktop;
- }
- }
- $this->params->set($typoOption, $typoParams);
- }
- }
-
- $menuType = $this->params->get('menus_typography');
- if (trim($menuType) == 'custom') {
- $menu_font = $this->params->get('menu_typography_options');
- foreach (['font_size', 'font_size_unit', 'letter_spacing', 'letter_spacing_unit', 'line_height', 'line_height_unit'] as $prop) {
- if (!is_string($menu_font->{$prop})) {
- $menu_font->{$prop} = $menu_font->{$prop}->desktop;
- }
- }
- $this->params->set('menu_typography_options', $menu_font);
- }
-
- $submenuType = $this->params->get('submenus_typography');
- if (trim($submenuType) == 'custom') {
- $submenu_font = $this->params->get('submenu_typography_options');
- foreach (['font_size', 'font_size_unit', 'letter_spacing', 'letter_spacing_unit', 'line_height', 'line_height_unit'] as $prop) {
- if (!is_string($submenu_font->{$prop})) {
- $submenu_font->{$prop} = $submenu_font->{$prop}->desktop;
- }
- }
- $this->params->set('submenu_typography_options', $submenu_font);
- }
- }
- }
-}
-
-class AstroidLog
-{
-
- protected $type;
- protected $message;
- protected $data;
-
- public function __construct($type, $message, $data)
- {
- $this->type = $type;
- $this->message = $message;
- $this->data = $data;
- $this->created = time();
- }
-
- public function render()
- {
- $class = $this->type == 'error' ? 'danger' : $this->type;
- echo '' . $this->message . '
';
- }
-}
+class AstroidFrameworkTemplate extends Astroid\Template {}
\ No newline at end of file
diff --git a/plugins/astroid/astroid.xml b/plugins/astroid/astroid.xml
index 036eb01c..51b91234 100644
--- a/plugins/astroid/astroid.xml
+++ b/plugins/astroid/astroid.xml
@@ -2,8 +2,8 @@