'; bcn_display(); echo ''; } elseif ( function_exists( 'breadcrumb_trail' ) ) { breadcrumb_trail(); } elseif ( function_exists( 'yoast_breadcrumb' ) && true === $yoast_options['breadcrumbs-enable'] ) { yoast_breadcrumb( '' ); } elseif ( ! is_search() ) { responsive_breadcrumb_lists(); } } /** * Breadcrumb Lists * Allows visitors to quickly navigate back to a previous section or the root page. * * Adopted from Dimox * */ if ( !function_exists( 'responsive_breadcrumb_lists' ) ) { function responsive_breadcrumb_lists() { /* === OPTIONS === */ $text['home'] = __( 'Home', 'responsive' ); // text for the 'Home' link $text['category'] = __( 'Archive for %s', 'responsive' ); // text for a category page $text['search'] = __( 'Search results for: %s', 'responsive' ); // text for a search results page $text['tag'] = __( 'Posts tagged %s', 'responsive' ); // text for a tag page $text['author'] = __( 'View all posts by %s', 'responsive' ); // text for an author page $text['404'] = __( 'Error 404', 'responsive' ); // text for the 404 page $show['current'] = 1; // 1 - show current post/page title in breadcrumbs, 0 - don't show $show['home'] = 0; // 1 - show breadcrumbs on the homepage, 0 - don't show $delimiter = ' '; // delimiter between crumbs $before = ''; // tag before the current crumb $after = ''; // tag after the current crumb /* === END OF OPTIONS === */ $home_link = home_url( '/' ); $before_link = ''; $after_link = ''; $link_att = ' rel="v:url" property="v:title"'; $link = $before_link . '%2$s' . $after_link; $post = get_queried_object(); $parent_id = isset( $post->post_parent ) ? $post->post_parent : ''; $html_output = ''; if ( is_front_page() ) { if ( 1 == $show['home'] ) { $html_output .= ''; } } else { $html_output .= ''; } echo $html_output; } // end responsive_breadcrumb_lists } /** * Use shortcode_atts_gallery filter to add new defaults to the WordPress gallery shortcode. * Allows user input in the post gallery shortcode. * */ function responsive_gallery_atts( $out, $pairs, $atts ) { $full_width = is_page_template( 'full-width-page.php' ) || is_page_template( 'landing-page.php' ); // Check if the size attribute has been set, if so use it and skip the responsive sizes if ( array_key_exists( 'size', $atts ) ) { $size = $atts['size']; } else { if ( $full_width ) { switch ( $out['columns'] ) { case 1: $size = 'responsive-900'; //900 break; case 2: $size = 'responsive-450'; //450 break; case 3: $size = 'responsive-300'; //300 break; case 4: $size = 'responsive-200'; //225 break; case 5: $size = 'responsive-200'; //180 break; case 6: $size = 'responsive-150'; //150 break; case 7: $size = 'responsive-150'; //125 break; case 8: $size = 'responsive-150'; //112 break; case 9: $size = 'responsive-100'; //100 break; } } else { switch ( $out['columns'] ) { case 1: $size = 'responsive-600'; //600 break; case 2: $size = 'responsive-300'; //300 break; case 3: $size = 'responsive-200'; //200 break; case 4: $size = 'responsive-150'; //150 break; case 5: $size = 'responsive-150'; //120 break; case 6: $size = 'responsive-100'; //100 break; case 7: $size = 'responsive-100'; //85 break; case 8: $size = 'responsive-100'; //75 break; case 9: $size = 'responsive-100'; //66 break; } } } $atts = shortcode_atts( array( 'size' => $size, ), $atts ); $out['size'] = $atts['size']; return $out; } add_filter( 'shortcode_atts_gallery', 'responsive_gallery_atts', 10, 3 ); /* * Create image sizes for the galley */ function responsive_add_image_size() { add_image_size( 'responsive-100', 100, 9999 ); add_image_size( 'responsive-150', 150, 9999 ); add_image_size( 'responsive-200', 200, 9999 ); add_image_size( 'responsive-300', 300, 9999 ); add_image_size( 'responsive-450', 450, 9999 ); add_image_size( 'responsive-600', 600, 9999 ); add_image_size( 'responsive-900', 900, 9999 ); } add_action( 'after_setup_theme', 'responsive_add_image_size' ); /* * Get social icons. * * @since 1.9.4.9 */ function responsive_get_social_icons() { $responsive_options = responsive_get_options(); $sites = array ( 'twitter' => __( 'Twitter', 'responsive' ), 'facebook' => __( 'Facebook', 'responsive' ), 'linkedin' => __( 'LinkedIn', 'responsive' ), 'youtube' => __( 'YouTube', 'responsive' ), 'stumbleupon' => __( 'StumbleUpon', 'responsive' ), 'rss' => __( 'RSS Feed', 'responsive' ), 'googleplus' => __( 'Google+', 'responsive' ), 'instagram' => __( 'Instagram', 'responsive' ), 'pinterest' => __( 'Pinterest', 'responsive' ), 'yelp' => __( 'Yelp!', 'responsive' ), 'vimeo' => __( 'Vimeo', 'responsive' ), 'foursquare' => __( 'foursquare', 'responsive' ), ); $html = ''; $html = apply_filters( 'responsive_social_skin' , $html ); return $html; }