/** * Styles the header image and text displayed on the blog * * @see _tk_custom_header_setup(). */ function cc2_custom_header_style() { $header_text_color = get_header_textcolor(); // If no custom options for text are set, let's bail // get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value if (defined('HEADER_TEXTCOLOR') && HEADER_TEXTCOLOR == $header_text_color) { return; } // If we get this far, we have custom styles. Let's do this. ?> <style type="text/css"> <?php cc2_CustomStyle::custom_header_style(); ?> </style> <?php }
/** * Implements Factory pattern * Strongly inspired by WP Maintenance Mode of Frank Bueltge ^_^ (@link https://github.com/bueltge/WP-Maintenance-Mode) * * Access this plugins working instance * * @wp-hook after_setup_theme * @return object of this class */ public static function get_instance() { NULL === self::$instance and self::$instance = new self(); return self::$instance; }