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

PHP wpo_theme_options函数代码示例

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

本文整理汇总了PHP中wpo_theme_options函数的典型用法代码示例。如果您正苦于以下问题:PHP wpo_theme_options函数的具体用法?PHP wpo_theme_options怎么用?PHP wpo_theme_options使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了wpo_theme_options函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: wpo_cst_customize_register

function wpo_cst_customize_register($wp_customize)
{
    $readmore = wpo_theme_options('post_readmore');
    $wp_customize->get_setting('blogname')->transport = 'postMessage';
    $wp_customize->get_setting('blogdescription')->transport = 'postMessage';
    $wp_customize->get_setting('header_textcolor')->transport = 'postMessage';
}
开发者ID:jimmitjoo,项目名称:mnh,代码行数:7,代码来源:function.php


示例2: __construct

 /**
  * __construct function.
  *
  * @access public
  * @return void
  */
 public function __construct($id = 0)
 {
     add_filter('nav_menu_css_class', array($this, 'special_nav_class'), 10, 2);
     $this->_editStringCol = ' data-colwidth="%s" data-class="%s" ';
     $this->isLiveEdit = is_admin();
     if ($this->isLiveEdit && isset($_GET['group']) && $_GET['group']) {
         $menugroup = (int) $_GET['group'];
     } else {
         $menugroup = wpo_theme_options('verticalmenu', 2);
     }
     $a = get_option("WPO_MEGAMENU_VERTICAL_DATA-" . ($id ? $id : $menugroup));
     if ($a) {
         $this->megaConfig = unserialize($a);
     }
 }
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:21,代码来源:megamenu-vertical.php


示例3: get_header

*Template Name: 404 Page
*/
?>

<?php 
get_header($wpoEngine->getHeaderLayout());
?>

<section class="wpo-mainbody clearfix 404-page">
	<section class="container">
		<div class="page_not_found text-center clearfix">
			<h1 class="skin_color error-title">404</h1>
			<div class="col-sm-6 col-sm-offset-3">
				<header class="h1 error-content text-none">
					<?php 
echo wpo_theme_options('404', 'Oops 404 again! That page can\'t be found.');
?>
				</header>
				<footer class="page-footer">
					<p>It looks like nothing was found at this location. Maybe try one of the links below?</p>
					<?php 
get_search_form();
?>
				</footer>
			</div>
		</div>
	</section>
</section>

<?php 
get_footer();
开发者ID:jimmitjoo,项目名称:mnh,代码行数:31,代码来源:404.php


示例4: ATCF_Campaign

<?php

$campaign = new ATCF_Campaign(get_the_ID());
$uid = wpo_makeid();
$color = "#FED857";
switch (wpo_theme_options('skin', 'default')) {
    case 'blue':
        $color = "#41A4DC";
        break;
    case 'brown':
        $color = "#887161";
        break;
    default:
        $color = "#FED857";
        break;
}
if ($campaign === false) {
    return;
}
?>

	<div class="item-content item-campaign-wrapper style-2">	
		<div class="entry-thumbnail text-center">
			<?php 
the_post_thumbnail('thumbnails-crowdfunding');
?>
			<div class="donate-now">
				<button type="button" class="btn btn-slide" data-toggle="modal" data-target="#campaign-donate-<?php 
echo esc_attr(get_the_ID() . "-{$uid}");
?>
">
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:campaign-style-2.php


示例5: wpo_theme_options

