2019-04-27, 01:04:10
How to check whether a page is added to the menu and write a condition not to specify the page slug.
Code:
<?php if (( return_page_slug() != 'novosti' ) && (return_parent(0)!='novosti')) { ?>
<?php
$bc = return_i18n_breadcrumbs(return_page_slug());
$slug = $bc[0]['url'];
$pages = return_i18n_pages();
if (@$pages[$slug]['children']) {
echo '<h3 class="uk-h4 uk-heading-divider">'.$bc[0]['menu'].'</h3>';
echo '<ul class="uk-list-divider uk-nav uk-nav-default">';
get_i18n_navigation(return_page_slug(),1,1,I18N_SHOW_MENU,'side-menu');
echo '</ul>';
}
?>
<?php } ?>