diff --git a/src/footer.php b/src/footer.php index 907d6dd..a431101 100644 --- a/src/footer.php +++ b/src/footer.php @@ -44,13 +44,15 @@ $footerImage = get_theme_mod( 'tainacan_footer_color', 'dark' ) == 'light' ? esc_url( get_template_directory_uri() ) . '/assets/images/logo.svg' : esc_url( get_template_directory_uri() ) . '/assets/images/logo-footer.svg'; } ?> - + + +
WordPress', 'Tainacan' ); } ?> + printf( __( 'Proudly powered by %1$s and %2$s.', 'tainacan-interface' ), 'WordPress', 'Tainacan' ); } ?>
diff --git a/src/functions/customizer.php b/src/functions/customizer.php index eced9ce..346c65b 100644 --- a/src/functions/customizer.php +++ b/src/functions/customizer.php @@ -77,7 +77,6 @@ function tainacan_customize_register( $wp_customize ) { 'capability' => 'manage_options', 'sanitize_callback' => 'tainacan_sanitize_upload', ) ); - $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'tainacan_footer_logo', array( @@ -88,6 +87,18 @@ function tainacan_customize_register( $wp_customize ) { ) ); + $wp_customize->add_setting( 'tainacan_footer_logo_link', array( + 'type' => 'theme_mod', + 'capability' => 'manage_options', + 'default' => 'https://tainacan.org', + 'sanitize_callback' => 'sanitize_text_field', + ) ); + $wp_customize->add_control( 'tainacan_footer_logo_link', array( + 'type' => 'theme_mod', + 'label' => __( 'Logo link', 'tainacan-interface' ), + 'section' => 'tainacan_footer_info', + ) ); + /** * Checkbox to display or no the Proudly Powered by WordPress and Tainacan. */