本文整理汇总了PHP中etheme_option函数的典型用法代码示例。如果您正苦于以下问题:PHP etheme_option函数的具体用法?PHP etheme_option怎么用?PHP etheme_option使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了etheme_option函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: etheme_contacts_shortcodes
function etheme_contacts_shortcodes($atts, $content = null)
{
$a = shortcode_atts(array('gmap' => 1), $atts);
if (isset($_GET['contactSubmit'])) {
$emailFrom = strip_tags($_GET['contactEmail']);
$emailTo = etheme_get_option('contacts_email');
$subject = strip_tags($_GET['contactSubject']);
$name = strip_tags($_GET['contactName']);
$email = strip_tags($_GET['contactEmail']);
$message = strip_tags(stripslashes($_GET['contactMessage']));
$body = "Name: " . $name . "\n";
$body .= "Email: " . $email . "\n";
$body .= "Message: " . $message . "\n";
$body .= $name . ", <b>" . $emailFrom . "</b>\n";
$headers = "From: " . $emailFrom . "\n";
$headers .= "Reply-To:" . $emailFrom . "\n";
if (isset($_GET['contactSubmit'])) {
$success = mail($emailTo, $subject, $body, $headers);
if ($success) {
echo '<p class="yay">All is well, your e–mail has been sent.</p>';
}
} else {
echo '<p class="oops">Something went wrong</p>';
}
} else {
?>
<div class="span9 blog1_post contacts-page" id="blog_full_content">
<?php
if ($a['gmap'] == 1) {
?>
<div class="span9 blog1_post_image" id="map-image">
<div id="map">
<p>Enable your JavaScript!</p>
</div>
</div>
<div class="clear"></div>
<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 = {
'8theme': [{
"featureType": "administrative",
"stylers": [
{ "visibility": "on" }
]
},
{
"featureType": "road",
"stylers": [
{ "visibility": "on" },
{ "hue": "#e78b8b" }
]
},
{
"stylers": [
{ "visibility": "on" },
{ "hue": "#e78b8b" },
{ "saturation": -50 }
]
}
]};
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,
scrollwheel: false,
disableDoubleClickZoom: false
}
var map = new google.maps.Map(document.getElementById("map"), myOptions);
var styledMapType = new google.maps.StyledMapType(styles['8theme'], {name: '8theme'});
map.mapTypes.set('8theme', styledMapType);
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title:""
});
}
jQuery(document).ready(function(){
etheme_google_map();
});
//.........这里部分代码省略.........
开发者ID:phanhoanglong2610,项目名称:flowershop,代码行数:101,代码来源:shortcodes.php
示例17: dynamic_sidebar
dynamic_sidebar('payments-area');
?>
<?php
}
?>
</div>
</div>
<?php
if (etheme_get_option('to_top') != 'disable') {
?>
<div id="back-to-top" class="btn-style-<?php
etheme_option('to_top');
?>
"><a href="#top" id="top-link" ><span><?php
_e('Back to top', ETHEME_DOMAIN);
?>
</span></a></div>
<?php
}
?>
</div>
</div>
<?php
if (etheme_get_option('responsive')) {
?>
<div class="span12 responsive-switcher visible-phone visible-tablet <?php
开发者ID:scoutrul,项目名称:sys,代码行数:31,代码来源:footer.php
示例18: etheme_option
</section>
</li>
<?php
}
?>
<?php
if (etheme_get_option('custom_tab') && etheme_get_option('custom_tab') != '') {
?>
<li><a href="#"><?php
etheme_option('custom_tab_title');
?>
</a>
<section>
<?php
etheme_option('custom_tab');
?>
</section>
</li>
<?php
}
?>
</ul>
<div class="clear"></div>
<?php
$relateds = get_related_products($product_id, true, 220, 220);
$rand = rand(10, 1000);
if (count($relateds) > 0) {
?>
开发者ID:Nguyenkain,项目名称:hanghieusales,代码行数:31,代码来源:wpsc-single_product.php
示例19: body_class
<!-- End of Segment Pixel -->
</head>
<body <?php
body_class();
?>
>
<?php
get_template_part('et-styles');
?>
<div id="container" class="wrapper-<?php
etheme_option('main_layout');
?>
">
<?php
if (etheme_get_option('loader') == 1) {
?>
<div id="loader">
<div id="loader-status">
<p class="center-text">
<em><?php
_e('Loading the content...', ETHEME_DOMAIN);
开发者ID:Nguyenkain,项目名称:hanghieusales,代码行数:31,代码来源:header.php
示例20: etheme_option
</g>
</g>
</svg>
</div>
<?php
if ($header_type == 'default') {
?>
<div class="span3 visible-desktop">
<?php
if (etheme_get_option('header_phone') && etheme_get_option('header_phone') != '') {
?>
<span class="search_text">
<?php
etheme_option('header_phone');
?>
</span>
<?php
}
?>
<?php
if (etheme_get_option('search_form')) {
?>
<div class="search_form">
<?php
get_search_form();
?>
</div>
<?php
}
开发者ID:scoutrul,项目名称:sys,代码行数:31,代码来源:header.php
注:本文中的etheme_option函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论