astra_get_small_footer_custom_text( string $option = '' )
Function to get Small Footer Custom Text
Description
Parameters
- $option
-
(string) (Optional) Custom text option name.
Default value: ''
Return
(mixed) Markup of custom text option.
Source
File: inc/markup-extras.php
function astra_get_small_footer_custom_text( $option = '' ) {
$output = $option;
if ( '' != $option ) {
$output = astra_get_option( $option );
$output = str_replace( '[current_year]', date_i18n( 'Y' ), $output );
$output = str_replace( '[site_title]', '<span class="ast-footer-site-title">' . get_bloginfo( 'name' ) . '</span>', $output );
$theme_author = apply_filters(
'astra_theme_author',
array(
'theme_name' => __( 'Astra WordPress Theme', 'astra' ),
'theme_author_url' => 'https://wpastra.com/',
)
);
$output = str_replace( '[theme_author]', '<a href="' . esc_url( $theme_author['theme_author_url'] ) . '">' . $theme_author['theme_name'] . '</a>', $output );
}
return do_shortcode( $output );
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.0.14 | Introduced. |