hello Krileon
I use a third party CB plugin who allow me to display some data inside a Tab. Now I would like hide the Tab if no data is retrieved... I set in Configuration to hide Tab in this case but the Tab remain displayed even if no data are inside..
I ask the developer of the third party plugin and I try to search in this forum a solution but no one can help with that...
In fact the third party plugin have a code who permit to display a default message if no data is retrieved..here that code:
Code:
<?php if(empty($listings)) { __t("No entries were found") . '<br /><br />'; return; } ?>
So if I keep this code of course the Tab will not be hide because the default "empty message" will be displayed and also because some BR tag are present...so I tried to modify the code like that:
Code:
<?php if(empty($listings)) { __t("") . ''; return; } ?>
or also like that:
Code:
<?php if(empty($listings) return;?>
Now in both case the Tab is totally empty but it still remain displayed...
How I can hide the Tab?? Have you please a suggestion for modify the code of the third party plugin for let CB hide the Tab??
many thank
Cheers