本文整理汇总了PHP中partial_exists函数的典型用法代码示例。如果您正苦于以下问题:PHP partial_exists函数的具体用法?PHP partial_exists怎么用?PHP partial_exists使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了partial_exists函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_partial
</div>
</div>
<?php
}
?>
<div id="page-content">
<div class="container">
<div class="row">
<?php
if (partial_exists('content_right')) {
$class = "col-sm-9 col-md-9";
} else {
$class = "col-sm-12";
}
if (partial_exists('content_left')) {
$menu_class = "col-sm-9 col-md-9";
} else {
$menu_class = "col-sm-9";
}
?>
<div class="<?php
echo $class;
?>
">
<div id="general" class="tab-pane row wrap-all active">
<?php
echo get_partial('content_left', 'wrap-none col-sm-3');
?>
示例2: get_partial
</div>
<?php
}
?>
<div id="page-content">
<div class="container top-spacing">
<div class="row">
<?php
echo get_partial('content_left');
?>
<?php
if (partial_exists('content_left') and partial_exists('content_right')) {
$class = "col-sm-6 col-md-6";
} else {
if (partial_exists('content_left') or partial_exists('content_right')) {
$class = "col-sm-9 col-md-9";
} else {
$class = "col-md-12";
}
}
?>
<div class="content-wrap <?php
echo $class;
?>
">
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="table table-none">
示例3: get_partial
</div>
</div>
</div>
<?php
}
?>
<div class="row">
<?php
echo get_partial('content_left');
?>
<?php
if (empty($page_popup) and partial_exists('content_left') and partial_exists('content_right')) {
$class = "col-sm-6 col-md-6";
} else {
if (empty($page_popup) and partial_exists('content_left') or empty($page_popup) and partial_exists('content_right')) {
$class = "col-sm-9 col-md-9";
} else {
$class = "col-md-12";
}
}
?>
<div class="<?php
echo $class;
?>
">
<div class="content-wrap"><?php
echo $page_content;
?>
</div>