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

PHP training_wpo_theme_options函数代码示例

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

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



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

示例1: training_wpo_cst_customize_register

function training_wpo_cst_customize_register($wp_customize)
{
    $readmore = training_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:morganloehr,项目名称:chris-verna,代码行数:7,代码来源:function.php


示例2: WPO_jsWoocommerce

 function WPO_jsWoocommerce()
 {
     wp_dequeue_script('wc-add-to-cart');
     wp_register_script('wc-add-to-cart', WPO_THEME_URI . '/js/add-to-cart.js', array('jquery'));
     wp_localize_script('wc-add-to-cart', 'woocommerce_localize', array('cart_success' => training_wpo_theme_options('wc_cartnotice_text', esc_html__('Success: Your item has been added to cart!', 'training'))));
     wp_enqueue_script('wc-add-to-cart');
     wp_register_script('noty_js', WPO_THEME_URI . '/js/jquery.noty.packaged.min.js', array('jquery'));
     wp_enqueue_script('noty_js');
 }
开发者ID:morganloehr,项目名称:chris-verna,代码行数:9,代码来源:function.hooks.php


示例3: training_wpo_woo_styles

 function training_wpo_woo_styles()
 {
     $current = training_wpo_theme_options('skin', 'default');
     if ($current == 'default') {
         $path = WPO_THEME_URI . '/css/woocommerce.css';
     } else {
         $path = WPO_THEME_URI . '/css/skins/' . $current . '/woocommerce.css';
     }
     wp_enqueue_style('wpo-woocommerce', $path, 'woocommerce_frontend_styles-css', WPO_THEME_VERSION, 'all');
 }
开发者ID:morganloehr,项目名称:chris-verna,代码行数:10,代码来源:functions.php


示例4: training_wpo_body_class

function training_wpo_body_class($classes)
{
    foreach ($classes as $key => $value) {
        if ($value == 'boxed' || $value == 'default') {
            unset($classes[$key]);
        }
    }
    $classes[] = training_wpo_theme_options('configlayout');
    $classes[] = 'wpo-animate-scroll';
    return $classes;
}
开发者ID:morganloehr,项目名称:chris-verna,代码行数:11,代码来源:layout-hooks.php


示例5: get_query_var

<?php

if (is_front_page()) {
    $paged = get_query_var('page') ? get_query_var('page') : 1;
} else {
    $paged = get_query_var('paged') ? get_query_var('paged') : 1;
}
$column = (int) training_wpo_theme_options('gallery-items-show', 3);
$post_per_page = (int) training_wpo_theme_options('gallery-archive-items', 9);
$args = array('post_type' => 'gallery', 'paged' => $paged, 'posts_per_page' => $post_per_page);
$gallerys = new WP_Query($args);
$col = floor(12 / $column);
$smcol = $col > 4 ? 6 : $col;
$class_column = 'col-lg-' . $col . ' col-md-' . $col . ' col-sm-' . $smcol;
if (have_posts()) {
    echo '<div class="row">';
    while (have_posts()) {
        the_post();
        echo '<div class="' . esc_attr($class_column) . '">';
        get_template_part('templates/gallery/item');
        echo '</div>';
    }
    echo '</div>';
    training_wpo_pagination_nav($post_per_page, $gallerys->found_posts, $gallerys->max_num_pages);
} else {
    get_template_part('templates/none');
}
开发者ID:morganloehr,项目名称:chris-verna,代码行数:27,代码来源:contents-gallery.php


示例6: urlencode

    ?>
&amp;media=<?php 
    echo urlencode($full_image[0]);
    ?>
" target="_blank" title="<?php 
    echo esc_html__('Share on Pinterest', 'training');
    ?>
">
				<i class="fa fa-pinterest"></i>
			</a>
 
		<?php 
}
?>
		<?php 
