post_content, ''); if ($ismore) { $excerpt = '
' . strip_tags($text) . '… '. __( 'Read more »', 'big-pix' ) .'
'; return $excerpt; } else{ echo '' . get_the_excerpt() . '
'; } } add_filter('the_excerpt', 'bigpix_custom_excerpt');*/ function BIGPIX_ahoy() { // let's get language support going, if you need it load_theme_textdomain( 'big-pix', get_template_directory() . '/library/translation' ); // clean up gallery output in wp add_filter( 'use_default_gallery_style', '__return_false' ); // enqueue base scripts and styles add_action( 'wp_enqueue_scripts', 'BIGPIX_scripts_and_styles', 999 ); // ie conditional wrapper // launching this stuff after theme setup BIGPIX_theme_support(); // adding sidebars to WordPress (these are created in functions.php) add_action( 'widgets_init', 'BIGPIX_register_sidebars' ); // cleaning up random code around images add_filter( 'the_content', 'BIGPIX_filter_ptags_on_images' ); // cleaning up excerpt add_filter( 'excerpt_more', 'BIGPIX_excerpt_more' ); /************* OEMBED SIZE OPTIONS *************/ global $content_width; if ( ! isset( $content_width ) ) { $content_width = 640; } set_post_thumbnail_size( 600, 600 ); // Thumbnail sizes add_image_size( 'BIGPIX-thumb-600', 600, 150, true ); add_image_size( 'BIGPIX-thumb-300', 300, 100, true ); add_image_size( 'BIGPIX-slider-image', 1280, 500, true ); add_image_size( 'BIGPIX-thumb-image-300by300', 300, 300, true ); } /* end bigpix ahoy */ // let's get this party started add_action( 'after_setup_theme', 'BIGPIX_ahoy' ); /************* THUMBNAIL SIZE OPTIONS *************/ add_filter( 'image_size_names_choose', 'BIGPIX_custom_image_sizes' ); function BIGPIX_custom_image_sizes( $sizes ) { return array_merge( $sizes, array( 'BIGPIX-thumb-600' => '600px by 150px', 'BIGPIX-thumb-300' => '300px by 100px', 'BIGPIX-slider-image' => '1280px by 500px' ) ); } /************* ACTIVE SIDEBARS ********************/ // Sidebars & Widgetizes Areas function BIGPIX_register_sidebars() { register_sidebar(array( 'id' => 'sidebar3', 'name' => __( 'Homepage Menu Widget Area', 'big-pix' ), 'description' => __( 'The Menu Widget Area.', 'big-pix' ), 'before_widget' => '', 'before_title' => '
$depth, 'max_depth' => $args['max_depth']))) ?>
'.$read_more .''); return $short_desc_author; } function BIGPIX_catch_that_image() { global $post; $pattern = '|