Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 5440f32

Browse files
author
yoarts
committed
Merge pull request #6 from ashfame/filter_on_footer_credits
added a filter on showing credits in footer
2 parents eb6da12 + 9c71736 commit 5440f32

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

footer.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
<div class="site-info">
2-
<?php do_action( 'flat_credits' ); ?>
3-
<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'flat' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'flat' ); ?>"><?php printf( __( 'Proudly powered by %s', 'flat' ), 'WordPress' ); ?></a>.
4-
<?php printf( __( 'Theme: %1$s by %2$s.', 'flat' ), 'Flat', '<a href="'.esc_url( 'http://www.yoarts.com/' ).'" title="'.esc_attr('Webmaster Tutorials & Resources').'">YoArts</a>' ); ?>
5-
</div><!-- .site-info -->
1+
<?php if ( apply_filters( 'show_flat_credits', true ) ) { ?>
2+
<div class="site-info">
3+
<?php do_action( 'flat_credits' ); ?>
4+
<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'flat' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'flat' ); ?>"><?php printf( __( 'Proudly powered by %s', 'flat' ), 'WordPress' ); ?></a>.
5+
<?php printf( __( 'Theme: %1$s by %2$s.', 'flat' ), 'Flat', '<a href="'.esc_url( 'http://www.yoarts.com/' ).'" title="'.esc_attr('Webmaster Tutorials & Resources').'">YoArts</a>' ); ?>
6+
</div><!-- .site-info -->
7+
<?php } ?>
68
</div>
79
</div>
810
</div>

0 commit comments

Comments
 (0)