diff --git a/plugins/system/helixultimate/fields/helixfont.php b/plugins/system/helixultimate/fields/helixfont.php index e425b118..01b49bef 100644 --- a/plugins/system/helixultimate/fields/helixfont.php +++ b/plugins/system/helixultimate/fields/helixfont.php @@ -57,9 +57,9 @@ protected function getInput() $json = file_get_contents($plugin_path); } - $webfonts = json_decode($json); + $webfonts = json_decode($json ?? ""); $items = $webfonts->items; - $value = json_decode($this->value); + $value = json_decode($this->value ?? ""); if (isset($value->fontFamily)) { diff --git a/plugins/system/helixultimate/fields/helixgallery.php b/plugins/system/helixultimate/fields/helixgallery.php index 14272549..daece616 100644 --- a/plugins/system/helixultimate/fields/helixgallery.php +++ b/plugins/system/helixultimate/fields/helixgallery.php @@ -47,7 +47,7 @@ protected function getInput() $plg_path = Uri::root(true) . '/plugins/system/helixultimate'; - $values = json_decode($this->value); + $values = json_decode($this->value ?? ""); if (!empty($values)) { @@ -93,7 +93,7 @@ protected function getInput() $output .= ''; $output .= ' ' . Text::_('HELIX_ULTIMATE_UPLOAD_IMAGES') . ''; - $output .= ''; $output .= ''; diff --git a/plugins/system/helixultimate/fields/heliximage.php b/plugins/system/helixultimate/fields/heliximage.php index f3f7f6ae..cbb94b3e 100644 --- a/plugins/system/helixultimate/fields/heliximage.php +++ b/plugins/system/helixultimate/fields/heliximage.php @@ -78,7 +78,7 @@ protected function getInput() $output .= ' ' . Text::_('HELIX_ULTIMATE_UPLOAD_IMAGE') . ''; $output .= ' ' . Text::_('HELIX_ULTIMATE_REMOVE_IMAGE') . ''; - $output .= ''; $output .= ''; diff --git a/plugins/system/helixultimate/fields/helixlayout.php b/plugins/system/helixultimate/fields/helixlayout.php index af3366f4..c669e051 100644 --- a/plugins/system/helixultimate/fields/helixlayout.php +++ b/plugins/system/helixultimate/fields/helixlayout.php @@ -44,7 +44,7 @@ public function getInput() $helix_layout_path = JPATH_SITE . '/plugins/system/helixultimate/layout/'; - $json = json_decode($this->value); + $json = json_decode($this->value ?? ""); if (!empty($json)) { @@ -54,8 +54,8 @@ public function getInput() { // $layout_file = File::read(JPATH_SITE . '/templates/' . $style->template . '/options.json'); $layout_file = file_get_contents(JPATH_SITE . '/templates/' . $style->template . '/options.json'); - $value = json_decode($layout_file); - $rows = json_decode($value->layout); + $value = json_decode($layout_file ?? ""); + $rows = json_decode($value->layout ?? ""); } $html = $this->generateLayout($helix_layout_path, $rows); diff --git a/plugins/system/helixultimate/fields/helixmegamenu.php b/plugins/system/helixultimate/fields/helixmegamenu.php index 4e5aee5c..d4f6a7ea 100644 --- a/plugins/system/helixultimate/fields/helixmegamenu.php +++ b/plugins/system/helixultimate/fields/helixmegamenu.php @@ -62,7 +62,7 @@ public function getInput() public function getMegaSettings() { $mega_menu_path = JPATH_SITE . '/plugins/system/helixultimate/fields/'; - $menu_data = json_decode($this->value); + $menu_data = json_decode($this->value ?? ""); $menu_item = $this->form->getData()->toObject(); ob_start(); diff --git a/plugins/system/helixultimate/fields/helixpresets.php b/plugins/system/helixultimate/fields/helixpresets.php index 974eb228..ed2c76a1 100644 --- a/plugins/system/helixultimate/fields/helixpresets.php +++ b/plugins/system/helixultimate/fields/helixpresets.php @@ -127,10 +127,10 @@ private function generateFieldFromParamsData($json, $value) if (\is_string($json) && strlen($json) > 0) { - $json = json_decode($json); + $json = json_decode($json ?? ""); } - $preset = json_decode($value); + $preset = json_decode($value ?? ""); foreach ($json as $name => $child) { @@ -200,7 +200,7 @@ private function generateFieldFromXmlData($children, $value) 'data' => array() ); - $preset = json_decode($value); + $preset = json_decode($value ?? ""); $class = ''; diff --git a/plugins/system/helixultimate/html/layouts/form/field/media.php b/plugins/system/helixultimate/html/layouts/form/field/media.php index a39d9548..ba2c46f1 100644 --- a/plugins/system/helixultimate/html/layouts/form/field/media.php +++ b/plugins/system/helixultimate/html/layouts/form/field/media.php @@ -196,7 +196,7 @@
- > + " readonly="readonly" > diff --git a/plugins/system/helixultimate/html/layouts/form/field/media_j3.php b/plugins/system/helixultimate/html/layouts/form/field/media_j3.php index 4325010c..7a676ace 100644 --- a/plugins/system/helixultimate/html/layouts/form/field/media_j3.php +++ b/plugins/system/helixultimate/html/layouts/form/field/media_j3.php @@ -128,7 +128,7 @@ } echo ' '; ?> diff --git a/plugins/system/helixultimate/layout/fields/menuHierarchy.php b/plugins/system/helixultimate/layout/fields/menuHierarchy.php index 9ef628cc..6c58ab4b 100644 --- a/plugins/system/helixultimate/layout/fields/menuHierarchy.php +++ b/plugins/system/helixultimate/layout/fields/menuHierarchy.php @@ -45,7 +45,7 @@ public static function getInput($key, $attr) if (!empty($value) && \is_string($value)) { - $value = json_decode($value, true); + $value = json_decode($value ?? "", true); } else { diff --git a/plugins/system/helixultimate/layouts/form/field/media.php b/plugins/system/helixultimate/layouts/form/field/media.php index 13ed536b..a60351d8 100644 --- a/plugins/system/helixultimate/layouts/form/field/media.php +++ b/plugins/system/helixultimate/layouts/form/field/media.php @@ -125,7 +125,7 @@ } echo ' '; ?> diff --git a/plugins/system/helixultimate/overrides/com_contact/contact/default.php b/plugins/system/helixultimate/overrides/com_contact/contact/default.php index cc49c3f8..77448295 100644 --- a/plugins/system/helixultimate/overrides/com_contact/contact/default.php +++ b/plugins/system/helixultimate/overrides/com_contact/contact/default.php @@ -364,7 +364,7 @@ item->image, - htmlspecialchars($this->item->name, ENT_QUOTES, 'UTF-8'), + htmlspecialchars($this->item->name ?? "", ENT_QUOTES, 'UTF-8'), array('itemprop' => 'image') ); ?>
diff --git a/plugins/system/helixultimate/overrides/com_contact/contact/default_articles.php b/plugins/system/helixultimate/overrides/com_contact/contact/default_articles.php index 91dc6667..b4c64c69 100644 --- a/plugins/system/helixultimate/overrides/com_contact/contact/default_articles.php +++ b/plugins/system/helixultimate/overrides/com_contact/contact/default_articles.php @@ -17,7 +17,7 @@ diff --git a/plugins/system/helixultimate/overrides/com_content/article/default.php b/plugins/system/helixultimate/overrides/com_content/article/default.php index f467ae52..1233dbdf 100644 --- a/plugins/system/helixultimate/overrides/com_content/article/default.php +++ b/plugins/system/helixultimate/overrides/com_content/article/default.php @@ -34,14 +34,14 @@ // Create shortcuts to some parameters. $params = $this->item->params; -$images = json_decode($this->item->images); -$urls = json_decode($this->item->urls); +$images = json_decode($this->item->images ?? ""); +$urls = json_decode($this->item->urls ?? ""); $canEdit = $params->get('access-edit'); $currentDate = Factory::getDate()->format('Y-m-d H:i:s'); $user = Factory::getUser(); $info = $params->get('info_block_position', 0); $page_header_tag = 'h1'; -$attribs = json_decode($this->item->attribs); +$attribs = json_decode($this->item->attribs ?? ""); $article_format = (isset($attribs->helix_ultimate_article_format) && $attribs->helix_ultimate_article_format) ? $attribs->helix_ultimate_article_format : 'standard'; // Check if associations are implemented. If they are, define the parameter. @@ -179,7 +179,7 @@ setVar('return', base64_encode(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language))); ?>

- item->attribs); ?> + item->attribs ?? ""); ?> alternative_readmore == null) : echo Text::_('COM_CONTENT_REGISTER_TO_READ_MORE'); diff --git a/plugins/system/helixultimate/overrides/com_content/article/default_links.php b/plugins/system/helixultimate/overrides/com_content/article/default_links.php index 3eaba8f6..d9bcf762 100644 --- a/plugins/system/helixultimate/overrides/com_content/article/default_links.php +++ b/plugins/system/helixultimate/overrides/com_content/article/default_links.php @@ -11,7 +11,7 @@ use Joomla\CMS\HTML\HTMLHelper; // Create shortcut -$urls = json_decode($this->item->urls); +$urls = json_decode($this->item->urls ?? ""); // Create shortcuts to some parameters. $params = $this->item->params; @@ -49,27 +49,27 @@ { case 1: // Open in a new window - echo '' . - htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . ''; + echo '' . + htmlspecialchars($label ?? "", ENT_COMPAT, 'UTF-8') . ''; break; case 2: // Open in a popup window $attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=600'; - echo "" . - htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . ''; + echo "" . + htmlspecialchars($label ?? "", ENT_COMPAT, 'UTF-8') . ''; break; case 3: // Open in a modal window HTMLHelper::_('behavior.modal', 'a.modal'); - echo '' . - htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . ' '; + echo '' . + htmlspecialchars($label ?? "", ENT_COMPAT, 'UTF-8') . ' '; break; default: // Open in parent window - echo '' . - htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . ' '; + echo '' . + htmlspecialchars($label ?? "", ENT_COMPAT, 'UTF-8') . ' '; break; } ?> diff --git a/plugins/system/helixultimate/overrides/com_content/category/blog.php b/plugins/system/helixultimate/overrides/com_content/category/blog.php index 03db70ee..dfc010c0 100644 --- a/plugins/system/helixultimate/overrides/com_content/category/blog.php +++ b/plugins/system/helixultimate/overrides/com_content/category/blog.php @@ -59,7 +59,7 @@ params->get('show_description', 1) || $this->params->def('show_description_image', 1)) : ?>

params->get('show_description_image') && $this->category->getParams()->get('image')) : ?> - <?php echo htmlspecialchars($this->category->getParams()->get('image_alt'), ENT_COMPAT, 'UTF-8'); ?> + <?php echo htmlspecialchars($this->category->getParams()->get('image_alt') ?? "> params->get('show_description') && $this->category->description) : ?> diff --git a/plugins/system/helixultimate/overrides/com_content/category/blog_item.php b/plugins/system/helixultimate/overrides/com_content/category/blog_item.php index 3173f48c..3e4c424c 100644 --- a/plugins/system/helixultimate/overrides/com_content/category/blog_item.php +++ b/plugins/system/helixultimate/overrides/com_content/category/blog_item.php @@ -18,7 +18,7 @@ // Create a shortcut for params. $params = $this->item->params; -$attribs = json_decode($this->item->attribs); +$attribs = json_decode($this->item->attribs ?? ""); HTMLHelper::addIncludePath(JPATH_COMPONENT . '/helpers/html'); $canEdit = $this->item->params->get('access-edit'); $info = $params->get('info_block_position', 0); diff --git a/plugins/system/helixultimate/overrides/com_content/category/default_articles.php b/plugins/system/helixultimate/overrides/com_content/category/default_articles.php index 6926534e..b89f4a1f 100644 --- a/plugins/system/helixultimate/overrides/com_content/category/default_articles.php +++ b/plugins/system/helixultimate/overrides/com_content/category/default_articles.php @@ -39,7 +39,7 @@ $currentDate = Factory::getDate()->format('Y-m-d H:i:s'); ?> -
+" method="post" name="adminForm" id="adminForm"> params->get('filter_field') !== 'hide' || $this->params->get('show_pagination_limit')) : ?>
diff --git a/plugins/system/helixultimate/overrides/com_content/featured/default_item.php b/plugins/system/helixultimate/overrides/com_content/featured/default_item.php index 90feb264..82ff3124 100644 --- a/plugins/system/helixultimate/overrides/com_content/featured/default_item.php +++ b/plugins/system/helixultimate/overrides/com_content/featured/default_item.php @@ -17,7 +17,7 @@ // Create a shortcut for params. $params = &$this->item->params; -$images = json_decode($this->item->images); +$images = json_decode($this->item->images ?? ""); $canEdit = $this->item->params->get('access-edit'); $info = $this->item->params->get('info_block_position', 0); $article_format = (isset($attribs->helix_ultimate_article_format) && $attribs->helix_ultimate_article_format) ? $attribs->helix_ultimate_article_format : 'standard'; diff --git a/plugins/system/helixultimate/overrides/com_content/form/edit.php b/plugins/system/helixultimate/overrides/com_content/form/edit.php index ff174947..fc33a87c 100644 --- a/plugins/system/helixultimate/overrides/com_content/form/edit.php +++ b/plugins/system/helixultimate/overrides/com_content/form/edit.php @@ -41,7 +41,7 @@ $params = $this->state->get('params'); //Blog Options -$attribs = json_decode($this->item->attribs); +$attribs = json_decode($this->item->attribs ?? ""); $this->form->setValue('helix_ultimate_image', 'attribs', !empty($attribs->helix_ultimate_image) ? $attribs->helix_ultimate_image : ''); $this->form->setValue('helix_ultimate_image_alt_txt', 'attribs', !empty($attribs->helix_ultimate_image_alt_txt) ? $attribs->helix_ultimate_image_alt_txt : ''); diff --git a/plugins/system/helixultimate/overrides/com_finder/search/default_result.php b/plugins/system/helixultimate/overrides/com_finder/search/default_result.php index 35defdb1..7c2b7433 100644 --- a/plugins/system/helixultimate/overrides/com_finder/search/default_result.php +++ b/plugins/system/helixultimate/overrides/com_finder/search/default_result.php @@ -68,7 +68,7 @@ $imageAlt = $this->result->title; } ?> -
+
result__image"> params->get('link_image') && $this->result->route) : ?> diff --git a/plugins/system/helixultimate/overrides/com_tags/tag/default.php b/plugins/system/helixultimate/overrides/com_tags/tag/default.php index 895a4d33..f32acbf3 100644 --- a/plugins/system/helixultimate/overrides/com_tags/tag/default.php +++ b/plugins/system/helixultimate/overrides/com_tags/tag/default.php @@ -33,10 +33,10 @@ item) === 1 && ($this->params->get('tag_list_show_tag_image', 1) || $this->params->get('tag_list_show_tag_description', 1))) : ?>
- item[0]->images); ?> + item[0]->images ?? ""); ?> params->get('tag_list_show_tag_image', 1) == 1 && !empty($images->image_fulltext)) : ?> - <?php echo htmlspecialchars($images->image_fulltext_alt); ?> + " + alt="image_fulltext_alt ?? ""); ?>"> params->get('tag_list_show_tag_description') == 1 && $this->item[0]->description) : ?> item[0]->description, '', 'com_tags.tag'); ?> diff --git a/plugins/system/helixultimate/overrides/com_tags/tag/default_items.php b/plugins/system/helixultimate/overrides/com_tags/tag/default_items.php index 83e8f472..d5e4b3f1 100644 --- a/plugins/system/helixultimate/overrides/com_tags/tag/default_items.php +++ b/plugins/system/helixultimate/overrides/com_tags/tag/default_items.php @@ -36,7 +36,7 @@ "); ?>
- + " method="post" name="adminForm" id="adminForm"> params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?> params->get('filter_field')) : ?>
@@ -92,11 +92,11 @@ class="inputbox" onchange="document.adminForm.submit();" event->afterDisplayTitle; ?> - core_images); ?> + core_images ?? ""); ?> params->get('tag_list_show_item_image', 1) == 1 && !empty($images->image_intro)) : ?> - <?php echo htmlspecialchars($images->image_intro_alt); ?> + " + alt="image_intro_alt ?? ""); ?>"> params->get('tag_list_show_item_description', 1)) : ?> diff --git a/plugins/system/helixultimate/overrides/com_tags/tag/list.php b/plugins/system/helixultimate/overrides/com_tags/tag/list.php index c124e186..cb2e753b 100644 --- a/plugins/system/helixultimate/overrides/com_tags/tag/list.php +++ b/plugins/system/helixultimate/overrides/com_tags/tag/list.php @@ -33,9 +33,9 @@ item) === 1 && ($this->params->get('tag_list_show_tag_image', 1) || $this->params->get('tag_list_show_tag_description', 1))) : ?>
- item[0]->images); ?> + item[0]->images ?? ""); ?> params->get('tag_list_show_tag_image', 1) == 1 && !empty($images->image_fulltext)) : ?> - + "> params->get('tag_list_show_tag_description') == 1 && $this->item[0]->description) : ?> item[0]->description, '', 'com_tags.tag'); ?> diff --git a/plugins/system/helixultimate/overrides/com_tags/tag/list_items.php b/plugins/system/helixultimate/overrides/com_tags/tag/list_items.php index 69558f8f..dd245298 100644 --- a/plugins/system/helixultimate/overrides/com_tags/tag/list_items.php +++ b/plugins/system/helixultimate/overrides/com_tags/tag/list_items.php @@ -28,7 +28,7 @@ ?>
- + " method="post" name="adminForm" id="adminForm"> params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?>
params->get('filter_field')) : ?> diff --git a/plugins/system/helixultimate/overrides/com_tags/tags/default.php b/plugins/system/helixultimate/overrides/com_tags/tags/default.php index cf61c613..ff6d78e2 100644 --- a/plugins/system/helixultimate/overrides/com_tags/tags/default.php +++ b/plugins/system/helixultimate/overrides/com_tags/tags/default.php @@ -25,9 +25,9 @@ params->get('all_tags_show_description_image') && !empty($descriptionImage)) : ?> params->get('all_tags_description_image_alt')) && empty($this->params->get('all_tags_description_image_alt_empty')) ? '' - : 'alt="' . htmlspecialchars($this->params->get('all_tags_description_image_alt'), ENT_COMPAT, 'UTF-8') . '"'; ?> + : 'alt="' . htmlspecialchars($this->params->get('all_tags_description_image_alt') ?? "", ENT_COMPAT, 'UTF-8') . '"'; ?>
- > + " >
diff --git a/plugins/system/helixultimate/overrides/com_tags/tags/default_items.php b/plugins/system/helixultimate/overrides/com_tags/tags/default_items.php index 9877c602..564ef321 100644 --- a/plugins/system/helixultimate/overrides/com_tags/tags/default_items.php +++ b/plugins/system/helixultimate/overrides/com_tags/tags/default_items.php @@ -61,7 +61,7 @@ ?>
- + " method="post" name="adminForm" id="adminForm"> params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?>
params->get('filter_field')) : ?> @@ -119,17 +119,17 @@ class="inputbox" onchange="document.adminForm.submit();" params->get('all_tags_show_tag_image') && !empty($item->images)) : ?> - images); ?> + images ?? ""); ?> image_intro)) : ?> float_intro) ? $this->params->get('float_intro') : $images->float_intro; ?> -
+
item-image"> image_intro_caption) : ?> - image_intro_caption) . '"'; ?> + image_intro_caption ?? "") . '"'; ?> src="image_intro; ?>" - alt="image_intro_alt); ?>"> + alt="image_intro_alt ?? ""); ?>">
diff --git a/plugins/system/helixultimate/overrides/com_users/profile/default_core.php b/plugins/system/helixultimate/overrides/com_users/profile/default_core.php index d1eb2974..2542b779 100644 --- a/plugins/system/helixultimate/overrides/com_users/profile/default_core.php +++ b/plugins/system/helixultimate/overrides/com_users/profile/default_core.php @@ -35,7 +35,7 @@
  • : - data->username, ENT_COMPAT, 'UTF-8'); ?> + data->username ?? "", ENT_COMPAT, 'UTF-8'); ?>
  • : diff --git a/plugins/system/helixultimate/overrides/layouts/chromes/sp_xhtml.php b/plugins/system/helixultimate/overrides/layouts/chromes/sp_xhtml.php index 76c0625c..6a49c8f8 100644 --- a/plugins/system/helixultimate/overrides/layouts/chromes/sp_xhtml.php +++ b/plugins/system/helixultimate/overrides/layouts/chromes/sp_xhtml.php @@ -19,11 +19,11 @@ return; } -$moduleTag = htmlspecialchars($params->get('module_tag', 'div'), ENT_QUOTES, 'UTF-8'); +$moduleTag = htmlspecialchars($params->get('module_tag', 'div') ?? "", ENT_QUOTES, 'UTF-8'); $bootstrapSize = (int) $params->get('bootstrap_size', 0); $moduleClass = $bootstrapSize !== 0 ? ' span' . $bootstrapSize : ''; -$headerTag = htmlspecialchars($params->get('header_tag', 'h3'), ENT_QUOTES, 'UTF-8'); -$headerClass = htmlspecialchars($params->get('header_class', 'sp-module-title'), ENT_COMPAT, 'UTF-8'); +$headerTag = htmlspecialchars($params->get('header_tag', 'h3') ?? "", ENT_QUOTES, 'UTF-8'); +$headerClass = htmlspecialchars($params->get('header_class', 'sp-module-title') ?? "", ENT_COMPAT, 'UTF-8'); if ($module->content) { echo '<' . $moduleTag . ' class="sp-module ' . htmlspecialchars(Helper::CheckNull($params->get('moduleclass_sfx')), ENT_COMPAT, 'UTF-8') . $moduleClass . '">'; diff --git a/plugins/system/helixultimate/overrides/layouts/comingsoon.php b/plugins/system/helixultimate/overrides/layouts/comingsoon.php index dd2b0166..77b9c396 100644 --- a/plugins/system/helixultimate/overrides/layouts/comingsoon.php +++ b/plugins/system/helixultimate/overrides/layouts/comingsoon.php @@ -74,13 +74,13 @@ get('comingsoon_logo')) : ?> - + "> get('comingsoon_title')) : ?> -

    get('comingsoon_title')); ?>

    +

    get('comingsoon_title') ?? ""); ?>

    -

    +

    diff --git a/plugins/system/helixultimate/overrides/layouts/joomla/content/blog/comments/comments/disqus.php b/plugins/system/helixultimate/overrides/layouts/joomla/content/blog/comments/comments/disqus.php index aad540db..5d7c7063 100644 --- a/plugins/system/helixultimate/overrides/layouts/joomla/content/blog/comments/comments/disqus.php +++ b/plugins/system/helixultimate/overrides/layouts/joomla/content/blog/comments/comments/disqus.php @@ -24,7 +24,7 @@ } ?> - var disqus_shortname = 'get("comment_disqus_subdomain")); ?>'; + var disqus_shortname = 'get("comment_disqus_subdomain") ?? ""); ?>'; var disqus_config = function () { this.page.url = ""; }; diff --git a/plugins/system/helixultimate/overrides/layouts/joomla/content/blog/gallery.php b/plugins/system/helixultimate/overrides/layouts/joomla/content/blog/gallery.php index cad5e89c..f794ef20 100644 --- a/plugins/system/helixultimate/overrides/layouts/joomla/content/blog/gallery.php +++ b/plugins/system/helixultimate/overrides/layouts/joomla/content/blog/gallery.php @@ -12,7 +12,7 @@ ?> helix_ultimate_gallery) && $attribs->helix_ultimate_gallery) : ?> - helix_ultimate_gallery); ?> + helix_ultimate_gallery ?? ""); ?> helix_ultimate_gallery_images) && $gallery->helix_ultimate_gallery_images) ? $gallery->helix_ultimate_gallery_images : array(); ?> diff --git a/plugins/system/helixultimate/overrides/layouts/joomla/content/category_default.php b/plugins/system/helixultimate/overrides/layouts/joomla/content/category_default.php index 589d605a..40ede5d3 100644 --- a/plugins/system/helixultimate/overrides/layouts/joomla/content/category_default.php +++ b/plugins/system/helixultimate/overrides/layouts/joomla/content/category_default.php @@ -71,7 +71,7 @@ get('show_description', 1) || $params->def('show_description_image', 1)) : ?>
    get('show_description_image') && $category->getParams()->get('image')) : ?> - <?php echo htmlspecialchars($category->getParams()->get('image_alt'), ENT_COMPAT, 'UTF-8'); ?> + <?php echo htmlspecialchars($category->getParams()->get('image_alt') ?? "> get('show_description') && $category->description) : ?> diff --git a/plugins/system/helixultimate/overrides/layouts/joomla/content/full_image.php b/plugins/system/helixultimate/overrides/layouts/joomla/content/full_image.php index 543ce861..c09939a8 100644 --- a/plugins/system/helixultimate/overrides/layouts/joomla/content/full_image.php +++ b/plugins/system/helixultimate/overrides/layouts/joomla/content/full_image.php @@ -13,7 +13,7 @@ use Joomla\CMS\Uri\Uri; $params = $displayData->params; -$attribs = json_decode($displayData->attribs); +$attribs = json_decode($displayData->attribs ?? ""); $template = HelixUltimate\Framework\Platform\Helper::loadTemplateData(); $tplParams = $template->params; @@ -64,7 +64,7 @@ ?>
    - images); ?> + images ?? ""); ?> image_fulltext) && !empty($images->image_fulltext)) : ?> float_fulltext) ? $params->get('float_fulltext') : $images->float_fulltext; ?>
    @@ -72,14 +72,14 @@ if (JVERSION >= 4) { $layoutAttr = [ - 'src' => htmlspecialchars($images->image_fulltext), + 'src' => htmlspecialchars($images->image_fulltext ?? ""), 'itemprop' => 'image', 'alt' => empty($images->image_fulltext_alt) && empty($images->image_fulltext_alt_empty) ? $displayData->title : $images->image_fulltext_alt, ]; if (isset($images->image_fulltext_caption) && $images->image_fulltext_caption !== '') { $layoutAttr['class'] = 'caption'; - $layoutAttr['title'] = htmlspecialchars($images->image_fulltext_caption); + $layoutAttr['title'] = htmlspecialchars($images->image_fulltext_caption ?? ""); } echo LayoutHelper::render('joomla.html.image', $layoutAttr); @@ -95,9 +95,9 @@ { ?> image_fulltext_caption) : - echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_fulltext_caption) . '"'; + echo 'class="caption"' . ' title="' . htmlspecialchars($images->image_fulltext_caption ?? "") . '"'; endif; ?> - src="image_fulltext); ?>" alt="image_fulltext_alt) && empty($images->image_fulltext_alt_empty) ? $displayData->title : $images->image_fulltext_alt; ?>" itemprop="image"> + src="image_fulltext ?? ""); ?>" alt="image_fulltext_alt) && empty($images->image_fulltext_alt_empty) ? $displayData->title : $images->image_fulltext_alt; ?>" itemprop="image"> image_fulltext_caption) && $images->image_fulltext_caption !== '') diff --git a/plugins/system/helixultimate/overrides/layouts/joomla/content/intro_image.php b/plugins/system/helixultimate/overrides/layouts/joomla/content/intro_image.php index 959173de..36e69a34 100644 --- a/plugins/system/helixultimate/overrides/layouts/joomla/content/intro_image.php +++ b/plugins/system/helixultimate/overrides/layouts/joomla/content/intro_image.php @@ -15,7 +15,7 @@ use Joomla\CMS\Uri\Uri; $params = $displayData->params; -$attribs = json_decode($displayData->attribs); +$attribs = json_decode($displayData->attribs ?? ""); $template = HelixUltimate\Framework\Platform\Helper::loadTemplateData(); $tplParams = $template->params; @@ -60,14 +60,14 @@ { $layoutAttr = [ 'src' => $intro_image, - 'alt' => empty($displayData->title) ? false : htmlspecialchars($displayData->title, ENT_COMPAT, 'UTF-8'), + 'alt' => empty($displayData->title) ? false : htmlspecialchars($displayData->title ?? "", ENT_COMPAT, 'UTF-8'), ]; echo LayoutHelper::render('joomla.html.image', array_merge($layoutAttr, ['itemprop' => 'thumbnailUrl'])); } else { ?> - <?php echo htmlspecialchars($displayData->title, ENT_COMPAT, 'UTF-8'); ?> + <?php echo htmlspecialchars($displayData->title ?? "> @@ -77,7 +77,7 @@ - images); ?> + images ?? ""); ?> image_intro) && !empty($images->image_intro)) : ?> float_intro) ? $params->get('float_intro') : $images->float_intro; ?>
    @@ -88,12 +88,12 @@ { $layoutAttr = [ 'src' => htmlspecialchars($images->image_intro, ENT_COMPAT, 'UTF-8'), - 'alt' => empty($images->image_intro_alt) ? false : htmlspecialchars($images->image_intro_alt, ENT_COMPAT, 'UTF-8'), + 'alt' => empty($images->image_intro_alt) ? false : htmlspecialchars($images->image_intro_alt ?? "", ENT_COMPAT, 'UTF-8'), ]; if (isset($images->image_intro_caption) && $images->image_intro_caption !== '') { $layoutAttr['class'] = 'caption'; - $layoutAttr['title'] = htmlspecialchars($images->image_intro_caption); + $layoutAttr['title'] = htmlspecialchars($images->image_intro_caption ?? ""); } echo LayoutHelper::render('joomla.html.image', array_merge($layoutAttr, ['itemprop' => 'thumbnailUrl'])); // Image Caption @@ -106,7 +106,7 @@ else { ?> - image_intro_caption) : ?> image_intro_caption) . '"'; ?> src="image_intro, ENT_COMPAT, 'UTF-8'); ?>" alt="image_intro_alt, ENT_COMPAT, 'UTF-8'); ?>"> + image_intro_caption) : ?> image_intro_caption ?? "") . '"'; ?> src="image_intro, ENT_COMPAT, 'UTF-8'); ?>" alt="image_intro_alt ?? "", ENT_COMPAT, 'UTF-8'); ?>"> image_intro_caption) && $images->image_intro_caption !== '') @@ -122,13 +122,13 @@ if (JVERSION >= 4) { $layoutAttr = [ - 'src' => htmlspecialchars($images->image_intro, ENT_COMPAT, 'UTF-8'), + 'src' => htmlspecialchars($images->image_intro ?? "", ENT_COMPAT, 'UTF-8'), 'alt' => empty($images->image_intro_alt) ? false : htmlspecialchars($images->image_intro_alt, ENT_COMPAT, 'UTF-8'), ]; if (isset($images->image_intro_caption) && $images->image_intro_caption !== '') { $layoutAttr['class'] = 'caption'; - $layoutAttr['title'] = htmlspecialchars($images->image_intro_caption, ENT_COMPAT, 'UTF-8'); + $layoutAttr['title'] = htmlspecialchars($images->image_intro_caption ?? "", ENT_COMPAT, 'UTF-8'); } echo LayoutHelper::render('joomla.html.image', array_merge($layoutAttr, ['itemprop' => 'thumbnailUrl'])); // Image Caption @@ -141,7 +141,7 @@ else { ?> - image_intro_caption) : ?> image_intro_caption, ENT_COMPAT, 'UTF-8') . '"'; ?> src="image_intro, ENT_COMPAT, 'UTF-8'); ?>" alt="image_intro_alt, ENT_COMPAT, 'UTF-8'); ?>"> + image_intro_caption) : ?> image_intro_caption, ENT_COMPAT, 'UTF-8') . '"'; ?> src="image_intro, ENT_COMPAT, 'UTF-8'); ?>" alt="image_intro_alt ?? "", ENT_COMPAT, 'UTF-8'); ?>"> image_intro_caption) && $images->image_intro_caption !== '') diff --git a/plugins/system/helixultimate/overrides/layouts/joomla/content/language.php b/plugins/system/helixultimate/overrides/layouts/joomla/content/language.php index a0e67826..bc76ebb9 100644 --- a/plugins/system/helixultimate/overrides/layouts/joomla/content/language.php +++ b/plugins/system/helixultimate/overrides/layouts/joomla/content/language.php @@ -19,7 +19,7 @@ } elseif ($item->language_image) { - echo HTMLHelper::_('image', 'mod_languages/' . $item->language_image . '.gif', '', null, true) . ' ' . htmlspecialchars($item->language_title, ENT_COMPAT, 'UTF-8'); + echo HTMLHelper::_('image', 'mod_languages/' . $item->language_image . '.gif', '', null, true) . ' ' . htmlspecialchars($item->language_title ?? "", ENT_COMPAT, 'UTF-8'); } elseif ($item->language_title) { diff --git a/plugins/system/helixultimate/overrides/layouts/joomla/content/open_graph.php b/plugins/system/helixultimate/overrides/layouts/joomla/content/open_graph.php index 0d9531c8..8376d526 100644 --- a/plugins/system/helixultimate/overrides/layouts/joomla/content/open_graph.php +++ b/plugins/system/helixultimate/overrides/layouts/joomla/content/open_graph.php @@ -21,7 +21,7 @@ // Facebook $doc->addCustomTag(''); $doc->addCustomTag(''); -$doc->addCustomTag(''); +$doc->addCustomTag(''); $doc->addCustomTag(''); if(isset($image) && $image) @@ -34,7 +34,7 @@ $doc->addCustomTag(''); } -$doc->addCustomTag(''); +$doc->addCustomTag(''); // Twitter $doc->addCustomTag(''); @@ -46,7 +46,7 @@ if(isset($twitter_site) && $twitter_site) { - $doc->addCustomTag(''); + $doc->addCustomTag(''); } $doc->addCustomTag(''); \ No newline at end of file diff --git a/plugins/system/helixultimate/overrides/layouts/joomla/content/readmore.php b/plugins/system/helixultimate/overrides/layouts/joomla/content/readmore.php index 3ebdf94c..8c350720 100644 --- a/plugins/system/helixultimate/overrides/layouts/joomla/content/readmore.php +++ b/plugins/system/helixultimate/overrides/layouts/joomla/content/readmore.php @@ -20,22 +20,22 @@
    get('access-view')) : ?> alternative_readmore) : ?> - get('show_readmore_title', 0) == 0) : ?> - - diff --git a/plugins/system/helixultimate/overrides/layouts/joomla/content/related_article.php b/plugins/system/helixultimate/overrides/layouts/joomla/content/related_article.php index dd247a2f..71efc21d 100644 --- a/plugins/system/helixultimate/overrides/layouts/joomla/content/related_article.php +++ b/plugins/system/helixultimate/overrides/layouts/joomla/content/related_article.php @@ -7,7 +7,7 @@ $item->enableOpenGraph = false; $params = $item->params; $info = $params->get('info_block_position', 0); -$attribs = json_decode($item->attribs); +$attribs = json_decode($item->attribs ?? ""); HTMLHelper::addIncludePath(JPATH_COMPONENT . '/helpers/html'); $article_format = (isset($attribs->helix_ultimate_article_format) && $attribs->helix_ultimate_article_format) ? $attribs->helix_ultimate_article_format : 'standard'; ?> diff --git a/plugins/system/helixultimate/overrides/layouts/joomla/content/related_article_large.php b/plugins/system/helixultimate/overrides/layouts/joomla/content/related_article_large.php index 07ad2d6c..6aa70f1f 100644 --- a/plugins/system/helixultimate/overrides/layouts/joomla/content/related_article_large.php +++ b/plugins/system/helixultimate/overrides/layouts/joomla/content/related_article_large.php @@ -7,7 +7,7 @@ $item = $displayData; $params = $item->params; $info = $params->get('info_block_position', 0); -$attribs = json_decode($item->attribs); +$attribs = json_decode($item->attribs ?? ""); HTMLHelper::addIncludePath(JPATH_COMPONENT . '/helpers/html'); $article_format = (isset($attribs->helix_ultimate_article_format) && $attribs->helix_ultimate_article_format) ? $attribs->helix_ultimate_article_format diff --git a/plugins/system/helixultimate/overrides/layouts/joomla/edit/frontediting_modules.php b/plugins/system/helixultimate/overrides/layouts/joomla/edit/frontediting_modules.php index 9f560e65..ac1d3808 100644 --- a/plugins/system/helixultimate/overrides/layouts/joomla/edit/frontediting_modules.php +++ b/plugins/system/helixultimate/overrides/layouts/joomla/edit/frontediting_modules.php @@ -50,7 +50,7 @@ '\\1 jmoddiv" data-jmodediturl="' . $editUrl . '" data-target="' . $target . '" data-jmodtip="' . HTMLHelper::_('tooltipText', Text::_('JLIB_HTML_EDIT_MODULE'), - htmlspecialchars($mod->title, ENT_COMPAT, 'UTF-8') . '
    ' . sprintf(Text::_('JLIB_HTML_EDIT_MODULE_IN_POSITION'), htmlspecialchars($position, ENT_COMPAT, 'UTF-8')), + htmlspecialchars($mod->title ?? "", ENT_COMPAT, 'UTF-8') . '
    ' . sprintf(Text::_('JLIB_HTML_EDIT_MODULE_IN_POSITION'), htmlspecialchars($position ?? "", ENT_COMPAT, 'UTF-8')), 0 ) . '"' diff --git a/plugins/system/helixultimate/overrides/layouts/joomla/form/field/calendar.php b/plugins/system/helixultimate/overrides/layouts/joomla/form/field/calendar.php index f0705a96..802aeaa8 100644 --- a/plugins/system/helixultimate/overrides/layouts/joomla/form/field/calendar.php +++ b/plugins/system/helixultimate/overrides/layouts/joomla/form/field/calendar.php @@ -84,8 +84,8 @@ name="" value="" - - data-alt-value="" autocomplete="off"> + + data-alt-value="" autocomplete="off">