@@ -481,7 +481,8 @@ function shapely_get_header_logo() {
481481
482482 <a href="<?php echo esc_url ( home_url ( '/ ' ) ); ?> "><?php
483483 if ( $ logo [0 ] != '' ) { ?>
484- <img src="<?php echo esc_url ($ logo [0 ]); ?> " class="logo" alt="<?php echo esc_html ( get_bloginfo ( 'name ' ) ); ?> "><?php
484+ <img src="<?php echo esc_url ( $ logo [0 ] ); ?> " class="logo"
485+ alt="<?php echo esc_html ( get_bloginfo ( 'name ' ) ); ?> "><?php
485486 } else { ?>
486487 <span class="site-title"><?php echo esc_html ( get_bloginfo ( 'name ' ) ); ?> </span><?php
487488 } ?>
@@ -533,29 +534,34 @@ function shapely_top_callout() {
533534 <div class="row">
534535 <?php
535536 $ breadcrumbs_enabled = false ;
537+ $ title_in_post = false ;
536538 if ( function_exists ( 'yoast_breadcrumb ' ) ) {
537539 $ options = get_option ( 'wpseo_internallinks ' );
538540 $ breadcrumbs_enabled = ( $ options ['breadcrumbs-enable ' ] === true );
541+ $ title_in_post = get_theme_mod ( 'hide_post_title ' , false );
539542 }
540543 ?>
541- <div class="<?php echo $ breadcrumbs_enabled ? 'col-md-6 col-sm-6 col-xs-12 ' : 'col-xs-12 ' ; ?> ">
542- <h3 class="page-title">
543- <?php
544- if ( is_home () ) {
545- _e ( ( get_theme_mod ( 'blog_name ' ) ) ? get_theme_mod ( 'blog_name ' ) : 'Blog ' , 'shapely ' );
546- } else if ( is_search () ) {
547- _e ( 'Search ' , 'shapely ' );
548- } else if ( is_archive () ) {
549- echo ( is_post_type_archive ( 'jetpack-portfolio ' ) ) ? __ ( 'Portfolio ' , 'shapely ' ) : get_the_archive_title ();
550- } else {
551- echo ( is_singular ( 'jetpack-portfolio ' ) ) ? __ ( 'Portfolio ' , 'shapely ' ) : get_the_title ();
552- } ?>
553- </h3>
554- </div>
544+ <?php if ( $ title_in_post ): ?>
545+ <div
546+ class="<?php echo $ breadcrumbs_enabled ? 'col-md-6 col-sm-6 col-xs-12 ' : 'col-xs-12 ' ; ?> ">
547+ <h3 class="page-title">
548+ <?php
549+ if ( is_home () ) {
550+ _e ( ( get_theme_mod ( 'blog_name ' ) ) ? get_theme_mod ( 'blog_name ' ) : 'Blog ' , 'shapely ' );
551+ } else if ( is_search () ) {
552+ _e ( 'Search ' , 'shapely ' );
553+ } else if ( is_archive () ) {
554+ echo ( is_post_type_archive ( 'jetpack-portfolio ' ) ) ? __ ( 'Portfolio ' , 'shapely ' ) : get_the_archive_title ();
555+ } else {
556+ echo ( is_singular ( 'jetpack-portfolio ' ) ) ? __ ( 'Portfolio ' , 'shapely ' ) : get_the_title ();
557+ } ?>
558+ </h3>
559+ </div>
560+ <?php endif ; ?>
555561 <?php if ( function_exists ( 'yoast_breadcrumb ' ) ) { ?>
556562 <?php
557563 if ( $ breadcrumbs_enabled ) { ?>
558- <div class="col-md-6 col-sm-6 col-xs-12 text-right">
564+ <div class="<?php echo $ title_in_post ? ' col-md-6 col-sm-6 ' : '' ; ?> col-xs-12 text-right">
559565 <?php yoast_breadcrumb ( '<p id="breadcrumbs"> ' , '</p> ' ); ?>
560566 </div>
561567 <?php } ?>
@@ -612,7 +618,7 @@ function shapely_get_attachment_image() {
612618 $ src = wp_get_attachment_image_src ( $ id , 'full ' , false );
613619
614620 if ( ! empty ( $ src [0 ] ) ) {
615- echo esc_url ($ src [0 ]);
621+ echo esc_url ( $ src [0 ] );
616622 }
617623
618624 die ();
0 commit comments