'#'), $atts)); return '' . do_shortcode($content) . ''; } add_shortcode('button_black', 'button_black_shortcode'); function button_blue_shortcode( $atts, $content = null ) { extract(shortcode_atts(array('link' => '#'), $atts)); return '' . do_shortcode($content) . ''; } add_shortcode('button_blue', 'button_blue_shortcode'); function button_pink_shortcode( $atts, $content = null ) { extract(shortcode_atts(array('link' => '#'), $atts)); return '' . do_shortcode($content) . ''; } add_shortcode('button_pink', 'button_pink_shortcode'); function button_green_shortcode( $atts, $content = null ) { extract(shortcode_atts(array('link' => '#'), $atts)); return '' . do_shortcode($content) . ''; } add_shortcode('button_green', 'button_green_shortcode'); function button_orange_shortcode( $atts, $content = null ) { extract(shortcode_atts(array('link' => '#'), $atts)); return '' . do_shortcode($content) . ''; } add_shortcode('button_orange', 'button_orange_shortcode'); function button_purple_shortcode( $atts, $content = null ) { extract(shortcode_atts(array('link' => '#'), $atts)); return '' . do_shortcode($content) . ''; } add_shortcode('button_purple', 'button_purple_shortcode'); /* Shortcodes - one_half ********************************************/ function one_half_shortcode( $atts, $content = null ) { return '
' . $content . '
'; } function one_half_last_shortcode( $atts, $content = null ) { return '
' . $content . '
'; } add_shortcode('one_half', 'one_half_shortcode'); add_shortcode('one_half_last', 'one_half_last_shortcode'); /* Shortcodes - one_third ********************************************/ function one_third_shortcode( $atts, $content = null ) { return '
' . $content . '
'; } function one_third_last_shortcode( $atts, $content = null ) { return '
' . $content . '
'; } add_shortcode('one_third', 'one_third_shortcode'); add_shortcode('one_third_last', 'one_third_last_shortcode'); /* Shortcodes - one_fourth ********************************************/ function one_fourth_shortcode( $atts, $content = null ) { return '
' . $content . '
'; } function one_fourth_last_shortcode( $atts, $content = null ) { return '
' . $content . '
'; } add_shortcode('one_fourth', 'one_fourth_shortcode'); add_shortcode('one_fourth_last', 'one_fourth_last_shortcode'); /* Shortcodes - two_third ********************************************/ function two_third_shortcode( $atts, $content = null ) { return '
' . $content . '
'; } function two_third_last_shortcode( $atts, $content = null ) { return '
' . $content . '
'; } add_shortcode('two_third', 'two_third_shortcode'); add_shortcode('two_third_last', 'two_third_last_shortcode'); /* Shortcodes - three_fourth ********************************************/ function three_fourth_shortcode( $atts, $content = null ) { return '
' . $content . '
'; } function three_fourth_last_shortcode( $atts, $content = null ) { return '
' . $content . '
'; } add_shortcode('three_fourth', 'three_fourth_shortcode'); add_shortcode('three_fourth_last', 'three_fourth_last_shortcode'); /* Shortcodes - dropcap ********************************************/ function dropcap_shortcode( $atts, $content = null ) { return '' . $content . ''; } add_shortcode('dropcap', 'dropcap_shortcode'); /* Shortcodes - box styles ********************************************/ function box_yellow_shortcode( $atts, $content = null ) { return '
' . $content . '
'; } function box_green_shortcode( $atts, $content = null ) { return '
' . $content . '
'; } function box_blue_shortcode( $atts, $content = null ) { return '
' . $content . '
'; } add_shortcode('box_yellow', 'box_yellow_shortcode'); add_shortcode('box_green', 'box_green_shortcode'); add_shortcode('box_blue', 'box_blue_shortcode'); /* Shortcodes - highlight ********************************************/ function highlight_shortcode( $atts, $content = null ) { return '' . $content . ''; } add_shortcode('highlight', 'highlight_shortcode'); /* Shortcodes - divider ********************************************/ function divider_shortcode( $atts, $content = null ) { return '
' . $content . '
'; } add_shortcode('divider', 'divider_shortcode'); function divider_no_border_shortcode( $atts, $content = null ) { return '
' . $content . '
'; } add_shortcode('divider_no_border', 'divider_no_border_shortcode'); /* Shortcodes - multi column ********************************************/ function multi_col_shortcode( $atts, $content = null ) { return '
' . $content . '
'; } add_shortcode('multi_col', 'multi_col_shortcode'); /* Shortcodes - Pullquote ********************************************/ function pullquote_left( $atts, $content = null ) { return '
' . $content . '
'; } add_shortcode('pullquote_left', 'pullquote_left'); function pullquote_right( $atts, $content = null ) { return '
' . $content . '
'; } add_shortcode('pullquote_right', 'pullquote_right'); /* Shortcodes - checklist ********************************************/ function checklist($atts, $content = null) { return '
'.$content.'
'; } add_shortcode('checklist', 'checklist'); /* Enable support for automatic-feed-links ********************************************/ add_theme_support('automatic-feed-links'); /* Enable support for post-thumbnails ********************************************/ // If we want to ensure that we only call this function if // the user is working with WP 2.9 or higher, // let's instead make sure that the function exists first add_theme_support( 'post-thumbnails', array( 'post' ) ); // Add it for posts set_post_thumbnail_size( 200, 200, true ); // Normal post thumbnails, hard crop mode add_image_size( 'post-image', 600, 200, true ); // Post thumbnails, hard crop mode add_image_size( 'slider-image', 920, 300, true ); // Post thumbnails for slider, hard crop mode /* Breadcrumb ********************************************/ function the_breadcrumb() { if (!is_home()) { echo ''; echo ('Home'); echo " » "; if (is_single()) { the_title(''); if (is_single()) { echo ""; } } elseif (is_page()) { echo the_title(); } } } /* WordPress 3.0 Menu Editor ********************************************/ // add menu support and fallback menu if menu doesn't exist add_action('init', 'wpj_register_menu'); function wpj_register_menu() { if (function_exists('register_nav_menu')) { register_nav_menu( 'wpj-main-menu', __( 'Main Menu', 'Brightpage' ) ); } } function wpj_default_menu() { echo ''; } /* Excerpt ********************************************/ /* Make the "read more" link to the post */ function new_excerpt_more($more) { global $post; return '
' . 'Read more...' . ''; } add_filter('excerpt_more', 'new_excerpt_more'); /* Set the excerpt length */ function new_excerpt_length($length) { return 60; } add_filter('excerpt_length', 'new_excerpt_length'); /* Register sidebars and widgetized areas ********************************************/ register_sidebar( array( 'name' => __( 'Welcome Message', 'brightpage' ), 'id' => 'welcome-message', 'description' => __( 'An optional widget area for your welcome message area.', 'brightpage' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '', 'after_title' => '', ) ); register_sidebar( array( 'name' => 'Sidebar Top', 'id' => 'sidebar-top', 'description' => __( 'An optional widget area for your sidebar top.', 'brightpage' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => 'Sidebar Left', 'id' => 'sidebar-left', 'description' => __( 'An optional widget area for your sidebar left.', 'brightpage' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => 'Sidebar Right', 'id' => 'sidebar-right', 'description' => __( 'An optional widget area for your sidebar right.', 'brightpage' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Bottom Menu Left', 'brightpage' ), 'id' => 'bottom-menu-left', 'description' => __( 'An optional widget area for your site footer', 'brightpage' ), 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Bottom Menu Center', 'brightpage' ), 'id' => 'bottom-menu-center', 'description' => __( 'An optional widget area for your site footer', 'brightpage' ), 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Bottom Menu Right', 'brightpage' ), 'id' => 'bottom-menu-right', 'description' => __( 'An optional widget area for your site footer', 'brightpage' ), 'before_widget' => '", 'before_title' => '

', 'after_title' => '

', ) ); ?>