' . esc_html__( 'Botiga', 'botiga' ) . '', get_bloginfo( 'name' ), '©', gmdate('Y') ); // White Label if( defined( 'BOTIGA_AWL_ACTIVE' ) ) { $awl_data = athemes_wl_get_data(); $replace[0] = '' . esc_html( $awl_data[ 'awl_agency_name' ] ) . ''; } $credits = str_replace( $tags, $replace, $credits ); return '
' . $credits . '
'; } /** * Social profiles */ public function footer_social_profiles( $position = 'all' ) { $social_profiles_footer_position = get_theme_mod( 'social_profiles_footer_position', 'left' ); if( $social_profiles_footer_position !== $position && 'all' !== $position ) { return ''; } botiga_social_profile( 'social_profiles_footer' ); } /** * Payment icons */ public function footer_payment_icons( $position = 'all' ) { $footer_payment_image = get_theme_mod( 'footer_payment_image' ); $footer_payment_position = get_theme_mod( 'footer_payment_position', 'right' ); if( ! $footer_payment_image ) { return ''; } if( $footer_payment_position !== $position && 'all' !== $position ) { return ''; } // Get image $image = wp_get_attachment_image( attachment_url_to_postid( $footer_payment_image ), 'full' ); return '
' . $image . '
'; } /** * Navigation menu */ public function footer_navigation_menu( $position = 'all' ) { $footer_navigation_menu_position = get_theme_mod( 'footer_navigation_menu_position', 'left' ); if( $footer_navigation_menu_position !== $position && 'all' !== $position ) { return ''; } ?> '. $footer_html_content .''; } /** * Shortcode */ public function footer_shortcode( $position = 'all' ) { $footer_shortcode_content = get_theme_mod( 'footer_shortcode_content' ); $footer_shortcode_position = get_theme_mod( 'footer_shortcode_position', 'right' ); if( ! $footer_shortcode_content ) { return ''; } if( $footer_shortcode_position !== $position && 'all' !== $position ) { return ''; } return '
'. do_shortcode( $footer_shortcode_content ) .'
'; } /** * Back to top icon */ public function scroll_to_top() { $enable = get_theme_mod( 'enable_scrolltop', 1 ); if ( !$enable ) { return; } $type = get_theme_mod( 'scrolltop_type', 'icon' ); $text = get_theme_mod( 'scrolltop_text', esc_html__( 'Back to top', 'botiga' ) ); $icon = get_theme_mod( 'scrolltop_icon', 'icon1' ); $visibility = get_theme_mod( 'scrolltop_visibility', 'all' ); $position = get_theme_mod( 'scrolltop_position', 'right' ); echo '
'; if ( 'text' === $type ) { echo '' . esc_html( $text ) . ''; } echo '' . botiga_get_svg_icon( 'icon-btt-' . $icon, false ) . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo '
'; } } /** * Initialize class */ Botiga_Footer::get_instance(); endif;