a5_styles('wp', 'all', self::$options['inline'], self::$options['priority']); $afpw_styles = self::$options['css_cache']; if (!$afpw_styles) : $eol = (self::$options['compress']) ? '' : "\n"; $tab = (self::$options['compress']) ? '' : "\t"; $css_selector = 'widget_advanced_featured_post_widget[id^="advanced_featured_post_widget"]'; $afpw_styles = (!self::$options['compress']) ? $eol.'/* CSS portion of the Advanced Featured Post Widget */'.$eol.$eol : ''; $style = str_replace('; ', ';'.$eol.$tab, str_replace(array("\r\n", "\n", "\r"), ' ', self::$options['css'])); $afpw_styles .= parent::build_widget_css($css_selector, '').'{'.$eol.$tab.$style.$eol.'}'.$eol; $afpw_styles .= parent::build_widget_css($css_selector, 'img').'{'.$eol.$tab.'height: auto;'.$eol.$tab.'max-width: 100%;'.$eol.'}'.$eol; if (!empty (self::$options['link'])) : $style=str_replace('; ', ';'.$eol.$tab, str_replace(array("\r\n", "\n", "\r"), ' ', self::$options['link'])); $afpw_styles .= parent::build_widget_css($css_selector, 'a').'{'.$eol.$tab.$style.$eol.'}'.$eol; endif; if (!empty (self::$options['hover'])) : $style=str_replace('; ', ';'.$eol.$tab, str_replace(array("\r\n", "\n", "\r"), ' ', self::$options['hover'])); $afpw_styles .= parent::build_widget_css($css_selector, 'a:hover').'{'.$eol.$tab.$style.$eol.'}'.$eol; endif; self::$options['css_cache'] = $afpw_styles; update_option('afpw_options', self::$options); endif; parent::$wp_styles .= $afpw_styles; } } // AFPW_Dynamic CSS ?>