Make copyright holder configurable

This commit is contained in:
Jeremy Dormitzer 2018-07-27 15:35:08 -04:00
parent c95151bfe6
commit 3be0140350
2 changed files with 12 additions and 1 deletions

View File

@ -15,7 +15,7 @@
<footer id="colophon" class="site-footer">
<div class="site-info">
<span class="site-copyright">&#169; Jeremy Dormitzer <?php echo date('Y');?></span>
<span class="site-copyright">&#169; <?php echo get_theme_mod( 'copyright_holder' );?> <?php echo date('Y');?></span>
</div><!-- .site-info -->
</footer><!-- #colophon -->
</div><!-- #page -->

View File

@ -25,6 +25,17 @@ function jeremy_wordpress_theme_customize_register( $wp_customize ) {
'render_callback' => 'jeremy_wordpress_theme_customize_partial_blogdescription',
) );
}
$wp_customize->add_setting( 'copyright_holder', array(
'default' => '',
'sanitize_callback' => 'sanitize_text_field'
) );
$wp_customize->add_control( 'copyright_holder_control', array(
'label' => __( 'Copyright Holder', 'jeremy-wordpress-theme' ),
'section' => 'title_tagline',
'settings' => 'copyright_holder',
) );
}
add_action( 'customize_register', 'jeremy_wordpress_theme_customize_register' );