if (!wpo_theme_options('wc_show_upsells', false)) {
    if (!defined('ABSPATH')) {
        exit;
    }
    // Exit if accessed directly
    global $product, $woocommerce_loop;
    $upsells = $product->get_upsells();
    $posts_per_page = wpo_theme_options('woo-number-product-single', 6);
    if (sizeof($upsells) == 0) {
        return;
    }
    $meta_query = WC()->query->get_meta_query();
    $args = array('post_type' => 'product', 'ignore_sticky_posts' => 1, 'no_found_rows' => 1, 'posts_per_page' => $posts_per_page, 'orderby' => $orderby, 'post__in' => $upsells, 'post__not_in' => array($product->id), 'meta_query' => $meta_query);
    $_count = 1;
    $products = new WP_Query($args);
    $columns_count = wpo_theme_options('product-number-columns', 3);
    $class_column = 'col-sm-' . floor(12 / $columns_count);
    $woocommerce_loop['columns'] = $columns;
    if ($products->have_posts()) {
        ?>

		<div class="widget widget-products upsells products product-single">
			<div class="background"></div>
			<h3 class="widget-title visual-title">
		        <span><span><?php 
        _e('You may also like&hellip;', 'woocommerce');
        ?>
</span></span>
			</h3>
			<div class="woocommerce">
				<div class="widget-content <?php 
开发者ID:jimmitjoo,项目名称:mnh,代码行数:31,代码来源:up-sells.php


示例6: wpo_theme_options

<?php

/**
 * Single Product Image
 *
 * @author 		YIThemes
 * @package 	YITH_Magnifier/Templates
 * @version     1.1.2
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
$skin = wpo_theme_options('skin', 'fashion');
if (empty($skin) || $skin == 'default') {
    $skin = 'fashion';
}
$enable_slider = get_option('yith_wcmg_enableslider') == 'yes' ? true : false;
wc_get_template_part('skin/' . $skin . '/product', 'image-magnifier');
?>
   
<script type="text/javascript" charset="utf-8">
    var yith_magnifier_options = {
        enableSlider: <?php 
echo $enable_slider ? 'true' : 'false';
?>
,

        <?php 
if ($enable_slider) {
    ?>
开发者ID:jimmitjoo,项目名称:mnh,代码行数:31,代码来源:product-image-magnifier.php


示例7: wpo_theme_options

        break;
    case 'download':
        $wpopconfig = $wpoEngine->getCampaignConfig();
        $_breadcrumb = wpo_theme_options('campaign_show-breadcrumb', true);
        $_showtitle = wpo_theme_options('campaign_show-title', true);
        break;
    default:
        $wpopconfig = $wpoEngine->getBlogConfig();
        $_breadcrumb = wpo_theme_options('blog_show-breadcrumb', true);
        $_showtitle = wpo_theme_options('blog_show-title', true);
        break;
}
?>

<?php 
get_header(wpo_theme_options('headerlayout'));
?>

<section id="wpo-mainbody" class="wpo-mainbody clearfix main-page">
    <?php 
if ($_breadcrumb) {
    ?>
      <?php 
    wpo_breadcrumb($_showtitle);
    ?>
  <?php 
}
?>

     <div class="wrapper-content"> 
        <div class="container"><div class="container-inner">
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:archive.php


示例8: die

 *
 * @package TribeEventsCalendar
 * @since  3.0
 * @author Modern Tribe Inc.
 *
 */
if (!defined('ABSPATH')) {
    die('-1');
}
?>

<?php 
$GLOBALS['more'] = false;
$GLOBALS['wpv_pretty_tribe_date_headers'] = true;
$GLOBALS['wpv_pretty_tribe_date_headers_first'] = true;
$column = wpo_theme_options('event-archive-column', 2);
$class = "col-lg-4 col-md-4 col-sm-12 col-xs-12";
switch ($column) {
    case '2':
        $class = "col-lg-6 col-md-6 col-sm-6 col-xs-12";
        break;
    case '3':
        $class = "col-lg-4 col-md-4 col-sm-12 col-xs-12";
        break;
    case '4':
        $class = "col-lg-3 col-md-3 col-sm-6 col-xs-12";
        break;
    case '6':
        $class = "col-lg-2 col-md-2 col-sm-6 col-xs-12";
        break;
    default:
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:loop.php


示例9: esc_attr

<?php

global $wpopconfig;
$pos = esc_attr(wpo_theme_options('woocommerce-archive-left-sidebar'));
?>
 
<?php 
if ($wpopconfig['left-sidebar']['show']) {
    ?>
	<div class="<?php 
    echo $wpopconfig['left-sidebar']['class'];
    ?>
">
		<div class="wpo-sidebar wpo-sidebar-left">
			<div class="sidebar-inner">
				<?php 
    dynamic_sidebar($pos);
    ?>
			</div>
 
		</div>
	</div>
<?php 
}
?>
 
开发者ID:jimmitjoo,项目名称:mnh,代码行数:25,代码来源:sidebar-shop-left.php


示例10: wpo_theme_options

<?php

global $wpopconfig;
$pos = wpo_theme_options('woocommerce-archive-right-sidebar');
?>

<?php 
if ($wpopconfig['right-sidebar']['show']) {
    ?>
	<div class="<?php 
    echo $wpopconfig['right-sidebar']['class'];
    ?>
">
		<div class="wpo-sidebar wpo-sidebar-right">
			<div class="sidebar-inner">
				<?php 
    dynamic_sidebar($pos);
    ?>
			</div>
		</div>
	</div>
<?php 
}
开发者ID:jimmitjoo,项目名称:mnh,代码行数:23,代码来源:sidebar-shop-right.php


示例11: wc_loop_shop_columns

 public function wc_loop_shop_columns()
 {
     return wpo_theme_options('wc_itemsrow', 3);
 }
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:4,代码来源:woocommerce.php


示例12: wpo_share_box

</h6>
		                                        </div>
		                                        <div class="col-sm-8">
		                                            <?php 
        wpo_share_box();
        ?>
		                                        </div>
		                                    </div>
		                                </div>
	                                <?php 
    }
    ?>

	                                <?php 
    if (wpo_theme_options('show-related-portfolio')) {
        $relate_count = wpo_theme_options('portfolio-items-show', 4);
        wpo_related_post($relate_count, 'portfolio', 'Categories');
    }
    ?>
								</div>
							</article>
						</div>
					<?php 
}
?>
				</div>
			</div>
				<!-- //MAIN CONTENT -->
				<?php 
get_sidebar('right');
?>
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:single-portfolio.php


示例13: wpo_theme_options

" />
                                    </a>
                                </div>
                            <?php 
}
?>
                        </div>
                        <div class="col-lg-9 col-md-10 col-sm-12 col-xs-12">
                            <div class="wpo-mainmenu-wrap">
                                <div class="mainmenu-content-wapper">
                                    <div class="mainmenu-content">
                                        <nav id="wpo-mainnav" data-duration="<?php 
