' . __( 'Read more.', 'vertigo' ) . '';
}
add_filter( 'excerpt_more', 'vertigo_auto_excerpt_more' );
// Show post-meta for use in loop
function vertigo_entry_meta() {
?>
', '
' ); ?>
__( 'Footer Area One', 'vertigo' ),
'id' => 'sidebar-1',
'description' => __( 'An optional widget area for your site footer', 'vertigo' ),
'before_widget' => '',
'before_title' => '
',
'after_title' => '
',
) );
register_sidebar( array(
'name' => __( 'Footer Area Two', 'vertigo' ),
'id' => 'sidebar-2',
'description' => __( 'An optional widget area for your site footer', 'vertigo' ),
'before_widget' => '',
'before_title' => '
',
'after_title' => '
',
) );
}
add_action( 'widgets_init', 'vertigo_widgets_init' );
/**
* Count the number of footer sidebars to enable dynamic classes for the footer
*/
function vertigo_footer_sidebar_class() {
$count = 0;
if ( is_active_sidebar( 'sidebar-1' ) )
$count++;
if ( is_active_sidebar( 'sidebar-2' ) )
$count++;
$class = '';
switch ( $count ) {
case '1':
$class = 'one';
break;
case '2':
$class = 'two';
break;
}
if ( $class )
echo 'class="' . $class . '"';
}
/**
* Check number of pages available to display navigation
*/
function vertigo_pagination() {
global $wp_query, $paged;
$max_page = $wp_query->max_num_pages;
if ( 1 == $max_page )
return; // don't show when only one page
if ( empty( $paged ) )
$paged = 1;
echo '
';
}
/**
* Filters wp_title to print a neat tag based on what is being viewed.
*
* @since Vertigo 1.1
*/
function vertigo_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', 'vertigo' ), max( $paged, $page ) );
return $title;
}
add_filter( 'wp_title', 'vertigo_wp_title', 10, 2 );
/**
* Implement the Custom Header feature
*/
require( get_template_directory() . '/inc/custom-header.php' );
/**
* This theme was built with PHP, Semantic HTML, CSS, love, and a Toolbox.
*/