Icons container on category appears even when is empty

More
10 years 10 months ago #44076 by jrodgar
com_flexicontent/tmpl_common/category.php
Code:
<?php if ( $this->params->get('show_print_icon') || $this->params->get('show_email_icon') || JRequest::getCmd('print') || $this->params->get('show_feed_icon', 1) || $this->params->get('show_addbutton', 1) ) { ?>
This if means that the next container, "buttons" will appear even when we are not logged on the front end. Thats because the "add button" will only appear if we have the aproppiate permissions, but the check to add it is global. Proposed solution:
Code:
<?php if ( $this->params->get('show_print_icon') || $this->params->get('show_email_icon') || JRequest::getCmd('print') || $this->params->get('show_feed_icon', 1) || ($this->params->get('show_addbutton', 1) && flexicontent_html::addbutton( $this->params, $this->category )) ) { ?>

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #44082 by ggppdk
Hello

thanks for suggestion and for providing the suggested code
(it makes quicker to locate what you are suggesting)


will commit this change for next version, but with a bit more appropriate code (calculate addbutton once)

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.382 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline