本文整理匯總了PHP中kadence_main_class函數的典型用法代碼示例。如果您正苦於以下問題:PHP kadence_main_class函數的具體用法?PHP kadence_main_class怎麽用?PHP kadence_main_class使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了kadence_main_class函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: kadence_main_class
<?php
/*
Template Name: Landing - no header
*/
?>
<div id="content" class="container">
<div class="row">
<div class="main <?php
echo kadence_main_class();
?>
" id="ktmain" role="main">
<div class="entry-content" itemprop="mainContentOfPage">
<?php
get_template_part('templates/content', 'page');
?>
</div>
<?php
global $virtue_premium;
if (isset($virtue_premium['page_comments']) && $virtue_premium['page_comments'] == '1') {
comments_template('/templates/comments.php');
}
?>
</div><!-- /.main -->
示例2: get_template_part
if ($show_pagetitle == true) {
?>
<div id="homeheader" class="welcomeclass">
<div class="container">
<?php
get_template_part('templates/page', 'header');
?>
</div>
</div><!--titleclass-->
<?php
}
?>
<div id="content" class="container homepagecontent">
<div class="row">
<div class="main <?php
echo esc_attr(kadence_main_class());
?>
" role="main">
<div class="entry-content" itemprop="mainContentOfPage">
<?php
if (isset($virtue['homepage_layout']['enabled'])) {
$layout = $virtue['homepage_layout']['enabled'];
} else {
$layout = array("block_one" => "block_one", "block_four" => "block_four");
}
if ($layout) {
foreach ($layout as $key => $value) {
switch ($key) {
case 'block_one':
if ($show_pagetitle == false) {