Skip to content

Commit c06ee66

Browse files
authored
Enables auto-updating copyright year in the footer (#110)
* Enables auto-updating copyright year in the footer * Changes the copyright structure by requirements
1 parent 1c84b9d commit c06ee66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

footer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
?>
88
<footer class="footer">
99
<section class="footer__info">
10-
<?php echo get_theme_mod('settings_footer_copyright', '');?>
10+
<?php echo "&#169; 2019 - " . date("Y") . get_theme_mod('settings_footer_copyright', '');?>
1111
<?php if(get_theme_mod('settings_footer_gdpr_text', '') != "" && get_theme_mod('settings_footer_gdpr_link', '') != "") :?>
1212
<p class="delimiter">·</p>
1313
<a href="<?php echo get_theme_mod('settings_footer_gdpr_link', '');?>"><?php echo get_theme_mod('settings_footer_gdpr_text', '');?></a>

functions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function stcblog_customize_register($wp_customize) {
190190
// ===================================
191191
// Adding the template setting.
192192
$wp_customize->add_setting('settings_footer_copyright', [
193-
'default' => '© ' . date("Y") . ' STC, Všechna práva vyhrazena'
193+
'default' => ' STC, Všechna práva vyhrazena'
194194
]);
195195

196196
//Adding a control to the Customizer.

0 commit comments

Comments
 (0)