echo wpo_theme_options('megamenu-duration', 400);
?>
" class="wpo-megamenu <?php 
echo wpo_theme_options('magemenu-animation', 'slide');
?>
 animate navbar navbar-mega" role="navigation">
                                            <div class="navbar-header">
                                                <?php 
wpo_renderButtonToggle();
?>
                                            </div><!-- //END #navbar-header -->
                                            <?php 
$args = array('theme_location' => 'mainmenu', 'container_class' => 'collapse navbar-collapse navbar-ex1-collapse', 'menu_class' => 'nav navbar-nav megamenu', 'fallback_cb' => '', 'menu_id' => 'main-menu', 'walker' => new Wpo_Megamenu());
wp_nav_menu($args);
?>
                                        </nav>
                                    </div> 
                                </div>    
                            </div>   
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:header-skin-4.php


示例14: empty

<?php

global $wpopconfig;
$sidebar_left = empty($wpopconfig['left-sidebar']) ? wpo_theme_options('left-sidebar') : $wpopconfig['left-sidebar']['widget'];
?>
 
<?php 
if ($wpopconfig['left-sidebar']['show']) {
    ?>
	<div class="<?php 
    echo esc_attr($wpopconfig['left-sidebar']['class']);
    ?>
">
	<?php 
    if (is_active_sidebar($sidebar_left)) {
        ?>
		<div class="wpo-sidebar wpo-sidebar-left">
			<div class="sidebar-inner">
				<?php 
        dynamic_sidebar($sidebar_left);
        ?>
			</div>
		</div>
	<?php 
    }
    ?>
	</div>
<?php 
}
?>
 
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:30,代码来源:sidebar-left.php


示例15: get_template_part

		</div>

		<div class="author-about">
			<?php 
get_template_part('templates/author-bio');
?>
		</div>

		<?php 
comments_template();
?>

		<!-- Related Posts -->

		<?php 
if (wpo_theme_options('show_related')) {
    ?>
			<div class="wpo-related-post">
				<?php 
    $post_number = wpo_theme_options('limit-post', 4);
    //$post_number = 4;
    wpo_related_post($post_number, 'post', 'category');
    ?>
			</div>
		<?php 
}
?>

	</div><!--  End .post-container -->

</article>
开发者ID:jimmitjoo,项目名称:mnh,代码行数:31,代码来源:single.php


示例16: wpo_theme_options

<?php

global $wpopconfig;
if (is_product()) {
    $sidebar_right = wpo_theme_options('woocommerce-single-right-sidebar', 'sidebar-right');
} else {
    $sidebar_right = wpo_theme_options('woocommerce-archive-right-sidebar', 'sidebar-right');
}
?>

