__( 'Sidebar', 'nimbus' ), 'id' => 'primary-sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); // The landing page footer register_sidebar( array( 'name' => __( 'Landing Page Footer', 'nimbus' ), 'id' => 'landing-page-footer', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', 'description' => 'Widgets placed here will appear above the footer on the landing page template and be split into 3 columns.' ) ); } } /** * Sidebar * Displays the sidebar * Hooked into nimbus_content_after() * @since 0.3 */ if ( ! function_exists( 'nimbus_sidebar' ) ) { function nimbus_sidebar() { if ( is_page() && ! is_page_template( 'page-templates/landing.php' ) ) { get_sidebar( 'page' ); } else if ( is_single() ) { get_sidebar( 'single' ); } else if ( is_woocommerce_activated() && ( is_woocommerce() || is_cart() || is_checkout() ) ) { get_sidebar( 'shop' ); } else if ( ! is_page_template( 'page-templates/landing.php' ) ) { get_sidebar(); } } } /** * Post Meta * Hooked into nimbus_entry_bottom() * @since 0.1 */ if ( ! function_exists( 'nimbus_post_meta' ) ) { function nimbus_post_meta() { if ( ! is_page() ) { ?> max_num_pages > 1 ) : ?> < id="comment-">
%s' ), get_comment_author_link() ) ?>
comment_approved == '0') { ?>
$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ) ?>

name; return $menu_title; } /** * Credit * Hooked into nimbus_footer * @since 0.3 */ function nimbus_credit() { ?>

WordPress. James Koster.

* Hooked into nimbus_header_after() and nimbus_footer_before() * @since 0.3 */ if ( ! function_exists( 'nimbus_hr' ) ) { function nimbus_hr() { echo '
'; } } /** * Creates a nicely formatted and more specific title element text * for output in head of document, based on current view. * * * @param string $title Default title text for current view. * @param string $sep Optional separator. * @return string Filtered title. * @since 0.3 */ function nimbus_wp_title( $title, $sep ) { global $paged, $page; if ( is_feed() ) return $title; // Add the site name. $title .= get_bloginfo( 'name' ); // Add the site description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title = "$title $sep $site_description"; // Add a page number if necessary. if ( $paged >= 2 || $page >= 2 ) $title = "$title $sep " . sprintf( __( 'Page %s', 'nimbus' ), max( $paged, $page ) ); return $title; } /** * WooCommerce check * Checks if WooCommerce is activated * @since 0.3 */ if ( ! function_exists( 'is_woocommerce_activated' ) ) { function is_woocommerce_activated() { if ( class_exists( 'woocommerce' ) ) { return true; } else { return false; } } }