Is there any way to do to hide the tag <ul> if there are no links?
as is done here
Code:
<?php if ($function) { ?>
<ul><?php get_i18n_navigation(return_page_slug(),1,99); ?></ul>
<?php } ?>
as is done here
Code:
<?php if ($showLanguage) { ?>
<span class="search-entry-language"><?php get_special_field('language'); ?></span>
<?php } ?>