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


PHP etheme_option函数代码示例

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


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

示例1: etheme_option

?>
								</div>
							</div>

						</div>			
					</div>
				</div>
				<div class="menu-icon hidden-desktop"><i class="icon-reorder"></i></div>
			</div>

		</header>
		<div class="main-nav visible-desktop" style="border-top: 3px solid black; border-bottom: transparent;">
			<div class="">
				<div class="container">
					<div class="menu-wrapper menu-type<?php 
etheme_option('menu_type');
?>
">
						<div class="logo-with-menu">
							<?php 
etheme_logo();
?>
						</div>
						<?php 
if (has_nav_menu('main-menu')) {
    ?>
							<?php 
    wp_nav_menu(array('theme_location' => 'main-menu', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 4, 'fallback_cb' => false, 'walker' => new Et_Navigation()));
    ?>
						<?php 
} else {
开发者ID:ardiqghenatya,项目名称:mavinnew,代码行数:31,代码来源:header.php

示例2: apply_filters

    return;
}
?>
	<?php 
echo apply_filters('woocommerce_short_description', $post->post_excerpt);
?>
    <?php 
if (etheme_get_custom_field('_etheme_size_guide')) {
    ?>
        <div class="size_guide">
    	 <a rel="lightbox" href="<?php 
    etheme_option('size_guide_img');
    ?>
"><?php 
    _e('SIZING GUIDE', ETHEME_DOMAIN);
    ?>
</a>
        </div>
        <div class="size_guide sg_mobile">
    	 <a rel="lightbox" href="<?php 
    etheme_option('size_guide_img_mobile');
    ?>
"><?php 
    _e('SIZING GUIDE', ETHEME_DOMAIN);
    ?>
</a>
        </div>
    <?php 
}
?>
	
开发者ID:donpapa26,项目名称:bakancslistad,代码行数:30,代码来源:short-description.php

示例3: wc_print_notices

 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.0.0
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
wc_print_notices();
?>

<?php 
do_action('woocommerce_cart_is_empty');
?>

<div class="empty-cart-block">
	<i class="icon-shopping-cart"></i>
	
	<?php 
etheme_option('empty_cart_content');
?>
	
	<p><a class="button arrow-left" href="<?php 
echo get_permalink(woocommerce_get_page_id('shop'));
?>
"><span><?php 
_e('Return To Shop', ETHEME_DOMAIN);
?>
</span></a></p>
	
</div>
开发者ID:donpapa26,项目名称:bakancslistad,代码行数:31,代码来源:cart-empty.php

示例4: etheme_theme_settings_general_box


//.........这里部分代码省略.........
   		    <option value="Oswald|Oswald" <?php 
    selected('Oswald|Oswald', etheme_get_option('google_font'));
    ?>
><?php 
    _e("Oswald", ETHEME_DOMAIN);
    ?>
</option>		
   		    <option value="PT+Sans+Narrow|PT Sans Narrow" <?php 
    selected('PT+Sans+Narrow|PT Sans Narrow', etheme_get_option('google_font'));
    ?>
><?php 
    _e("PT Sans Narrow", ETHEME_DOMAIN);
    ?>
</option>		
   		    <option value="Ubuntu|Ubuntu" <?php 
    selected('Ubuntu|Ubuntu', etheme_get_option('google_font'));
    ?>
><?php 
    _e("Ubuntu", ETHEME_DOMAIN);
    ?>
</option>		
   		    <option value="Ubuntu+Condensed|Ubuntu Condensed" <?php 
    selected('Ubuntu+Condensed|Ubuntu Condensed', etheme_get_option('google_font'));
    ?>
><?php 
    _e("Ubuntu Condensed", ETHEME_DOMAIN);
    ?>
</option>		
   		    <option value="Allerta|Allerta" <?php 
    selected('Allerta|Allerta', etheme_get_option('google_font'));
    ?>
><?php 
    _e("Allerta", ETHEME_DOMAIN);
    ?>
</option>		
   		    <option value="Molengo|Molengo" <?php 
    selected('Molengo|Molengo', etheme_get_option('google_font'));
    ?>
