本文整理汇总了PHP中training_wpo_theme_options函数的典型用法代码示例。如果您正苦于以下问题:PHP training_wpo_theme_options函数的具体用法?PHP training_wpo_theme_options怎么用?PHP training_wpo_theme_options使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了training_wpo_theme_options函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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';
}
示例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');
}
示例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');
}
示例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;
}
示例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');
}
示例6: urlencode
?>
&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();
?>
&body=<?php
the_permalink();
?>
" title="<?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 © 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>
示例8: training_wpo_gallery_page_config
/**
* $Desc
*
* @version $Id$
* @package wpbase
* @author WPOpal Team <wpopal@gmail.com, support@wpopal.com>
* @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()) {
?>
示例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
示例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
}
?>
示例11: get_header
/**
* $Desc
*
* @version $Id$
* @package wpbase
* @author WPOpal Team <wpopal@gmail.com, support@wpopal.com>
* @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
示例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">
示例13: get_header
<?php
/**
* $Desc
*
* @version $Id$
* @package wpbase
* @author Opal Team <opalwordpressl@gmail.com >
* @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();
示例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">
示例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
}
?>