当前位置: 首页>>代码示例>>PHP>>正文


PHP kt_option函数代码示例

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


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

示例1: kt_register_sidebars

 function kt_register_sidebars()
 {
     register_sidebar(array('name' => esc_html__('Primary Widget Area', 'adroit'), 'id' => 'primary-widget-area', 'description' => esc_html__('The primary widget area', 'adroit'), 'before_widget' => '<div id="%1$s" class="widget-container %2$s"><div class="widget-inner">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
     register_sidebar(array('name' => esc_html__('Blog Widget Area', 'adroit'), 'id' => 'blog-widget-area', 'description' => esc_html__('The blog widget area', 'adroit'), 'before_widget' => '<div id="%1$s" class="widget-container %2$s"><div class="widget-inner">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
     register_sidebar(array('name' => esc_html__('Side Area', 'adroit'), 'id' => 'side-widget-area', 'description' => esc_html__('The side widget area', 'adroit'), 'before_widget' => '<div id="%1$s" class="widget-container %2$s"><div class="widget-inner">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
     register_sidebar(array('name' => esc_html__('Promo Area', 'adroit'), 'id' => 'promo-area', 'description' => esc_html__('IMPORTANT: For best result select set number of widget to 3.', 'adroit'), 'before_widget' => '<div id="%1$s" class="widget-container %2$s"><div class="widget-inner">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
     $count = 5;
     for ($i = 1; $i <= $count; $i++) {
         register_sidebar(array('name' => sprintf(esc_html__('Sidebar %s', 'adroit'), $i), 'id' => 'sidebar-column-' . $i, 'description' => sprintf(esc_html__('The sidebar column %s widget area', 'adroit'), $i), 'before_widget' => '<div class="widget-container %2$s"><div class="widget-inner">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
     }
     register_sidebar(array('name' => esc_html__('Instagram Footer', 'adroit'), 'id' => 'instagram-footer', 'before_widget' => '<div id="%1$s" class="instagram-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<!--', 'after_title' => '-->', 'description' => esc_html__('Use the Instagram widget here. IMPORTANT: For best result select "Small" under "Photo Size" and set number of photos to 6.', 'adroit')));
     register_sidebar(array('name' => esc_html__('Footer top', 'adroit'), 'id' => 'footer-top', 'description' => esc_html__('The footer top widget area', 'adroit'), 'before_widget' => '<div id="%1$s" class="widget-container %2$s"><div class="widget-inner">', 'after_widget' => '</div></div>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>'));
     $count = 4;
     for ($i = 1; $i <= $count; $i++) {
         register_sidebar(array('name' => sprintf(esc_html__('Footer column %s', 'adroit'), $i), 'id' => 'footer-column-' . $i, 'description' => sprintf(esc_html__('The footer column %s widget area', 'adroit'), $i), 'before_widget' => '<div id="%1$s" class="widget-container %2$s"><div class="widget-inner">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
     }
     register_sidebar(array('name' => esc_html__('Footer bottom column 1', 'adroit'), 'id' => 'footer-bottom-1', 'description' => esc_html__('The footer bottom widget area', 'adroit'), 'before_widget' => '<div id="%1$s" class="widget-footer-bottom %2$s">', 'after_widget' => '</div>', 'before_title' => '<!--', 'after_title' => '-->'));
     register_sidebar(array('name' => esc_html__('Footer bottom column 2', 'adroit'), 'id' => 'footer-bottom-2', 'description' => esc_html__('The footer bottom widget area', 'adroit'), 'before_widget' => '<div id="%1$s" class="widget-footer-bottom %2$s">', 'after_widget' => '</div>', 'before_title' => '<!--', 'after_title' => '-->'));
     $sidebars = kt_option('custom_sidebars');
     if (!empty($sidebars) && is_array($sidebars)) {
         foreach ($sidebars as $sidebar) {
             $sidebar = wp_parse_args($sidebar, array('title' => '', 'description' => ''));
             if ($sidebar['title'] != '') {
                 $id = sanitize_title($sidebar['title']);
                 register_sidebar(array('name' => $sidebar['title'], 'id' => $id, 'description' => $sidebar['description'], 'before_widget' => '<div id="%1$s" class="widget-container %2$s"><div class="widget-inner">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
             }
         }
     }
 }
开发者ID:websideas,项目名称:aquila,代码行数:29,代码来源:widgets.php

示例2: kt_register_sidebars

 function kt_register_sidebars()
 {
     register_sidebar(array('name' => esc_html__('Primary Widget Area', 'mondova'), 'id' => 'primary-widget-area', 'description' => esc_html__('The primary widget area', 'mondova'), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
     register_sidebar(array('name' => esc_html__('Shop Widget Area', 'wingman'), 'id' => 'shop-widget-area', 'description' => esc_html__('The shop widget area', 'wingman'), 'before_widget' => '<div id="%1$s" class="widget clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
     register_sidebar(array('name' => esc_html__('Blog Widget Area', 'mondova'), 'id' => 'blog-widget-area', 'description' => esc_html__('The blog widget area', 'mondova'), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
     $count = 5;
     for ($i = 1; $i <= $count; $i++) {
         register_sidebar(array('name' => sprintf(esc_html__('Sidebar %s', 'mondova'), $i), 'id' => 'sidebar-column-' . $i, 'description' => sprintf(esc_html__('The sidebar column %s widget area', 'mondova'), $i), 'before_widget' => '<section class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
     }
     register_sidebar(array('name' => esc_html__('Footer top', 'mondova'), 'id' => 'footer-top', 'description' => esc_html__('The footer top widget area', 'mondova'), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h4 class="widget-title">', 'after_title' => '</h4>'));
     $count = 4;
     for ($i = 1; $i <= $count; $i++) {
         register_sidebar(array('name' => sprintf(esc_html__('Footer column %s', 'mondova'), $i), 'id' => 'footer-column-' . $i, 'description' => sprintf(esc_html__('The footer column %s widget area', 'mondova'), $i), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
     }
     register_sidebar(array('name' => esc_html__('Footer bottom column 1', 'mondova'), 'id' => 'footer-bottom-1', 'description' => esc_html__('The footer bottom widget area', 'mondova'), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<!--', 'after_title' => '-->'));
     register_sidebar(array('name' => esc_html__('Footer bottom column 2', 'mondova'), 'id' => 'footer-bottom-2', 'description' => esc_html__('The footer bottom widget area', 'mondova'), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<!--', 'after_title' => '-->'));
     $sidebars = kt_option('custom_sidebars');
     if (!empty($sidebars) && is_array($sidebars)) {
         foreach ($sidebars as $sidebar) {
             $sidebar = wp_parse_args($sidebar, array('title' => '', 'description' => ''));
             if ($sidebar['title'] != '') {
                 $id = sanitize_title($sidebar['title']);
                 register_sidebar(array('name' => $sidebar['title'], 'id' => $id, 'description' => $sidebar['description'], 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
             }
         }
     }
 }
开发者ID:websideas,项目名称:Mondova,代码行数:27,代码来源:widgets.php

示例3: widget

 public function widget($args, $instance)
 {
     $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
     echo $args['before_widget'];
     if ($title) {
         echo $args['before_title'] . $title . $args['after_title'];
     }
     $attachment = kt_get_thumbnail_attachment($instance['attachment'], $instance['size']);
     $value = isset($instance['value']) ? $instance['value'] : '';
     if ($attachment) {
         printf('<div class="kt-aboutwidget-img"><img src="%s" alt="%s" class="img-responsive" title="%s"/></div>', esc_url($attachment['url']), esc_attr($attachment['alt']), esc_attr($attachment['title']));
     }
     if ($instance['description']) {
         printf('<div class="kt-aboutwidget-text">%s</div>', $instance['description']);
     }
     $socials_arr = array('facebook' => array('title' => esc_html__('Facebook', 'adroit'), 'icon' => 'fa fa-facebook', 'link' => '%s'), 'twitter' => array('title' => esc_html__('Twitter', 'adroit'), 'icon' => 'fa fa-twitter', 'link' => 'http://www.twitter.com/%s'), 'dribbble' => array('title' => esc_html__('Dribbble', 'adroit'), 'icon' => 'fa fa-dribbble', 'link' => 'http://www.dribbble.com/%s'), 'vimeo' => array('title' => esc_html__('Vimeo', 'adroit'), 'icon' => 'fa fa-vimeo-square', 'link' => 'http://www.vimeo.com/%s'), 'tumblr' => array('title' => esc_html__('Tumblr', 'adroit'), 'icon' => 'fa fa-tumblr', 'link' => 'http://%s.tumblr.com/'), 'skype' => array('title' => esc_html__('Skype', 'adroit'), 'icon' => 'fa fa-skype', 'link' => 'skype:%s'), 'linkedin' => array('title' => esc_html__('LinkedIn', 'adroit'), 'icon' => 'fa fa-linkedin', 'link' => '%s'), 'googleplus' => array('title' => esc_html__('Google Plus', 'adroit'), 'icon' => 'fa fa-google-plus', 'link' => '%s'), 'youtube' => array('title' => esc_html__('Youtube', 'adroit'), 'icon' => 'fa fa-youtube', 'link' => 'http://www.youtube.com/user/%s'), 'pinterest' => array('title' => esc_html__('Pinterest', 'adroit'), 'icon' => 'fa fa-pinterest', 'link' => 'http://www.pinterest.com/%s'), 'instagram' => array('title' => esc_html__('Instagram', 'adroit'), 'icon' => 'fa fa-instagram', 'link' => 'http://instagram.com/%s'));
     foreach ($socials_arr as $k => &$v) {
         $val = kt_option($k);
         $v['val'] = $val ? $val : '';
     }
     ?>
     <?php 
     if ($value) {
         $social_type = explode(',', $value);
         ?>
         <ul class="kt-aboutwidget-socials">
             <?php 
         foreach ($social_type as $id) {
             $val = $socials_arr[$id];
             printf('<li><a href="%s" target="_blank"><i class="%s"></i></a></li>', esc_url(str_replace('%s', $val['val'], $val['link'])), esc_attr($val['icon']));
         }
         ?>
         </ul>
     <?php 
     }
     echo $args['after_widget'];
 }
开发者ID:websideas,项目名称:aquila,代码行数:37,代码来源:kt_aboutme.php

示例4: kt_option

 * will need to copy the new files to your theme to maintain compatibility. We try to do this.
 * as little as possible, but it does happen. When this occurs the version of the template file will.
 * be bumped and the readme will list any important changes.
 *
 * @see 	    http://docs.woothemes.com/document/template-structure/
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.3.0
 */
if (!defined('ABSPATH')) {
    exit;
    // Exit if accessed directly
}
global $post, $product, $woocommerce;
$attachment_ids = $product->get_gallery_attachment_ids();
$kt_enable_product_thumb_slide = kt_option('kt_enable_product_thumb_slide', 'yes');
if ($attachment_ids) {
    $loop = 0;
    $columns = apply_filters('woocommerce_product_thumbnails_columns', 3);
    ?>
	<?php 
    if ($kt_enable_product_thumb_slide == "yes") {
        ?>
		<div class="kt-thumbnails owl-carousel nav-center-center nav-style3" data-responsive='{"0":{"items":3},"600":{"items":3},"1000":{"items":4}}' data-nav="true" data-dots="false" data-margin="20">
	<?php 
    } else {
        ?>
	<div class="thumbnails <?php 
        echo 'columns-' . $columns;
        ?>
">
开发者ID:TruongTuyen,项目名称:thuctapcoso,代码行数:31,代码来源:product-thumbnails.php

示例5: get_header

/**
 * The main template file
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * e.g., it puts together the home page when no home.php file exists.
 *
 * Learn more: {@link https://codex.wordpress.org/Template_Hierarchy}
 *
 * @package WordPress
 * @subpackage Kute Theme
 * @since KuteTheme 1.0
 */
get_header();
$kt_sidebar_are = kt_option('kt_sidebar_are', 'left');
$sidebar_are_layout = 'sidebar-' . $kt_sidebar_are;
if ($kt_sidebar_are == "left" || $kt_sidebar_are == "right") {
    $col_class = "main-content col-xs-12 col-sm-8 col-md-9";
} else {
    $col_class = "main-content col-xs-12 col-sm-12 col-md-12";
}
?>
<div id="primary" class="content-area <?php 
echo esc_attr($sidebar_are_layout);
?>
">
	<main id="main" class="site-main" role="main">
        <div class="container">
            <?php 
breadcrumb_trail();
开发者ID:hikaram,项目名称:wee,代码行数:31,代码来源:index.php

示例6: kt_themne_color

function kt_themne_color()
{
    $kt_used_header = kt_option('kt_used_header', 1);
    $main_color = kt_option('main_color', '#ff3366');
    $bg_color = kt_option('bg_color', '#fff');
    $price_color = kt_option('price_color', '#ff3366');
    $rgba_main_color = vsprintf('rgba( %1$s, %2$s, %3$s, 0.5)', kt_hex2rgb($main_color));
    $rgba_main_color_07 = vsprintf('rgba( %1$s, %2$s, %3$s, 0.7)', kt_hex2rgb($main_color));
    $rgba_main_color_08 = vsprintf('rgba( %1$s, %2$s, %3$s, 0.8)', kt_hex2rgb($main_color));
    /* Main color */
    $css = <<<CSS
    html body{
        background-color: {$bg_color};
    }
    body .header.style11 .block-mini-cart::after{
        border-bottom-color: {$bg_color};
    }
    body a:hover,
    body a:focus,
    body a:active,
    body.woocommerce .summary .yith-wcwl-add-to-wishlist .show a:hover,
    body.woocommerce .summary .compare:hover,
    body.woocommerce .woocommerce-breadcrumb a:hover,
    body .blog-list .blog-list-wapper ul li .readmore a,
    body .count-down-time2 .box-count,
    body .trending .trending-product li .product-price,
    body .hot-deals-box .hot-deals-tab .hot-deals-tab-box .nav-tab li.active>a,
    body .lasttest-blog11 .item-blog .readmore,
    body .footer4.style2 .social-link .fa:hover,
    .option11.hot-cat-section11 .hot-cat-9 .cat-item:hover,
    .option11.hot-cat-section11 .hot-cat-9 .cat-item:hover .cat-title a,
    .footer4 .social-link a:hover .fa,
    .header.style14 .navigation-main-menu>li:hover>a, 
    .header.style14 .navigation-main-menu>li.active>a,
    .footer5 .social-link a:hover .fa,
    .footer5 .address-list .tit-name,
    .footer5 a:hover,
    .option-14 .block-deal .title,
    .option12.section-blog-12 .blog12 .blog-title a:hover,
    body .block-deal .title,
    .service4 .service-title a:hover,
    .footer5 .footer-coppyright{
        color: {$main_color}
    }
    body .main-header .header-search-box .form-inline .btn-search,
    body .main-header .shopping-cart-box a.cart-link:after,
    body .cart-block .cart-block-content .cart-buttons a.btn-check-out,
    body .main-bg,
    body .box-vertical-megamenus .vertical-menu-list>li:hover,
    body .megamenu .widget .widgettitle:before,
    body .megamenu .widget .widgettitle:before,
    body .owl-controls .owl-prev:hover, 
    body .owl-controls .owl-next:hover,
    body .product-list li .quick-view a:hover,
    body .product-list li .quick-view a:hover,
    body .scroll_top:hover,
    body .cate-box .cate-link:hover,
    body #footer2.footer3 .mailchimp-wrapper .mailchimp-form .mailchimp-submit,
    body.woocommerce div.product form.cart .button,
    body.woocommerce .summary .yith-wcwl-add-to-wishlist .show a:hover:before,
    body.woocommerce .summary .compare:hover:before,
    body.woocommerce #respond input#submit:hover, 
    body.woocommerce a.button:hover, 
    body.woocommerce button.button:hover, 
    body.woocommerce input.button:hover,
    body .display-product-option li.selected span, 
    body .display-product-option li:hover span,
    body .nav-links a:hover, 
    body .nav-links .current,
    body .product-list.list .add-to-cart,
    body.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content,
    body .owl-controls .owl-dots .owl-dot.active,
    body .products-block .link-all,
    body .widget_kt_on_sale .product-list li .add-to-cart,
    body .woocommerce #respond input#submit.alt, 
    body .woocommerce a.button.alt, 
    body .woocommerce button.button.alt, 
    body .woocommerce input.button.alt,
    body .woocommerce #respond input#submit:hover, 
    body .woocommerce a.button:hover, 
    body .woocommerce button.button:hover, 
    body .woocommerce input.button:hover,
    body .woocommerce #respond input#submit.alt:hover, 
    body .woocommerce a.button.alt:hover, 
    body .woocommerce button.button.alt:hover, 
    body .woocommerce input.button.alt:hover,
    body .ui-selectmenu-menu .ui-state-hover, 
    body .ui-selectmenu-menu .ui-widget-content .ui-selectmenu-menu .ui-state-hover, 
    body .ui-selectmenu-menu .ui-widget-header, 
    body .ui-selectmenu-menu .ui-state-hover, 
    body .ui-selectmenu-menu .ui-state-focus, 
    body .ui-selectmenu-menu .ui-widget-content .ui-state-focus, 
    body .ui-selectmenu-menu .ui-widget-header .ui-state-focus,
    body .trending .trending-title,
    body .hot-deals-box .hot-deals-tab .hot-deals-title,
    body .block-popular-cat .more,
    body .block-popular-cat .sub-categories>ul>li>a:before,
    body .hot-deals-box .hot-deals-tab .box-count-down .box-count:before,
    body .products .group-tool-button a:hover, 
    body .products .group-tool-button a.compare:hover,
//.........这里部分代码省略.........
开发者ID:acamboy,项目名称:kutetheme-wp,代码行数:101,代码来源:theme.php

示例7: _e

                            <a href="#" class="mobile-navigation"><?php 
_e('Main menu', 'kutetheme');
?>
<i class="fa fa-bars"></i></a>
                        </nav>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="container">
        <div class="block-header-top12">
            <?php 
global $kt_enable_vertical_menu;
$kt_click_open_vertical_menu = kt_option('kt_click_open_vertical_menu', 'disable');
$kt_vertical_item_visible = kt_option('kt_vertical_item_visible', 11);
if ($kt_enable_vertical_menu == 'enable') {
    ?>
            <div class="block-vertical">
                <div id="box-vertical-megamenus" class="vertical-wapper">
                    <div data-items="<?php 
    echo esc_attr($kt_vertical_item_visible);
    ?>
" class="box-vertical-megamenus <?php 
    if ($kt_click_open_vertical_menu == "enable") {
        echo esc_attr('hiden_content');
    }
    ?>
">
                        <h4 class="title">
                            <span class="title-menu"><?php 
开发者ID:acamboy,项目名称:kutetheme-wp,代码行数:31,代码来源:header-12.php

示例8:

<?php

if (kt_is_wc() && kt_option('header_cart', 1)) {
    ?>
    <div class="shopping-bag shopping-bag-wishlist">
        <?php 
    kt_woocommerce_get_wishlist();
    ?>
    </div>
<?php 
}
开发者ID:websideas,项目名称:Mondova,代码行数:11,代码来源:header-wishlist.php

示例9: kt_get_social_footer

 function kt_get_social_footer()
 {
     $social_icons = '';
     $facebook = kt_option('kt_facebook_link_id');
     $twitter = kt_option('kt_twitter_link_id');
     $pinterest = kt_option('kt_pinterest_link_id');
     $dribbble = kt_option('kt_dribbble_link_id');
     $vimeo = kt_option('kt_vimeo_link_id');
     $tumblr = kt_option('kt_tumblr_link_id');
     $skype = kt_option('kt_skype_link_id');
     $linkedin = kt_option('kt_linkedIn_link_id');
     $vk = kt_option('kt_vk_link_id');
     $googleplus = kt_option('kt_google_plus_link_id');
     $youtube = kt_option('kt_youtube_link_id');
     $instagram = kt_option('kt_instagram_link_id');
     if ($facebook) {
         $social_icons .= '<li><a href="' . esc_url($facebook) . '" title ="' . __('Facebook', 'kutetheme') . '" ><i class="fa fa-facebook"></i></a></li>';
     }
     if ($twitter) {
         $social_icons .= '<li><a href="http://www.twitter.com/' . esc_attr($twitter) . '" title = "' . __('Twitter', 'kutetheme') . '" ><i class="fa fa-twitter"></i></a></li>';
     }
     if ($dribbble) {
         $social_icons .= '<li><a href="http://www.dribbble.com/' . esc_attr($dribbble) . '" title ="' . __('Dribbble', 'kutetheme') . '" ><i class="fa fa-dribbble"></i></a></li>';
     }
     if ($vimeo) {
         $social_icons .= '<li><a href="http://www.vimeo.com/' . esc_attr($vimeo) . '" title ="' . __('Vimeo', 'kutetheme') . '" ><i class="fa fa-vimeo-square"></i></a></li>';
     }
     if ($tumblr) {
         $social_icons .= '<li><a href="http://' . esc_attr($tumblr) . '.tumblr.com/" title ="' . __('Tumblr', 'kutetheme') . '" ><i class="fa fa-tumblr"></i></a></li>';
     }
     if ($skype) {
         $social_icons .= '<li><a href="skype:' . esc_attr($skype) . '" title ="' . __('Skype', 'kutetheme') . '" ><i class="fa fa-skype"></i></a></li>';
     }
     if ($linkedin) {
         $social_icons .= '<li><a href="' . esc_attr($linkedin) . '" title ="' . __('Linkedin', 'kutetheme') . '" ><i class="fa fa-linkedin"></i></a></li>';
     }
     if ($googleplus) {
         $social_icons .= '<li><li><a href="' . esc_url($googleplus) . '" title ="' . __('Google Plus', 'kutetheme') . '" ><i class="fa fa-google-plus"></i></a></li>';
     }
     if ($youtube) {
         $social_icons .= '<li><a href="http://www.youtube.com/user/' . esc_attr($youtube) . '" title ="' . __('Youtube', 'kutetheme') . '"><i class="fa fa-youtube"></i></a></li>';
     }
     if ($pinterest) {
         $social_icons .= '<li><a href="http://www.pinterest.com/' . esc_attr($pinterest) . '/" title ="' . __('Pinterest', 'kutetheme') . '" ><i class="fa fa-pinterest-p"></i></a></li>';
     }
     if ($instagram) {
         $social_icons .= '<li><a href="http://instagram.com/' . esc_attr($instagram) . '" title ="' . __('Instagram', 'kutetheme') . '" ><i class="fa fa-instagram"></i></a></li>';
     }
     if ($vk) {
         $social_icons .= '<li><a href="https://vk.com/' . esc_attr($vk) . '" title ="' . __('Vk', 'kutetheme') . '" ><i class="fa fa-vk"></i></a></li>';
     }
     ?>
     <?php 
     if ($social_icons) {
         ?>
         <div class="footer-social">
             <ul>
             <?php 
         echo apply_filters('kt_get_social_header', $social_icons);
         ?>
             </ul>
         </div>
     <?php 
     }
     ?>
     <?php 
 }
开发者ID:hikaram,项目名称:wee,代码行数:67,代码来源:woocommerce.php

示例10: WC

if (!defined('ABSPATH')) {
    exit;
    // Exit if accessed directly
}
global $product, $woocommerce_loop;
$upsells = $product->get_upsells();
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);
$products = new WP_Query($args);
$woocommerce_loop['columns'] = $columns;
$loop = 'false';
$kt_upsell_products_title = kt_option('kt_upsell_products_title', 'You may also like&hellip;');
$kt_upsell_products_columns = kt_option('kt_upsell_products_columns', 3);
$item_desktop = $kt_upsell_products_columns;
$item_ipad = $kt_upsell_products_columns - 1;
if ($products->have_posts()) {
    ?>
	<?php 
    if ($products->post_count > 1) {
        $loop = 'true';
    }
    ?>
	<div class="upsells products product-slide">
		<div class="section-title style3">
			<h3><?php 
    echo esc_html($kt_upsell_products_title);
    ?>
</h3>
开发者ID:TruongTuyen,项目名称:thuctapcoso,代码行数:31,代码来源:up-sells.php

示例11: kt_get_page_sidebar

 /**
  * Get page sidebar
  *
  * @param null $post_id
  * @return mixed|void
  */
 function kt_get_page_sidebar($post_id = null)
 {
     global $post;
     if (!$post_id) {
         $post_id = $post->ID;
     }
     $sidebar = array('sidebar' => rwmb_meta('_kt_sidebar', array(), $post_id), 'sidebar_area' => '');
     if (isset($_REQUEST['sidebar'])) {
         $sidebar['sidebar'] = $_REQUEST['sidebar'];
     }
     if ($sidebar['sidebar'] == '' || $sidebar['sidebar'] == 'default') {
         $sidebar['sidebar'] = kt_option('page_sidebar');
         if ($sidebar['sidebar'] == 'left') {
             $sidebar['sidebar_area'] = kt_option('page_sidebar_left', 'primary-widget-area');
         } elseif ($sidebar['sidebar'] == 'right') {
             $sidebar['sidebar_area'] = kt_option('page_sidebar_right', 'primary-widget-area');
         }
     } elseif ($sidebar['sidebar'] == 'left') {
         $sidebar['sidebar_area'] = rwmb_meta('_kt_left_sidebar', array(), $post_id);
     } elseif ($sidebar['sidebar'] == 'right') {
         $sidebar['sidebar_area'] = rwmb_meta('_kt_right_sidebar', array(), $post_id);
     } elseif ($sidebar['sidebar'] == 'full') {
         $sidebar['sidebar'] = '';
     }
     return apply_filters('kt_page_sidebar', $sidebar);
 }
开发者ID:websideas,项目名称:Mondova,代码行数:32,代码来源:helpers.php

示例12: kt_about_us_link

 function kt_about_us_link()
 {
     $kt_page_about_us = kt_option('kt_page_about_us', false);
     if ($kt_page_about_us) {
         echo get_page_link($kt_page_about_us);
     }
 }
开发者ID:ngocthangict,项目名称:kutetheme-wp,代码行数:7,代码来源:utility.php

示例13: kt_myaccount_menu_link

function kt_myaccount_menu_link($items, $args)
{
    $kt_enable_myaccount_box = kt_option('kt_enable_myaccount_box', 'enable');
    if ($kt_enable_myaccount_box == 'disable') {
        return $items;
    }
    ob_start();
    if ($args->theme_location == 'topbar_menuright') {
        ?>
        <?php 
        if (kt_is_wc()) {
            ?>
            <?php 
            $myaccount_page_id = get_option('woocommerce_myaccount_page_id');
            $myaccount_link = get_permalink(get_option('woocommerce_myaccount_page_id'));
            ?>
            <?php 
            if (is_user_logged_in()) {
                ?>
                <?php 
                if ($myaccount_page_id) {
                    $logout_url = wp_logout_url(get_permalink(woocommerce_get_page_id('shop')));
                    if (get_option('woocommerce_force_ssl_checkout') == 'yes') {
                        $logout_url = str_replace('http:', 'https:', $logout_url);
                    }
                }
                ?>
                <li class="menu-item menu-item-has-children">
                    <a href="<?php 
                echo esc_url($myaccount_link);
                ?>
"><?php 
                _e('My Account', 'kutetheme');
                ?>
</a>
                    <ul class="sub-menu">
                        <?php 
                if (function_exists('YITH_WCWL')) {
                    $wishlist_url = YITH_WCWL()->get_wishlist_url();
                    ?>
                        <li><a href="<?php 
                    echo esc_attr($wishlist_url);
                    ?>
"><?php 
                    _e('Wishlists', 'kutetheme');
                    ?>
</a></li>
                        <?php 
                }
                ?>
                        <?php 
                if (defined('YITH_WOOCOMPARE')) {
                    global $yith_woocompare;
                    $count = count($yith_woocompare->obj->products_list);
                    ?>
                        <li><a href="#" class="yith-woocompare-open"><?php 
                    esc_html_e("Compare", 'kutetheme');
                    ?>
<span>(<?php 
                    echo esc_attr($count);
                    ?>
)</span></a></li>
                        <?php 
                }
                ?>
                        <?php 
                if (isset($logout_url) && $logout_url) {
                    ?>
                        <li><a href="<?php 
                    echo esc_url($logout_url);
                    ?>
"><?php 
                    _e('Logout', 'kutetheme');
                    ?>
</a></li>
                        <?php 
                }
                ?>
                    </ul>
                </li>
            <?php 
            } else {
                ?>
                <li class="menu-item login-item"><a href="<?php 
                echo esc_url($myaccount_link);
                ?>
"><?php 
                _e('Login/Register', 'kutetheme');
                ?>
</a></li>
            <?php 
            }
            ?>
        <?php 
        }
        ?>
   <?php 
    }
    $item = ob_get_contents();
    $items = $item . $items;
//.........这里部分代码省略.........
开发者ID:k2jysy,项目名称:kshop,代码行数:101,代码来源:woocommerce.php

示例14: kt_get_info_address

<?php

$address = kt_get_info_address();
$hotline = kt_get_info_hotline();
$email = kt_get_info_email();
$copyright = kt_get_info_copyrights();
$kt_footer_payment_logo = kt_option('kt_footer_payment_logo', '');
$kt_footer_background = kt_option('kt_footer_background', '');
?>
<!-- Footer -->
<footer id="footer2" class="footer3">
     <div class="footer-top">
         <div class="container">
             <div class="row">
                 <div class="col-sm-3">
                     <div class="footer-logo">
                         <?php 
kt_get_logo_footer();
?>
                     </div>
                 </div>
                 <div class="col-sm-12 col-md-6">
                     <div class="footer-menu">       
                         <?php 
wp_nav_menu(array('menu' => 'custom_footer_menu', 'theme_location' => 'custom_footer_menu', 'depth' => 1, 'container' => '', 'container_class' => '', 'container_id' => '', 'menu_class' => 'custom_footer_menu', 'fallback_cb' => 'wp_bootstrap_navwalker::fallback', 'walker' => new wp_bootstrap_navwalker()));
?>
                     </div>
                 </div>
                 <div class="col-sm-12 col-md-3">
                    <div class="footer-sidebar4">
                        <?php 
开发者ID:k2jysy,项目名称:kshop,代码行数:31,代码来源:footer-3.php

示例15: WC

if (!defined('ABSPATH')) {
    exit;
    // Exit if accessed directly
}
global $product, $woocommerce_loop;
$crosssells = WC()->cart->get_cross_sells();
if (0 === sizeof($crosssells)) {
    return;
}
$meta_query = WC()->query->get_meta_query();
$args = array('post_type' => 'product', 'ignore_sticky_posts' => 1, 'no_found_rows' => 1, 'posts_per_page' => apply_filters('woocommerce_cross_sells_total', $posts_per_page), 'orderby' => $orderby, 'post__in' => $crosssells, 'meta_query' => $meta_query);
$products = new WP_Query($args);
$woocommerce_loop['columns'] = apply_filters('woocommerce_cross_sells_columns', $columns);
$loop = 'false';
$kt_cross_sells_products_title = kt_option('kt_cross_sells_products_title', 'You may be interested in');
$kt_cross_sells_products_columns = kt_option('kt_cross_sells_products_columns', 3);
$item_desktop = $kt_cross_sells_products_columns;
$item_ipad = $kt_cross_sells_products_columns - 1;
if ($products->have_posts()) {
    ?>
	<?php 
    if ($products->post_count > 1) {
        $loop = 'true';
    }
    ?>
	<div class="cross-sells product-slide">
		<div class="section-title">
			<h3><?php 
    echo esc_html($kt_cross_sells_products_title);
    ?>
</h3>
开发者ID:TruongTuyen,项目名称:thuctapcoso,代码行数:31,代码来源:cross-sells.php


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