'ffffff', 'text' => '000000', 'link' => '80ae14', 'border' => 'cccccc', 'url' => '59a3c1', ); $content_width = 544; /** * Enqueue scripts and styles */ function fadtastic_scripts() { wp_enqueue_style( 'fadtastic', get_stylesheet_uri() ); wp_enqueue_style( 'fadtastic-print', get_template_directory_uri() . '/css/fadtasticdev_print.css', array( 'fadtastic' ), false, 'print' ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'fadtastic_scripts' ); function widget_fadtastic_links() { wp_list_bookmarks(array('title_before'=>'

', 'title_after'=>'

', 'show_images'=>true)); } function fadtastic_widget_init() { register_sidebar(array('before_title' => "

", 'after_title' => "

", 'name' => 'Sidebar 1', 'id' => 'main-sidebar')); register_sidebar(array('before_title' => "

", 'after_title' => "

", 'name' => 'Sidebar 2', 'id' => 'bottom-bar')); unregister_widget('WP_Widget_Links'); wp_register_sidebar_widget('links', __('Links', 'fadtastic'), 'widget_fadtastic_links'); } add_action('widgets_init', 'fadtastic_widget_init'); add_theme_support( 'automatic-feed-links' ); // Custom background add_custom_background(); function fadtastic_custom_background() { if ( '' != get_background_color() || '' != get_background_image() ) { ?> __( 'Primary Navigation', 'fadtastic' ) ) ); // Fallback for primary navigation function fadtastic_page_menu() { ?>
id="div-comment-">
comment_approved == '0') : ?>
'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
tag based on what is being viewed. * * @since Fadtastic 1.0 */ function fadtastic_wp_title( $title, $sep ) { global $page, $paged; if ( is_feed() ) return $title; // Add the blog name $title .= get_bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title .= " $sep $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) $title .= " $sep " . sprintf( __( 'Page %s', 'fadtastic' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'fadtastic_wp_title', 10, 2 );