本文整理汇总了PHP中get_class_of_component函数的典型用法代码示例。如果您正苦于以下问题:PHP get_class_of_component函数的具体用法?PHP get_class_of_component怎么用?PHP get_class_of_component使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_class_of_component函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_header
<?php
/**
* The template for displaying all pages.
*
*/
get_header();
?>
<div id="content" class="<?php
echo get_class_of_component('content', smartadapt_option('smartadapt_layout'));
?>
" role="main">
<?php
while (have_posts()) {
the_post();
?>
<?php
get_template_part('content', 'page');
?>
<?php
comments_template('', true);
?>
<?php
}
// end of the loop.
?>
示例2: get_header
<?php
/**
* The template for displaying image attachments.
*/
get_header();
?>
<div id="content" class="<?php
echo get_class_of_component('content');
?>
" role="main">
<?php
while (have_posts()) {
the_post();
?>
<article id="post-<?php
the_ID();
?>
" <?php
post_class('image-attachment');
?>
>
<header class="entry-header">
<h2 class="entry-title"><?php
the_title();
?>
</h2>
<footer class="entry-meta image-info">
示例3: get_class_of_component
<section id="sidebar" class="<?php
echo get_class_of_component('sidebar');
?>
">
<ul id="secondary" class="widget-area medium-block-grid-2 small-block-grid-1 large-block-grid-1" role="complementary">
<?php
if (is_archive()) {
dynamic_sidebar('sidebar-4');
} else {
if (is_single()) {
dynamic_sidebar('sidebar-5');
} else {
dynamic_sidebar('sidebar-1');
}
}
?>
</ul><!-- #secondary -->
</section><!-- #sidebar .widget-area -->
示例4: get_sidebar
</div>
</div>
</div>
</div>
<div id="wrapper" class="row">
<?php
//if sidebar is large-1 the left side
if (check_position_of_component('sidebar', 'left')) {
get_sidebar();
}
?>
<div id="page" role="main" class="<?php
echo get_class_of_component('page');
?>
">
<?php
maxflat_get_header();
//display header info or header image
maxflat_breadcrumb();
?>
<div id="main" class="row">
<nav id="mobile-navigation" class="columns large-16 show-for-small" role="navigation">
<?php
//display mobile menu
maxflat_mobile_menu(array('theme_location' => 'categories'));
?>
示例5: get_class_of_component
<section id="sidebar" class="<?php
echo get_class_of_component('sidebar', smartadapt_option('smartadapt_layout'));
?>
">
<?php
if (is_active_sidebar('sidebar-1')) {
?>
<div id="secondary" class="widget-area" role="complementary">
<?php
if (is_archive()) {
dynamic_sidebar('sidebar-4');
} else {
if (is_single()) {
dynamic_sidebar('sidebar-5');
} else {
dynamic_sidebar('sidebar-1');
}
}
?>
</div><!-- #secondary -->
<?php
}
?>
</section><!-- #sidebar .widget-area -->
示例6: get_class_of_component
<div class="<?php
echo get_class_of_component('menu');
?>
">
<nav id="site-navigation" class="main-navigation hide-for-small" role="navigation">
<a class="assistive-text" href="#content"
title="<?php
esc_attr_e('Skip to content', 'harmonux');
?>
"><?php
_e('Skip to content', 'harmonux');
?>
</a>
<?php
//fixed menu option
$fixed = __HARMONUX::option('harmonux_menu_fixed');
?>
<div class="harmonux-nav-menu <?php
echo $fixed == '1' ? ' fixed-menu' : '';
?>
">
<?php
wp_nav_menu(array('theme_location' => 'categories', 'container' => false));
?>
</div>
</nav>
<!-- #site-navigation -->
<ul class="widget-area smartlib-under-menu-widget-area">