><?php 
    _e("Molengo", ETHEME_DOMAIN);
    ?>
</option>		
   		    <option value="Droid+Serif|Droid Serif" <?php 
    selected('Droid+Serif|Droid Serif', etheme_get_option('google_font'));
    ?>
><?php 
    _e("Droid Serif", ETHEME_DOMAIN);
    ?>
</option>		
   		    <option value="Droid+Sans|Droid Sans" <?php 
    selected('Droid+Sans|Droid Sans', etheme_get_option('google_font'));
    ?>
><?php 
    _e("Droid Sans", ETHEME_DOMAIN);
    ?>
</option>	
   		    <option value="Vollkorn|Vollkorn" <?php 
    selected('Vollkorn|Vollkorn', etheme_get_option('google_font'));
    ?>
><?php 
    _e("Vollkorn", ETHEME_DOMAIN);
    ?>
</option>			
   		</select>
    </p>
    <hr />
	<p>
    <input type="checkbox" name="<?php 
    echo ETHEME_OPTIONS;
    ?>
[to_top]" id="<?php 
    echo ETHEME_OPTIONS;
    ?>
[to_top]" value="1" <?php 
    checked(1, etheme_get_option('to_top'));
    ?>
 /> 
    <label for="<?php 
    echo ETHEME_OPTIONS;
    ?>
[to_top]"><?php 
    _e("Enable \"Back To Top\" button", ETHEME_DOMAIN);
    ?>
</label>
    </p>

	<p><?php 
    _e("Copyright Text:", ETHEME_DOMAIN);
    ?>
<br />
	<textarea name="<?php 
    echo ETHEME_OPTIONS;
    ?>
[copyright]" cols="39" rows="2"><?php 
    etheme_option('copyright');
    ?>
</textarea>
    </p>
<?php 
}
开发者ID:Nguyenkain,项目名称:hanghieusales,代码行数:101,代码来源:theme-settings.php

