v7‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT post->ID)) return true; return false; } } /** * If WooCommerce Plugin Activated */ if ( ! function_exists( 'saaspot_is_woocommerce_activated' ) ) { function saaspot_is_woocommerce_activated() { if ( class_exists( 'woocommerce' ) ) { return true; } else { return false; } } } /** * If is WooCommerce Shop */ if ( ! function_exists( 'saaspot_is_woocommerce_shop' ) ) { function saaspot_is_woocommerce_shop() { if ( saaspot_is_woocommerce_activated() && is_shop() ) { return true; } else { return false; } } } /** * If is WPML is active */ if ( ! function_exists( 'saaspot_is_wpml_activated' ) ) { function saaspot_is_wpml_activated() { if ( class_exists( 'SitePress' ) ) { return true; } else { return false; } } } /** * Remove Rev Slider Metabox */ if ( is_admin() ) { if( ! function_exists( 'saaspot_remove_rev_slider_meta_boxes' ) ) { function saaspot_remove_rev_slider_meta_boxes() { remove_meta_box( 'mymetabox_revslider_0', 'page', 'normal' ); remove_meta_box( 'mymetabox_revslider_0', 'post', 'normal' ); remove_meta_box( 'mymetabox_revslider_0', 'team', 'normal' ); remove_meta_box( 'mymetabox_revslider_0', 'testimonial', 'normal' ); remove_meta_box( 'mymetabox_revslider_0', 'apps', 'normal' ); } add_action( 'do_meta_boxes', 'saaspot_remove_rev_slider_meta_boxes' ); } } /** * Custom Font Family */ if ( ! function_exists( 'saaspot_custom_font_load' ) ) { function saaspot_custom_font_load() { $font_family = cs_get_option( 'font_family' ); ob_start(); if( ! empty( $font_family ) ) { foreach ( $font_family as $font ) { echo '@font-face{'; echo 'font-family: "'. $font['name'] .'";'; if( empty( $font['css'] ) ) { echo 'font-style: normal;'; echo 'font-weight: normal;'; } else { echo $font['css']; // SaaSpotWP } echo ( ! empty( $font['ttf'] ) ) ? 'src: url('. esc_url($font['ttf']).');' : ''; echo ( ! empty( $font['eot'] ) ) ? 'src: url('. esc_url($font['eot']).');' : ''; echo ( ! empty( $font['woff'] ) ) ? 'src: url('. esc_url($font['woff']) .');' : ''; echo ( ! empty( $font['otf'] ) ) ? 'src: url('. esc_url($font['otf']).');' : ''; echo '}'; } } // Typography $output = ob_get_clean(); return $output; } } /* Custom Styles */ if( ! function_exists( 'saaspot_vt_custom_css' ) ) { function saaspot_vt_custom_css() { wp_enqueue_style('saaspot-default-style', get_template_directory_uri() . '/style.css'); $output = saaspot_custom_font_load(); $output .= saaspot_dynamic_styles(); $custom_css = saaspot_compress_css_lines( $output ); wp_add_inline_style( 'saaspot-default-style', $custom_css ); } } /** * Check if Codestar Framework is Active or Not! */ if ( ! function_exists( 'saaspot_framework_active' ) ) { function saaspot_framework_active() { return ( defined( 'CS_VERSION' ) ) ? true : false; } } // cs_get_option if ( ! function_exists( 'cs_get_option' ) ) { function cs_get_option( $option_name = '', $default = '' ) { if (saaspot_framework_active()) { $options = apply_filters( 'cs_get_option', get_option( CS_OPTION ), $option_name, $default ); } else { $options = ''; } if( ! empty( $option_name ) && ! empty( $options[$option_name] ) ) { return $options[$option_name]; } else { return ( ! empty( $default ) ) ? $default : null; } } } // cs_get_customize_option if ( ! function_exists( 'cs_get_customize_option' ) ) { function cs_get_customize_option( $option_name = '', $default = '' ) { if (saaspot_framework_active()) { $options = apply_filters( 'cs_get_customize_option', get_option( CS_CUSTOMIZE ), $option_name, $default ); } else { $options = ''; } if( ! empty( $option_name ) && ! empty( $options[$option_name] ) ) { return $options[$option_name]; } else { return ( ! empty( $default ) ) ? $default : null; } } }