PATH:
home
/
centosnipponia
/
public_html
/
sweetrich
/
wp-content
/
themes
/
sydney-pro-ii
/
inc
/
modules
/
ext-footer
<?php /** * Functions for the extended footer module * * @package Sydney */ if ( !Sydney_Modules::is_module_active( 'ext-footer' ) ) { return; } /** * Enqueue footer related styles */ function sydney_enqueue_ext_footer_styles() { wp_enqueue_style( 'sydney-ext-footer-styles', get_template_directory_uri() . '/css/modules/ext-footer.min.css' ); } add_action( 'wp_enqueue_scripts', 'sydney_enqueue_ext_footer_styles', 9 ); /** * Load Customizer options */ function sydney_ext_footer_customizer_options( $wp_customize ) { require get_template_directory() . '/inc/customizer/options/modules/ext-footer.php'; } add_action( 'customize_register', 'sydney_ext_footer_customizer_options' ); /** * Footer separators */ function sydney_footer_separator( $type ) { $separators = array( 'waves' => '<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M985.66 92.83C906.67 72 823.78 31 743.84 14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84 11.73-114 31.07-172 41.86A600.21 600.21 0 0 1 0 27.35V120h1200V95.8c-67.81 23.12-144.29 15.51-214.34-2.97Z" class="shape-fill"/></svg>', 'waves-opacity' => '<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0 0v46.29c47.79 22.2 103.59 32.17 158 28 70.36-5.37 136.33-33.31 206.8-37.5 73.84-4.36 147.54 16.88 218.2 35.26 69.27 18 138.3 24.88 209.4 13.08 36.15-6 69.85-17.84 104.45-29.34C989.49 25 1113-14.29 1200 52.47V0Z" opacity=".25" class="shape-fill"/><path d="M0 0v15.81c13 21.11 27.64 41.05 47.69 56.24C99.41 111.27 165 111 224.58 91.58c31.15-10.15 60.09-26.07 89.67-39.8 40.92-19 84.73-46 130.83-49.67 36.26-2.85 70.9 9.42 98.6 31.56 31.77 25.39 62.32 62 103.63 73 40.44 10.79 81.35-6.69 119.13-24.28s75.16-39 116.92-43.05c59.73-5.85 113.28 22.88 168.9 38.84 30.2 8.66 59 6.17 87.09-7.5 22.43-10.89 48-26.93 60.65-49.24V0Z" opacity=".5" class="shape-fill"/><path d="M0 0v5.63C149.93 59 314.09 71.32 475.83 42.57c43-7.64 84.23-20.12 127.61-26.46 59-8.63 112.48 12.24 165.56 35.4C827.93 77.22 886 95.24 951.2 90c86.53-7 172.46-45.71 248.8-84.81V0Z" class="shape-fill"/></svg>', 'curve' => '<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M600 112.77C268.63 112.77 0 65.52 0 7.23V120h1200V7.23c0 58.29-268.63 105.54-600 105.54Z" class="shape-fill"/></svg>', 'curve-asym' => '<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M741 116.23C291 117.43 0 27.57 0 6v114h1200V6c0 21.93-13.6 113.83-459 110.23Z" class="shape-fill"/></svg>', 'triangle' => '<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M598.97 114.72 0 0v120h1200V0L598.97 114.72z" class="shape-fill"/></svg>', 'triangle-asym' => '<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M892.25 114.72 0 0v120h1200V0L892.25 114.72z" class="shape-fill"/></svg>', 'tilt' => '<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M1200 120L0 16.48 0 0 1200 0 1200 120z" class="shape-fill"></path></svg>', 'book' => '<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M602.45 3.86S572.9 116.24 281.94 120H923C632 116.24 602.45 3.86 602.45 3.86Z" class="shape-fill"/></svg>', ); $separator = $separators[$type]; return $separator; } /** * Dynamic styles for the footer module */ function sydney_ext_footer_dynamic_styles( $custom ) { $footer_background_image = get_theme_mod( 'footer_background_image' ); $footer_background_overlay = get_theme_mod( 'footer_background_overlay', 'rgba(0, 16, 46, 90%)' ); if ( $footer_background_image ) { $custom .= ".footer-wrapper { background-image:url(" . esc_attr( $footer_background_image ) . ");}" . "\n"; $custom .= ".site-footer, .footer-widgets, .footer-separator div { background:" . esc_attr( $footer_background_overlay ) . ";}" . "\n"; } $footer_contact_radius = get_theme_mod( 'footer_contact_radius' ); $custom .= ".footer-contact-inner { border-radius:" . esc_attr( $footer_contact_radius ) . "px;}" . "\n"; $footer_contact_bg = get_theme_mod( 'footer_contact_bg' ); $custom .= ".footer-contact-inner { background-color:" . esc_attr( $footer_contact_bg ) . ";}" . "\n"; $footer_contact_color = get_theme_mod( 'footer_contact_color' ); $custom .= ".footer-contact-inner, .footer-contact-inner a:not(.button), .footer-contact-inner h3, .footer-contact-inner h2 { color:" . esc_attr( $footer_contact_color ) . ";}" . "\n"; $footer_contact_padding_desktop = get_theme_mod( 'footer_contact_padding_desktop', 60 ); $footer_contact_padding_tablet = get_theme_mod( 'footer_contact_padding_tablet', 30 ); $footer_contact_padding_mobile = get_theme_mod( 'footer_contact_padding_mobile', 30 ); $custom .= "@media (min-width: 992px) {.footer-contact-inner { padding:" . esc_attr($footer_contact_padding_desktop) . "px;} }"."\n"; $custom .= "@media (min-width: 576px) and (max-width: 991px) {.footer-contact-inner { padding:" . esc_attr($footer_contact_padding_tablet) . "px;} }"."\n"; $custom .= "@media (max-width: 575px) {.footer-contact-inner { padding:" . esc_attr($footer_contact_padding_mobile) . "px;} }"."\n"; $footer_contact_margin_desktop = get_theme_mod( 'footer_contact_margin_desktop', 100 ); $footer_contact_margin_tablet = get_theme_mod( 'footer_contact_margin_tablet', 50 ); $footer_contact_margin_mobile = get_theme_mod( 'footer_contact_margin_mobile', 50 ); $custom .= "@media (min-width: 992px) {.footer-contact { margin-bottom:" . esc_attr($footer_contact_margin_desktop) . "px;} }"."\n"; $custom .= "@media (min-width: 576px) and (max-width: 991px) {.footer-contact { margin-bottom:" . esc_attr($footer_contact_margin_tablet) . "px;} }"."\n"; $custom .= "@media (max-width: 575px) {.footer-contact { margin-bottom:" . esc_attr($footer_contact_margin_mobile) . "px;} }"."\n"; return $custom; } add_filter( 'sydney_custom_css', 'sydney_ext_footer_dynamic_styles' );
[+]
..
[-] ext-footer.php
[edit]
[-] .htaccess.disabled
[edit]