示例#1
0
<?php

if (!empty($alerts)) {
    ?>
	<div <?php 
    echo zbase_view_ui_tag_attributes('alert', 'class="alert alert-danger fade in" role="alert"');
    ?>
>
		<button type="button" class="close" data-dismiss="alert" aria-hidden="true"></button>
		<?php 
    if (is_array($alerts)) {
        ?>
			<?php 
        foreach ($alerts as $msg) {
            ?>
				{!! $msg !!}<br />
			<?php 
        }
        ?>
		<?php 
    } else {
        ?>
			{{ $msgs }}
		<?php 
    }
    ?>
	</div>
<?php 
}
示例#2
0
<?php

if (!empty($alerts)) {
    ?>
	<div <?php 
    echo zbase_view_ui_tag_attributes('alert', 'class="alert alert-warning fade in" role="alert"');
    ?>
>
		<button type="button" class="close" data-dismiss="alert" aria-hidden="true"></button>
		<?php 
    if (is_array($alerts)) {
        ?>
			<?php 
        foreach ($alerts as $msg) {
            ?>
				{!! $msg !!}<br />
			<?php 
        }
        ?>
		<?php 
    } else {
        ?>
			{{ $msgs }}
		<?php 
    }
    ?>
	</div>
<?php 
}
示例#3
0
						</li>
					<?php 
                }
                ?>
				<?php 
            }
            ?>
			<?php 
        }
        ?>
		</ul>
	<?php 
    } else {
        ?>
		<ul <?php 
        echo zbase_view_ui_tag_attributes('nav-sub', 'class="dropdown-menu"');
        ?>
>
			<?php 
        foreach ($nav as $n) {
            ?>
				<?php 
            if (!empty($n->inMenu())) {
                ?>
					<?php 
                if ($n->hasChildren()) {
                    ?>
						<li class="dropdown-submenu">
							<a href="<?php 
                    echo $n->getHref();
                    ?>
<?php

if (!empty($breadcrumbs)) {
    ?>
	<ol <?php 
    echo zbase_view_ui_tag_attributes('breadcrumb', 'class="breadcrumb"');
    ?>
>
		<li class="first">
			<a href="{{ zbase_url_from_route('home') }}" title="Home">Home</a>
		</li>
		<?php 
    $counter = 0;
    ?>
		<?php 
    foreach ($breadcrumbs as $breadcrumb) {
        ?>
			<?php 
        $counter++;
        ?>
			<?php 
        $config = zbase_config_get('nav.front.main.' . $breadcrumb, []);
        ?>
			<?php 
        if (!empty($config)) {
            ?>
				<?php 
            $route = !empty($config['url']) ? $config['url'] : (!empty($config['link']) ? $config['link'] : null);
            $url = zbase_url_from_config($route);
            $label = zbase_value_get($config, 'label', null);
            $title = zbase_value_get($config, 'title', null);
示例#5
0
<?php

if (!empty($alerts)) {
    ?>
	<div <?php 
    echo zbase_view_ui_tag_attributes('alert', 'class="alert alert-success fade in" role="alert"');
    ?>
>
		<button type="button" class="close" data-dismiss="alert" aria-hidden="true"></button>
		<?php 
    if (is_array($alerts)) {
        ?>
			<?php 
        foreach ($alerts as $msg) {
            ?>
				{!! $msg !!}<br />
			<?php 
        }
        ?>
		<?php 
    } else {
        ?>
			{{ $msgs }}
		<?php 
    }
    ?>
	</div>
<?php 
}