<?php
/**
 * New Seller Email ( plain text )
 *
 * An email sent to the admin when a new vendor is registered.
 *
 * @class       Dokan_Email_New_Seller
 * @version     2.6.8
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n";
echo esc_html( wp_strip_all_tags( $email_heading ) );
echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";

esc_html_e( 'Hello there,', 'dokan-lite' );
echo " \n";

esc_html_e( 'A new vendor has registered in your marketplace  ', 'dokan-lite' );
echo " \n";

esc_html_e( 'Vendor Details:', 'dokan-lite' );
echo " \n";

echo "\n\n----------------------------------------\n\n";

// translators: 1) seller name
echo sprintf( esc_html__( 'Vendor: %s', 'dokan-lite' ), esc_html( $data['seller_name'] ) );
echo " \n";

// translators: 1) store name
echo sprintf( esc_html__( 'Vendor Store: %s', 'dokan-lite' ), $data['store_name'] );
echo " \n";

// translators: 1) seller edit url
echo sprintf( esc_html__( 'To edit vendor access and details visit : %s', 'dokan-lite' ), esc_url( $data['seller_edit'] ) );

echo "\n\n----------------------------------------\n\n";

/**
 * Show user-defined additional content - this is set in each email's settings.
 */
if ( ! empty( $additional_content ) ) {
    echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) );
    echo "\n\n----------------------------------------\n\n";
}

echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );
