本文整理汇总了PHP中et_get_option函数的典型用法代码示例。如果您正苦于以下问题:PHP et_get_option函数的具体用法?PHP et_get_option怎么用?PHP et_get_option使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了et_get_option函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
}
示例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());
}
}
示例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);
}
示例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;
}
}
}
示例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);
}
示例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')));
}
}
示例7: 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));
}
}
}
示例8: 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
}
示例9: get_template_part
<?php
get_template_part('includes/breadcrumbs', 'page');
?>
<div id="content" class="clearfix">
<div id="left-area">
<?php
while (have_posts()) {
the_post();
?>
<?php
get_template_part('content', get_post_format());
?>
<?php
if (comments_open() && 'on' == et_get_option('explorable_show_pagescomments', 'false')) {
comments_template('', true);
}
?>
<?php
}
?>
</div> <!-- end #left-area -->
</div> <!-- end #content -->
</div> <!-- end .container -->
</div> <!-- end #main-area -->
<?php
get_footer();
示例10: et_vertex_action_button
function et_vertex_action_button()
{
if (($action_button_url = et_get_option('vertex_action_button_url')) && '' !== $action_button_url) {
printf('<a class="action-button" href="%s">%s</a>', esc_url($action_button_url), esc_html(et_get_option('vertex_action_button_text', __('Sign Up Today', 'Vertex'))));
}
}
示例11: next_post_link
?>
</span>
<span class="nav-next"><?php
next_post_link('%link', '%title <span class="meta-nav">' . _x('→', 'Next post link', 'Divi') . '</span>');
?>
</span>
</div><!-- .nav-single -->
<?php
}
?>
</article> <!-- .et_pb_post -->
<?php
if (!$is_page_builder_used && comments_open() && 'on' == et_get_option('divi_show_postcomments', 'on')) {
comments_template('', true);
}
?>
<?php
}
?>
<?php
if (!$is_page_builder_used) {
?>
</div> <!-- #left-area -->
<?php
if ('et_full_width_page' === $page_layout) {
示例12: wp_nav_menu
<div id="et-footer-nav">
<div class="container">
<?php
wp_nav_menu(array('theme_location' => 'footer-menu', 'depth' => '1', 'menu_class' => 'bottom-nav', 'container' => '', 'fallback_cb' => ''));
?>
</div>
</div> <!-- #et-footer-nav -->
<?php
}
?>
<div id="footer-bottom">
<div class="container clearfix">
<?php
if (false !== et_get_option('show_footer_social_icons', true)) {
get_template_part('includes/social_icons', 'footer');
}
?>
<p id="footer-info">The official website of the Andrew Marvell Society is maintained through the generous support of the <a href="http://www.st-andrews.ac.uk/english/">School of English</a> and by the digital communications team at the University of St Andrews. All content is copyright of the Society.</p>
</div> <!-- .container -->
</div>
</footer> <!-- #main-footer -->
</div> <!-- #et-main-area -->
<?php
}
// ! is_page_template( 'page-template-blank.php' )
?>
</div> <!-- #page-container -->
示例13: et_gf_enqueue_fonts
/**
* Enqueues Google Fonts
*
*/
function et_gf_enqueue_fonts($et_gf_font_names)
{
global $shortname;
if (!is_array($et_gf_font_names) || empty($et_gf_font_names)) {
return;
}
$google_fonts = et_get_google_fonts();
$protocol = is_ssl() ? 'https' : 'http';
foreach ($et_gf_font_names as $et_gf_font_name) {
$google_font_character_set = $google_fonts[$et_gf_font_name]['character_set'];
// By default, only latin and latin-ext subsets are loaded, all available subsets can be enabled in ePanel
if ('false' == et_get_option("{$shortname}_gf_enable_all_character_sets", 'false')) {
$latin_ext = '';
if (false !== strpos($google_fonts[$et_gf_font_name]['character_set'], 'latin-ext')) {
$latin_ext = ',latin-ext';
}
$google_font_character_set = "latin{$latin_ext}";
}
$query_args = array('family' => sprintf('%s:%s', str_replace(' ', '+', $et_gf_font_name), apply_filters('et_gf_set_styles', $google_fonts[$et_gf_font_name]['styles'], $et_gf_font_name)), 'subset' => apply_filters('et_gf_set_character_set', $google_font_character_set, $et_gf_font_name));
$et_gf_font_name_slug = strtolower(str_replace(' ', '-', $et_gf_font_name));
wp_enqueue_style('et-gf-' . $et_gf_font_name_slug, esc_url(add_query_arg($query_args, "{$protocol}://fonts.googleapis.com/css")), array(), null);
}
}
示例14: et_get_option
</nav>
<div id="social-icons">
<?php
$et_rss_url = '' != et_get_option('harmony_rss_url') ? et_get_option('harmony_rss_url') : get_bloginfo('comments_rss2_url');
if ('on' == et_get_option('harmony_show_twitter_icon', 'on')) {
$social_icons['twitter'] = array('image' => $template_directory_uri . '/images/twitter.png', 'url' => et_get_option('harmony_twitter_url'), 'alt' => __('Twitter', 'Harmony'));
}
if ('on' == et_get_option('harmony_show_rss_icon', 'on')) {
$social_icons['rss'] = array('image' => $template_directory_uri . '/images/rss.png', 'url' => $et_rss_url, 'alt' => __('Rss', 'Harmony'));
}
if ('on' == et_get_option('harmony_show_facebook_icon', 'on')) {
$social_icons['facebook'] = array('image' => $template_directory_uri . '/images/facebook.png', 'url' => et_get_option('harmony_facebook_url'), 'alt' => __('Facebook', 'Harmony'));
}
if ('on' == et_get_option('harmony_show_soundcloud_icon', 'on')) {
$social_icons['soundcloud'] = array('image' => $template_directory_uri . '/images/soundcloud.png', 'url' => et_get_option('harmony_soundcloud_url'), 'alt' => __('SoundCloud', 'Harmony'));
}
if (!empty($social_icons)) {
$social_icons = apply_filters('et_social_icons', $social_icons);
foreach ($social_icons as $icon) {
if ($icon['url']) {
printf('<a href="%s" target="_blank"><img src="%s" alt="%s" /></a>', esc_url($icon['url']), esc_attr($icon['image']), esc_attr($icon['alt']));
}
}
}
?>
</div> <!-- end .#social-icons -->
</div> <!-- end .container -->
</div> <!-- end #main-nav -->
<?php
示例15:
</ul>
<?php
}
?>
</div> <!-- /#et-footer-nav -->
<?php
}
?>
</div>
</div>
</footer>
</div> <!-- #page-container -->
<?php
if ('on' == et_get_option('extra_back_to_top')) {
?>
<span title="<?php
esc_attr_e('Back To Top', 'extra');
?>
" id="back_to_top"></span>
<?php
}
?>
<?php
wp_footer();
?>
</body>
</html>