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

PHP et_get_option函数代码示例

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

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



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

示例1: surbma_divi_gravity_forms_enqueue_scripts

function surbma_divi_gravity_forms_enqueue_scripts()
{
    if (wp_basename(get_bloginfo('template_directory')) == 'Divi' && class_exists('GFForms')) {
        wp_enqueue_style('surbma-divi-gravity-forms-styles', plugins_url('', __FILE__) . '/css/surbma-divi-gravity-forms.css');
        $accent_color = esc_html(et_get_option('accent_color', '#2ea3f2'));
        $all_buttons_font_size = esc_html(et_get_option('all_buttons_font_size', '20'));
        $all_buttons_text_color = esc_html(et_get_option('all_buttons_text_color', $accent_color));
        $all_buttons_text_color_hover = esc_html(et_get_option('all_buttons_text_color_hover', $accent_color));
        $all_buttons_bg_color = esc_html(et_get_option('all_buttons_bg_color', '#fff'));
        $all_buttons_bg_color_hover = esc_html(et_get_option('all_buttons_bg_color_hover', 'rgba(0,0,0,.05)'));
        $all_buttons_border_width = esc_html(et_get_option('all_buttons_border_width', '2'));
        $all_buttons_border_color = esc_html(et_get_option('all_buttons_border_color', $accent_color));
        $all_buttons_border_color_hover = esc_html(et_get_option('all_buttons_border_color_hover', 'transparent'));
        $all_buttons_border_radius = esc_html(et_get_option('all_buttons_border_radius', '3'));
        $all_buttons_border_radius_hover = esc_html(et_get_option('all_buttons_border_radius_hover', '3'));
        $all_buttons_spacing = esc_html(et_get_option('all_buttons_spacing', '0'));
        $all_buttons_spacing_hover = esc_html(et_get_option('all_buttons_spacing_hover', '0'));
        $all_buttons_font_style = esc_html(et_get_option('all_buttons_font_style', '', '', true));
        $button_text_style = '';
        if ($all_buttons_font_style !== '') {
            $button_text_style = et_pb_print_font_style($all_buttons_font_style);
        }
        $all_buttons_font = esc_html(et_get_option('all_buttons_font', 'inherit'));
        $custom_css = "body .gform_wrapper .gform_footer input.button,body .gform_wrapper .gform_page_footer input.button{background-color:{$all_buttons_bg_color};color:{$accent_color};border-width:{$all_buttons_border_width}px;border-color:{$all_buttons_border_color};border-radius:{$all_buttons_border_radius}px;font-family:{$all_buttons_font};font-size:{$all_buttons_font_size}px;letter-spacing:{$all_buttons_spacing}px;{$button_text_style}}body .gform_wrapper .gform_footer input.button:hover,body .gform_wrapper .gform_page_footer input.button:hover{background-color:{$all_buttons_bg_color_hover};color:{$all_buttons_text_color_hover};border-color:{$all_buttons_border_color_hover};border-radius:{$all_buttons_border_radius_hover}px;letter-spacing:{$all_buttons_spacing_hover}px;}}";
        wp_add_inline_style('surbma-divi-gravity-forms-styles', $custom_css);
    }
}
开发者ID:planetahuevo,项目名称:surbma-divi-gravity-forms,代码行数:27,代码来源:surbma-divi-gravity-forms.php


示例2: et_home_posts_query

/**
 * Filters the main query on homepage
 */
function et_home_posts_query($query = false)
{
    /* Don't proceed if it's not homepage or the main query */
    if (!is_home() || !is_a($query, 'WP_Query') || !$query->is_main_query()) {
        return;
    }
    if ('false' == et_get_option('feather_blog_style', 'false')) {
        if ('on' == et_get_option('feather_display_recentwork_section', 'on')) {
            $query->set('posts_per_page', (int) et_get_option('feather_posts_media', '8'));
            $exclude_media_categories = et_get_option('feather_exlcats_media', false);
            if ($exclude_media_categories) {
                $query->set('category__not_in', array_map('intval', et_generate_wpml_ids($exclude_media_categories, 'category')));
            }
        }
        return;
    }
    /* Set the amount of posts per page on homepage */
    $query->set('posts_per_page', (int) et_get_option('feather_homepage_posts', '6'));
    /* Exclude categories set in ePanel */
    $exclude_categories = et_get_option('feather_exlcats_recent', false);
    if ($exclude_categories) {
        $query->set('category__not_in', array_map('intval', et_generate_wpml_ids($exclude_categories, 'category')));
    }
    /* Exclude slider posts, if the slider is activated, pages are not featured and posts duplication is disabled in ePanel  */
    if ('on' == et_get_option('feather_featured', 'on') && 'false' == et_get_option('feather_use_pages', 'false') && 'false' == et_get_option('feather_duplicate', 'on')) {
        $query->set('post__not_in', et_get_featured_posts_ids());
    }
}
开发者ID:iinspiration,项目名称:theme,代码行数:31,代码来源:functions.php


示例3: et_assign_category_color_upon_activation

/**
 * Automatically assign category color when the theme is activated
 * @return void
 */
function et_assign_category_color_upon_activation()
{
    if (et_get_option('has_auto_assign_category_color')) {
        return;
    }
    // Get category
    $categories = get_categories(array('hide_empty' => 0));
    // Available colors
    $colors = et_default_category_colors();
    // Loop categories data
    $color_index = 0;
    foreach ($categories as $category) {
        $category_id = $category->term_id;
        // Check for saved color
        $category_color = et_get_taxonomy_meta($category_id, 'color', true);
        // Skip if the category already has color
        if (!empty($category_color)) {
            continue;
        }
        $color = $colors[$color_index];
        // Set category color
        et_update_taxonomy_meta($category_id, 'color', $color);
        // Setup $color_index for next loop iteration
        $color_index++;
        if ($color_index >= count($colors)) {
            $color_index = 0;
        }
    }
    et_update_option('has_auto_assign_category_color', true);
}
开发者ID:rthburke,项目名称:fltHub,代码行数:34,代码来源:category.php


