本文整理汇总了PHP中etheme_get_custom_field函数的典型用法代码示例。如果您正苦于以下问题:PHP etheme_get_custom_field函数的具体用法?PHP etheme_get_custom_field怎么用?PHP etheme_get_custom_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了etheme_get_custom_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: etheme_add_upload_product_setting
function etheme_add_upload_product_setting($page_id, $id, $title = '')
{
$title = $title ? $title : __('Upload Image', ETHEME_DOMAIN);
$output = '';
$formid = $id;
$saved_file = etheme_get_custom_field('_' . $id);
$uploadclass = $saved_file ? 'has-file' : '';
$output .= '<h4 class="upload_title">' . $title . '</h4>';
$output .= '<input type="text" name="etheme_product[_' . $id . ']" id="' . $id . '" value="' . $saved_file . '" class="upload ' . $uploadclass . '" />';
$output .= '<input id="' . $id . '" class="upload_button button button-highlighted " type="button" value="Upload" rel="' . $page_id . '" />';
$output .= '<div class="screenshot etheme clear" id="' . $id . '">';
if ($saved_file != '') {
$remove = '<a href="#" class="remove etheme">Remove</a>';
$image = preg_match('/(^.*\\.jpg|jpeg|png|gif|ico*)/i', $saved_file);
if ($image) {
$output .= '<img src="' . $saved_file . '" alt="" />' . $remove . '';
} else {
$parts = explode("/", $saved_file);
for ($i = 0; $i < sizeof($parts); ++$i) {
$title = $parts[$i];
}
$output .= '<div class="no_image"><a href="' . $saved_file . '">' . $title . '</a>' . $remove . '</div>';
}
}
$output .= '</div>';
return $output;
}
示例2: 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>
<div class="size_guide sg_mobile">
<a rel="lightbox" href="<?php
etheme_option('size_guide_img_mobile');
?>
"><?php
示例3: etheme_custom_field
function etheme_custom_field($field)
{
echo etheme_get_custom_field($field);
}
示例4: et_size_guide
function et_size_guide()
{
if (etheme_get_custom_field('size_guide_img')) {
?>
<?php
$lightbox_rel = get_option('woocommerce_enable_lightbox') == 'yes' ? 'prettyPhoto' : 'lightbox';
?>
<div class="size_guide">
<a rel="<?php
echo $lightbox_rel;
?>
" href="<?php
etheme_custom_field('size_guide_img');
?>
"><?php
_e('SIZING GUIDE', ETHEME_DOMAIN);
?>
</a>
</div>
<?php
}
}
示例5:
<?php
if (etheme_get_custom_field('copyright_url') != '') {
?>
</a><?php
}
?>
</td>
</tr>
<?php
}
?>
</table>
<?php
if (etheme_get_custom_field('project_url') != '') {
?>
<a href="<?php
etheme_custom_field('project_url');
?>
" target="_blank" class="button fl-r active big arrow-right"><span><?php
_e('Visit Project Site', ETHEME_DOMAIN);
?>
</span></a>
<?php
}
?>
<div class="clear"></div>
示例6: etheme_get_page_sidebar
function etheme_get_page_sidebar($blog = false)
{
$result = array('position' => '', 'responsive' => '', 'sidebarname' => '');
$result['responsive'] = etheme_get_option('blog_sidebar_responsive');
$result['position'] = etheme_get_option('blog_sidebar');
$page_sidebar_state = etheme_get_custom_field('sidebar_state', $blog);
$widgetarea = etheme_get_custom_field('widget_area', $blog);
if ($widgetarea != '') {
$result['sidebarname'] = 'custom';
}
if ($page_sidebar_state != '') {
$result['position'] = $page_sidebar_state;
}
if ($result['position'] == 'no_sidebar') {
$result['position'] = false;
}
return $result;
}
示例7: etheme_custom_field
</div>
<?php
}
?>
<?php
if (etheme_get_custom_field('_etheme_custom_tab2_title') && etheme_get_custom_field('_etheme_custom_tab2_title') != '') {
?>
<a href="#tab8" id="tab_8" class="tab-title"><?php
etheme_custom_field('_etheme_custom_tab2_title');
?>
</a>
<div id="content_tab_8" class="tab-content">
<?php
echo do_shortcode(etheme_get_custom_field('_etheme_custom_tab2'));
?>
</div>
<?php
}
?>
<?php
if (etheme_get_option('custom_tab_title') && etheme_get_option('custom_tab_title') != '') {
?>
<a href="#tab9" id="tab_9" class="tab-title"><?php
etheme_option('custom_tab_title');
?>
</a>
<div id="content_tab_9" class="tab-content">
示例8: etheme_get_custom_field
<?php
/**
* The Sidebar containing the primary and secondary widget areas.
*
*/
$page_sidebar = etheme_get_custom_field('widget_area');
?>
<div id="primary" class="widget-area" role="complementary">
<?php
if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) {
dynamic_sidebar($page_sidebar);
} else {
/* No widget */
}
?>
</div><!-- #primary .widget-area -->
示例9: woocommerce_upsell_display
?>
</div>
<?php
}
?>
</div>
<?php
if (etheme_get_option('upsell_location') == 'after_content') {
woocommerce_upsell_display();
}
?>
<?php
if (etheme_get_custom_field('additional_block') != '') {
echo '<div class="product-extra-content">';
et_show_block(etheme_get_custom_field('additional_block'));
echo '</div>';
}
?>
<?php
if (etheme_get_option('show_related')) {
woocommerce_output_related_products();
}
?>
<meta itemprop="url" content="<?php
the_permalink();
?>
" />
示例10: etheme_get_option
<?php
global $etheme_responsive;
$fd = etheme_get_option('footer_demo');
$fbg = etheme_get_option('footer_bg');
$fcolor = etheme_get_option('footer_text_color');
$ft = '';
$ft = apply_filters('custom_footer_filter', $ft);
$custom_footer = etheme_get_custom_field('custom_footer', et_get_page_id());
?>
<?php
if ($custom_footer != 'without') {
?>
<?php
if ((is_active_sidebar('footer1') || $fd) && empty($custom_footer)) {
?>
<div class="footer-top footer-top-<?php
echo esc_attr($ft);
?>
">
<div class="container">
<?php
if (!is_active_sidebar('footer1')) {
?>
<?php
if ($fd) {
etheme_footer_demo('footer1');
}
?>
<?php
示例11: call_user_func
<?php
call_user_func($tab['callback'], $key, $tab);
?>
</div>
</div>
<?php
}
?>
<?php
if (etheme_get_custom_field('custom_tab1_title') && etheme_get_custom_field('custom_tab1_title') != '') {
?>
<div id="content_tab_7" class="tab-content">
<div class="tab-content-inner">
<?php
echo do_shortcode(etheme_get_custom_field('custom_tab1'));
?>
</div>
</div>
<?php
}
?>
<?php
if (etheme_get_option('custom_tab_title') && etheme_get_option('custom_tab_title') != '') {
?>
<div id="content_tab_9" class="tab-content">
<div class="tab-content-inner">
<?php
echo do_shortcode(etheme_get_option('custom_tab'));
示例12: previous_post_link
previous_post_link('%link', '<span class="meta-nav">' . _x('', 'Previous post link', ETHEME_DOMAIN) . '</span> %title');
?>
</div>
<div class="nav-next"><?php
next_post_link('%link', '%title <span class="meta-nav">' . _x('', 'Next post link', ETHEME_DOMAIN) . '</span>');
?>
</div>
</div><!-- #nav-above -->
<div class="clear"></div>
<?php
}
?>
<?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');
}
$blog_slider = etheme_get_option('post_img_slider');
switch ($blog_layout) {
case 'default':
$imH = 870;
$imW = 870;
break;
case 'portrait':
$imH = 340;
$imW = 260;
break;
case 'horizontal':
$imH = 300;
$imW = 300;
break;
示例13: etheme_option
etheme_option('custom_tab');
?>
</div>
<?php
}
?>
<?php
if (etheme_get_custom_field('_etheme_custom_tab1')) {
?>
<div class="panel entry-content" id="custom2">
<?php
etheme_custom_field('_etheme_custom_tab1');
?>
</div>
<?php
}
?>
<?php
if (etheme_get_custom_field('_etheme_custom_tab2')) {
?>
<div class="panel entry-content" id="custom3">
<?php
etheme_custom_field('_etheme_custom_tab2');
?>
</div>
<?php
}
?>
示例14: woocommerce_get_template
woocommerce_get_template('loop/sale-flash.php');
?>
<?php
if (etheme_get_custom_field('_etheme_hover') && $product_img_hover == 'swap') {
?>
<div class="img-wrapper"><img class="product_image img-hided" src="<?php
echo etheme_get_custom_field('_etheme_hover');
?>
" alt="<?php
the_title();
?>
"/></div><?php
}
?>
<div class="img-wrapper<?php
if (etheme_get_custom_field('_etheme_hover') && $product_img_hover == 'swap') {
echo ' hideableHover';
}
?>
"><img class="product_image" src="<?php
echo $url;
?>
" alt="<?php
the_title();
?>
"/></div>
</a>
<?php
} else {
echo '<img src="' . woocommerce_placeholder_img_src() . '" alt="Placeholder" width="' . $placeholder_width . '" height="' . $placeholder_height . '" />';
}
示例15: apply_filters
<?php
$ht = $class = '';
$ht = apply_filters('custom_header_filter', $ht);
$page_id = et_get_page_id();
$hstrucutre = etheme_get_header_structure($ht);
$page_slider = etheme_get_custom_field('page_slider', $page_id);
if (etheme_get_option('header_transparent')) {
$class .= ' header-transparent';
}
?>
<div class="header-wrapper header-type-<?php
echo $ht . ' ' . $class;
?>
">
<?php
if (etheme_get_option('header_type') == 'vertical' || etheme_get_option('header_type') == 'vertical2') {
?>
<div class="header-content nano-content">
<?php
}
?>
<?php
get_template_part('headers/parts/top-bar', $hstrucutre);
?>
<header class="header main-header">
<div class="header-top">
<div class="container">