示例5: etheme_get_option

				        <?php 
    $blog_layout = etheme_get_option('blog_layout');
    if (etheme_get_custom_field('post_layout') && etheme_get_custom_field('post_layout') != 'global') {
        $blog_layout = etheme_get_custom_field('post_layout');
    }
    ?>
				            <div class="portfolio-single-item row">
				
					    
								<?php 
    $args = array('post_type' => 'attachment', 'numberposts' => '5', 'post_status' => null, 'post_parent' => $post->ID, 'orderby' => 'menu_order', 'order' => 'ASC', 'exclude' => get_post_thumbnail_id());
    $attachments = get_posts($args);
    if ($attachments || has_post_thumbnail()) {
        ?>
								<div class="attachments-slider nav-type-<?php 
        etheme_option('slider_nav_type');
        ?>
 span6">
									<ul class="slides">
										<?php 
        if (has_post_thumbnail()) {
            ?>
											<?php 
            $attachment_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full');
            ?>
											<?php 
            $full_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full');
            ?>
											<?php 
            $attachment_data = wp_get_attachment_metadata(get_post_thumbnail_id());
            ?>
开发者ID:phanhoanglong2610,项目名称:flowershop,代码行数:31,代码来源:single-etheme_portfolio.php

示例6: etheme_option

<?php

/**
 * Displayed when no products are found matching the current query.
 *
 * Override this template by copying it to yourtheme/woocommerce/loop/no-products-found.php
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.0.0
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
?>
<div class="empty-category-block">
	
	<?php 
etheme_option('empty_category_content');
?>
	
	<p><a class="button active arrow-left" href="<?php 
echo get_permalink(woocommerce_get_page_id('shop'));
?>
"><span><?php 
_e('Return To Shop', ETHEME_DOMAIN);
?>
</span></a></p>
	
</div>
开发者ID:GitIPFire,项目名称:Homeworks,代码行数:31,代码来源:no-products-found.php

示例7: get_header

 * @version     2.0.0
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
get_header('shop');
?>

<?php 
extract(etheme_get_shop_sidebar());
$sidebarname = 'shop';
?>

<div class="page-heading bc-type-<?php 
etheme_option('breadcrumb_type');
?>
">
	<div class="container">
		<div class="row-fluid">
			<div class="span12 a-center">
				<?php 
if (apply_filters('woocommerce_show_page_title', true)) {
    ?>
		
					<h1 class="title"><span><?php 
    woocommerce_page_title();
    ?>
</span></h1>
		
				<?php 
开发者ID:GitIPFire,项目名称:Homeworks,代码行数:31,代码来源:archive-product.php

示例8: extract

<?php

/**
 * Template Name: Custom Registration Page
 */
extract(etheme_get_page_sidebar());
//Check whether the user is already logged in
if (!$user_ID) {
    extract(etheme_get_page_sidebar());
    get_header();
    ?>


            <div class="page-heading bc-type-<?php 
    echo esc_attr(etheme_option('breadcrumb_type'));
    ?>
">
                <div class="container">
                    <div class="row">
                        <div class="col-md-12 a-center">
                            <h1 class="title"><span><?php 
    the_title();
    ?>
</span></h1>
                            <?php 
    etheme_breadcrumbs();
    ?>
                        </div>
                    </div>
                </div>
            </div>
开发者ID:baridavid,项目名称:themes,代码行数:31,代码来源:et-registration.php

示例9: etheme_product_page_banner

function etheme_product_page_banner()
{
    global $post;
    $etheme_productspage_id = etheme_shortcode2id('[productspage]');
    if ($post->ID == $etheme_productspage_id && etheme_get_option('product_bage_banner') && etheme_get_option('product_bage_banner') != '') {
        ?>
        <div class="wpsc_category_details">
            <img src="<?php 
        etheme_option('product_bage_banner');
        ?>
"/>              
        </div>
    <?php 
    }
}
开发者ID:scoutrul,项目名称:sys,代码行数:15,代码来源:functions.php

示例10: the_content

            the_content();
            ?>
							</div>
						</div>
					</div>
					<?php 
            if ($googleMap) {
                ?>
						<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
						<script type="text/javascript">
						    
						    function etheme_google_map() {
						        var styles = {};
						        
						        var myLatlng = new google.maps.LatLng(<?php 
                etheme_option('google_map');
                ?>
);
						        var myOptions = {
						            zoom: 17,
						            center: myLatlng,
						            mapTypeId: google.maps.MapTypeId.ROADMAP,
						            disableDefaultUI: true,
						            mapTypeId: '8theme',
						            draggable: true,
						            zoomControl: true,
									panControl: false,
									mapTypeControl: true,
									scaleControl: true,
									streetViewControl: true,
									overviewMapControl: true,
开发者ID:MrMuzik,项目名称:ar4tupgrade,代码行数:31,代码来源:contacts.php

示例11: do_action

    
    	<?php 
do_action('woocommerce_before_single_product_summary');
?>
        <div class="span4 product_description_mainblock productcol summary">
    		<?php 
do_action('woocommerce_single_product_summary');
?>
    
    	</div><!-- .summary -->
        <div class="span3 product_description_banner">
    		<?php 
if (etheme_get_option('right_banners') && etheme_get_option('right_banners') != '') {
    ?>
    			<?php 
    etheme_option('right_banners', true);
    ?>
            <?php 
} else {
    ?>
                <?php 
    dynamic_sidebar('product-single-widget-area');
    ?>
            <?php 
    wp_reset_query();
    ?>
    		<?php 
}
?>
	
        </div>
开发者ID:scoutrul,项目名称:sys,代码行数:30,代码来源:content-single-product.php

示例12: etheme_init


//.........这里部分代码省略.........
            ?>
 text-decoration:  <?php 
            echo $mainfont['text-decoration'] . ';';
        }
        ?>
                    <?php 
        if (!empty($mainfont['text-transform'])) {
            ?>
  text-transform:  <?php 
            echo $mainfont['text-transform'] . ';';
        }
        ?>
 
                }
            </style>
            <script type="text/javascript">
                var active_color_selector = '<?php 
        echo jsString($selectors['active_color']);
        ?>
';
                var active_bg_selector = '<?php 
        echo jsString($selectors['active_bg']);
        ?>
';
                var active_border_selector = '<?php 
        echo jsString($selectors['active_border']);
        ?>
';
                var active_color_default = '<?php 
        echo $activeColor;
        ?>
';
                var bg_default = '<?php 
        etheme_option('backgroundcol');
        ?>
'; 
                var pattern_default = '<?php 
        if (!empty($bg['background-image'])) {
            echo $bg['background-image'];
        }
        ?>
'; 


                var ajaxFilterEnabled = <?php 
        echo etheme_get_option('ajax_filter') ? 1 : 0;
        ?>
;
                var successfullyAdded = '<?php 
        _e('successfully added to your shopping cart', ETHEME_DOMAIN);
        ?>
';
                var view_mode_default = '<?php 
        echo etheme_get_option('view_mode');
        ?>
';
                var catsAccordion = false;
                <?php 
        if (etheme_get_option('cats_accordion')) {
            ?>
                        catsAccordion = true;
                    <?php 
        }
        ?>
                <?php 
        if (class_exists('WooCommerce')) {
开发者ID:GitIPFire,项目名称:Homeworks,代码行数:67,代码来源:theme-functions.php

示例13: apply_filters

 * @version     1.6.4
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
global $post;
if (!$post->post_excerpt) {
    return;
}
?>
	<?php 
echo apply_filters('woocommerce_short_description', $post->post_excerpt);
?>

    <?php 
if (etheme_get_custom_field('_etheme_size_guide')) {
    ?>
        <div class="size_guide">
    	 <a rel="lightbox" href="<?php 
    etheme_option('size_guide_img');
    ?>
"><?php 
    _e('Sizing Guide', ETHEME_DOMAIN);
    ?>
</a>
        </div>
    <?php 
}
?>
    
开发者ID:Nguyenkain,项目名称:hanghieusales,代码行数:30,代码来源:short-description.php

示例14: etheme_option

        </div>

        <!--        <div class="cms__product__usp__call">
                    <p class="titlecall1">BẠN CẦN TRỢ GIÚP?</p>
        <p class="titlecall2" >HÃY LIÊN HỆ : 090 268 9449 (24/7) – 08. 6 291 25 28</p>
        <p class="titlecall3" style="font-size:11px;color:black">Thời gian làm việc:<br>Từ 9h đến 19h các ngày trong tuần.
        </p>
                </div> <br />-->

    </div><!-- .summary -->
    <div class="product-sidebar">
        <?php 
if (etheme_get_option('right_banners') && etheme_get_option('right_banners') != '') {
    ?>
            <?php 
    etheme_option('right_banners');
    ?>
        <?php 
} else {
    ?>
            <?php 
    dynamic_sidebar('product-single-widget-area');
    ?>
            <?php 
    wp_reset_query();
    ?>
        <?php 
}
?>
	
开发者ID:Nguyenkain,项目名称:hanghieusales,代码行数:29,代码来源:content-single-product.php

示例15: jsString

';
    var active_bg_selector = '<?php 
echo jsString($selectors['active_bg']);
?>
';
    var active_border_selector = '<?php 
echo jsString($selectors['active_border']);
?>
';
    var active_color_default = '<?php 
echo etheme_get_option('activecol') ? etheme_get_option('activecol') : '#ff4949';
?>
';
    var bg_default = '#ffffff'; 
    var pattern_default = '<?php 
etheme_option('background_img');
?>
';
    
    var isRequired = ' <?php 
_e('Please, fill in the required fields!', ETHEME_DOMAIN);
?>
';    
    var cartHref = '<?php 
echo class_exists('WooCommerce') ? $woocommerce->cart->get_cart_url() : '';
?>
';      
    var successfullyAdded2 = 'aaaa<?php 
_e('was successfully added to your shopping cart.', ETHEME_DOMAIN);
?>
<div class="clear"><a class="button cont-shop"><span><?php 
开发者ID:Nguyenkain,项目名称:hanghieusales,代码行数:31,代码来源:et-styles.php


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