示例4: truncate_post

 function truncate_post($amount, $echo = true, $post = '')
 {
     global $shortname;
     if ('' == $post) {
         global $post;
     }
     $post_excerpt = '';
     $post_excerpt = apply_filters('the_excerpt', $post->post_excerpt);
     if ('on' == et_get_option($shortname . '_use_excerpt') && '' != $post_excerpt) {
         if ($echo) {
             echo $post_excerpt;
         } else {
             return $post_excerpt;
         }
     } else {
         // get the post content
         $truncate = $post->post_content;
         // remove caption shortcode from the post content
         $truncate = preg_replace('@\\[caption[^\\]]*?\\].*?\\[\\/caption]@si', '', $truncate);
         // DM - remove non-exerptable modules from excerpts
         $truncate = preg_replace('@\\[et_pb_blog[^\\]]*?\\]@si', '', $truncate);
         // blog module
         $truncate = preg_replace('@\\[et_pb_signup[^\\]]*?\\]@si', '', $truncate);
         // subscribe module
         // apply content filters
         $truncate = apply_filters('the_content', $truncate);
         // decide if we need to append dots at the end of the string
         if (strlen($truncate) <= $amount) {
             $echo_out = '';
         } else {
             $echo_out = '...';
             // $amount = $amount - 3;
         }
         // trim text to a certain number of characters, also remove spaces from the end of a string ( space counts as a character )
         if (!$echo) {
             $truncate = rtrim(et_wp_trim_words($truncate, $amount, ''));
         } else {
             $truncate = rtrim(wp_trim_words($truncate, $amount, ''));
         }
         // remove the last word to make sure we display all words correctly
         if ('' != $echo_out) {
             $new_words_array = (array) explode(' ', $truncate);
             array_pop($new_words_array);
             $truncate = implode(' ', $new_words_array);
             // append dots to the end of the string
             $truncate .= $echo_out;
         }
         if ($echo) {
             echo $truncate;
         } else {
             return $truncate;
         }
     }
 }
开发者ID:Lumbe,项目名称:dev_servus,代码行数:54,代码来源:functions.php


示例5: extra_set_modules_default_values

/**
 * Setup default values for Extra specific modules. Default values are also define
 * the unit used in advanced design settings
 * @return array
 */
