本文整理汇总了PHP中odin_classes_page_sidebar函数的典型用法代码示例。如果您正苦于以下问题:PHP odin_classes_page_sidebar函数的具体用法?PHP odin_classes_page_sidebar怎么用?PHP odin_classes_page_sidebar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了odin_classes_page_sidebar函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: odin_before_content
/**
* Before Content
* Wraps all WooCommerce content in wrappers which match the theme markup
* @since 2.2.6
* @return void
*/
function odin_before_content()
{
?>
<main id="content" class="<?php
echo odin_classes_page_sidebar();
?>
" tabindex="-1" role="main">
<?php
}
示例2: odin_before_content
/**
* Before Content
* Wraps all WooCommerce content in wrappers which match the theme markup
* @since 2.2.6
* @return void
*/
function odin_before_content()
{
?>
<div id="primary" class="<?php
echo odin_classes_page_sidebar();
?>
">
<main id="main-content" class="site-main" role="main">
<?php
}
示例3: odin_before_content
/**
* Before Content
* Wraps all WooCommerce content in wrappers which match the theme markup
* @since 2.2.6
* @return void
*/
function odin_before_content()
{
global $post;
$product = wc_get_product($post->ID);
if (is_singular() && is_object($product) && $product->is_type('yith_bundle')) {
?>
<main id="content" class="col-md-10" tabindex="-1" role="main">
<?php
} elseif (is_singular()) {
?>
<main id="content" class="<?php
echo odin_classes_page_sidebar();
?>
" tabindex="-1" role="main">
<?php
} else {
?>
<main id="content" class="col-md-12" tabindex="-1" role="main">
<?php
}
}
示例4: odin_classes_page_sidebar
top: auto !important;
}
}
img[Attributes Style] {
width: 100%;
height: 441px;
}
.responsive-image{width: 105% !important; height:auto;}
h1{font-size:x-large !important;}
</style>
<!-- main content -->
<div id="primary" class="<?php
echo odin_classes_page_sidebar();
?>
">
<div class="col offset-l1 l10 s12 white z-depth-1">
<div class="row">
<div class="col l9 ">
<?php
// Start the Loop.
while (have_posts()) {
the_post();
?>
<?php
if (is_single()) {
the_title('<h1 class="entry-title">', '</h1>');
示例5: odin_woocommerce_jigoshop_content_wrapper
/**
* WooCommerce and Jigoshop content wrapper.
*
* @since 2.2.0
*
* @return void
*/
function odin_woocommerce_jigoshop_content_wrapper()
{
echo '<div id="primary" class="' . odin_classes_page_sidebar() . '">';
}