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


PHP porto_get_meta_value函数代码示例

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


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

示例1: porto_woocommerce_share

function porto_woocommerce_share()
{
    global $porto_settings;
    $share = porto_get_meta_value('product_share');
    if ($porto_settings['share-enable'] && 'no' !== $share && ('yes' === $share || 'yes' !== $share && $porto_settings['product-share'])) {
        get_template_part('share');
    }
}
开发者ID:booklein,项目名称:wpbookle,代码行数:8,代码来源:woocommerce.php

示例2: porto_get_meta_value

<?php

global $porto_settings;
$page_header_type = $porto_settings['breadcrumbs-type'] ? $porto_settings['breadcrumbs-type'] : '1';
$breadcrumbs = $porto_settings['show-breadcrumbs'] ? porto_get_meta_value('breadcrumbs', true) : false;
$page_title = $porto_settings['show-pagetitle'] ? porto_get_meta_value('page_title', true) : false;
if (is_front_page() && is_home() || is_front_page()) {
    $breadcrumbs = false;
    $page_title = false;
}
if ($breadcrumbs || $page_title) {
    ?>
    <?php 
    if (porto_get_wrapper_type() != 'boxed' && $porto_settings['breadcrumbs-wrapper'] == 'boxed') {
        ?>
        <div id="breadcrumbs-boxed">
    <?php 
    }
    ?>
    <section class="page-top<?php 
    if ($porto_settings['breadcrumbs-wrapper'] == 'wide') {
        echo ' wide';
    }
    ?>
 page-header-<?php 
    echo $page_header_type;
    ?>
">
        <?php 
    get_template_part('page_header/page_header_' . $page_header_type);
    ?>
开发者ID:booklein,项目名称:wpbookle,代码行数:31,代码来源:breadcrumbs.php

示例3: porto_banner

    <div class="page-wrapper<?php 
if ($header_type == 'side') {
    echo ' side-nav';
}
?>
"><!-- page wrapper -->

        <?php 
if ($porto_banner_pos == 'before_header') {
    porto_banner('banner-before-header');
}
?>

        <?php 
if (porto_get_meta_value('header', true)) {
    ?>
            <div class="header-wrapper<?php 
    if ($porto_settings['header-wrapper'] == 'wide') {
        echo ' wide';
    }
    if ($porto_banner_pos == 'below_header' || $porto_banner_pos == 'fixed') {
        echo ' fixed-header';
    }
    if ($header_type == 'side') {
        echo ' header-side-nav';
    }
    ?>
 clearfix"><!-- header wrapper -->
                <?php 
    global $porto_settings;
开发者ID:prosenjit-itobuz,项目名称:Unitee,代码行数:30,代码来源:header.php

示例4: dynamic_sidebar

                dynamic_sidebar('content-bottom-' . $i);
                ?>
                                    </div>
                                <?php 
            }
        }
        ?>
                        </div>
                    </div>
                </div>
            <?php 
    }
    ?>

            <?php 
    $footer_view = porto_get_meta_value('footer_view');
    ?>

            <div class="footer-wrapper <?php 
    echo $footer_view;
    ?>
">

                <?php 
    if ($porto_settings['footer-wrapper'] == 'boxed') {
        ?>
                <div id="footer-boxed" class="container">
                <?php 
    }
    ?>
开发者ID:alikagitci,项目名称:honda.yedekleri,代码行数:30,代码来源:footer.php

示例5: _e

    ?>
                            <li>
                                <p><strong><?php 
    _e('Client', 'porto');
    ?>
:</strong></p>
                                <p><?php 
    echo esc_html($portfolio_client);
    ?>
</p>
                            </li>
                        <?php 
}
?>
                        <?php 
$share = porto_get_meta_value('portfolio_share');
if ($porto_settings['share-enable'] && 'no' !== $share && ('yes' === $share || 'yes' !== $share && $porto_settings['portfolio-share'])) {
    ?>
                            <li>
                                <p><strong><?php 
    _e('Share', 'porto');
    ?>
:</strong></p>
                                <?php 
    get_template_part('share');
    ?>
                            </li>
                        <?php 
}
?>
                    </ul>
开发者ID:booklein,项目名称:wpbookle,代码行数:31,代码来源:content-portfolio-medium.php

示例6: the_content

?>
        </div>

        <div class="entry-content">
            <?php 
