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

PHP etheme_get_option函数代码示例

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

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



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

示例1: etheme_get_color

function etheme_get_color($key)
{
    $color = etheme_get_option($key);
    if ($color && $color != '#') {
        return $color;
    } else {
        return false;
    }
}
开发者ID:phanhoanglong2610,项目名称:flowershop,代码行数:9,代码来源:options.php


示例2: apply_filters

<?php

/**
 * Product Loop Start
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.0.0
 */
global $woocommerce_loop;
// Store column count for displaying the grid
$woocommerce_loop['columns'] = apply_filters('loop_shop_columns', etheme_get_option('prodcuts_per_row'));
$columns = $woocommerce_loop['columns'];
if (!empty($woocommerce_loop['shortcode_columns'])) {
    $columns = $woocommerce_loop['shortcode_columns'];
}
$view_mode = etheme_get_option('view_mode');
if ($view_mode == 'list' || $view_mode == 'list_grid') {
    $view_class = 'products-list';
} else {
    $view_class = 'products-grid';
}
?>
<div class="product-loop <?php 
echo $view_class;
?>
 product-count-<?php 
echo $columns;
?>
">
开发者ID:MrMuzik,项目名称:ar4tupgrade,代码行数:30,代码来源:loop-start.php


示例3: while

							<?php 
    while (have_posts()) {
        the_post();
        ?>
			
								<?php 
        woocommerce_get_template_part('content', 'product');
        ?>
			
							<?php 
    }
    // end of the loop.
    ?>

							<?php 
    if (etheme_get_option('product_img_hover') == 'tooltip') {
        ?>
								<script type="text/javascript">imageTooltip(jQuery('.imageTooltip'));</script>
							<?php 
    }
    ?>
							
							<div class="clear"></div>
							
						<?php 
    woocommerce_product_loop_end();
    ?>
			
						<div class="toolbar toolbar-bottom">
							<?php 
    /**
开发者ID:GitIPFire,项目名称:Homeworks,代码行数:31,代码来源:archive-product.php


示例4: etheme_get_option

<?php

/**
 * Single Product Thumbnails
 */