if ((bool) training_wpo_theme_options('mail_share_blog', true)) {
    ?>
 
			<a class="bo-social-envelope"  data-toggle="tooltip" data-placement="<?php 
    echo esc_attr($args['position']);
    ?>
" data-animation="<?php 
    echo esc_attr($args['animation']);
    ?>
"  data-original-title="Email" href="mailto:?subject=<?php 
    the_title();
    ?>
&amp;body=<?php 
    the_permalink();
    ?>
" title="<?php 
开发者ID:morganloehr,项目名称:chris-verna,代码行数:31,代码来源:sharebox.php


示例7: training_wpo_theme_options

					<?php 
$copyright_text = training_wpo_theme_options('copyright_text', '');
if (!empty($copyright_text)) {
    echo do_shortcode($copyright_text);
} else {
    echo 'Copyright &#169; 2015 - <a>Chris Verna</a> - All rights reserved.<br>';
}
?>
				</address>

				<?php 
if (training_wpo_theme_options('image-payment', '')) {
    ?>
					<div class="payment">
						<img src="<?php 
    echo esc_url(training_wpo_theme_options('image-payment', ''));
    ?>
" />
					</div>
				<?php 
}
?>

			</div>
			<div class="noted-tag">
				<p>Designed by <a href="https://www.notedcontent.com" target="_blank">NOTED.</a></p>
			</div>
		</div>
	</div>

</section>
开发者ID:morganloehr,项目名称:chris-verna,代码行数:31,代码来源:footer.php


示例8: training_wpo_gallery_page_config

/**
 * $Desc
 *
 * @version    $Id$
 * @package    wpbase
 * @author     WPOpal  Team <[email protected], [email protected]>
 * @copyright  Copyright (C) 2015 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
 */
global $trainingconfig;
$trainingconfig = training_wpo_gallery_page_config();
$column = training_wpo_theme_options('gallery-archive-column', 4);
$class = floor(12 / $column);
get_header($wpoEngine->getHeaderLayout());
?>
  
<?php 
do_action('training_wpo_layout_breadcrumbs_render');
?>
   
  
<?php 
do_action('training_wpo_layout_template_before');
?>
        <?php 
if (have_posts()) {
    ?>
开发者ID:morganloehr,项目名称:chris-verna,代码行数:30,代码来源:archive-gallery.php


示例9: while

	<div class="featured">
		<?php 
    while ($featured->have_posts()) {
        $featured->the_post();
        ?>
			<?php 
        get_template_part('content-featured');
        ?>
		<?php 
    }
    ?>
	
	</div><!--/.featured-->
	
<?php 
} elseif (is_home() && !is_paged() && training_wpo_theme_options('featured-posts-count') != '0') {
    // Show slider if posts are not 1 or 0
    ?>
	
	<script type="text/javascript">
		// Check if first slider image is loaded, and load flexslider on document ready
		jQuery(document).ready(function(){
		 var firstImage = jQuery('#flexslider-featured').find('img').filter(':first'),
			checkforloaded = setInterval(function() {
				var image = firstImage.get(0);
				if (image.complete || image.readyState == 'complete' || image.readyState == 4) {
					clearInterval(checkforloaded);
					
					jQuery('#flexslider-featured').flexslider({
						animation: "slide",
						useCSS: false, // Fix iPad flickering issue
开发者ID:morganloehr,项目名称:chris-verna,代码行数:31,代码来源:featured.php


示例10: post_class

?>
" <?php 
post_class();
?>
>
           <div class="post-container">
              <div class="entry-content no-border">
                 <?php 
the_content();
?>
                 <?php 
wp_link_pages();
?>
              </div>
              <?php 
if (training_wpo_theme_options('show-share-portfolio', true)) {
    ?>
                 <div class="post-share">
                  <div class="row">
                    <div class="col-sm-12">
                       <div class="pull-left">
                          <?php 
    training_wpo_share_box();
    ?>
                       </div>      
                    </div>
                  </div>
              </div>
              <?php 
}
?>
开发者ID:morganloehr,项目名称:chris-verna,代码行数:31,代码来源:content-fullscreen.php


示例11: get_header

/**
 * $Desc
 *
 * @version    $Id$
 * @package    wpbase
 * @author     WPOpal  Team <[email protected], [email protected]>
 * @copyright  Copyright (C) 2015 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
 */
global $trainingconfig;
$trainingconfig = $wpoEngine->getPostConfig();
get_header(training_wpo_theme_options('headerlayout'));
?>
  
<?php 
do_action('training_wpo_layout_breadcrumbs_render');
?>
   
  
<?php 
do_action('training_wpo_layout_template_before');
?>
        <?php 
if (have_posts()) {
    ?>
         
                <?php 
开发者ID:morganloehr,项目名称:chris-verna,代码行数:30,代码来源:archive.php


示例12: training_wpo_theme_options

                            </div>
                        <?php 
}
?>
                    </div>
                    
                    <!-- MENU -->
                    <div class="wpo-mainmenu-wrap col-lg-10 col-md-10 col-sm-12 col-xs-12 position-static">
                        
                        <div class="mainmenu-content-wapper">
                            <div class="mainmenu-content text-right">
                                <nav id="wpo-mainnav" data-duration="<?php 
echo training_wpo_theme_options('megamenu-duration', 400);
?>
" class="style-dark padding-large position-static  wpo-megamenu <?php 
echo training_wpo_theme_options('magemenu-animation', 'slide');
?>
 animate navbar navbar-mega" role="navigation">
                                    
                                     <?php 
$args = array('theme_location' => 'mainmenu', 'container_class' => 'collapse navbar-collapse navbar-ex1-collapse space-padding-0', 'menu_class' => 'nav navbar-nav megamenu', 'fallback_cb' => '', 'menu_id' => 'main-menu', 'walker' => class_exists("Wpo_Megamenu") ? new Wpo_Megamenu() : new Training_Wpo_bootstrap_navwalker());
wp_nav_menu($args);
?>
                                </nav>
                            </div>
                        </div>    
                       
                    </div>    
                    <!-- //MENU -->
                    <div class="box-quick-action hidden-xs hidden-sm">
                        <div class="search_form hidden-input">
开发者ID:morganloehr,项目名称:chris-verna,代码行数:31,代码来源:header-v1.php


示例13: get_header

<?php

/**
 * $Desc
 *
 * @version    $Id$
 * @package    wpbase
 * @author     Opal  Team <[email protected] >
 * @copyright  Copyright (C) 2015 wpopal.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * @website  http:/wpopal.com
 * @support  http://wpopal.com
 */
global $trainingconfig;
get_header(training_wpo_theme_options('headerlayout', ''));
if (is_single()) {
    $trainingconfig = training_wpo_config_layout(training_wpo_theme_options('woocommerce-single-layout', 'fullwidth'));
    wc_get_template('single-product.php', array('config' => $trainingconfig));
} else {
    $trainingconfig = training_wpo_config_layout(training_wpo_theme_options('woocommerce-archive-layout', 'fullwidth'));
    wc_get_template('archive-product.php', array('config' => $trainingconfig));
}
get_footer();
开发者ID:morganloehr,项目名称:chris-verna,代码行数:24,代码来源:woocommerce.php


示例14: training_wpo_theme_options

<?php

if (training_wpo_theme_options('preloader', 0) == '1') {
    ?>
  <div id="jpreContent" >
            <div id="jprecontent-inner">
                <div class="site-logo">
                    <?php 
    $preloader_logo = training_wpo_theme_options('image-preloader', get_template_directory_uri() . '/images/logo-preloader.png');
    ?>
                    <?php 
    if (!empty($preloader_logo)) {
        ?>
                        <img src="<?php 
        echo esc_url($preloader_logo);
        ?>
" alt="<?php 
        bloginfo('name');
        ?>
" />
                    <?php 
    }
    ?>
                </div>
                <div class="preloader-wrapper big active">
                  <div class="spinner-layer spinner-blue-only">
                    <div class="circle-clipper left">
                      <div class="circle"></div>
                    </div><div class="gap-patch">
                      <div class="circle"></div>
                    </div><div class="circle-clipper right">
开发者ID:morganloehr,项目名称:chris-verna,代码行数:31,代码来源:preloader.php


示例15: empty

<?php

global $trainingconfig;
?>
 
<?php 
if ($trainingconfig['left-sidebar']['show']) {
    $pos = empty($trainingconfig['left-sidebar']) ? training_wpo_theme_options('left-sidebar') : $trainingconfig['left-sidebar']['widget'];
    ?>
	<div class="<?php 
    echo esc_attr($trainingconfig['left-sidebar']['class']);
    ?>
">
		<div class="wpo-sidebar wpo-sidebar-left">
			<div class="sidebar-inner">
				<?php 
    dynamic_sidebar($pos);
    ?>
			</div>
 
		</div>
	</div>
<?php 
}
?>
 
开发者ID:morganloehr,项目名称:chris-verna,代码行数:25,代码来源:sidebar-left.php


示例16: get_query_var

<?php

global $portfolio, $trainingconfig, $column;
if (is_front_page()) {
    $paged = get_query_var('page') ? get_query_var('page') : 1;
} else {
    $paged = get_query_var('paged') ? get_query_var('paged') : 1;
}
if (is_page()) {
    $options = array('portfolio_number' => 8, 'portfolio_style' => '', 'portfolio_columns' => 2);
    $trainingconfig = array_merge($options, $trainingconfig);
    $style = $trainingconfig['portfolio_style'];
    $post_per_page = $trainingconfig['portfolio_number'];
    $column = $trainingconfig['portfolio_columns'];
    $args = array('post_type' => 'portfolio', 'paged' => $paged, 'posts_per_page' => $post_per_page);
    $portfolio = new WP_Query($args);
} else {
    $style = training_wpo_theme_options('portfolio-style', 'style-1');
    $column = (int) training_wpo_theme_options('portfolio-items-show', 4);
    $post_per_page = get_option('posts_per_page');
    $args = array('post_type' => 'portfolio', 'paged' => $paged, 'posts_per_page' => $post_per_page);
    $portfolio = new WP_Query($args);
}
if (have_posts()) {
    get_template_part('templates/portfolio/portfolio', $style);
    training_wpo_pagination_nav($post_per_page, $portfolio->found_posts, $portfolio->max_num_pages);
} else {
    get_template_part('templates/elements/none');
}
开发者ID:morganloehr,项目名称:chris-verna,代码行数:29,代码来源:contents-portfolio.php


示例17: training_wpo_print_style_footer

 function training_wpo_print_style_footer()
 {
     $footer = training_wpo_theme_options('footer-style', 'default');
     global $trainingconfig;
     if ('page' == get_post_type()) {
         if ($trainingconfig['footer_skin'] && $trainingconfig['footer_skin'] != 'global') {
             $footer = $trainingconfig['footer_skin'];
         }
     }
     if ($footer != 'default') {
         $shortcodes_custom_css = get_post_meta($footer, '_wpb_shortcodes_custom_css', true);
         if (!empty($shortcodes_custom_css)) {
             echo '<style>
           ' . $shortcodes_custom_css . '
         </style>
       ';
         }
     }
 }
开发者ID:morganloehr,项目名称:chris-verna,代码行数:19,代码来源:theme.php


示例18: training_wpo_theme_options

<?php

global $trainingconfig;
$pos = training_wpo_theme_options('woocommerce-archive-right-sidebar');
?>

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


示例19: esc_url

									</div>    
								</div>    
								<!-- //MENU -->

								<!-- LOGO -->
								<div id="logo-inner" class="logo-in-theme text-center col-xs-12">
									<?php 
if (training_wpo_theme_options('logo')) {
    ?>
									<div class="logo">
										<a href="<?php 
    echo esc_url(home_url('/'));
    ?>
">
											<img src="<?php 
    echo esc_url_raw(training_wpo_theme_options('logo'));
    ?>
" alt="<?php 
    bloginfo('name');
    ?>
">
										</a>
									</div>
									<?php 
} else {
    ?>
									<div class="logo logo-theme">
										<a href="<?php 
    echo esc_url(home_url('/'));
    ?>
">
开发者ID:morganloehr,项目名称:chris-verna,代码行数:31,代码来源:header-absolute-center.php


示例20:

 * @version    $Id$
 * @package    wpbase
 * @author     WPOpal  Team <[email protected], [email protected]>
 * @copyright  Copyright (C) 2015 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 (training_wpo_theme_options('post-title')) {
    ?>
				<h3 class="entry-title pull-left">
					<?php 
    the_title();
    ?>
				</h3>
			<?php 
}
?>

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



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP trait_exists函数代码示例发布时间:2022-05-23
下一篇:
PHP trailingslashit函数代码示例发布时间: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