__construct();} /** * PHP 5 Constructor */ function __construct(){ $this->parent__construct(); $this->child__construct(); } function parent__construct() { $this->postAlt = 0; $this->searchFormID = 0; $this->definePaths(); $this->defineChildVersions(); $this->defineParentVersions(); $this->defineMinimised(); $this->defineOptions(); $this->setupOptions(); $this->setImageSizes(); /* javascript and CSS */ add_action('wp_print_styles', array(&$this,'registerCSS'), 50); add_action('wp_print_styles', array(&$this,'registerJS'), 75); add_action('wp_print_styles', array(&$this,'registerMoreCssJs'), 100); add_action('wp_print_styles', array(&$this,'enqueueCSS'), 125); add_action('wp_print_styles', array(&$this,'enqueueChildJs'), 150); add_action('wp_print_styles', array(&$this,'enqueueJS'), 175); add_filter('script_loader_src', array(&$this, 'removeVersionQstring')); add_filter('style_loader_src', array(&$this, 'removeVersionQstring')); add_action('wp_footer', array(&$this, 'inlineFooterJs')); /* class filters */ add_filter('body_class', array(&$this, 'bodyClass'),1, 2); add_filter('post_class', array(&$this, 'postClass'),5, 3); /* misc filters */ add_filter('wp_nav_menu', array(&$this, 'filterMenus')); add_filter('wp_title', array(&$this, 'filterHtmlTitle'), 10, 2); add_action('wp_head', array(&$this, 'setHeaderTags')); /* formidable filters */ add_filter('frm_custom_html', array(&$this, 'formidableHtml'), 10, 2); add_filter('get_frm_stylesheet', ''); $this->betterFormShortcodes(); $this->httpHeaders(); } function child__construct() { /* intended to be overridden in child theme */ } function defineOptions() { /* intended to be overridden in child theme */ $options = &$this->options; //meta tags in header $options['feed_links'] = true; // sitewide and comments feed links. (default: true) $options['feed_links_extra'] = true; // archive, post/page comments, etc feed links. (default: true) $options['rsd_link'] = true; // desktop editors use this. (default: true) $options['wlwmanifest_link'] = true; //windows live writer uses this. (default: true) $options['index_rel_link'] = true; // rel tag linking to home_url(). (default: true) $options['parent_post_rel_link'] = true; //rel tag link to parent page. (default: true) $options['start_post_rel_link'] = true; //rel tag linking to first ever post. (default: true) $options['adjacent_posts_rel_link_wp_head'] = true; //next/prev posts. (default: true) $options['locale_stylesheet'] = false; //localised stylesheet tag - ltr, rtl. (default: false) $options['wp_generator'] = true; //generator meta tag, site & feeds. (default: true) $options['wp_shortlink_wp_head'] = true; //show shortlink tag. (default: true) //general options $options['admin_bar'] = true; //show admin_bar. (default: true) $options['custom_admin_bar_css'] = false; //use custom css for the admin bar. (default: false) $options['remove_capital_P_dangit'] = false; //remove capital_P_dangit filters (default: false) /* theme options*/ $options['content_width'] = 800; //defaults to 800 $options['thumbnails'] = false; //post thumbnails (default: false. true/false) $options['attachment_page_img_width'] = 600; //defaults to 600 $options['attachment_page_img_height'] = 600; //defaults to 600 $options['post-formats'] = false;// (default: false, true = all, array = selected types) $options['favicon'] = true; //show favicon meta tags in header (default:true) $options['favicon-apple'] = true; //show apple-icon meta tag in header (default: true) $options['X-UA-Compatible'] = 'IE=edge'; //ie header verson (default: IE=edge) $options['mobile-css-query'] = ''; // default: 'handheld, only screen and (min-device-width : 1px) and (max-device-width : 1024px)'; $options['page-comments-enabled'] = true; //default: true $options['trackbacks-enabled'] = true; //default: true; //widget areas. true/false or string. If string that will be the areas english name $options['widget-header'] = true; $options['widget-footer'] = true; $options['widget-sidebar-a'] = true; $options['widget-sidebar-b'] = true; //navigation menus. true/false or string. If string that will be used for the english name $options['header-menu'] = true; $options['footer-menu'] = true; $options['not-found-map'] = true; //on 404 and no search results pages. // javascript options (these js files can't be queued with conditional comments) // currently setup in header.php, need to find a cleaner way. $options['js-html5-shiv'] = false; //remy sharp's html5 shiv $options['js-selectivizr'] = false; //selectivizr - prevents using CDN for CSS $options['ddbelatedpng'] = true; //alpha transparency support for IE6 (default: true) //visual editor options $options['editor-css'] = true; //custom css for editor (default: true, loads from all css folder if true) $options['editor-classes'] = false; //classes in editor style dropdown (default: false/array) $options['editor-fake-heading-levels'] = true; //fake editor header level to keep html accessible (default:true) } function defineMinimised() { /* intended to be overridden in child theme */ $this->parent['cssMin'] = false; $this->child ['cssMin'] = false; $this->parent['jsMin'] = false; $this->child ['jsMin'] = false; } function defineChildVersions() { /* intended to be overridden in child theme */ $child = &$this->child; $child['cssVer'] = '20110606.01'; $child['jsVer'] = '20110606.01'; $child['jsDependencies'] = array( 'jquery' ,'soup-base' // ,'fancybox' // ,'hashchange' ,'form-validation' // ,'modernizr' ); } function setImageSizes() { /* intended to be overridden in child theme */ if ( function_exists( 'set_post_thumbnail_size' ) ) { set_post_thumbnail_size( 150, 150, true ); // 150x150 size } if ( function_exists( 'add_image_size' ) ) { //set one for the attachment page add_image_size( $this->options['attachment_page_img_width'] . 'x' . $this->options['attachment_page_img_height'], $this->options['attachment_page_img_width'], $this->options['attachment_page_img_height'] ); // add_image_size( '150x150', 150, 150, true); // 150x150 image size // add_image_size( '270x150', 270, 150, true ); // 270x150 image size // add_image_size( '310x150', 310, 150, true ); // 310x150 image size // add_image_size( '310x310', 310, 310, true ); // 310x310 image size // add_image_size( '590x400', 590, 400, true ); // 590x400 image size // add_image_size( '590', 590, 9999 ); // 590 image size // add_image_size( '950', 950, 9999 ); // 950 image size } // config image size to be displayed in attachment-loop } function registerMoreCssJs() { /* intended to be overridden in child theme */ } function enqueueCSS() { /* intended to be overridden in child theme */ /* ******************* * Don't queue both seperate and combined sheets! * ****************** */ if (!is_admin()) { wp_enqueue_style('soup-all'); // wp_enqueue_style('soup-all-ie6'); // wp_enqueue_style('soup-all-ie7'); // wp_enqueue_style('soup-all-ie8'); // wp_enqueue_style('soup-all-ie9'); wp_enqueue_style('soup-mobile'); wp_enqueue_style('soup-print'); // wp_enqueue_style('soup-print-ie6'); // wp_enqueue_style('soup-print-ie7'); // wp_enqueue_style('soup-print-ie8'); // wp_enqueue_style('soup-print-ie9'); // wp_enqueue_style('soup-all-media'); // wp_enqueue_style('soup-all-media-ie6'); // wp_enqueue_style('soup-all-media-ie7'); // wp_enqueue_style('soup-all-media-ie8'); // wp_enqueue_style('soup-all-media-ie9'); } } function enqueueChildJs(){ /* intended to be overridden in child theme */ if (!is_admin()) { wp_enqueue_script('custom'); } } function definePaths(){ $child = &$this->child; $parent = &$this->parent; $child['url'] = get_stylesheet_directory_uri(); $child['assets'] = get_stylesheet_directory_uri() . '/assets/child'; $child['css'] = get_stylesheet_directory_uri() . '/assets/child/c'; $child['js'] = get_stylesheet_directory_uri() . '/assets/child/j'; $child['img'] = get_stylesheet_directory_uri() . '/assets/child/i'; $child['php'] = get_stylesheet_directory_uri() . '/assets/child/p'; $child['phpPath'] = STYLESHEETPATH . '/assets/child/p'; $parent['url'] = get_template_directory_uri(); $parent['assets'] = get_template_directory_uri() . '/assets/parent'; $parent['css'] = get_template_directory_uri() . '/assets/parent/c'; $parent['js'] = get_template_directory_uri() . '/assets/parent/j'; $parent['img'] = get_template_directory_uri() . '/assets/parent/i'; $parent['php'] = get_template_directory_uri() . '/assets/parent/p'; $parent['phpPath'] = TEMPLATEPATH . '/assets/parent/p'; } function defineParentVersions() { $parent = &$this->parent; $parent['cssVer'] = '20110617.01'; $parent['jsVer'] = '20110624.01'; } function setupOptions() { $options = &$this->options; // 1. setup defaults -- needed for bigRed_option() if (!isset($options['feed_links'])) { $options['feed_links'] = true; } if (!isset($options['feed_links_extra'])) { $options['feed_links_extra'] = true; } if (!isset($options['rsd_link'])) { $options['rsd_link'] = true; } if (!isset($options['wlwmanifest_link'])) { $options['wlwmanifest_link'] = true; } if (!isset($options['index_rel_link'])) { $options['index_rel_link'] = true; } if (!isset($options['parent_post_rel_link'])) { $options['parent_post_rel_link'] = true; } if (!isset($options['start_post_rel_link'])) { $options['start_post_rel_link'] = true; } if (!isset($options['adjacent_posts_rel_link_wp_head'])) { $options['adjacent_posts_rel_link_wp_head'] = true; } if (!isset($options['locale_stylesheet'])) { $options['locale_stylesheet'] = false; } if (!isset($options['wp_generator'])) { $options['wp_generator'] = true; } if (!isset($options['wp_shortlink_wp_head'])) { $options['wp_shortlink_wp_head'] = true; } //general options if (!isset($options['admin_bar'])) { $options['admin_bar'] = true; } if (!isset($options['custom_admin_bar_css'])) { $options['custom_admin_bar_css'] = false; } if (!isset($options['remove_capital_P_dangit'])) { $options['remove_capital_P_dangit'] = false; } /* theme options*/ if (!is_int($options['content_width']) OR ($options['content_width'] < 1)) { $options['content_width'] = 800; } if (!isset($options['thumbnails'])) { $options['thumbnails'] = false; } if (!is_int($options['attachment_page_img_width']) OR ($options['attachment_page_img_width'] < 1)) { if ($options['content_width'] >= 600) { $options['attachment_page_img_width'] = 600; } else { $options['attachment_page_img_width'] = $options['content_width']; } } if (!is_int($options['attachment_page_img_height']) OR ($options['attachment_page_img_height'] < 1)) { $options['attachment_page_img_height'] = 600; } if (!isset($options['post-formats'])) { $options['post-formats'] = false; } if (!isset($options['favicon'])) { $options['favicon'] = true; } if (!isset($options['favicon-apple'])) { $options['favicon-apple'] = true; } if (trim($options['X-UA-Compatible']) == '') { $options['X-UA-Compatible'] = 'IE=edge'; } if (trim($options['mobile-css-query']) == '') { $options['mobile-css-query'] = 'handheld, only screen and (min-device-width : 1px) and (max-device-width : 1024px)'; } if (!isset($options['page-comments-enabled'])) { $options['page-comments-enabled'] = true; } if (!isset($options['trackbacks-enabled'])) { $options['trackbacks-enabled'] = true; } //2 implement options //meta tags in header if ( (function_exists('add_theme_support')) AND ($options['feed_links'] == true) ) { add_theme_support( 'automatic-feed-links' ); } elseif (function_exists('remove_theme_support')) { remove_theme_support( 'automatic-feed-links' ); } if ($options['feed_links_extra'] == false) { remove_action( 'wp_head', 'feed_links_extra', 3 ); } if ($options['rsd_link'] == false) { remove_action( 'wp_head', 'rsd_link'); } if ($options['wlwmanifest_link'] == false) { remove_action( 'wp_head', 'rsd_link'); } if ($options['index_rel_link'] == false) { remove_action( 'wp_head', 'index_rel_link'); } if ($options['parent_post_rel_link'] == false) { remove_action( 'wp_head', 'parent_post_rel_link', 10, 0); } if ($options['start_post_rel_link'] == false) { remove_action( 'wp_head', 'start_post_rel_link', 10, 0); } if ($options['adjacent_posts_rel_link_wp_head'] == false) { remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0); } if ($options['locale_stylesheet'] == false) { remove_action( 'wp_head', 'locale_stylesheet'); } if ($options['wp_generator'] == false) { remove_action( 'wp_head', 'wp_generator'); $feeds = array( 'rss2_head', 'commentsrss2_head', 'rss_head', 'rdf_header', 'atom_head', 'comments_atom_head', 'opml_head', 'app_head' ); foreach ( $feeds as $action ) { remove_action( $action, 'the_generator' ); } } if ($options['wp_shortlink_wp_head'] == false) { remove_action( 'wp_head', 'wp_shortlink_wp_head'); } if ($options['admin_bar'] == false) { //source: http://yoast.com/disable-wp-admin-bar/ add_filter( 'show_admin_bar', '__return_false' ); remove_action( 'personal_options', '_admin_bar_preferences' ); } //for customised admin bar CSS, see css registrations. if ($options['remove_capital_P_dangit'] == true) { foreach ( array( 'the_content', 'the_title' ) as $filter ) { remove_filter( $filter, 'capital_P_dangit', 11 ); } remove_filter( 'comment_text', 'capital_P_dangit', 31 ); } $this->content_width = $options['content_width'] = 800; if ($options['thumbnails'] == true) { if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); } } if ( ($options['post-formats'] == true) OR (is_array($options['post-formats'])) ) { if ( function_exists( 'add_theme_support' ) ) { if (!is_array($options['post-formats'])) { $options['post-formats'] = array( 'aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat'); } add_theme_support( 'post-formats', $options['post-formats'] ); } } if ($options['page-comments-enabled'] == false) { add_filter( 'comments_open', array(&$this, 'pageCommentsDisabled'), 10, 2 ); } if ($options['trackbacks-enabled'] == false) { add_filter( 'pings_open', '__return_false' ); } add_action('wp_head', array(&$this, 'meta_tags')); //sets options meta_tags //handheld media query in css registration $this->registerSidebars(); //sets up sidebar options $this->registerMenus(); //sets up menus add_action('wp_head', array(&$this, 'html5shiv'), 1); //sets options html5shiv add_action('wp_footer', array(&$this, 'selectivizr'), 9); //sets options selectivizr add_action('wp_footer', array(&$this, 'belatedpng'), 50); //sets up belated png js if (($options['editor-css'] == true) AND (function_exists('add_editor_style')) ) { add_editor_style("assets/child/c/all/editor-style.css"); } if (is_array($this->options['editor-classes']) == true) { add_filter('mce_buttons_2', array(&$this, 'editorButtons')); add_filter('tiny_mce_before_init', array(&$this, 'editorEnglishClasses')); } if ($options['editor-fake-heading-levels'] == true) { add_filter('tiny_mce_before_init', array(&$this, 'editorHeadings')); } } function editorButtons($buttons){ array_unshift($buttons, 'styleselect'); return $buttons; } function editorEnglishClasses($settings) { $classes = $this->options['editor-classes']; if ( !empty($settings['theme_advanced_styles']) ) { $settings['theme_advanced_styles'] .= ';'; } else { $settings['theme_advanced_styles'] = ''; } $class_settings = ''; foreach ( $classes as $name => $value ) { $class_settings .= "{$name}={$value};"; } $settings['theme_advanced_styles'] .= trim($class_settings, '; '); return $settings; } function editorHeadings($settings) { if ( !empty($settings['theme_advanced_blockformats']) ) $settings['theme_advanced_blockformats'] .= ';'; else $settings['theme_advanced_blockformats'] = ''; if (get_post_type() == 'page') { $formats = array( 'Paragraph' => 'p', 'Address' => 'address', 'Preformatted' => 'pre', 'Heading 1' => 'h2', 'Heading 2' => 'h3', 'Heading 3' => 'h4', 'Heading 4' => 'h5', 'Heading 5' => 'h6' ); $settings['body_class'] .= 'page'; } else { $formats = array( 'Paragraph' => 'p', 'Address' => 'address', 'Preformatted' => 'pre', 'Heading 1' => 'h4', 'Heading 2' => 'h5', 'Heading 3' => 'h6' ); $settings['body_class'] .= 'single'; } $format_settings = ''; foreach ( $formats as $name => $value ) { $format_settings .= "{$name}={$value};"; } $settings['theme_advanced_blockformats'] .= trim($format_settings, '; '); return $settings; } function registerCSS() { $options = &$this->options; $parent = &$this->parent; $child = &$this->child; $prot = is_ssl() ? 'https' : 'http'; global $wp_scripts,$wp_styles; $pce = $pje = $cce = $cje = ''; if ($parent['cssMin']) { $pce = '-min'; } if ($parent['jsMin']) { $pje = '-min'; } if ($child['cssMin']) { $cce = '-min'; } if ($child['jsMin']) { $cje = '-min'; } if ($this->options['mobile-css-query'] == false) { $mobStyle = 'handheld, only screen and (min-device-width : 1px) and (max-device-width : 1024px)'; } else { $mobStyle = $this->options['mobile-css-query']; } if ( (isset($options['custom_admin_bar_css'])) AND ($options['custom_admin_bar_css'] == true) ) { //default: do not customise wp_deregister_style('admin-bar'); wp_register_style( 'admin-bar', $child['css'] . "/all/admin-bar$cce.css", null, $child['cssVer'] ); } /* all media type */ if (!function_exists('mfbfw_defaults')) : //defer to plugin wp_register_style( 'fancybox', $parent['css'] . "/jq.fancybox$pce.css", null, '1.3.4' ); endif; //if (function_exists('mfbfw_defaults')) : /* combined media types */ wp_register_style( 'soup-all-media', $child['css'] . "/all-media/all-media$cce.css", null, $child['cssVer'] ); wp_register_style( 'soup-all-media-ie6', $child['css'] . "/all-media/all-media-ie6$cce.css", null, $child['cssVer'] ); $wp_styles->registered['soup-all-media-ie6']->extra['conditional'] = 'IE 6'; wp_register_style( 'soup-all-media-ie7', $child['css'] . "/all-media/all-media-ie7$cce.css", null, $child['cssVer'] ); $wp_styles->registered['soup-all-media-ie7']->extra['conditional'] = 'IE 7'; wp_register_style( 'soup-all-media-ie8', $child['css'] . "/all-media/all-media-ie8$cce.css", null, $child['cssVer'] ); $wp_styles->registered['soup-all-media-ie8']->extra['conditional'] = 'IE 8'; wp_register_style( 'soup-all-media-ie9', $child['css'] . "/all-media/all-media-ie9$cce.css", null, $child['cssVer'] ); $wp_styles->registered['soup-all-media-ie9']->extra['conditional'] = 'IE 9'; /* all media type */ wp_register_style( 'soup-all', $child['css'] . "/all/all$cce.css", null, $child['cssVer'] ); wp_register_style( 'soup-all-ie6', $child['css'] . "/all/all-ie6$cce.css", null, $child['cssVer'] ); $wp_styles->registered['soup-all-ie6']->extra['conditional'] = 'IE 6'; wp_register_style( 'soup-all-ie7', $child['css'] . "/all/all-ie7$cce.css", null, $child['cssVer'] ); $wp_styles->registered['soup-all-ie7']->extra['conditional'] = 'IE 7'; wp_register_style( 'soup-all-ie8', $child['css'] . "/all/all-ie8$cce.css", null, $child['cssVer'] ); $wp_styles->registered['soup-all-ie8']->extra['conditional'] = 'IE 8'; wp_register_style( 'soup-all-ie9', $child['css'] . "/all/all-ie9$cce.css", null, $child['cssVer'] ); $wp_styles->registered['soup-all-ie9']->extra['conditional'] = 'IE 9'; /* mobile media type */ wp_register_style( 'soup-mobile', $child['css'] . "/mobile/mobile$cce.css", null, $child['cssVer'], $mobStyle ); /* print media type */ wp_register_style( 'soup-print', $child['css'] . "/print/print$cce.css", null, $child['cssVer'], 'print' ); wp_register_style( 'soup-print-ie6', $child['css'] . "/print/print-ie6$cce.css", null, $child['cssVer'], 'print' ); $wp_styles->registered['soup-print-ie6']->extra['conditional'] = 'IE 6'; wp_register_style( 'soup-print-ie7', $child['css'] . "/print/print-ie7$cce.css", null, $child['cssVer'], 'print' ); $wp_styles->registered['soup-print-ie7']->extra['conditional'] = 'IE 7'; wp_register_style( 'soup-print-ie8', $child['css'] . "/print/print-ie8$cce.css", null, $child['cssVer'], 'print' ); $wp_styles->registered['soup-print-ie8']->extra['conditional'] = 'IE 8'; wp_register_style( 'soup-print-ie9', $child['css'] . "/print/print-ie9$cce.css", null, $child['cssVer'], 'print' ); $wp_styles->registered['soup-print-ie9']->extra['conditional'] = 'IE 9'; //use own form styles for grunion plugin wp_deregister_style('grunion.css'); } function registerJS() { $options = &$this->options; $parent = &$this->parent; $child = &$this->child; $prot = is_ssl() ? 'https' : 'http'; $pce = $pje = $cce = $cje = ''; global $wp_scripts,$wp_styles; if ($parent['cssMin']) { $pce = '-min'; } if ($parent['jsMin']) { $pje = '-min'; $validatorURL = "$prot://ajax.aspnetcdn.com/ajax/jquery.validate/1.7/jquery.validate.min.js"; } else { $validatorURL = "$prot://ajax.aspnetcdn.com/ajax/jquery.validate/1.7/jquery.validate.js"; } if ($child['cssMin']) { $cce = '-min'; } if ($child['jsMin']) { $cje = '-min'; } wp_register_script( 'soup-base', $this->parent['js'] . "/base$pje.js", array('jquery'), $this->parent['jsVer'], true ); wp_localize_script('soup-base', 'SOUPGIANT_wpURLS', array( 'register' => site_url('wp-login.php?action=register', 'login'), 'regoEnabled' => get_option('users_can_register') ? "y" : "n", 'lostpassword' => wp_lostpassword_url( site_url( $_SERVER['REQUEST_URI'] ) ), 'loginsubmit' => site_url( 'wp-login.php', 'login' ), 'currentURL' => site_url( $_SERVER['REQUEST_URI'] ), // 'childAssets' => $child['assets'], 'childCSS' => get_stylesheet_uri(), 'parentCSS' => get_template_directory_uri() . '/style.css' )); /* jQuery plugins */ wp_register_script( 'form-validation', $validatorURL, array('jquery'), '1.7', true ); if (!function_exists('mfbfw_defaults')) : //defer to plugin wp_register_script( 'fancybox', $parent['js'] . "/jq.fancybox$pce.js", array('jquery'), '1.3.4a', true ); endif; //if (function_exists('mfbfw_defaults')) : wp_register_script( 'hashchange', $this->parent['js'] . "/jq.ba-hashchange$pje.js", array('jquery'), '1.3', true ); wp_register_script( 'modernizr', $this->parent['js'] . "/modernizr$pje.js", null, '2.0.4', false ); wp_register_script( 'custom', $child['js'] . "/custom$cje.js", $child['jsDependencies'], $child['jsVer'], true ); wp_register_script( 'webfont-loader', "$prot://ajax.googleapis.com/ajax/libs/webfont/1.0.21/webfont.js", null, '1.0.21' ); } function enqueueJS() { /* this just cleans up JS enqueing and applies any applicable combo packs */ global $wp_scripts; if (wp_script_is('custom') == true) { foreach ($this->child['jsDependencies'] as $handle) { wp_enqueue_script($handle); } } if (wp_script_is('fancybox') == true) { wp_enqueue_style('fancybox'); } if ( (wp_script_is('fancybox') == true) AND (wp_script_is('hashchange') == true) ) { //use single combo file $pje = ''; if ($this->parent['jsMin']) { $pje = '-min'; } $comboVer .= $wp_scripts->registered['fancybox']->ver; $comboVer .= '-'; $comboVer .= $wp_scripts->registered['hashchange']->ver; $wp_scripts->registered['fancybox']->src = $this->parent['js'] . "/jq.fancybox.hashchange$pje.js"; $wp_scripts->registered['fancybox']->ver = $comboVer; $wp_scripts->registered['hashchange']->src = ''; } /* threaded comments */ if ((!is_admin()) AND is_singular() AND comments_open() AND (get_option('thread_comments') == 1)) { wp_enqueue_script( 'comment-reply' ); } } function httpHeaders(){ $options = &$this->options; if (!is_admin()): if ($options['X-UA-Compatible']) { header('X-UA-Compatible: ' . $options['X-UA-Compatible']); } endif; //if (!is_admin()): } function meta_tags(){ $options = &$this->options; $result = ""; if (!is_admin()): //double up IE header w/ meta tag to cover caching if ($options['X-UA-Compatible'] == true) { $result .= '' . "\n"; } if ($options['favicon'] == true) { $result .= '' . "\n"; $result .= '' . "\n"; } if ($options['favicon-apple'] == true) { $result .= '' . "\n"; } endif; //if (!is_admin()): echo $result; return; } function html5shiv() { $options = &$this->options; $parent = &$this->parent; //not needed if modenizr included if ( ($options['js-html5-shiv'] == true) AND (!in_array('modernizr', $this->child['jsDependencies'])) ): $result = ""; $result .= '' . "\n"; endif; // ($options['js-html5-shiv'] == true) ... : echo $result; } function selectivizr() { $options = &$this->options; $parent = &$this->parent; $result = $pjs = ""; if ($this->parent['jsMin'] == true) { $pjs = '-min'; } if ($options['js-selectivizr'] == true) : $result .= '' . "\n"; endif; // $options['js-selectivizr'] == true : echo $result; } function registerSidebars() { $options = &$this->options; if ( function_exists('register_sidebar') ) { if ($options['widget-header']) { if (!is_string($options['widget-header'])) { $options['widget-header'] = 'Header'; } register_sidebar(array( 'name' => $options['widget-header'], 'id' => 'bigredwidget_header', 'before_widget' => '
', 'before_title' => 'Your comment is awaiting moderation.
'; } comment_text(); ?> 'Reply to this comment', 'login_text' => 'Log in to reply.', 'depth' => $depth, 'before' => '\n";
foreach ( $contact_form_errors->get_error_messages() as $message )
$r .= "\t$message
\n";
$r .= "
says:
', '' ); ?>