global $post, $product, $woocommerce;
$product_layout = etheme_get_option('single_product_layout');
$zoom = etheme_get_option('zoom_efect');
$thums_count = etheme_get_option('thumbs_count');
$crop = get_option('woocommerce_single_image_crop') == 1 ? true : false;
$mainHeight = 600;
$mainWidth = 440;
$attachment_ids = $product->get_gallery_attachment_ids();
if ($attachment_ids) {
    ?>
    <div class="views-gallery thumbs-count-<?php 
    echo $thums_count;
    ?>
">
        <ul class="slider <?php 
    if (count($attachment_ids) > 3 && $product_layout == 'variant3') {
        ?>
jcarousel-horizontal<?php 
    }
    ?>
">
            <li class="slide thumbnail-active">
            <a href="<?php 
    echo wp_get_attachment_url(get_post_thumbnail_id());
    ?>
" class="image" <?php 
开发者ID:phanhoanglong2610,项目名称:flowershop,代码行数:31,代码来源:product-thumbnails.php


示例5: etheme_get_option

<?php

/**
 * Related Products
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     1.6.4
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
global $product, $woocommerce_loop;
//$related = $product->get_related(20);
$product_per_row = etheme_get_option('product_per_row');
//if ( sizeof($related) == 0 ) return;
/*
$args = apply_filters('woocommerce_related_products_args', array(
	'post_type'				=> 'product',
	'ignore_sticky_posts'	=> 1,
	'no_found_rows' 		=> 1,
	'posts_per_page' 		=> 20,
	'orderby' 				=> $orderby,
	'post__in' 				=> $related
) );
*/
$termekszin = wp_get_post_terms($product->id, 'pa_szin');
foreach ($termekszin as $s) {
    $sz[] = $s->term_id;
}
开发者ID:donpapa26,项目名称:bakancslistad,代码行数:31,代码来源:related.php


示例6: get_etheme_portfolio

function get_etheme_portfolio($categories = false, $limit = false, $show_pagination = true)
{
    $paged = get_query_var('paged') ? get_query_var('paged') : 1;
    $tax_query = array();
    if (!$limit) {
        $limit = etheme_get_option('portfolio_count');
    }
    if (is_array($categories) && !empty($categories)) {
        $tax_query = array(array('taxonomy' => 'categories', 'field' => 'id', 'terms' => $categories, 'operator' => 'IN'));
    } else {
        if (!is_array($categories) && !empty($categories)) {
            $categories = explode(',', $categories);
            $tax_query = array(array('taxonomy' => 'categories', 'field' => 'id', 'terms' => $categories, 'operator' => 'IN'));
        }
    }
    $args = array('post_type' => 'etheme_portfolio', 'paged' => $paged, 'posts_per_page' => $limit, 'tax_query' => $tax_query);
    $loop = new WP_Query($args);
    if ($loop->have_posts()) {
        ?>
			<div>
				<ul class="portfolio-filters">
					<li><a href="#" data-filter="*" class="button active"><?php 
        _e('Show All', ETHEME_DOMAIN);
        ?>
</a></li>
						<?php 
        $categories = get_terms('categories', array('include' => $categories));
        $catsCount = count($categories);
        $_i = 0;
        foreach ($categories as $category) {
            $_i++;
            ?>
								<li><a href="#" data-filter=".sort-<?php 
            echo $category->slug;
            ?>
" class="button"><?php 
            echo $category->name;
            ?>
</a></li>
							<?php 
        }
        ?>
				</ul>
			
				<div class="row portfolio masonry">
				<?php 
        while ($loop->have_posts()) {
            $loop->the_post();
            ?>

					<?php 
            get_template_part('content', 'portfolio');
            ?>

				<?php 
        }
        ?>
				</div>
			</div>

		<?php 
        if ($show_pagination) {
            ?>
			<?php 
            etheme_portfolio_pagination($loop, $paged);
            ?>
		<?php 
        }
        ?>
		
	<?php 
    } else {
        ?>

		<h3><?php 
        _e('No pages were found!', ETHEME_DOMAIN);
        ?>
</h3>

	<?php 
    }
}
开发者ID:MrMuzik,项目名称:ar4tupgrade,代码行数:82,代码来源:portfolio.php


示例7: etheme_get_option

      <div class="clear"></div>

      <!--<div class="menu_above">

        <div class="home active">

          <a href="/"><span class="icon i-home">&nbsp;<span class="s-visuallyhidden">Trang chủ</span></span></a>

        </div>

      </div>-->

      <div class="clear"></div>
      <?php 
$logoimg = etheme_get_option('logo');
?>
      <style>.logo h1 a {
              display: block;
                background: url('<?php 
echo $logoimg;
?>
') no-repeat;
                background-size: 200px auto;
                width: 280px;
                height: 100px;
                text-indent: -99999px;
                margin-top: -1px;}
      </style>
        <div class="logo">
        <?php 
开发者ID:Nguyenkain,项目名称:hanghieusales,代码行数:30,代码来源:header.php


示例8: etheme_get_option

/**
 * Simple product add to cart
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     2.1.0
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
global $woocommerce, $product;
if (!$product->is_purchasable()) {
    return;
}
$ajax_addtocart = etheme_get_option('ajax_addtocart');
?>


<div class="addto-container">
<?php 
if ($product->is_in_stock()) {
    ?>

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

	<form class="cart" method="post" enctype='multipart/form-data'>
	 	<?php 
    do_action('woocommerce_before_add_to_cart_button');
开发者ID:donpapa26,项目名称:bakancslistad,代码行数:31,代码来源:simple.php


示例9: et_get_main_menu

								<div class="collapse navbar-collapse">
									<?php 
et_get_main_menu();
?>
								</div><!-- /.navbar-collapse -->
							</div>
							<div class="header-logo">
								<?php 
etheme_logo();
?>
							</div>
							<div class="tbs navmenu-right">
								<div class="collapse navbar-collapse">
									<?php 
et_get_main_menu('main-menu-right');
?>
								</div><!-- /.navbar-collapse -->
							</div>
	
						</div><!-- /.container-fluid -->
					</div>
			</div>
		</header>
	<?php 
if (etheme_get_option('header_type') == 'vertical' || etheme_get_option('header_type') == 'vertical2') {
    ?>
		</div>
	<?php 
}
?>
</div>
开发者ID:EmmaTope,项目名称:gadafunds,代码行数:31,代码来源:header-structure-6.php


示例10: jsString

</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 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() : '';
?>
开发者ID:Nguyenkain,项目名称:hanghieusales,代码行数:31,代码来源:et-styles.php


示例11: etheme_get_option

<?php

$blog_layout = etheme_get_option('blog_layout');
$blog_sidebar = etheme_get_option('blog_sidebar');
get_header();
?>
<section id="main" class="columns2-<?php 
echo $blog_sidebar;
?>
 blog-<?php 
echo $blog_layout;
?>
">
  <div class="content">
    <?php 
if (have_posts()) {
    ?>
      <h3 class="page-title">
        <?php 
    if (is_day()) {
        ?>
          <?php 
        printf(__('Daily Archives: %s', ETHEME_DOMAIN), '<span>' . get_the_date() . '</span>');
        ?>
        <?php 
    } elseif (is_month()) {
        ?>
          <?php 
        printf(__('Monthly Archives: %s', ETHEME_DOMAIN), '<span>' . get_the_date(_x('F Y', 'monthly archives date format', ETHEME_DOMAIN)) . '</span>');
        ?>
        <?php 
开发者ID:Nguyenkain,项目名称:hanghieusales,代码行数:31,代码来源:taxonomy-category.php


示例12: etheme_logo

etheme_logo();
?>
</div>
					<div class="col-md-4 hidden-phone hidden-tablet">
						<div class="col-md-12">
							<div class="col-md-7">
							
							</div>
							<div class="col-md-5 hidden-phone hidden-tablet" style="padding-top:12.5%">
								<div class="col-md-4" style="padding:0px;padding-top:2px">
									<span data-toggle="modal" data-target="#searchModal" class="fa fa-search"></span>
								</div>
								<div class="col-md-1" style="width: 3px; height: 25px; background: black;padding:0px;margin-left:6px"></div>
								<div class="col-md-6" style="padding:0px">
								<?php 
if (class_exists('Woocommerce') && !etheme_get_option('just_catalog') && etheme_get_option('cart_widget')) {
    ?>
								<?php 
    etheme_top_cart();
    ?>
								<?php 
}
?>
								</div>
							</div>

						</div>			
					</div>
				</div>
				<div class="menu-icon hidden-desktop"><i class="icon-reorder"></i></div>
			</div>
开发者ID:ardiqghenatya,项目名称:mavinnew,代码行数:31,代码来源:header.php


示例13: _e

    ?>
	    successfullyAdded2 = '<?php 
    _e('was successfully added to your shopping cart.', ETHEME_DOMAIN);
    ?>
<div class="clear"><a class="button cont-shop"><span><?php 
    _e('Continue Shopping', ETHEME_DOMAIN);
    ?>
</span></a><a href="<?php 
    echo WC()->cart->get_cart_url();
    ?>
" class="button fl-r"><span><?php 
    _e('Checkout', ETHEME_DOMAIN);
    ?>
</span></a></div>';
	    <?php 
    if (etheme_get_option('nice_scroll')) {
        ?>
	    	jQuery(document).ready(function(){
		    	jQuery("html").niceScroll({
			    	hidecursordelay: 100000,
			    	scrollspeed: 40
		    	});
	    	});
	    <?php 
    }
    ?>
    <?php 
}
?>
                   
</script>
开发者ID:scoutrul,项目名称:sys,代码行数:31,代码来源:et-styles.php


示例14: woocommerce_form_field

			<?php 
    woocommerce_form_field($key, $field, $checkout->get_value($key));
    ?>

		<?php 
}
?>

<?php 
do_action('woocommerce_after_checkout_billing_form', $checkout);
?>



<?php 
if (etheme_get_option('checkout_page') == 'stepbystep') {
    ?>
	<a href="#" class="button active fl-r continue-checkout" data-next="4"><?php 
    _e('Continue', ETHEME_DOMAIN);
    ?>
</a>
<?php 
} else {
    ?>

<?php 
    if (!is_user_logged_in() && $checkout->enable_signup) {
        ?>

	<?php 
        if ($checkout->enable_guest_checkout) {
开发者ID:MrMuzik,项目名称:ar4tupgrade,代码行数:31,代码来源:form-billing.php


示例15: etheme_get_image

        if ($zoom == 'disable') {
            ?>
 rel="lightbox[gal]"<?php 
        }
        ?>
 data-easyzoom-source="<?php 
        echo etheme_get_image($id, $mainWidth, $mainHeight, $crop);
        ?>
">
                            <img src="<?php 
        echo etheme_get_image($id, $thumbImageWidth, $thumbImageHeight, $thumbImageCrop);
        ?>
" >
                        </a>   
						<?php 
        if (etheme_get_option('gallery_lightbox') && $zoom != 'disable') {
            ?>
							<a href="<?php 
            echo wp_get_attachment_url($id);
            ?>
" rel="lightbox[gal]" style="display:none;" data-original-title="" data-placement="left">&nbsp;</a>
						<?php 
        }
        ?>
                    </li>               
                        
                    <?php 
    }
    ?>
        </ul>
    </div>
开发者ID:donpapa26,项目名称:bakancslistad,代码行数:31,代码来源:product-thumbnails.php


示例16: elseif

</h6>
          </div>
      <?php 
} elseif ($post_format == 'gallery') {
    ?>
          <div class="content-article">
              <?php 
    echo $filtered_content;
    ?>
          </div>
      <?php 
}
?>
    </div>
    <?php 
if (etheme_get_option('blog_byline') && etheme_get_option('blog_layout') == 'timeline') {
    ?>
        <div class="meta-post-timeline">
            <?php 
    the_time(get_option('date_format'));
    ?>
 / 
            <?php 
    the_time(get_option('time_format'));
    ?>
        </div>
    <?php 
}
?>
</article>
开发者ID:hamednourhani,项目名称:floragol-child,代码行数:30,代码来源:content.php


示例17:

        ?>
</a>
                    	<?php 
    }
    ?>
                	</div>
                <?php 
}
?>
  
            </div>
		</div>
	</div>
	</div> <!-- page wrapper -->
	<?php 
if (etheme_get_option('to_top')) {
    ?>
		<div class="back-to-top hidden-phone hidden-tablet">
			<span><?php 
    _e('Back to top', ETHEME_DOMAIN);
    ?>
</span>
		</div>
	<?php 
}
?>

	<?php 
do_action('after_page_wrapper');
?>
开发者ID:GitIPFire,项目名称:Homeworks,代码行数:30,代码来源:footer.php


示例18: do_action

	                </div>
	        <?php 
}
?>
	
            <?php 
/**
 * woocommerce_after_shop_loop_item_title hook
 *
 * @hooked woocommerce_template_loop_rating - 5
 * @hooked woocommerce_template_loop_price - 10
 */
if (etheme_get_option('product_page_price')) {
    do_action('woocommerce_after_shop_loop_item_title');
}
?>
            
	        <div class="product-excerpt">
                <?php 
echo do_shortcode(get_the_excerpt());
?>
	        </div>

			<?php 
if (etheme_get_option('product_page_addtocart')) {
    do_action('woocommerce_after_shop_loop_item');
}
?>
		</div>
	</div>
</div>
开发者ID:EmmaTope,项目名称:gadafunds,代码行数:31,代码来源:content-product.php


示例19: _e

				<?php 
} else {
    ?>

					<h3><?php 
    _e('No pages were found!', ETHEME_DOMAIN);
    ?>
</h3>

				<?php 
}
?>
				<div class="clear"></div>
				
	    		<?php 
if (etheme_get_option('recent_projects')) {
    echo etheme_get_recent_portfolio(8, __('Recent Works', ETHEME_DOMAIN), $post->ID);
}
if (etheme_get_option('portfolio_comments')) {
    comments_template('', true);
}
?>

			</div>
		</div>

	</div>
</div>
	
<?php 
get_footer();
开发者ID:EmmaTope,项目名称:gadafunds,代码行数:31,代码来源:single-etheme_portfolio.php


示例20: the_title

        <div class="portfolio-descr">
	        
	        <h3><?php 
the_title();
?>
<h3>
	        
			<?php 
if (has_post_thumbnail($postId)) {
    ?>
				<?php 
    $url = wp_get_attachment_url(get_post_thumbnail_id($post->ID));
    ?>
			
				<?php 
    if (etheme_get_option('port_use_lightbox')) {
        ?>
<a class="button small btn-icon btn-enlarge" rel="lightbox[portfolio]" href="<?php 
        echo $url;
        ?>
"><i class="icon-fullscreen"></i></a><?php 
    }
    ?>
			<?php 
}
?>
        	<a class="button small active btn-icon btn-link" href="<?php 
the_permalink($postId);
?>
"><i class="icon-link"></i></a>
	        
开发者ID:donpapa26,项目名称:bakancslistad,代码行数:30,代码来源:portfolio-slide.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP etheme_option函数代码示例发布时间:2022-05-15
下一篇:
PHP etheme_get_image函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap