From 52c995b3cd13604a7705ae9ee0d45e4fac0ba61f Mon Sep 17 00:00:00 2001 From: Sven Hurt Date: Wed, 5 Jul 2017 13:58:41 +0200 Subject: [PATCH] Update beez layout overrides to use correct params --- .../html/com_contact/contact/default.php | 72 ++++++++++--------- 1 file changed, 37 insertions(+), 35 deletions(-) diff --git a/templates/beez3/html/com_contact/contact/default.php b/templates/beez3/html/com_contact/contact/default.php index 8e91433df3a74..9c01684052986 100644 --- a/templates/beez3/html/com_contact/contact/default.php +++ b/templates/beez3/html/com_contact/contact/default.php @@ -10,27 +10,29 @@ defined('_JEXEC') or die; $cparams = JComponentHelper::getParams('com_media'); +$tparams = $this->item->params; + ?> -
- params->get('show_page_heading')) : ?> +
+ get('show_page_heading')) : ?>

- escape($this->params->get('page_heading')); ?> + escape($tparams->get('page_heading')); ?>

- contact->name && $this->params->get('show_name')) : ?> + contact->name && $tparams->get('show_name')) : ?> - params->get('show_contact_category') === 'show_no_link') : ?> + get('show_contact_category') === 'show_no_link') : ?>

contact->category_title; ?>

- params->get('show_contact_category') === 'show_with_link') : ?> + get('show_contact_category') === 'show_with_link') : ?> contact->catid);?>

@@ -41,40 +43,40 @@ item->event->afterDisplayTitle; ?> - params->get('show_contact_list') && count($this->contacts) > 1) : ?> + get('show_contact_list') && count($this->contacts) > 1) : ?>
contacts, 'id', 'class="inputbox" onchange="document.location.href = this.value"', 'link', 'name', $this->contact->link);?>
- params->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?> + get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?> item->tagLayout = new JLayoutFile('joomla.content.tags'); ?> item->tagLayout->render($this->item->tags->itemTags); ?> item->event->beforeDisplayContent; ?> - params->get('presentation_style') === 'sliders') : ?> + get('presentation_style') === 'sliders') : ?> '1')); ?> - params->get('presentation_style') === 'tabs') : ?> + get('presentation_style') === 'tabs') : ?> '1')); ?> - params->get('presentation_style') === 'plain'):?> + get('presentation_style') === 'plain'):?> ' . JText::_('COM_CONTACT_DETAILS') . '

'; ?> - contact->image && $this->params->get('show_image')) : ?> + contact->image && $tparams->get('show_image')) : ?>
contact->image, $this->contact->name, array('align' => 'middle')); ?>
- contact->con_position && $this->params->get('show_position')) : ?> + contact->con_position && $tparams->get('show_position')) : ?>
contact->con_position; ?> @@ -84,40 +86,40 @@ loadTemplate('address'); ?> - params->get('allow_vcard')) : ?> + get('allow_vcard')) : ?> - params->get('show_email_form') && ($this->contact->email_to || $this->contact->user_id)) : ?> + get('show_email_form') && ($this->contact->email_to || $this->contact->user_id)) : ?> - params->get('presentation_style') === 'sliders') : ?> + get('presentation_style') === 'sliders') : ?> - params->get('presentation_style') === 'tabs') : ?> + get('presentation_style') === 'tabs') : ?> - params->get('presentation_style') === 'plain'):?> + get('presentation_style') === 'plain'):?> '. JText::_('COM_CONTACT_EMAIL_FORM').''; ?> loadTemplate('form'); ?> - params->get('show_links')) : ?> + get('show_links')) : ?> loadTemplate('links'); ?> - params->get('show_articles') && $this->contact->user_id && $this->contact->articles) : ?> + get('show_articles') && $this->contact->user_id && $this->contact->articles) : ?> - params->get('presentation_style') === 'sliders') : + get('presentation_style') === 'sliders') : echo JHtml::_('sliders.panel', JText::_('JGLOBAL_ARTICLES'), 'display-articles'); ?> - params->get('presentation_style') === 'tabs') : ?> + get('presentation_style') === 'tabs') : ?> - params->get('presentation_style') === 'plain'):?> + get('presentation_style') === 'plain'):?> '. JText::_('JGLOBAL_ARTICLES').''; ?> @@ -125,15 +127,15 @@ - params->get('show_profile') && $this->contact->user_id && JPluginHelper::isEnabled('user', 'profile')) : ?> + get('show_profile') && $this->contact->user_id && JPluginHelper::isEnabled('user', 'profile')) : ?> - params->get('presentation_style') === 'sliders') : + get('presentation_style') === 'sliders') : echo JHtml::_('sliders.panel', JText::_('COM_CONTACT_PROFILE'), 'display-profile'); ?> - params->get('presentation_style') === 'tabs') : ?> + get('presentation_style') === 'tabs') : ?> - params->get('presentation_style') === 'plain'):?> + get('presentation_style') === 'plain'):?> '. JText::_('COM_CONTACT_PROFILE').''; ?> @@ -141,27 +143,27 @@ - params->get('show_user_custom_fields') && $this->contactUser) : ?> + get('show_user_custom_fields') && $this->contactUser) : ?> loadTemplate('user_custom_fields'); ?> - contact->misc && $this->params->get('show_misc')) : ?> + contact->misc && $tparams->get('show_misc')) : ?> - params->get('presentation_style') === 'sliders') : + get('presentation_style') === 'sliders') : echo JHtml::_('sliders.panel', JText::_('COM_CONTACT_OTHER_INFORMATION'), 'display-misc'); ?> - params->get('presentation_style') === 'tabs') : ?> + get('presentation_style') === 'tabs') : ?> - params->get('presentation_style') === 'plain'):?> + get('presentation_style') === 'plain'):?> '. JText::_('COM_CONTACT_OTHER_INFORMATION').''; ?>
- - params->get('marker_misc'); ?> + + get('marker_misc'); ?>
@@ -173,7 +175,7 @@
- params->get('presentation_style') === 'sliders') : + get('presentation_style') === 'sliders') : echo JHtml::_('sliders.end'); endif; ?>