Skip to content

Commit 8d61caa

Browse files
committed
Hooked theme info into the footer
1 parent 7a0546f commit 8d61caa

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

functions/template-general.php

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -422,29 +422,34 @@ function sitecare_get_credit_link() {
422422
return apply_filters( 'sitecare_credit_link', $link );
423423
}
424424

425+
add_action( 'tha_footer_top', 'sitecare_theme_info' );
425426
/**
426-
* outputs a formatted link to the theme landing page.
427+
* Outputs formatted theme information.
427428
*
428429
* @since 0.1.0
429430
* @access public
430-
* @return void
431+
* @return string
431432
*/
432-
function sitecare_theme_link() {
433-
echo sitecare_get_theme_link();
433+
function sitecare_theme_info() {
434+
echo sitecare_get_theme_info();
434435
}
435436

436437
/**
437-
* Returns a formatted link to the theme landing page.
438+
* Returns formatted theme information.
438439
*
439440
* @since 0.1.0
440441
* @access public
441442
* @return string
442443
*/
443-
function sitecare_get_theme_link() {
444-
$link = sprintf( '<a class="theme-link" href="%s"title="%s">%s</a>',
445-
html_entity_decode( 'http://www.wpsitecare.com/&#99;ompass/' ),
446-
__( 'The Most Advanced WordPress Starter Theme Ever Created', 'sitecare-library' ),
447-
html_entity_decode( '&#67;ompass' )
444+
function sitecare_get_theme_info() {
445+
$info = '<div class="credit">';
446+
$info .= sprintf(
447+
// Translators: 1 is current year, 2 is site name/link, 3 is the theme author name/link.
448+
__( 'Copyright &#169; %1$s %2$s. Free WordPress Theme by %3$s', 'alpha' ),
449+
date_i18n( 'Y' ),
450+
hybrid_get_site_link(),
451+
sitecare_get_credit_link()
448452
);
449-
return apply_filters( 'sitecare_theme_link', $link );
453+
$info .= '</div>';
454+
return apply_filters( 'sitecare_theme_info', $info );
450455
}

0 commit comments

Comments
 (0)