the_content();
wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'porto') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', 'pagelink' => '<span class="screen-reader-text">' . __('Page', 'porto') . ' </span>%', 'separator' => '<span class="screen-reader-text">, </span>'));
?>
        </div>

    </div>

    <div class="post-gap"></div>

    <?php 
$share = porto_get_meta_value('post_share');
if ($porto_settings['share-enable'] && 'no' !== $share && ('yes' === $share || 'yes' !== $share && $porto_settings['post-share'])) {
    ?>
        <div class="post-block post-share">
            <h3><i class="fa fa-share"></i><?php 
    _e('Share this post', 'porto');
    ?>
</h3>
            <?php 
    get_template_part('share');
    ?>
        </div>
    <?php 
}
?>
开发者ID:booklein,项目名称:wpbookle,代码行数:30,代码来源:content-post-large.php

示例7: porto_output_skin_options

function porto_output_skin_options()
{
    global $porto_settings;
    // Skin
    $body_bg_color = porto_get_meta_value('body_bg_color');
    $body_bg_image = porto_get_meta_value('body_bg_image');
    $body_bg_repeat = porto_get_meta_value('body_bg_repeat');
    $body_bg_size = porto_get_meta_value('body_bg_size');
    $body_bg_attachment = porto_get_meta_value('body_bg_attachment');
    $body_bg_position = porto_get_meta_value('body_bg_position');
    $page_bg_color = porto_get_meta_value('page_bg_color');
    $page_bg_image = porto_get_meta_value('page_bg_image');
    $page_bg_repeat = porto_get_meta_value('page_bg_repeat');
    $page_bg_size = porto_get_meta_value('page_bg_size');
    $page_bg_attachment = porto_get_meta_value('page_bg_attachment');
    $page_bg_position = porto_get_meta_value('page_bg_position');
    $content_bottom_bg_color = porto_get_meta_value('content_bottom_bg_color');
    $content_bottom_bg_image = porto_get_meta_value('content_bottom_bg_image');
    $content_bottom_bg_repeat = porto_get_meta_value('content_bottom_bg_repeat');
    $content_bottom_bg_size = porto_get_meta_value('content_bottom_bg_size');
    $content_bottom_bg_attachment = porto_get_meta_value('content_bottom_bg_attachment');
    $content_bottom_bg_position = porto_get_meta_value('content_bottom_bg_position');
    $header_bg_color = porto_get_meta_value('header_bg_color');
    $header_bg_image = porto_get_meta_value('header_bg_image');
    $header_bg_repeat = porto_get_meta_value('header_bg_repeat');
    $header_bg_size = porto_get_meta_value('header_bg_size');
    $header_bg_attachment = porto_get_meta_value('header_bg_attachment');
    $header_bg_position = porto_get_meta_value('header_bg_position');
    $sticky_header_bg_color = porto_get_meta_value('sticky_header_bg_color');
    $sticky_header_bg_image = porto_get_meta_value('sticky_header_bg_image');
    $sticky_header_bg_repeat = porto_get_meta_value('sticky_header_bg_repeat');
    $sticky_header_bg_size = porto_get_meta_value('sticky_header_bg_size');
    $sticky_header_bg_attachment = porto_get_meta_value('sticky_header_bg_attachment');
    $sticky_header_bg_position = porto_get_meta_value('sticky_header_bg_position');
    $footer_top_bg_color = porto_get_meta_value('footer_top_bg_color');
    $footer_top_bg_image = porto_get_meta_value('footer_top_bg_image');
    $footer_top_bg_repeat = porto_get_meta_value('footer_top_bg_repeat');
    $footer_top_bg_size = porto_get_meta_value('footer_top_bg_size');
    $footer_top_bg_attachment = porto_get_meta_value('footer_top_bg_attachment');
    $footer_top_bg_position = porto_get_meta_value('footer_top_bg_position');
    $footer_bg_color = porto_get_meta_value('footer_bg_color');
    $footer_bg_image = porto_get_meta_value('footer_bg_image');
    $footer_bg_repeat = porto_get_meta_value('footer_bg_repeat');
    $footer_bg_size = porto_get_meta_value('footer_bg_size');
    $footer_bg_attachment = porto_get_meta_value('footer_bg_attachment');
    $footer_bg_position = porto_get_meta_value('footer_bg_position');
    $footer_bottom_bg_color = porto_get_meta_value('footer_bottom_bg_color');
    $footer_bottom_bg_image = porto_get_meta_value('footer_bottom_bg_image');
    $footer_bottom_bg_repeat = porto_get_meta_value('footer_bottom_bg_repeat');
    $footer_bottom_bg_size = porto_get_meta_value('footer_bottom_bg_size');
    $footer_bottom_bg_attachment = porto_get_meta_value('footer_bottom_bg_attachment');
    $footer_bottom_bg_position = porto_get_meta_value('footer_bottom_bg_position');
    $breadcrumbs_bg_color = porto_get_meta_value('breadcrumbs_bg_color');
    $breadcrumbs_bg_image = porto_get_meta_value('breadcrumbs_bg_image');
    $breadcrumbs_bg_repeat = porto_get_meta_value('breadcrumbs_bg_repeat');
    $breadcrumbs_bg_size = porto_get_meta_value('breadcrumbs_bg_size');
    $breadcrumbs_bg_attachment = porto_get_meta_value('breadcrumbs_bg_attachment');
    $breadcrumbs_bg_position = porto_get_meta_value('breadcrumbs_bg_position');
    if ($body_bg_color || $body_bg_image || $body_bg_repeat || $body_bg_size || $body_bg_attachment || $body_bg_position || $page_bg_color || $page_bg_image || $page_bg_repeat || $page_bg_size || $page_bg_attachment || $page_bg_position || $content_bottom_bg_color || $content_bottom_bg_image || $content_bottom_bg_repeat || $content_bottom_bg_size || $content_bottom_bg_attachment || $content_bottom_bg_position || $header_bg_color || $header_bg_image || $header_bg_repeat || $header_bg_size || $header_bg_attachment || $header_bg_position || $sticky_header_bg_color || $sticky_header_bg_image || $sticky_header_bg_repeat || $sticky_header_bg_size || $sticky_header_bg_attachment || $sticky_header_bg_position || $footer_top_bg_color || $footer_top_bg_image || $footer_top_bg_repeat || $footer_top_bg_size || $footer_top_bg_attachment || $footer_top_bg_position || $footer_bg_color || $footer_bg_image || $footer_bg_repeat || $footer_bg_size || $footer_bg_attachment || $footer_bg_position || $footer_bottom_bg_color || $footer_bottom_bg_image || $footer_bottom_bg_repeat || $footer_bottom_bg_size || $footer_bottom_bg_attachment || $footer_bottom_bg_position || $breadcrumbs_bg_color || $breadcrumbs_bg_image || $breadcrumbs_bg_repeat || $breadcrumbs_bg_size || $breadcrumbs_bg_attachment || $breadcrumbs_bg_position) {
        ?>

        <style type="text/css">
            <?php 
        if ($body_bg_color || $body_bg_image || $body_bg_repeat || $body_bg_size || $body_bg_attachment || $body_bg_position) {
            ?>
            body {
                <?php 
            if ($body_bg_color) {
                ?>
background-color: <?php 
                echo $body_bg_color;
                ?>
 !important;<?php 
            }
            ?>
                <?php 
            if ($body_bg_image == 'none') {
                echo 'background-image: none !important';
            } else {
                if ($body_bg_image) {
                    ?>
background-image: url('<?php 
                    echo esc_url(str_replace(array('http://', 'https://'), array('//', '//'), $body_bg_image));
                    ?>
') !important;<?php 
                }
            }
            ?>
                <?php 
            if ($body_bg_repeat) {
                ?>
background-repeat: <?php 
                echo $body_bg_repeat;
                ?>
 !important;<?php 
            }
            ?>
                <?php 
            if ($body_bg_size) {
                ?>
//.........这里部分代码省略.........
开发者ID:booklein,项目名称:wpbookle,代码行数:101,代码来源:layout.php

示例8: wp_reset_postdata

<?php

global $porto_settings, $porto_layout, $porto_sidebar;
wp_reset_postdata();
$content_bottom = porto_get_meta_value('content_bottom');
$content_inner_bottom = porto_get_meta_value('content_inner_bottom');
$wrapper = porto_get_wrapper_type();
?>

<?php 
do_action('porto_before_content_inner_bottom');
if ($content_inner_bottom) {
    ?>
    <div id="content-inner-bottom"><!-- begin content inner bottom -->
        <?php 
    echo do_shortcode('[porto_block name="' . $content_inner_bottom . '"]');
    ?>
    </div><!-- begin content inner bottom -->
<?php 
}
do_action('porto_after_content_inner_bottom');
?>

</div><!-- end main content -->

<?php 
$is_category_filter = class_exists('WooCommerce') && $porto_settings['category-mobile-filter'] && (is_shop() || porto_is_product_archive());
if ($porto_layout == 'wide-left-sidebar' || $porto_layout == 'wide-right-sidebar' || $porto_layout == 'left-sidebar' || $porto_layout == 'right-sidebar') {
    ?>
    <div class="col-md-3 sidebar <?php 
    echo str_replace('wide-', '', $porto_layout);
开发者ID:booklein,项目名称:wpbookle,代码行数:31,代码来源:sidebar.php

示例9: porto_banner

function porto_banner($banner_class = '')
{
    global $porto_settings;
    $banner_type = porto_get_meta_value('banner_type');
    $master_slider = porto_get_meta_value('master_slider');
    $rev_slider = porto_get_meta_value('rev_slider');
    $banner_block = porto_get_meta_value('banner_block');
    $banner_class .= $porto_settings['banner-wrapper'] == 'boxed' ? ' container' : '';
    if ($banner_type === 'master_slider' && isset($master_slider)) {
        ?>

        <div class="banner-container">
            <div id="banner-wrapper" class="<?php 
        echo $banner_class;
        ?>
">
                <?php 
        echo do_shortcode('[masterslider id="' . $master_slider . '"]');
        ?>
            </div>
        </div>

    <?php 
    } else {
        if ($banner_type === 'rev_slider' && isset($rev_slider)) {
            ?>

        <div class="banner-container">
            <div id="banner-wrapper" class="<?php 
            echo $banner_class;
            ?>
">
                <?php 
            echo do_shortcode('[rev_slider ' . $rev_slider . ']');
            ?>
            </div>
        </div>

    <?php 
        } else {
            if ($banner_type === 'banner_block' && isset($banner_block)) {
                ?>

        <div class="banner-container">
            <div id="banner-wrapper" class="<?php 
                echo $banner_class;
                ?>
">
                <?php 
                echo do_shortcode('[porto_block name="' . $banner_block . '"]');
                ?>
            </div>
        </div>

    <?php 
            }
        }
    }
}
开发者ID:rinodung,项目名称:live-theme,代码行数:59,代码来源:layout.php

示例10: get_option

/**
 * Share template
 *
 * @author Your Inspiration Themes
 * @package YITH WooCommerce Wishlist
 * @version 1.1.5
 */
global $yith_wcwl;
/*if( get_option( 'yith_wcwl_share_fb' ) == 'yes' || get_option( 'yith_wcwl_share_twitter' ) == 'yes' || get_option( 'yith_wcwl_share_pinterest' ) == 'yes'  || get_option( 'yith_wcwl_share_email' ) == 'yes') {
    $share_url  = $yith_wcwl->get_wishlist_url();
    $share_url .= get_option( 'permalink-structure' ) != '' ? '&amp;user_id=' : '?user_id=';
    $share_url .= get_current_user_id();
    echo YITH_WCWL_UI::get_share_links( $share_url );
}*/
global $porto_settings;
$share = porto_get_meta_value('page_share');
if ($porto_settings['share-enable'] && 'no' !== $share && ('yes' === $share || 'yes' !== $share && $porto_settings['page-share'])) {
    ?>
?>
    <div class="page-share wishlist-share">
        <h3><i class="fa fa-share"></i><?php 
    _e('Share on', 'porto');
    ?>
</h3>
        <?php 
    get_template_part('share');
    ?>
    </div>
<?php 
}
开发者ID:booklein,项目名称:wpbookle,代码行数:30,代码来源:share.php

示例11: porto_scripts

function porto_scripts()
{
    global $porto_settings;
    if (!is_admin() && !in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'))) {
        wp_reset_postdata();
        // comment reply
        if (is_singular() && get_option('thread_comments')) {
            wp_enqueue_script('comment-reply');
        }
        // load wc variation script
        wp_enqueue_script('wc-add-to-cart-variation');
        // load visual composer default js
        if (!wp_script_is('wpb_composer_front_js')) {
            wp_enqueue_script('wpb_composer_front_js');
        }
        // load ultimate addons default js
        $bsf_options = get_option('bsf_options');
        $ultimate_global_scripts = isset($bsf_options['ultimate_global_scripts']) ? $bsf_options['ultimate_global_scripts'] : false;
        if ($ultimate_global_scripts !== 'enable') {
            $isAjax = false;
            $ultimate_ajax_theme = get_option('ultimate_ajax_theme');
            if ($ultimate_ajax_theme == 'enable') {
                $isAjax = true;
            }
            $ultimate_js = get_option('ultimate_js', 'disable');
            $bsf_dev_mode = isset($bsf_options['dev_mode']) ? $bsf_options['dev_mode'] : false;
            if (($ultimate_js == 'enable' || $isAjax == true) && $bsf_dev_mode != 'enable') {
                if (!wp_script_is('ultimate-script')) {
                    wp_enqueue_script('ultimate-script');
                }
            }
        }
        // porto scripts
        wp_deregister_script('porto-plugins');
        if (is_rtl()) {
            wp_register_script('porto-plugins', porto_js . '/plugins_rtl' . (WP_DEBUG ? '' : '.min') . '.js', array('jquery', 'jquery-migrate'), porto_version);
        } else {
            wp_register_script('porto-plugins', porto_js . '/plugins' . (WP_DEBUG ? '' : '.min') . '.js', array('jquery', 'jquery-migrate'), porto_version);
        }
        wp_enqueue_script('porto-plugins');
        // blueimap gallery
        wp_deregister_script('jquery-blueimp-gallery');
        wp_register_script('jquery-blueimp-gallery', porto_js . '/blueimp/jquery.blueimp-gallery.min.js', array(), porto_version);
        wp_enqueue_script('jquery-blueimp-gallery');
        // load master slider plugin
        if (!class_exists('Master_Slider')) {
            wp_deregister_script('masterslider-core');
            wp_register_script('masterslider-core', porto_js . '/masterslider.min.js', porto_version);
        }
        wp_enqueue_script('masterslider-core', false, array(), false, false);
        // load porto theme js file
        wp_deregister_script('porto-theme');
        wp_register_script('porto-theme', porto_js . '/theme' . (WP_DEBUG ? '' : '.min') . '.js', array('jquery'), porto_version, true);
        wp_enqueue_script('porto-theme');
        // compatible check with product filter plugin
        $js_wc_prdctfltr = false;
        if (class_exists('WC_Prdctfltr')) {
            $porto_settings['category-ajax'] = false;
            if (get_option('wc_settings_prdctfltr_use_ajax', 'no') == 'yes') {
                $js_wc_prdctfltr = true;
            }
        }
        $sticky_header = porto_get_meta_value('sticky_header');
        $show_sticky_header = false;
        if ('no' !== $sticky_header && ('yes' === $sticky_header || 'yes' !== $sticky_header && $porto_settings['enable-sticky-header'])) {
            $show_sticky_header = true;
        }
        wp_localize_script('porto-theme', 'js_porto_vars', array('rtl' => esc_js(is_rtl() ? true : false), 'ajax_url' => esc_js(admin_url('admin-ajax.php')), 'change_logo' => esc_js($porto_settings['change-header-logo']), 'post_zoom' => esc_js($porto_settings['post-zoom']), 'portfolio_zoom' => esc_js($porto_settings['portfolio-zoom']), 'member_zoom' => esc_js($porto_settings['member-zoom']), 'page_zoom' => esc_js($porto_settings['page-zoom']), 'container_width' => esc_js($porto_settings['container-width']), 'grid_gutter_width' => esc_js($porto_settings['grid-gutter-width']), 'show_sticky_header' => esc_js($show_sticky_header), 'show_sticky_header_tablet' => esc_js($porto_settings['enable-sticky-header-tablet']), 'show_sticky_header_mobile' => esc_js($porto_settings['enable-sticky-header-mobile']), 'request_error' => esc_js(__('The requested content cannot be loaded.<br/>Please try again later.', 'porto')), 'ajax_loader_url' => esc_js(str_replace(array('http:', 'https'), array('', ''), porto_uri . '/images/ajax-loader@2x.gif')), 'category_ajax' => esc_js($porto_settings['category-ajax']), 'prdctfltr_ajax' => esc_js($js_wc_prdctfltr), 'show_minicart' => esc_js($porto_settings['show-minicart']), 'slider_autoplay' => esc_js($porto_settings['slider-autoplay']), 'slider_speed' => esc_js($porto_settings['slider-speed'])));
    }
}
开发者ID:booklein,项目名称:wpbookle,代码行数:70,代码来源:functions.php


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