__( 'Primary Menu', 'abstract_art' ),
) );
/**
* Add support for the Aside and Gallery Post Formats
*/
add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image') );
}
endif; // abstract_art_setup
/**
* Tell WordPress to run abstract_art_setup() when the 'after_setup_theme' hook is run.
*/
add_action( 'after_setup_theme', 'abstract_art_setup' );
/**
* Set a default theme color array for WP.com.
*/
$themecolors = array(
'bg' => 'ffffff',
'border' => 'eeeeee',
'text' => '444444',
);
/**
* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
*/
function abstract_art_page_menu_args( $args ) {
$args['show_home'] = true;
return $args;
}
add_filter( 'wp_page_menu_args', 'abstract_art_page_menu_args' );
/**
* Register widgetized area and update sidebar with default widgets
*/
function abstract_art_widgets_init() {
// Area 1, located at the top of the sidebar.
register_sidebar(array(
'name' => __('Primary Widget Area', 'abstract_art'),
'id' => 'primary-widget-area',
'description' => __('The primary widget area', 'abstract_art'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '
',
'after_title' => '
',
));
// Area 2, located below the Primary Widget Area in the sidebar. Empty by default.
register_sidebar(array(
'name' => __('Secondary Widget Area', 'abstract_art'),
'id' => 'secondary-widget-area',
'description' => __('The secondary widget area', 'abstract_art'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '
',
'after_title' => '
',
));
// Area 3, located in the footer. Empty by default.
register_sidebar(array(
'name' => __('First Footer Widget Area', 'abstract_art'),
'id' => 'first-footer-widget-area',
'description' => __('The first footer widget area', 'abstract_art'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '
',
'after_title' => '
',
));
// Area 4, located in the footer. Empty by default.
register_sidebar(array(
'name' => __('Second Footer Widget Area', 'abstract_art'),
'id' => 'second-footer-widget-area',
'description' => __('The second footer widget area', 'abstract_art'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '
',
'after_title' => '
',
));
// Area 5, located in the footer. Empty by default.
register_sidebar(array(
'name' => __('Third Footer Widget Area', 'abstract_art'),
'id' => 'third-footer-widget-area',
'description' => __('The third footer widget area', 'abstract_art'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '
',
'after_title' => '
',
));
}
add_action( 'init', 'abstract_art_widgets_init' );
if ( ! function_exists( 'abstract_art_content_nav' ) ):
/**
* Display navigation to next/previous pages when applicable
*
* @since abstract_art 1.2
*/
function abstract_art_content_nav( $nav_id ) {
global $wp_query;
?>
comment_type ) :
case 'pingback' :
case 'trackback' :
?>