function extra_set_modules_default_values($defaults)
{
    $extra_defaults = array('et_pb_posts-header_font_size' => '16px', 'et_pb_posts-header_font_style' => 'uppercase', 'et_pb_posts-header_text_color' => '', 'et_pb_posts-header_line_height' => '1', 'et_pb_posts-header_letter_spacing' => '1.2px', 'et_pb_posts-subheader_font_size' => '14px', 'et_pb_posts-subheader_font_style' => '', 'et_pb_posts-subheader_text_color' => '', 'et_pb_posts-subheader_line_height' => '1em', 'et_pb_posts-subheader_letter_spacing' => '0px', 'et_pb_posts-main_title_font_size' => '16px', 'et_pb_posts-main_title_font_style' => '', 'et_pb_posts-main_title_text_color' => 'rgba(0,0,0,0.75)', 'et_pb_posts-main_title_line_height' => '1.3em', 'et_pb_posts-main_title_letter_spacing' => '0.5px', 'et_pb_posts-main_meta_font_size' => '12px', 'et_pb_posts-main_meta_font_style' => '', 'et_pb_posts-main_meta_text_color' => 'rgba(0, 0, 0, 0.5)', 'et_pb_posts-main_meta_line_height' => '1.7em', 'et_pb_posts-main_meta_letter_spacing' => '0px', 'et_pb_posts-main_body_font_size' => '14px', 'et_pb_posts-main_body_font_style' => '', 'et_pb_posts-main_body_text_color' => 'rgba(0, 0, 0, 0.6)', 'et_pb_posts-main_body_line_height' => '1.8em', 'et_pb_posts-main_body_letter_spacing' => '0px', 'et_pb_posts-list_title_font_size' => '14px', 'et_pb_posts-list_title_font_style' => '', 'et_pb_posts-list_title_text_color' => 'rgba(0,0,0,0.75)', 'et_pb_posts-list_title_line_height' => '1.3em', 'et_pb_posts-list_title_letter_spacing' => '0px', 'et_pb_posts-list_meta_font_size' => '12px', 'et_pb_posts-list_meta_font_style' => '', 'et_pb_posts-list_meta_text_color' => 'rgba(0, 0, 0, 0.5)', 'et_pb_posts-list_meta_line_height' => '1.7em', 'et_pb_posts-list_meta_letter_spacing' => '0px', 'et_pb_posts-remove_drop_shadow' => 'off', 'et_pb_posts-border_radius' => '3px', 'et_pb_tabbed_posts-active_tab_background_color' => '#ffffff', 'et_pb_tabbed_posts-inactive_tab_background_color' => '#f6f9fd', 'et_pb_tabbed_posts-tab_font_size' => '16px', 'et_pb_tabbed_posts-tab_font_style' => '', 'et_pb_tabbed_posts-tab_text_color' => '', 'et_pb_tabbed_posts-tab_line_height' => '1em', 'et_pb_tabbed_posts-tab_letter_spacing' => '1.2px', 'et_pb_tabbed_posts-main_title_font_size' => '16px', 'et_pb_tabbed_posts-main_title_font_style' => '', 'et_pb_tabbed_posts-main_title_text_color' => 'rgba(0,0,0,0.75)', 'et_pb_tabbed_posts-main_title_line_height' => '1.3em', 'et_pb_tabbed_posts-main_title_letter_spacing' => '0.5px', 'et_pb_tabbed_posts-main_meta_font_size' => '12px', 'et_pb_tabbed_posts-main_meta_font_style' => '', 'et_pb_tabbed_posts-main_meta_text_color' => 'rgba(0, 0, 0, 0.5)', 'et_pb_tabbed_posts-main_meta_line_height' => '1.7em', 'et_pb_tabbed_posts-main_meta_letter_spacing' => '0px', 'et_pb_tabbed_posts-main_body_font_size' => '14px', 'et_pb_tabbed_posts-main_body_font_style' => '', 'et_pb_tabbed_posts-main_body_text_color' => 'rgba(0, 0, 0, 0.6)', 'et_pb_tabbed_posts-main_body_line_height' => '1.8em', 'et_pb_tabbed_posts-main_body_letter_spacing' => '0px', 'et_pb_tabbed_posts-list_title_font_size' => '14px', 'et_pb_tabbed_posts-list_title_font_style' => '', 'et_pb_tabbed_posts-list_title_text_color' => 'rgba(0,0,0,0.75)', 'et_pb_tabbed_posts-list_title_line_height' => '1.3em', 'et_pb_tabbed_posts-list_title_letter_spacing' => '0px', 'et_pb_tabbed_posts-list_meta_font_size' => '12px', 'et_pb_tabbed_posts-list_meta_font_style' => '', 'et_pb_tabbed_posts-list_meta_text_color' => 'rgba(0, 0, 0, 0.5)', 'et_pb_tabbed_posts-list_meta_line_height' => '1.7em', 'et_pb_tabbed_posts-list_meta_letter_spacing' => '0px', 'et_pb_tabbed_posts-remove_drop_shadow' => 'off', 'et_pb_tabbed_posts-border_radius' => '3px', 'et_pb_posts_carousel-hover_overlay_color' => 'rgba(0, 0, 0, 0.3)', 'et_pb_posts_carousel-hover_overlay_icon_color' => '#FFFFFF', 'et_pb_posts_carousel-hover_overlay_icon' => '\\e050', 'et_pb_posts_carousel-header_font_size' => '16px', 'et_pb_posts_carousel-header_font_style' => 'uppercase', 'et_pb_posts_carousel-header_text_color' => '', 'et_pb_posts_carousel-header_line_height' => '1', 'et_pb_posts_carousel-header_letter_spacing' => '1.2px', 'et_pb_posts_carousel-subheader_font_size' => '14px', 'et_pb_posts_carousel-subheader_font_style' => '', 'et_pb_posts_carousel-subheader_text_color' => '', 'et_pb_posts_carousel-subheader_line_height' => '1em', 'et_pb_posts_carousel-subheader_letter_spacing' => '0px', 'et_pb_posts_carousel-title_font_size' => '14px', 'et_pb_posts_carousel-title_font_style' => '', 'et_pb_posts_carousel-title_text_color' => 'rgba(0,0,0,0.75)', 'et_pb_posts_carousel-title_line_height' => '1.3em', 'et_pb_posts_carousel-title_letter_spacing' => '0.5px', 'et_pb_posts_carousel-meta_font_size' => '12px', 'et_pb_posts_carousel-meta_font_style' => '', 'et_pb_posts_carousel-meta_text_color' => 'rgba(0, 0, 0, 0.5)', 'et_pb_posts_carousel-meta_line_height' => '1.9em', 'et_pb_posts_carousel-meta_letter_spacing' => '0px', 'et_pb_posts_carousel-remove_drop_shadow' => 'off', 'et_pb_posts_carousel-border_radius' => '3px', 'et_pb_featured_posts_slider-title_font_size' => '20px', 'et_pb_featured_posts_slider-title_font_style' => '', 'et_pb_featured_posts_slider-title_text_color' => '#ffffff', 'et_pb_featured_posts_slider-title_line_height' => '1.3em', 'et_pb_featured_posts_slider-title_letter_spacing' => '0.5px', 'et_pb_featured_posts_slider-meta_font_size' => '12px', 'et_pb_featured_posts_slider-meta_font_style' => '', 'et_pb_featured_posts_slider-meta_text_color' => 'rgba(255, 255, 255, 0.6)', 'et_pb_featured_posts_slider-meta_line_height' => '1.7em', 'et_pb_featured_posts_slider-meta_letter_spacing' => '0px', 'et_pb_featured_posts_slider-slide_caption_background' => 'rgba(0, 0, 0, 0.6)', 'et_pb_featured_posts_slider-remove_drop_shadow' => 'off', 'et_pb_featured_posts_slider-border_radius' => '3px', 'et_pb_posts_blog_feed_standard-header_font_size' => '16px', 'et_pb_posts_blog_feed_standard-header_font_style' => 'uppercase', 'et_pb_posts_blog_feed_standard-header_text_color' => '', 'et_pb_posts_blog_feed_standard-header_line_height' => '1', 'et_pb_posts_blog_feed_standard-header_letter_spacing' => '1.2px', 'et_pb_posts_blog_feed_standard-title_font_size' => '18px', 'et_pb_posts_blog_feed_standard-title_font_style' => '', 'et_pb_posts_blog_feed_standard-title_text_color' => '', 'et_pb_posts_blog_feed_standard-title_letter_spacing' => '0.5px', 'et_pb_posts_blog_feed_standard-title_line_height' => '1.3em', 'et_pb_posts_blog_feed_standard-meta_font_size' => '12px', 'et_pb_posts_blog_feed_standard-meta_font_style' => '', 'et_pb_posts_blog_feed_standard-meta_text_color' => 'rgba(0, 0, 0, 0.5)', 'et_pb_posts_blog_feed_standard-meta_letter_spacing' => '0px', 'et_pb_posts_blog_feed_standard-meta_line_height' => '1.7em', 'et_pb_posts_blog_feed_standard-body_font_size' => '14px', 'et_pb_posts_blog_feed_standard-body_font_style' => '', 'et_pb_posts_blog_feed_standard-body_text_color' => 'rgba(0, 0, 0, 0.6)', 'et_pb_posts_blog_feed_standard-body_letter_spacing' => '0px', 'et_pb_posts_blog_feed_standard-body_line_height' => '1.7em', 'et_pb_posts_blog_feed_standard-read_more_text_size' => '14px', 'et_pb_posts_blog_feed_standard-read_more_font' => '', 'et_pb_posts_blog_feed_standard-read_more_text_color' => 'rgba(0, 0, 0, 0.6)', 'et_pb_posts_blog_feed_standard-read_more_letter_spacing' => '0px', 'et_pb_posts_blog_feed_standard-read_more_bg_color' => 'rgba(0, 0, 0, 0.1)', 'et_pb_posts_blog_feed_standard-read_more_border_radius' => '3px', 'et_pb_posts_blog_feed_standard-remove_drop_shadow' => 'off', 'et_pb_posts_blog_feed_standard-border_radius' => '3px', 'et_pb_posts_blog_feed_standard-hover_overlay_color' => 'rgba(0, 0, 0, 0.3)', 'et_pb_posts_blog_feed_standard-hover_overlay_icon_color' => '#FFFFFF', 'et_pb_posts_blog_feed_standard-hover_overlay_icon' => '\\e050', 'et_pb_posts_blog_feed_masonry-title_font_size' => '16px', 'et_pb_posts_blog_feed_masonry-title_font_style' => '', 'et_pb_posts_blog_feed_masonry-title_text_color' => 'rgba(0,0,0,0.75)', 'et_pb_posts_blog_feed_masonry-title_letter_spacing' => '0.5px', 'et_pb_posts_blog_feed_masonry-title_line_height' => '1.3em', 'et_pb_posts_blog_feed_masonry-meta_font_size' => '12px', 'et_pb_posts_blog_feed_masonry-meta_font_style' => '', 'et_pb_posts_blog_feed_masonry-meta_text_color' => 'rgba(0, 0, 0, 0.5)', 'et_pb_posts_blog_feed_masonry-meta_letter_spacing' => '0px', 'et_pb_posts_blog_feed_masonry-meta_line_height' => '1.7em', 'et_pb_posts_blog_feed_masonry-body_font_size' => '14px', 'et_pb_posts_blog_feed_masonry-body_font_style' => '', 'et_pb_posts_blog_feed_masonry-body_text_color' => '', 'et_pb_posts_blog_feed_masonry-body_letter_spacing' => '0px', 'et_pb_posts_blog_feed_masonry-body_line_height' => '1.7em', 'et_pb_posts_blog_feed_masonry-read_more_text_size' => '14px', 'et_pb_posts_blog_feed_masonry-read_more_font' => '', 'et_pb_posts_blog_feed_masonry-read_more_text_color' => 'rgba(0, 0, 0, 0.6)', 'et_pb_posts_blog_feed_masonry-read_more_letter_spacing' => '0px', 'et_pb_posts_blog_feed_masonry-read_more_bg_color' => 'rgba(0, 0, 0, 0.1)', 'et_pb_posts_blog_feed_masonry-read_more_border_radius' => '3px', 'et_pb_posts_blog_feed_masonry-remove_drop_shadow' => 'off', 'et_pb_posts_blog_feed_masonry-border_radius' => '3px', 'et_pb_posts_blog_feed_masonry-hover_overlay_color' => 'rgba(0, 0, 0, 0.3)', 'et_pb_posts_blog_feed_masonry-hover_overlay_icon_color' => '#FFFFFF', 'et_pb_posts_blog_feed_masonry-hover_overlay_icon' => '\\e050', 'et_pb_ads-background_color' => '#FFFFFF', 'et_pb_ads-remove_drop_shadow' => 'off', 'et_pb_ads-border_radius' => '3px', 'et_pb_ads-header_font_size' => '16px', 'et_pb_ads-header_font_style' => 'uppercase', 'et_pb_ads-header_text_color' => '', 'et_pb_ads-header_line_height' => '1', 'et_pb_ads-header_letter_spacing' => '1.2px');
    foreach ($extra_defaults as $setting_name => $default_value) {
        $extra_defaults[$setting_name] = array('default' => $default_value);
        $actual_value = !et_is_builder_plugin_active() ? et_get_option($setting_name, '', '', true) : '';
        if ('' !== $actual_value) {
            $extra_defaults[$setting_name]['actual'] = $actual_value;
        }
    }
    return array_merge($defaults, $extra_defaults);
}
开发者ID:rthburke,项目名称:fltHub,代码行数:17,代码来源:modules-defaults.php


