It looks like nothing was found at this location. Maybe try one of the links below or a search?
t_fill_css( $setting, $default, $selector, $important = false ) { $mod = get_theme_mod( $setting, $default ); Sydney_Custom_CSS::get_instance()->mount_customizer_js_options( $selector, $setting, 'fill', '', $important ); return $selector . '{ fill:' . esc_attr( $mod ) . ';}' . "\n"; } /** * Get stroke CSS */ public static function get_stroke_css( $setting, $default, $selector ) { $mod = get_theme_mod( $setting, $default ); return $selector . '{ stroke:' . esc_attr( $mod ) . ';}' . "\n"; } //Font sizes public static function get_font_sizes_css( $setting, $defaults, $selector ) { $devices = array( 'desktop' => '@media (min-width: 992px)', 'tablet' => '@media (min-width: 576px) and (max-width: 991px)', 'mobile' => '@media (max-width: 575px)' ); $css = ''; foreach ( $devices as $device => $media ) { $mod = get_theme_mod( $setting . '_' . $device, $defaults[$device] ); $css .= $media . ' { ' . $selector . ' { font-size:' . intval( $mod ) . 'px;} }' . "\n"; } return $css; } public static function mount_customizer_js_options( $selector = '', $setting = '', $prop = '', $opacity = '', $important = false ) { $options = array( 'option' => $setting, 'selector' => $selector, 'prop' => $prop ); if( $opacity ) { $options[ 'rgba' ] = $opacity; } // if( strpos( $selector, ':after' ) !== FALSE || strpos( $selector, ':before' ) !== FALSE || strpos( $selector, ':hover' ) !== FALSE || $important ) { $options[ 'pseudo' ] = true; // } Sydney_Custom_CSS::get_instance()->customizer_js[] = $options; } //Max width public static function get_max_width_css( $setting, $defaults, $selector ) { $devices = array( 'desktop' => '@media (min-width: 992px)', 'tablet' => '@media (min-width: 576px) and (max-width: 991px)', 'mobile' => '@media (max-width: 575px)' ); $css = ''; foreach ( $devices as $device => $media ) { $mod = get_theme_mod( $setting . '_' . $device, $defaults[$device] ); $css .= $media . ' { ' . $selector . ' { max-width:' . intval( $mod ) . 'px;} }' . "\n"; } return $css; } //Max height public static function get_max_height_css( $setting, $defaults, $selector ) { $devices = array( 'desktop' => '@media (min-width: 992px)', 'tablet' => '@media (min-width: 576px) and (max-width: 991px)', 'mobile' => '@media (max-width: 575px)' ); $css = ''; foreach ( $devices as $device => $media ) { $mod = get_theme_mod( $setting . '_' . $device, $defaults[$device] ); $css .= $media . ' { ' . $selector . ' { max-height:' . intval( $mod ) . 'px;} }' . "\n"; } return $css; } //Top bottom padding public static function get_top_bottom_padding_css( $setting, $defaults, $selector ) { $devices = array( 'desktop' => '@media (min-width: 992px)', 'tablet' => '@media (min-width: 576px) and (max-width: 991px)', 'mobile' => '@media (max-width: 575px)' ); $css = ''; foreach ( $devices as $device => $media ) { $mod = get_theme_mod( $setting . '_' . $device, $defaults[$device] ); $css .= $media . ' { ' . $selector . ' { padding-top:' . intval( $mod ) . 'px;padding-bottom:' . intval( $mod ) . 'px;} }' . "\n"; } return $css; } //Left right padding public static function get_left_right_padding_css( $setting, $defaults, $selector ) { $devices = array( 'desktop' => '@media (min-width: 992px)', 'tablet' => '@media (min-width: 576px) and (max-width: 991px)', 'mobile' => '@media (max-width: 575px)' ); $css = ''; foreach ( $devices as $device => $media ) { $mod = get_theme_mod( $setting . '_' . $device, $defaults[$device] ); $css .= $media . ' { ' . $selector . ' { padding-left:' . intval( $mod ) . 'px;padding-right:' . intval( $mod ) . 'px;} }' . "\n"; } return $css; } public function hex2rgba($color, $opacity = false) { if ($color[0] == '#' ) { $color = substr( $color, 1 ); } $hex = array( $color[0] . $color[1], $color[2] . $color[3], $color[4] . $color[5] ); $rgb = array_map('hexdec', $hex); $opacity = 0.9; $output = 'rgba('.implode(",",$rgb).','.$opacity.')'; return $output; } /** * Get background color rgba CSS */ public static function get_background_color_rgba_css( $setting, $default, $selector, $opacity ) { $mod = get_theme_mod( $setting, $default ); return $selector . '{ background-color:' . esc_attr( Sydney_Custom_CSS::get_instance()->hex2rgba( $mod, $opacity ) ) . ';}' . "\n"; } /** * Get border color rgba CSS */ public static function get_border_color_rgba_css( $setting, $default, $selector, $opacity, $important = false ) { $mod = get_theme_mod( $setting, $default ); return $selector . '{ border-color:' . esc_attr( Sydney_Custom_CSS::get_instance()->hex2rgba( $mod, $opacity ) ) . ( $important ? '!important' : '' ) .';}' . "\n"; } } /** * Initialize class */ Sydney_Custom_CSS::get_instance(); endif;
It looks like nothing was found at this location. Maybe try one of the links below or a search?