Skip to content

Instantly share code, notes, and snippets.

@andreiglingeanu
Created November 24, 2019 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreiglingeanu/a4247633404b91499ddde767c7bb0439 to your computer and use it in GitHub Desktop.
Save andreiglingeanu/a4247633404b91499ddde767c7bb0439 to your computer and use it in GitHub Desktop.
<?php
$class = 'ct-footer-copyright';
$theme = wp_get_theme();
$text = str_replace(
'{current_year}',
date("Y"),
blocksy_default_akg(
'copyright_text',
$atts,
__(
'Copyright &copy; {current_year} {site_title} - Powered by {theme_author}',
'blocksy'
)
)
);
$text = str_replace(
'{site_title}',
get_bloginfo('name'),
$text
);
$text = str_replace(
'{theme_author}',
$theme->get('Author'),
$text
);
?>
<div
class="ct-footer-copyright"
data-font="custom"
<?php echo blocksy_attr_to_html($attr) ?>>
<?php echo $text ?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment