本文整理匯總了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() . '">';
}