Exemple #1
0
<?php

if ($navs) {
    ?>
<ul>
<?php 
    foreach ($navs as $nav) {
        if (op_is_accessable_url($nav->uri)) {
            ?>
<li id="globalNav_<?php 
            echo op_url_to_id($nav->uri);
            ?>
"><?php 
            echo link_to($nav->caption, $nav->uri);
            ?>
</li>
<?php 
        }
    }
    ?>
</ul>
<?php 
}
Exemple #2
0
    ?>
">
<?php 
    foreach ($navs as $nav) {
        ?>

<?php 
        if (isset($navId)) {
            $uri = $nav->uri . '?id=' . $navId;
        } else {
            $uri = $nav->uri;
        }
        ?>

<?php 
        if (op_is_accessable_url($uri)) {
            ?>
<li id="<?php 
            echo $nav->type;
            ?>
_<?php 
            echo op_url_to_id($nav->uri);
            ?>
"><?php 
            echo link_to($nav->caption, $uri);
            ?>
</li>
<?php 
        }
        ?>