本文整理匯總了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>