示例6: et_home_posts_query

/**
 * Filters the main query on homepage
 */
function et_home_posts_query($query = false)
{
    /* Don't proceed if it's not homepage or the main query */
    if (!is_home() || !is_a($query, 'WP_Query') || !$query->is_main_query()) {
        return;
    }
    /* Set the amount of posts per page on homepage */
    $query->set('posts_per_page', (int) et_get_option('personalpress_homepage_posts', '6'));
    /* Exclude categories set in ePanel */
    $exclude_categories = et_get_option('personalpress_exlcats_recent', false);
    if ($exclude_categories) {
        $query->set('category__not_in', array_map('intval', et_generate_wpml_ids($exclude_categories, 'category')));
    }
}
开发者ID:damiansu,项目名称:wordpress-es,代码行数:17,代码来源:functions.php


示例7: set_values

 private static function set_values()
 {
     $font_defaults = array('size' => '14', 'color' => '#666666', 'letter_spacing' => '0px', 'line_height' => '1.7em');
     $defaults = array('et_pb_image-animation' => 'left', 'et_pb_gallery-zoom_icon_color' => et_get_option('accent_color', '#2EA3F2'), 'et_pb_gallery-hover_overlay_color' => 'rgba(255,255,255,0.9)', 'et_pb_gallery-title_font_size' => '16', 'et_pb_gallery-title_color' => '#333333', 'et_pb_gallery-title_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_gallery-title_line_height' => '1em', 'et_pb_gallery-title_font_style' => '', 'et_pb_gallery-caption_font_size' => '14', 'et_pb_gallery-caption_font_style' => '', 'et_pb_gallery-caption_color' => '#f3f3f3', 'et_pb_gallery-caption_line_height' => '18px', 'et_pb_gallery-caption_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_tabs-tab_font_size' => $font_defaults['size'], 'et_pb_tabs-tab_line_height' => $font_defaults['line_height'], 'et_pb_tabs-tab_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_tabs-body_font_size' => $font_defaults['size'], 'et_pb_tabs-body_line_height' => $font_defaults['line_height'], 'et_pb_tabs-body_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_tabs-title_font_style' => '', 'et_pb_tabs-padding' => '30', 'et_pb_slider-header_font_size' => '46', 'et_pb_slider-header_line_height' => '1em', 'et_pb_slider-header_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_slider-header_font_style' => '', 'et_pb_slider-body_font_size' => '16', 'et_pb_slider-body_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_slider-body_line_height' => $font_defaults['line_height'], 'et_pb_slider-body_font_style' => '', 'et_pb_slider-padding' => '16', 'et_pb_slider-header_color' => '#ffffff', 'et_pb_slider-header_line_height' => '1em', 'et_pb_slider-body_color' => '#ffffff', 'et_pb_testimonial-portrait_border_radius' => '90', 'et_pb_testimonial-portrait_width' => '90', 'et_pb_testimonial-portrait_height' => '90', 'et_pb_testimonial-author_name_font_style' => 'bold', 'et_pb_testimonial-author_details_font_style' => 'bold', 'et_pb_testimonial-border_color' => '#ffffff', 'et_pb_testimonial-border_width' => '1px', 'et_pb_testimonial-body_font_size' => $font_defaults['size'], 'et_pb_testimonial-body_line_height' => '1.5', 'et_pb_testimonial-body_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_pricing_tables-header_font_size' => '22', 'et_pb_pricing_tables-header_font_style' => '', 'et_pb_pricing_tables-subheader_font_size' => '16', 'et_pb_pricing_tables-subheader_font_style' => '', 'et_pb_pricing_tables-price_font_size' => '80', 'et_pb_pricing_tables-price_font_style' => '', 'et_pb_pricing_tables-header_color' => '#ffffff', 'et_pb_pricing_tables-header_line_height' => '1em', 'et_pb_pricing_tables-subheader_color' => '#ffffff', 'et_pb_pricing_tables-price_color' => '#2EA3F2', 'et_pb_pricing_tables-price_line_height' => '82px', 'et_pb_pricing_tables-body_line_height' => '24px', 'et_pb_fullwidth_post_title-title_font_size' => '26px', 'et_pb_fullwidth_post_title-title_line_height' => '1em', 'et_pb_fullwidth_post_title-title_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_fullwidth_post_title-meta_font_size' => $font_defaults['size'], 'et_pb_fullwidth_post_title-meta_line_height' => '1em', 'et_pb_fullwidth_post_title-meta_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_fullwidth_post_title-module_bg_color' => 'rgba(255,255,255,0)', 'et_pb_fullwidth_header-scroll_down_icon_size' => '50px', 'et_pb_fullwidth_header-subhead_font_size' => '18px', 'et_pb_fullwidth_header-button_one_font_size' => '20px', 'et_pb_fullwidth_header-button_one_border_radius' => '3px', 'et_pb_fullwidth_header-button_two_font_size' => '20px', 'et_pb_fullwidth_header-button_two_border_radius' => '3px', 'et_pb_post_title-title_font_size' => '26px', 'et_pb_post_title-title_line_height' => '1em', 'et_pb_post_title-title_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_post_title-meta_font_size' => $font_defaults['size'], 'et_pb_post_title-meta_line_height' => '1em', 'et_pb_post_title-meta_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_post_title-module_bg_color' => 'rgba(255,255,255,0)', 'et_pb_cta-header_font_size' => '26', 'et_pb_cta-header_font_style' => '', 'et_pb_cta-custom_padding' => '40', 'et_pb_cta-header_text_color' => '#333333', 'et_pb_cta-header_line_height' => '1em', 'et_pb_cta-header_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_cta-body_font_size' => $font_defaults['size'], 'et_pb_cta-body_line_height' => $font_defaults['line_height'], 'et_pb_cta-body_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_blurb-header_font_size' => '18', 'et_pb_blurb-header_color' => '#333333', 'et_pb_blurb-header_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_blurb-header_line_height' => '1em', 'et_pb_blurb-body_font_size' => $font_defaults['size'], 'et_pb_blurb-body_color' => '#666666', 'et_pb_blurb-body_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_blurb-body_line_height' => $font_defaults['line_height'], 'et_pb_text-text_font_size' => $font_defaults['size'], 'et_pb_text-text_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_text-text_line_height' => $font_defaults['line_height'], 'et_pb_text-border_color' => '#ffffff', 'et_pb_text-border_width' => '1px', 'et_pb_slide-header_font_size' => '26px', 'et_pb_slide-header_color' => '#ffffff', 'et_pb_slide-header_line_height' => '1em', 'et_pb_slide-body_font_size' => '16px', 'et_pb_slide-body_color' => '#ffffff', 'et_pb_pricing_table-header_font_size' => '22px', 'et_pb_pricing_table-header_color' => '#ffffff', 'et_pb_pricing_table-header_line_height' => '1em', 'et_pb_pricing_table-subheader_font_size' => '16px', 'et_pb_pricing_table-subheader_color' => '#ffffff', 'et_pb_pricing_table-price_font_size' => '80px', 'et_pb_pricing_table-price_color' => '#2EA3F2', 'et_pb_pricing_table-price_line_height' => '82px', 'et_pb_pricing_table-body_line_height' => '24px', 'et_pb_audio-title_font_size' => '26', 'et_pb_audio-title_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_audio-title_line_height' => $font_defaults['line_height'], 'et_pb_audio-title_font_style' => '', 'et_pb_audio-caption_font_size' => $font_defaults['size'], 'et_pb_audio-caption_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_audio-caption_line_height' => $font_defaults['line_height'], 'et_pb_audio-caption_font_style' => '', 'et_pb_audio-title_text_color' => '#666666', 'et_pb_signup-header_font_size' => '26', 'et_pb_signup-header_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_signup-header_line_height' => $font_defaults['line_height'], 'et_pb_signup-body_font_size' => $font_defaults['size'], 'et_pb_signup-body_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_signup-body_line_height' => $font_defaults['line_height'], 'et_pb_signup-header_font_style' => '', 'et_pb_signup-padding' => '20', 'et_pb_signup-focus_border_color' => '#ffffff', 'et_pb_login-header_font_size' => '26', 'et_pb_login-header_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_login-header_line_height' => $font_defaults['line_height'], 'et_pb_login-body_font_size' => $font_defaults['size'], 'et_pb_login-body_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_login-body_line_height' => $font_defaults['line_height'], 'et_pb_login-header_font_style' => '', 'et_pb_login-custom_padding' => '40', 'et_pb_login-focus_border_color' => '#ffffff', 'et_pb_portfolio-zoom_icon_color' => et_get_option('accent_color', '#2EA3F2'), 'et_pb_portfolio-hover_overlay_color' => 'rgba(255,255,255,0.9)', 'et_pb_portfolio-title_font_size' => '18', 'et_pb_portfolio-title_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_portfolio-title_line_height' => $font_defaults['line_height'], 'et_pb_portfolio-title_font_style' => '', 'et_pb_portfolio-caption_font_size' => '14', 'et_pb_portfolio-caption_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_portfolio-caption_line_height' => $font_defaults['line_height'], 'et_pb_portfolio-caption_font_style' => '', 'et_pb_portfolio-title_color' => '#333333', 'et_pb_filterable_portfolio-zoom_icon_color' => et_get_option('accent_color', '#2EA3F2'), 'et_pb_filterable_portfolio-hover_overlay_color' => 'rgba(255,255,255,0.9)', 'et_pb_filterable_portfolio-title_font_size' => '18', 'et_pb_filterable_portfolio-title_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_filterable_portfolio-title_line_height' => $font_defaults['line_height'], 'et_pb_filterable_portfolio-title_font_style' => '', 'et_pb_filterable_portfolio-caption_font_size' => '14', 'et_pb_filterable_portfolio-caption_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_filterable_portfolio-caption_line_height' => $font_defaults['line_height'], 'et_pb_filterable_portfolio-caption_font_style' => '', 'et_pb_filterable_portfolio-filter_font_size' => '14', 'et_pb_filterable_portfolio-filter_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_filterable_portfolio-filter_line_height' => $font_defaults['line_height'], 'et_pb_filterable_portfolio-filter_font_style' => '', 'et_pb_filterable_portfolio-title_color' => '#333333', 'et_pb_counters-title_font_size' => '12', 'et_pb_counters-title_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_counters-title_line_height' => $font_defaults['line_height'], 'et_pb_counters-title_font_style' => '', 'et_pb_counters-percent_font_size' => '12', 'et_pb_counters-percent_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_counters-percent_line_height' => $font_defaults['line_height'], 'et_pb_counters-percent_font_style' => '', 'et_pb_counters-border_radius' => '0', 'et_pb_counters-padding' => '0', 'et_pb_counters-title_color' => '#999999', 'et_pb_counters-percent_color' => '#ffffff', 'et_pb_circle_counter-title_font_size' => '16', 'et_pb_circle_counter-title_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_circle_counter-title_line_height' => '1em', 'et_pb_circle_counter-title_font_style' => '', 'et_pb_circle_counter-number_font_size' => '46', 'et_pb_circle_counter-number_font_style' => '', 'et_pb_circle_counter-title_color' => '#333333', 'et_pb_circle_counter-number_line_height' => '225px', 'et_pb_circle_counter-number_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_number_counter-title_font_size' => '16', 'et_pb_number_counter-title_line_height' => '1em', 'et_pb_number_counter-title_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_number_counter-title_font_style' => '', 'et_pb_number_counter-number_font_size' => '72', 'et_pb_number_counter-number_line_height' => '72px', 'et_pb_number_counter-number_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_number_counter-number_font_style' => '', 'et_pb_number_counter-title_color' => '#333333', 'et_pb_accordion-toggle_font_size' => '16', 'et_pb_accordion-toggle_font_style' => '', 'et_pb_accordion-inactive_toggle_font_style' => '', 'et_pb_accordion-toggle_icon_size' => '16', 'et_pb_accordion-custom_padding' => '20', 'et_pb_accordion-toggle_line_height' => '1em', 'et_pb_accordion-toggle_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_accordion-body_font_size' => $font_defaults['size'], 'et_pb_accordion-body_line_height' => $font_defaults['line_height'], 'et_pb_accordion-body_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_toggle-title_font_size' => '16', 'et_pb_toggle-title_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_toggle-title_font_style' => '', 'et_pb_toggle-inactive_title_font_style' => '', 'et_pb_toggle-toggle_icon_size' => '16', 'et_pb_toggle-title_color' => '#333333', 'et_pb_toggle-title_line_height' => '1em', 'et_pb_toggle-custom_padding' => '20', 'et_pb_toggle-body_font_size' => $font_defaults['size'], 'et_pb_toggle-body_line_height' => $font_defaults['line_height'], 'et_pb_toggle-body_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_contact_form-title_font_size' => '26', 'et_pb_contact_form-title_font_style' => '', 'et_pb_contact_form-form_field_font_size' => '14', 'et_pb_contact_form-form_field_font_style' => '', 'et_pb_contact_form-captcha_font_size' => '14', 'et_pb_contact_form-captcha_font_style' => '', 'et_pb_contact_form-padding' => '16', 'et_pb_contact_form-title_color' => '#333333', 'et_pb_contact_form-title_line_height' => '1em', 'et_pb_contact_form-title_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_contact_form-form_field_color' => '#999999', 'et_pb_contact_form-form_field_line_height' => $font_defaults['line_height'], 'et_pb_contact_form-form_field_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_sidebar-header_font_size' => '18', 'et_pb_sidebar-header_font_style' => '', 'et_pb_sidebar-header_color' => '#333333', 'et_pb_sidebar-header_line_height' => '1em', 'et_pb_sidebar-header_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_sidebar-remove_border' => 'off', 'et_pb_sidebar-body_font_size' => $font_defaults['size'], 'et_pb_sidebar-body_line_height' => $font_defaults['line_height'], 'et_pb_sidebar-body_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_divider-show_divider' => 'off', 'et_pb_divider-divider_style' => 'none', 'et_pb_divider-divider_weight' => '1', 'et_pb_divider-height' => '1', 'et_pb_divider-divider_position' => 'none', 'et_pb_team_member-header_font_size' => '18', 'et_pb_team_member-header_font_style' => '', 'et_pb_team_member-subheader_font_size' => '14', 'et_pb_team_member-subheader_font_style' => '', 'et_pb_team_member-social_network_icon_size' => '16', 'et_pb_team_member-header_color' => '#333333', 'et_pb_team_member-header_line_height' => '1em', 'et_pb_team_member-header_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_team_member-body_font_size' => $font_defaults['size'], 'et_pb_team_member-body_line_height' => $font_defaults['line_height'], 'et_pb_team_member-body_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_shop-title_font_size' => '16', 'et_pb_shop-title_font_style' => '', 'et_pb_shop-sale_badge_font_size' => '16', 'et_pb_shop-sale_badge_font_style' => '', 'et_pb_shop-price_font_size' => '14', 'et_pb_shop-price_font_style' => '', 'et_pb_shop-sale_price_font_size' => '14', 'et_pb_shop-sale_price_font_style' => '', 'et_pb_shop-title_color' => '#333333', 'et_pb_shop-title_line_height' => '1em', 'et_pb_shop-title_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_shop-price_line_height' => '26px', 'et_pb_shop-price_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_countdown_timer-header_font_size' => '22', 'et_pb_countdown_timer-header_font_style' => '', 'et_pb_countdown_timer-header_color' => '#333333', 'et_pb_countdown_timer-header_line_height' => '1em', 'et_pb_countdown_timer-header_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_countdown_timer-numbers_font_size' => '64px', 'et_pb_countdown_timer-numbers_line_height' => '64px', 'et_pb_countdown_timer-numbers_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_countdown_timer-label_line_height' => '25px', 'et_pb_countdown_timer-label_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_countdown_timer-label_font_size' => $font_defaults['size'], 'et_pb_social_media_follow-icon_size' => '14', 'et_pb_social_media_follow-button_font_style' => '', 'et_pb_fullwidth_slider-header_font_size' => '46', 'et_pb_fullwidth_slider-header_font_style' => '', 'et_pb_fullwidth_slider-body_font_size' => '16', 'et_pb_fullwidth_slider-body_font_style' => '', 'et_pb_fullwidth_slider-body_line_height' => $font_defaults['line_height'], 'et_pb_fullwidth_slider-body_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_fullwidth_slider-padding' => '16', 'et_pb_fullwidth_slider-header_color' => '#ffffff', 'et_pb_fullwidth_slider-header_line_height' => '1em', 'et_pb_fullwidth_slider-header_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_fullwidth_slider-body_color' => '#ffffff', 'et_pb_blog-header_font_size' => '18', 'et_pb_blog-header_font_style' => '', 'et_pb_blog-meta_font_size' => '14', 'et_pb_blog-meta_font_style' => '', 'et_pb_blog-meta_line_height' => $font_defaults['line_height'], 'et_pb_blog-meta_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_blog-header_color' => '#333333', 'et_pb_blog-header_line_height' => '1em', 'et_pb_blog-header_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_blog-body_font_size' => $font_defaults['size'], 'et_pb_blog-body_line_height' => $font_defaults['line_height'], 'et_pb_blog-body_letter_spacing' => $font_defaults['letter_spacing'], 'et_pb_blog_masonry-header_font_size' => '26', 'et_pb_blog_masonry-header_font_style' => '', 'et_pb_blog_masonry-meta_font_size' => '14', 'et_pb_blog_masonry-meta_font_style' => '', 'all_buttons_font_size' => '20', 'all_buttons_border_width' => '2', 'all_buttons_border_radius' => '3', 'all_buttons_spacing' => '0', 'all_buttons_font_style' => '', 'all_buttons_border_radius_hover' => '3', 'all_buttons_spacing_hover' => '0');
     // reformat defaults array and add actual values to it
     foreach ($defaults as $setting_name => $default_value) {
         $defaults[$setting_name] = array('default' => $default_value);
         $actual_value = et_get_option($setting_name, '', '', true);
         if ('' !== $actual_value) {
             $defaults[$setting_name]['actual'] = $actual_value;
         }
     }
     self::$_settings = apply_filters('et_set_default_values', $defaults);
 }
