function x_site_icons() { $icon_favicon = x_get_option('x_icon_favicon'); $icon_touch = x_get_option('x_icon_touch'); $icon_tile = x_get_option('x_icon_tile'); $icon_tile_bg_color = x_get_option('x_icon_tile_bg_color'); if ($icon_favicon != '') { echo '<link rel="shortcut icon" href="' . x_make_protocol_relative($icon_favicon) . '">'; } if ($icon_touch != '') { echo '<link rel="apple-touch-icon-precomposed" href="' . x_make_protocol_relative($icon_touch) . '">'; } if ($icon_tile != '') { echo '<meta name="msapplication-TileColor" content="' . $icon_tile_bg_color . '">'; echo '<meta name="msapplication-TileImage" content="' . x_make_protocol_relative($icon_tile) . '">'; } }
?> <?php if ($x_design_bg_image_pattern == '') { ?> background-color: <?php echo $x_design_bg_color; ?> ; <?php } else { ?> background: <?php echo $x_design_bg_color; ?> url(<?php echo x_make_protocol_relative($x_design_bg_image_pattern); ?> ) center top repeat; <?php } ?> } /* Links // ========================================================================== */ a:focus, select:focus, input[type="file"]:focus,
<?php // ============================================================================= // VIEWS/GLOBAL/_BRAND.PHP // ----------------------------------------------------------------------------- // Outputs the brand. // ============================================================================= $site_name = get_bloginfo('name'); $site_description = get_bloginfo('description'); $logo = x_make_protocol_relative(x_get_option('x_logo')); $site_logo = '<img src="' . $logo . '" alt="' . $site_description . '">'; ?> <?php echo is_front_page() ? '<h1 class="visually-hidden">' . $site_name . '</h1>' : ''; ?> <a href="<?php echo home_url('/'); ?> " class="<?php x_brand_class(); ?> " title="<?php echo $site_description; ?> "> <?php echo $logo == '' ? $site_name : $site_logo; ?> </a>
function x_customizer_user_javascript_output() { $x_custom_scripts = x_get_option('x_custom_scripts'); $entry_id = get_the_ID(); $x_entry_bg_image_full = get_post_meta($entry_id, '_x_entry_bg_image_full', true); $x_entry_bg_image_full_fade = get_post_meta($entry_id, '_x_entry_bg_image_full_fade', true); $x_entry_bg_image_full_duration = get_post_meta($entry_id, '_x_entry_bg_image_full_duration', true); $x_design_bg_image_full = x_get_option('x_design_bg_image_full', ''); $x_design_bg_image_full_fade = x_get_option('x_design_bg_image_full_fade', '750'); ?> <?php if ($x_custom_scripts) { ?> <script id="x-customizer-js-custom"> <?php echo $x_custom_scripts; ?> </script> <?php } ?> <?php if ($x_entry_bg_image_full && is_singular()) { ?> <?php $page_bg_images_output = ''; $page_bg_images = explode(',', $x_entry_bg_image_full); foreach ($page_bg_images as $page_bg_image) { $page_bg_images_output .= '"' . $page_bg_image . '", '; } $page_bg_images_output = trim($page_bg_images_output, ', '); ?> <script>jQuery.backstretch([<?php echo $page_bg_images_output; ?> ], {duration: <?php echo $x_entry_bg_image_full_duration; ?> , fade: <?php echo $x_entry_bg_image_full_fade; ?> });</script> <?php } elseif ($x_design_bg_image_full) { ?> <script>jQuery.backstretch(['<?php echo x_make_protocol_relative($x_design_bg_image_full); ?> '], {fade: <?php echo $x_design_bg_image_full_fade; ?> });</script> <?php } }
background-color: <?php echo $x_renew_bg_color; ?> ; } <?php } else { ?> body { background: <?php echo $x_renew_bg_color; ?> url(<?php echo x_make_protocol_relative($x_renew_bg_image_pattern); ?> ) center top repeat; } <?php } ?> /* Site Link Color Accents // ========================================================================== */ /* // Color.
function x_customizer_custom_javascript_option_output() { $entry_id = get_the_ID(); $x_stack = x_get_stack(); $x_integrity_design = get_theme_mod('x_integrity_design'); $x_integrity_light_bg_image_full = get_theme_mod('x_integrity_light_bg_image_full'); $x_integrity_light_bg_image_full_fade = get_theme_mod('x_integrity_light_bg_image_full_fade'); $x_integrity_dark_bg_image_full = get_theme_mod('x_integrity_dark_bg_image_full'); $x_integrity_dark_bg_image_full_fade = get_theme_mod('x_integrity_dark_bg_image_full_fade'); $x_renew_bg_image_full = get_theme_mod('x_renew_bg_image_full'); $x_renew_bg_image_full_fade = get_theme_mod('x_renew_bg_image_full_fade'); $x_icon_bg_image_full = get_theme_mod('x_icon_bg_image_full'); $x_icon_bg_image_full_fade = get_theme_mod('x_icon_bg_image_full_fade'); $x_ethos_bg_image_full = get_theme_mod('x_ethos_bg_image_full'); $x_ethos_bg_image_full_fade = get_theme_mod('x_ethos_bg_image_full_fade'); $x_entry_bg_image_full = get_post_meta($entry_id, '_x_entry_bg_image_full', true); $x_entry_bg_image_full_fade = get_post_meta($entry_id, '_x_entry_bg_image_full_fade', true); $x_entry_bg_image_full_duration = get_post_meta($entry_id, '_x_entry_bg_image_full_duration', true); ?> <?php if (get_theme_mod('x_custom_scripts')) { ?> <script><?php echo get_theme_mod('x_custom_scripts'); ?> </script> <?php } ?> <?php if ($x_entry_bg_image_full) { ?> <?php $page_bg_images_output = ''; $page_bg_images = explode(',', $x_entry_bg_image_full); foreach ($page_bg_images as $page_bg_image) { $page_bg_images_output .= '"' . $page_bg_image . '", '; } $page_bg_images_output = trim($page_bg_images_output, ', '); ?> <script>jQuery.backstretch([<?php echo $page_bg_images_output; ?> ], {duration: <?php echo $x_entry_bg_image_full_duration; ?> , fade: <?php echo $x_entry_bg_image_full_fade; ?> });</script> <?php } else { ?> <?php if ($x_stack == 'integrity' && $x_integrity_design == 'light' && $x_integrity_light_bg_image_full) { ?> <script>jQuery.backstretch(['<?php echo x_make_protocol_relative($x_integrity_light_bg_image_full); ?> '], {fade: <?php echo $x_integrity_light_bg_image_full_fade; ?> });</script> <?php } elseif ($x_stack == 'integrity' && $x_integrity_design == 'dark' && $x_integrity_dark_bg_image_full) { ?> <script>jQuery.backstretch(['<?php echo x_make_protocol_relative($x_integrity_dark_bg_image_full); ?> '], {fade: <?php echo $x_integrity_dark_bg_image_full_fade; ?> });</script> <?php } elseif ($x_stack == 'renew' && $x_renew_bg_image_full) { ?> <script>jQuery.backstretch(['<?php echo x_make_protocol_relative($x_renew_bg_image_full); ?> '], {fade: <?php echo $x_renew_bg_image_full_fade; ?> });</script> <?php } elseif ($x_stack == 'icon' && $x_icon_bg_image_full) { ?> <script>jQuery.backstretch(['<?php echo x_make_protocol_relative($x_icon_bg_image_full); ?> '], {fade: <?php echo $x_icon_bg_image_full_fade; ?> });</script> <?php } elseif ($x_stack == 'ethos' && $x_ethos_bg_image_full) { ?> <script>jQuery.backstretch(['<?php echo x_make_protocol_relative($x_ethos_bg_image_full); ?> '], {fade: <?php echo $x_ethos_bg_image_full_fade; ?> });</script> <?php } ?> <?php } }
?> body { background-color: <?php echo $x_integrity_dark_bg_color; ?> ; } <?php } else { ?> body { background: <?php echo $x_integrity_dark_bg_color; ?> url(<?php echo x_make_protocol_relative($x_integrity_dark_bg_image_pattern); ?> ) center top repeat; } <?php } ?> <?php if (get_theme_mod('x_integrity_footer_transparency_enable') == 1) { ?> .x-colophon.top, .x-colophon.bottom { border-top: 1px solid #000; border-top: 1px solid rgba(0, 0, 0, 0.75);
background-color: <?php echo $x_icon_bg_color; ?> ; } <?php } else { ?> body { background: <?php echo $x_icon_bg_color; ?> url(<?php echo x_make_protocol_relative($x_icon_bg_image_pattern); ?> ) center top repeat; } <?php } ?> /* Site Link Color Accents // ========================================================================== */ /* // Color.
function x_ethos_entry_cover_background_image_style() { $featured_image = x_make_protocol_relative(x_get_featured_image_url()); $background_image = $featured_image != '' ? 'background-image: url(' . $featured_image . ');' : 'background-image: none;'; return $background_image; }
background-color: <?php echo $x_ethos_bg_color; ?> ; } <?php } else { ?> body { background: <?php echo $x_ethos_bg_color; ?> url(<?php echo x_make_protocol_relative($x_ethos_bg_image_pattern); ?> ) center top repeat; } <?php } ?> /* Site Link Color Accents // ========================================================================== */ /* // Color.
<?php // ============================================================================= // VIEWS/GLOBAL/_BRAND.PHP // ----------------------------------------------------------------------------- // Outputs the brand. // ============================================================================= $site_name = get_bloginfo('name'); $site_description = get_bloginfo('description'); $logo = x_make_protocol_relative(get_theme_mod('x_logo')); $site_logo = '<img src="' . $logo . '" alt="' . $site_description . '">'; ?> <?php echo is_front_page() ? '<h1 class="visually-hidden">' . $site_name . '</h1>' : ''; ?> <a href="<?php echo home_url('/'); ?> " class="<?php x_brand_class(); ?> " title="<?php echo $site_description; ?> "> <?php echo $logo == '' ? $site_name : $site_logo; ?> </a>