__( 'Primary Menu', '_sf' ), ) ); /** * Enable support for Post Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) ); } add_action( 'after_setup_theme', '_sf_setup' ); endif; // _sf_setup /** * Register widgetized area and update sidebar with default widgets */ if (! function_exists('_sf_widgets_init') ) : function _sf_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', '_sf' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '
Read More'; } } add_filter( 'excerpt_more', '_sf_new_excerpt_more' ); endif; //! _sf_new_excerpt_more exists if (! function_exists('_sf_custom_excerpt_length') ) : function _sf_custom_excerpt_length( $length ) { //get the value of the masonry excerpt length option, or set it to 10 if !isset $masonry_excerpt_length = get_theme_mod('masonry_excerpt_length', 10); //if masonry functions exists, since we're using it set using $masonry_excerpt_length, else leave at 55. if (function_exists('_sf_scripts_masonry')) { return $masonry_excerpt_length; } else { return 55; } } add_filter( 'excerpt_length', '_sf_custom_excerpt_length', 999 ); endif; // ! _sf_custom_excerpt_length exists /** * Masonry Brick Width As A Percentage * Use to set value with width selector. */ if (! function_exists('_sf_masonry_width') ) : function _sf_masonry_width() { //get the theme_mod that tells us how many wide we want to go. If it isn't set return 4 so we don't get an error. 4 is a nice looking number. $howmany = get_theme_mod('masonry_how_many', 4); //divide that by 100 to get the percent width $percent = 100/$howmany; //echo it with a % sign. echo $percent.'%;'; } endif; //_sf_masonry_width exists /** * Theme Credit Links * * @since _sf 0.1 */ if (! function_exists('_sf_credit_links') ) : function _sf_credit_links() { ?>