<?php 
if ($wpopconfig['right-sidebar']['show']) {
    ?>
	<div class="<?php 
    echo esc_attr($wpopconfig['right-sidebar']['class']);
    ?>
">
		<?php 
    if (is_active_sidebar($sidebar_right)) {
        ?>
			<div class="wpo-sidebar wpo-sidebar-right">
				<div class="sidebar-inner">
					<?php 
        dynamic_sidebar($sidebar_right);
        ?>
				</div>
			</div>
		<?php 
    }
    ?>
	</div>
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:sidebar-shop-right.php


示例17: __

<?php

if ($relates->have_posts()) {
    ?>
		<div class="widget">
            <h4 class="related-post-title margin-bottom-30 widget-title">
                <span><?php 
    echo __('Related post', TEXTDOMAIN);
    ?>
</span>
            </h4>

            <div class="related-posts-content">
                <div class="row">
        		<?php 
    $column = wpo_theme_options('post-number-columns', 4);
    $class_column = floor(12 / $column);
    while ($relates->have_posts()) {
        $relates->the_post();
        ?>
            			<div class="col-sm-<?php 
        echo esc_attr($class_column);
        ?>
 col-md-<?php 
        echo esc_attr($class_column);
        ?>
 col-lg-<?php 
        echo esc_attr($class_column);
        ?>
">
                            <div class="element-item">
开发者ID:WestBayResidential,项目名称:wbrsorg,代码行数:31,代码来源:default_related_post.php


示例18: array

$args = array('theme_location' => 'mainmenu', 'container_class' => 'collapse navbar-collapse navbar-ex1-collapse', 'menu_class' => 'nav navbar-nav megamenu', 'fallback_cb' => '', 'menu_id' => 'main-menu', 'walker' => new Wpo_Megamenu());
wp_nav_menu($args);
?>
                            </nav>

                            <div class="search hidden-sm hidden-xs">
                                 <?php 
get_search_form();
?>
                            </div>

                            <?php 
if (WPO_WOOCOMMERCE_ACTIVED) {
    ?>
                                <?php 
    if (wpo_theme_options('woo-show-minicart', true)) {
        ?>
                                    <div class="top-cart hidden-sm hidden-xs">
                                        <?php 
        wpo_cartdropdown();
        ?>
                                    </div>
                                <?php 
    }
    ?>
                            <?php 
}
?>

                        </div>  
                    </div>
开发者ID:jimmitjoo,项目名称:mnh,代码行数:31,代码来源:header-gifts.php


示例19: do_action

/**
 * woocommerce_single_product_summary hook
 *
 * @hooked woocommerce_template_single_title - 5
 * @hooked woocommerce_template_single_rating - 10
 * @hooked woocommerce_template_single_price - 10
 * @hooked woocommerce_template_single_excerpt - 20
 * @hooked woocommerce_template_single_add_to_cart - 30
 * @hooked woocommerce_template_single_meta - 40
 * @hooked woocommerce_template_single_sharing - 50
 */
do_action('woocommerce_single_product_summary');
?>

							<?php 
if (wpo_theme_options('wc_show_share_social', true)) {
    ?>
							<div class="addthis">
								<!-- AddThis Button BEGIN -->
								<div class="addthis_toolbox addthis_default_style">
									<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
									<a class="addthis_button_tweet"></a>
									<a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
									<a class="addthis_counter addthis_pill_style"></a>
								</div>
								<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-533e342d186e8c37"></script>
								<!-- AddThis Button END -->
							</div>
						<?php 
}
?>
开发者ID:jimmitjoo,项目名称:mnh,代码行数:31,代码来源:content-single-product.php


示例20:

 * @version    $Id$
 * @package    wpbase
 * @author     WPOpal  Team <[email protected], [email protected]>
 * @copyright  Copyright (C) 2014 wpopal.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * @website  http://www.wpopal.com
 * @support  http://www.wpopal.com/support/forum.html
 */
?>

 
	<div class="post-container">
		<header class="header-title clearfix">
			<?php 
if (wpo_theme_options('post-title')) {
    ?>
				<h2 class="entry-title pull-left">
					<?php 
    the_title();
    ?>
				</h2>
			<?php 
}
?>

			<div class="pull-right">
			    <?php 
if (get_previous_post_link() != '') {
    ?>
			    <div class="btn btn-link">
开发者ID:jimmitjoo,项目名称:mnh,代码行数:31,代码来源:content-portfolio.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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