• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP get_class_of_component函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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.
?>

开发者ID:Nisha318,项目名称:p3edtech,代码行数:29,代码来源:page.php


示例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">
开发者ID:cpxondo,项目名称:ThemeWPTest,代码行数:31,代码来源:image.php


示例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 -->




开发者ID:ekkyfm,项目名称:dayoutpicnictheme,代码行数:20,代码来源:sidebar.php


示例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'));
?>
开发者ID:pbhanu1994,项目名称:bhanuprakash,代码行数:29,代码来源:header.php


示例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 -->




开发者ID:Nisha318,项目名称:p3edtech,代码行数:24,代码来源:sidebar.php


示例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">
开发者ID:ekkyfm,项目名称:dayoutpicnictheme,代码行数:31,代码来源:section-menu.php



注:本文中的get_class_of_component函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_class_vars函数代码示例发布时间:2022-05-15
下一篇:
PHP get_class_name函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap