本文整理汇总了PHP中menu_lateral函数的典型用法代码示例。如果您正苦于以下问题:PHP menu_lateral函数的具体用法?PHP menu_lateral怎么用?PHP menu_lateral使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了menu_lateral函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: template_body_above
//.........这里部分代码省略.........
</div>
<div class="menu-top-info">
<a class="menu-top-user" href="', $scripturl, '?action=profile"><span class="avatar pull-left"><img src="', !empty($context['user']['avatar']['href']) ? $context['user']['avatar']['href'] : $settings['images_url'] . '/noavatar.png', '" alt="', $context['user']['name'], '"></span>';
if ($context['user']['is_logged']) {
echo $context['user']['name'];
} else {
echo $txt['guest_title'];
}
echo '
</a>
</div>
<div class="menu-top-info-sub">
<small> Menú de Usuario </small>
</div>
</div>
<div class="menu-content">
<ul class="nav">
<li>
<a class="waves-attach" href="', $scripturl, '"><span class="icon icon-lg margin-right">home</span>', $txt['home'], '</a>
</li>';
//Editando el listado para mostrar los menus mas importantes del mod
if (!empty($context['user']['is_logged'])) {
echo '
<li>
<a class="waves-attach" href="', $scripturl, '?action=profile"><span class="icon icon-lg margin-right">account_circle</span>', $txt['forumprofile_short'], '</a>
</li>
<li>
<a class="waves-attach" href="', $scripturl, '?action=pm"><span class="icon icon-lg margin-right">inbox</span>', $txt['pm'], '</a>
</li>
<li class="hidden-md">
<a class="waves-attach" href="javascript:void(0)" data-target="#doc_menu_profile_settings" data-toggle="collapse"><span class="icon icon-lg margin-right">menu</span>', $txt['almenu'], '</a>
<span class="collapsed menu-collapse-toggle waves-attach" data-target="#doc_menu_profile_settings" data-toggle="collapse"><i class="icon menu-collapse-toggle-close">close</i><i class="icon menu-collapse-toggle-default">add</i></span>
<ul class="collapse menu-collapse" id="doc_menu_profile_settings">';
menu_lateral();
echo '</ul>
</li>';
// Muestra los Likes del Like Mod
if (!empty($modSettings['LikePosts::$LikePostsUtils->showLikeNotification())'])) {
echo '
<li>
<a class="waves-attach" href="', $scripturl, '?action=likepostsstats"><span class="icon icon-lg margin-right">thumb_up</span>', $txt['like_show_notifications'], '</a>
</li>';
}
}
echo '<li>
<a class="waves-attach" href="', $scripturl, '?action=help"><span class="icon icon-lg margin-right">help</span>', $txt['help'], '</a>
</li>
</ul>
</div>
</div>
</nav>';
//Añadiendo un content, en el cual despues vemos si agregar algo mas
echo '
<div class="content">
<div class="content-heading">
</div>
<div class="container">
<div class="row">
<div class="visible-md-block visible-lg-block">
<div class="card margin-bottom-no">
<div class="card-main">
<div class="card-inner mdc-text-grey-900" style="margin-bottom: 0px;">
<div class="container">
<div class="row">
<div class="col-md-6">
';
示例2: menu_arriba
<!-- ace styles -->
<link rel="stylesheet" href="../../dist/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />
<link href="../../dist/css/ace-skins.min.css" type="text/css" rel="stylesheet" id="ace-skins-stylesheet" >
<link href="../../dist/css/ace-rtl.min.css" type="text/css" rel="stylesheet" id="ace-rtl-stylesheet" >
<script src="../../dist/js/ace-extra.min.js"></script>
</head>
<body class="skin-2">
<?php
menu_arriba();
?>
<div class="main-container" id="main-container">
<?php
menu_lateral();
?>
<div class="main-content">
<div class="main-content-inner">
<div class="breadcrumbs" id="breadcrumbs">
<script type="text/javascript">
try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
</script>
<ul class="breadcrumb">
<li>
<i class="ace-icon fa fa-home home-icon"></i>
<a href="../inicio/">Inicio</a>
</li>
<li class="active">Contabilidad</li>
示例3: menu_web
function menu_web()
{
if (is_page(ADMINISTRADOR)) {
return;
}
menu_lateral();
$cintillo = cintillo_menu();
$clases_menu = $cintillo ? ' con_citillo' : '';
?>
<nav class="navbar navbar-default navbar-fixed-top<?php
echo $clases_menu;
?>
" role="navigation">
<div class="container">
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<img src="<?php
plantilla();
?>
/images/iconos/button.png" class="iconmenu">
<span class="sr-only">Toggle navigation</span>
</button>
<div class="spam"><a href="<?php
echo get_home_url();
?>
"><img src="<?php
plantilla();
?>
/images/logo.png" class="img-responsive logo"></a></div>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav navbar-right uno">
<li>
<div class="row icons"><?php
compartir_web();
?>
</div>
</li>
<li class="spot">
</li>
<li class="letram">
<a href="<?php
echo get_home_url();
?>
/?go_to=compra_class" data-go="compra_class" class="page-scroll color_gris1 scrolling"><small>COMPRAR CLASES</small></a>
</li>
<li class="letram">
<a href="<?php
echo get_home_url();
?>
/?go_to=reserva" data-go="reserva" class="page-scroll color_gris1"><small>RESERVAR</small></a>
</li>
<li>
<?php
menu_usuario();
?>
</li>
<li class="indexfront">
<div class="up"><img src="<?php
plantilla();
?>
/images/iconos/button.png"></div>
</li>
</ul>
</div>
</div>
<?php
menuabierto();
echo $cintillo;
?>
</nav>
<?php
}