开发者ID:Lumbe,项目名称:dev_servus,代码行数:14,代码来源:class-et-global-settings.php


示例8: et_assign_social_network_url_upon_activation

/**
 * Automatically assign social network values in popular social network so
 * top header displays social media icon by default
 * @return void
 */
function et_assign_social_network_url_upon_activation()
{
    $popular_social_networks = apply_filters('social_network_url_upon_activation', array('facebook' => 'https://facebook.com', 'twitter' => 'https://twitter.com', 'instagram' => 'https://instagram.com'));
    if (!empty($popular_social_networks)) {
        foreach ($popular_social_networks as $id => $url) {
            $key = sprintf('%s_url', $id);
            $saved_url = et_get_option($key, false);
            // Do not overwrite existing value
            if (!empty($saved_url)) {
                continue;
            }
            et_update_option($key, esc_url($url));
        }
    }
}
开发者ID:rthburke,项目名称:fltHub,代码行数:20,代码来源:activation.php


示例9: custom_colors_css

function custom_colors_css()
{
    global $shortname;
    ?>
	
	<style type="text/css">
		body { color: #<?php 
    echo esc_html(et_get_option($shortname . '_color_mainfont'));
    ?>
; }
		#content-area a { color: #<?php 
    echo esc_html(et_get_option($shortname . '_color_mainlink'));
    ?>
; }
		ul.nav li a { color: #<?php 
    echo esc_html(et_get_option($shortname . '_color_pagelink'));
    ?>
 !important; }
		ul.nav > li.current_page_item > a, ul#top-menu > li:hover > a, ul.nav > li.current-cat > a { color: #<?php 
    echo esc_html(et_get_option($shortname . '_color_pagelink_active'));
    ?>
