Example #1
0
<ul class="nav nav-pills nav-stacked well">
<?php 
    if (!empty($header)) {
        ?>
	<li class="nav-header disabled"><a><?php 
        echo $header;
        ?>
</a></li>
<?php 
    }
    foreach ($list as $name => $path) {
        if (IS_ADMIN && !Site_Util::check_ext_uri($path, IS_ADMIN) && Auth::check() && !\Admin\Site_Util::check_exists_accessible_uri($path)) {
            continue;
        }
        ?>
	<li<?php 
        if (check_current_uri($path)) {
            ?>
 class="active"<?php 
        }
        ?>
><?php 
        echo anchor_icon($path, $name, null, null, false, null, IS_ADMIN);
        ?>
</li>
<?php 
    }
    ?>
</ul>
<?php 
}
                }
                ?>
><?php 
                echo navigation_link($item_name, $item_path);
                ?>
</li>
<?php 
            }
            ?>
						</ul>
						</li>
<?php 
        } else {
            ?>
					<li<?php 
            if (check_current_uri($value)) {
                ?>
 class="active"<?php 
            }
            ?>
><?php 
            echo navigation_link($name, $value);
            ?>
</li>
<?php 
        }
        $i++;
    }
    ?>
				</ul>
			</div><!--/.nav-collapse -->
Example #3
0
<hr>
<footer>
<?php 
if (!IS_ADMIN && ($navs = Config::get('navigation.site.global_footer'))) {
    ?>
	<ul class="list-inline">
<?php 
    foreach ($navs as $label => $uri) {
        ?>
		<li<?php 
        if (check_current_uri($uri)) {
            ?>
 class="active"<?php 
        }
        ?>
><?php 
        echo anchor($uri, $label);
        ?>
</li>
<?php 
    }
    ?>
	</ul>
<?php 
}
if (FBD_COPYRIGHT) {
    ?>
	<small><?php 
    echo FBD_COPYRIGHT;
    ?>
</small>
Example #4
0
 protected function check_not_auth_action()
 {
     if (conf('base.isDisplayTopPageWithoutAuth') && check_current_uri(Config::get('routes._root_'), true)) {
         return true;
     }
     if (conf('base.closedSite.isEnabled')) {
         if (check_current_uri($this->get_login_page_uri())) {
             return true;
         }
         if (in_array(site_get_current_page_id('/'), conf('base.closedSite.accessAccepted.actions'))) {
             return true;
         }
         return in_array(current_uri(true), conf('base.closedSite.accessAccepted.uris'));
     }
     return in_array(Site_Util::get_action_name(IS_API), $this->check_not_auth_action);
 }