#container{width:%dpx;} @media screen and (max-width:%dpx){ #container{width:100%%;} } ', $width, $breakpoint); }else{ if(isset($width) && $width === 0){ echo ''; } } $header_background = get_header_image(); // feature support for custom-header image. if($header_background && $header_background != ''){ printf(' ', esc_url($header_background)); } } add_action('wp_head', 'bliss_user_customizations', 100);// a low priority so these styles will be called last. /* color scheme selection via theme options */ function bliss_color_scheme($classes){ // get the user-selected color scheme. Defaults to light grey. // other options: blue, green, or maroon. $color = esc_attr(of_get_option('bliss_colors', 'light')); if($color){ // add the color as a class name to the $classes array $classes[] = $color; } return $classes; } add_filter('body_class', 'bliss_color_scheme'); function bliss_font_in_footer(){ echo ' '; } add_action('wp_footer', 'bliss_font_in_footer', 100);// we'll execute that last, in hopes the font file will have loaded. # end theme styles # # theme functions # // per http://codex.wordpress.org/Theme_Development#Untrusted_Data // define a custom function for cleaning titles, when they are output within an html attribute. // BUT functions defined in the global scope must be prefixed with the unique theme name! // Thanks to nitkr for pointing this out. function bliss_clean_title_link(){ //http://codex.wordpress.org/Function_Reference/the_title_attribute printf( '%s', get_permalink(), the_title_attribute( 'echo=0' ), get_the_title() ); } // per theme review: // these calls to add_editor_style and add_theme_support // MUST be hooked to after_setup_theme function bliss_add_editor_styles() { /* Editor styles, recommended by ThemeCheck. */ // http://codex.wordpress.org/Function_Reference/add_editor_style add_editor_style( 'css/admin.css' ); /* theme support, as recommended by ThemeCheck: */ add_theme_support('post-thumbnails'); add_theme_support('custom-header'); add_theme_support('custom-background'); /* theme support, as REQUIRED by ThemeCheck */ add_theme_support('automatic-feed-links'); } add_action( 'after_setup_theme', 'bliss_add_editor_styles' ); function bliss_collapsing_nav_menu(){ $path = get_template_directory_uri() . '/js/collapsing-nav-menu.js'; wp_enqueue_script('collapsing_nav', $path, array(), '1', true); } add_action('wp_enqueue_scripts', 'bliss_collapsing_nav_menu'); // next, we include formatting.php // which is concerned with menus, sidebars, and the "Read More" link. require_once('includes/formatting.php'); // custom meta boxes. require_once('includes/metaboxes.php'); // Sliders to go with those meta boxes. require_once('includes/slideshows.php'); // pagination. require_once('includes/pagination.php'); /* breadcrumbs */ require_once('includes/breadcrumbs.php'); ?>