Skip to content

Commit

Permalink
Enables auto-updating copyright year in the footer (#110)
Browse files Browse the repository at this point in the history
* Enables auto-updating copyright year in the footer

* Changes the copyright structure by requirements
  • Loading branch information
petrkucerak authored Feb 2, 2023
1 parent 1c84b9d commit c06ee66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
?>
<footer class="footer">
<section class="footer__info">
<?php echo get_theme_mod('settings_footer_copyright', '');?>
<?php echo "&#169; 2019 - " . date("Y") . get_theme_mod('settings_footer_copyright', '');?>
<?php if(get_theme_mod('settings_footer_gdpr_text', '') != "" && get_theme_mod('settings_footer_gdpr_link', '') != "") :?>
<p class="delimiter">·</p>
<a href="<?php echo get_theme_mod('settings_footer_gdpr_link', '');?>"><?php echo get_theme_mod('settings_footer_gdpr_text', '');?></a>
Expand Down
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function stcblog_customize_register($wp_customize) {
// ===================================
// Adding the template setting.
$wp_customize->add_setting('settings_footer_copyright', [
'default' => '© ' . date("Y") . ' STC, Všechna práva vyhrazena'
'default' => ' STC, Všechna práva vyhrazena'
]);

//Adding a control to the Customizer.
Expand Down

0 comments on commit c06ee66

Please sign in to comment.