/*
	Theme Name: Rehub child 
	Theme URI: 
	Description: A Games New's
	Author: Gpltm
	Author URI: 
	Version: 9.4
	Template: rehub-theme
*/

/* =Theme customization starts here
-------------------------------------------------------------- */
LOGO FOOTER CODE
function gpltm_payment_icons_shortcode( $atts ) {
    $atts = shortcode_atts( array(
        'width'  => 'auto',
        'height' => 'auto',
        'align'  => 'none', // Options: none, center, left, right
        'alt'    => 'Accepted payment methods: PayPal, Visa, Mastercard, Maestro, American Express',
        'class'  => '',
    ), $atts, 'payment_icons' );

    $src = 'https://gpltm.com/wp-content/uploads/2026/09/payment-icon.png';

    // Alignment and size styling
    $img_style = 'max-width: 100%; height: ' . esc_attr( $atts['height'] ) . ';';
    if ( $atts['width'] !== 'auto' ) {
        $img_style .= ' width: ' . esc_attr( $atts['width'] ) . ';';
    }

    $wrapper_style = '';
    if ( $atts['align'] === 'center' ) {
        $wrapper_style = 'text-align: center;';
    } elseif ( $atts['align'] === 'right' ) {
        $wrapper_style = 'text-align: right;';
    } elseif ( $atts['align'] === 'left' ) {
        $wrapper_style = 'text-align: left;';
    }

    $output  = '<div class="payment-icons-wrapper" style="' . $wrapper_style . '">';
    $output .= '<img src="' . esc_url( $src ) . '" alt="' . esc_attr( $atts['alt'] ) . '" class="payment-icons-img ' . esc_attr( $atts['class'] ) . '" style="' . $img_style . '" loading="lazy" />';
    $output .= '</div>';

    return $output;
}
add_shortcode( 'payment_icons', 'gpltm_payment_icons_shortcode' );