; }
		h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: #<?php 
    echo esc_html(et_get_option($shortname . '_color_headings'));
    ?>
; }
		
		#sidebar a { color:#<?php 
    echo esc_html(et_get_option($shortname . '_color_sidebar_links'));
    ?>
; }		
		.footer-widget { color:#<?php 
    echo esc_html(et_get_option($shortname . '_footer_text'));
    ?>
 }
		#footer a, ul#bottom-menu li a { color:#<?php 
    echo esc_html(et_get_option($shortname . '_color_footerlinks'));
    ?>
 }
	</style>

<?php 
}
开发者ID:natduffy,项目名称:wp-sandbox,代码行数:43,代码来源:options_nimble.php


示例10: et_fb_backend_helpers

function et_fb_backend_helpers()
{
    global $post, $paged;
    $layout_type = '';
    $post_type = isset($post->post_type) ? $post->post_type : false;
    $post_id = isset($post->ID) ? $post->ID : false;
    $post_status = isset($post->post_status) ? $post->post_status : false;
    if ('et_pb_layout' === $post_type) {
        $layout_type = et_fb_get_layout_type($post_id);
    }
    $google_fonts = array_merge(array('Default' => array()), et_builder_get_google_fonts());
    $current_user = wp_get_current_user();
    $current_url = (is_ssl() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    $export_url = add_query_arg(array('et_core_portability' => true, 'context' => 'et_builder', 'name' => 'temp_name', 'nonce' => wp_create_nonce('et_core_portability_nonce')), admin_url());
    $fb_modules_array = apply_filters('et_fb_modules_array', ET_Builder_Element::get_modules_array($post_type, true, true));
    $helpers = array('debug' => true, 'postId' => $post_id, 'postStatus' => $post_status, 'postType' => $post_type, 'layoutType' => $layout_type, 'publishCapability' => is_page() && !current_user_can('publish_pages') || !is_page() && !current_user_can('publish_posts') ? 'no_publish' : 'publish', 'shortcodeObject' => array(), 'ajaxUrl' => admin_url('admin-ajax.php'), 'tinymceSkinUrl' => ET_FB_ASSETS_URI . '/vendors/tinymce-skin', 'tinymceCSSFiles' => esc_url(includes_url('js/tinymce') . '/skins/wordpress/wp-content.css'), 'images_uri' => ET_BUILDER_URI . '/images', 'generalFields' => array(), 'advancedFields' => array(), 'customCssFields' => array(), 'moduleParentShortcodes' => ET_Builder_Element::get_parent_shortcodes($post_type), 'moduleChildShortcodes' => ET_Builder_Element::get_child_shortcodes($post_type), 'moduleChildSlugs' => ET_Builder_Element::get_child_slugs($post_type), 'moduleRawContentShortcodes' => ET_Builder_Element::get_raw_content_shortcodes($post_type), 'modules' => $fb_modules_array, 'modulesCount' => count($fb_modules_array), 'modulesWithChildren' => ET_Builder_Element::get_shortcodes_with_children($post_type), 'structureModules' => ET_Builder_Element::get_structure_modules($post_type), 'et_builder_css_media_queries' => ET_Builder_Element::get_media_quries('for_js'), 'commentsModuleMarkup' => et_fb_get_comments_markup(), 'shortcode_tags' => et_fb_shortcode_tags(), 'getFontIconSymbols' => et_pb_get_font_icon_symbols(), 'failureNotification' => et_builder_get_failure_notification_modal(), 'exitNotification' => et_builder_get_exit_notification_modal(), 'getTaxonomies' => apply_filters('et_fb_taxonomies', array('category' => get_categories(), 'project_category' => get_categories(array('taxonomy' => 'project_category')), 'product_category' => class_exists('WooCommerce') ? get_terms('product_cat') : '')), 'googleAPIKey' => et_pb_is_allowed('theme_options') ? get_option('et_google_api_settings') : '', 'googleFontsList' => array_keys($google_fonts), 'googleFonts' => $google_fonts, 'gutterWidth' => et_get_option('gutter_width', 3), 'fontIcons' => et_pb_get_font_icon_symbols(), 'fontIconsDown' => et_pb_get_font_down_icon_symbols(), 'widgetAreas' => et_builder_get_widget_areas_list(), 'site_url' => get_site_url(), 'etBuilderAccentColor' => et_builder_accent_color(), 'gmt_offset_string' => et_pb_get_gmt_offset_string(), 'et_builder_fonts_data' => et_builder_get_fonts(), 'currentUserDisplayName' => $current_user->display_name, 'locale' => get_locale(), 'roleSettings' => et_pb_get_role_settings(), 'currentRole' => et_pb_get_current_user_role(), 'exportUrl' => $export_url, 'urls' => array('loginFormUrl' => esc_url(site_url('wp-login.php', 'login_post')), 'forgotPasswordUrl' => esc_url(wp_lostpassword_url()), 'logoutUrl' => esc_url(wp_logout_url()), 'logoutUrlRedirect' => esc_url(wp_logout_url($current_url)), 'themeOptionsUrl' => esc_url(et_pb_get_options_page_link()), 'builderPreviewStyle' => ET_BUILDER_URI . '/styles/preview.css'), 'nonces' => array('moduleContactFormSubmit' => wp_create_nonce('et-pb-contact-form-submit'), 'et_admin_load' => wp_create_nonce('et_admin_load_nonce'), 'computedProperty' => wp_create_nonce('et_pb_process_computed_property_nonce'), 'renderShortcode' => wp_create_nonce('et_pb_render_shortcode_nonce'), 'backendHelper' => wp_create_nonce('et_fb_backend_helper_nonce'), 'renderSave' => wp_create_nonce('et_fb_save_nonce'), 'prepareShortcode' => wp_create_nonce('et_fb_prepare_shortcode_nonce'), 'processImportedData' => wp_create_nonce('et_fb_process_imported_data_nonce'), 'retrieveLibraryModules' => wp_create_nonce('et_fb_retrieve_library_modules_nonce'), 'saveLibraryModules' => wp_create_nonce('et_fb_save_library_modules_nonce'), 'preview' => wp_create_nonce('et_pb_preview_nonce')), 'conditionalTags' => et_fb_conditional_tag_params(), 'currentPage' => et_fb_current_page_params(), 'appPreferences' => et_fb_app_preferences(), 'classNames' => array('hide_on_mobile_class' => 'et-hide-mobile'), 'columnLayouts' => et_builder_get_columns(), 'pageSettingsFields' => et_pb_get_builder_settings_configurations(), 'pageSettingsValues' => et_pb_get_builder_settings_values(), 'splitTestSubjects' => false !== ($all_subjects_raw = get_post_meta($post_id, '_et_pb_ab_subjects', true)) ? explode(',', $all_subjects_raw) : array(), 'defaults' => array('contactFormInputs' => et_fb_process_shortcode(sprintf('[et_pb_contact_field field_title="%1$s" field_type="input" field_id="Name" required_mark="on" fullwidth_field="off" /][et_pb_contact_field field_title="%2$s" field_type="email" field_id="Email" required_mark="on" fullwidth_field="off" /][et_pb_contact_field field_title="%3$s" field_type="text" field_id="Message" required_mark="on" fullwidth_field="on" /]', esc_attr__('Name', 'et_builder'), esc_attr__('Email Address', 'et_builder'), esc_attr__('Message', 'et_builder')))), 'all_modules_default_attrs' => ET_Builder_Element::get_all_modules_default_fields($post_type), 'saveModuleLibraryCategories' => et_fb_prepare_library_cats(), 'columnSettingFields' => array('advanced' => array('bg_img_%s' => array('label' => esc_html__('Column %s Background Image', 'et_builder'), 'type' => 'upload', 'option_category' => 'basic_option', 'upload_button_text' => esc_attr__('Upload an image', 'et_builder'), 'choose_text' => esc_attr__('Choose a Background Image', 'et_builder'), 'update_text' => esc_attr__('Set As Background', 'et_builder'), 'description' => esc_html__('If defined, this image will be used as the background for this module. To remove a background image, simply delete the URL from the settings field.', 'et_builder'), 'tab_slug' => 'advanced'), 'parallax_%s' => array('label' => esc_html__('Column %s Parallax Effect', 'et_builder'), 'type' => 'yes_no_button', 'option_category' => 'configuration', 'options' => array('on' => esc_html__('Yes', 'et_builder'), 'off' => esc_html__('No', 'et_builder')), 'affects' => array('parallax_method_%s'), 'description' => esc_html__('Here you can choose whether or not use parallax effect for the featured image', 'et_builder'), 'tab_slug' => 'advanced'), 'parallax_method_%s' => array('label' => esc_html__('Column %s Parallax Method', 'et_builder'), 'type' => 'select', 'option_category' => 'configuration', 'options' => array('off' => esc_html__('CSS', 'et_builder'), 'on' => esc_html__('True Parallax', 'et_builder')), 'depends_show_if' => 'on', 'depends_to' => array('parallax_%s'), 'description' => esc_html__('Here you can choose which parallax method to use for the featured image', 'et_builder'), 'tab_slug' => 'advanced'), 'background_color_%s' => array('label' => esc_html__('Column %s Background Color', 'et_builder'), 'type' => 'color-alpha', 'custom_color' => true, 'tab_slug' => 'advanced'), 'padding_%s' => array('label' => esc_html__('Column %s Custom Padding', 'et_builder'), 'type' => 'custom_padding', 'mobile_options' => true, 'option_category' => 'layout', 'description' => esc_html__('Adjust padding to specific values, or leave blank to use the default padding.', 'et_builder'), 'tab_slug' => 'advanced')), 'css' => array('module_id_%s' => array('label' => esc_html__('Column %s CSS ID', 'et_builder'), 'type' => 'text', 'option_category' => 'configuration', 'tab_slug' => 'custom_css', 'option_class' => 'et_pb_custom_css_regular'), 'module_class_%s' => array('label' => esc_html__('Column %s CSS Class', 'et_builder'), 'type' => 'text', 'option_category' => 'configuration', 'tab_slug' => 'custom_css', 'option_class' => 'et_pb_custom_css_regular'), 'custom_css_before_%s' => array('label' => esc_html__('Column %s before', 'et_builder'), 'no_space_before_selector' => true, 'selector' => ':before'), 'custom_css_main_%s' => array('label' => esc_html__('Column %s Main Element', 'et_builder')), 'custom_css_after_%s' => array('label' => esc_html__('Column %s After', 'et_builder'), 'no_space_before_selector' => true, 'selector' => ':after'))));
    // Internationalization.
    $helpers['i18n'] = array('modules' => array('audio' => array('meta' => _x('by <strong>%1$s</strong>', 'Audio Module meta information', 'et_builder')), 'contactForm' => array('thankYou' => esc_html__('Thanks for contacting us', 'et_builder'), 'submit' => esc_attr__('Submit', 'et_builder')), 'countdownTimer' => array('dayFull' => esc_html__('Day(s)', 'et_builder'), 'dayShort' => esc_html__('Day', 'et_builder'), 'hourFull' => esc_html__('Hour(s)', 'et_builder'), 'hourShort' => esc_html__('Hrs', 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP et_get_page_link函数代码示例发布时间:2022-05-15
下一篇:
PHP et_get_mobile_header函数代码示例发布时间: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