%s', get_permalink(), the_title_attribute( 'echo=0' ), get_the_title() ); } /* default value for $content_width, required by ThemeCheck. */ if ( ! isset( $content_width ) ){ if(of_get_option('bliss_max_width')){ $content_width = (int) of_get_option('bliss_max_width'); }else{ $content_width = 1024; } } /* Editor styles, recommended by ThemeCheck. */ // http://codex.wordpress.org/Function_Reference/add_editor_style function bliss_add_editor_styles() { add_editor_style( 'css/admin.css' ); } add_action( 'init', 'bliss_add_editor_styles' );// the smurf naming convention? or noconflict? You decide. /* 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');/* does this really help real humans? */ 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'); /* color scheme selection via theme options */ function bliss_color_scheme($classes){ // get the user-selected color scheme. Defaults to grey. // other options: blue, green, or maroon. $color = esc_attr(of_get_option('bliss_colors', 'grey')); if($color){ // add the color as a class name to the $classes array $classes[] = $color; } return $classes; } add_filter('body_class', 'bliss_color_scheme'); ?>