<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Plain Text Template: Service Posted Admin Email
 *
 * Sent to the admin when a user posts a new service.
 *
 * @var string   $email_heading
 * @var string   $profile_name
 * @var string   $service_title
 * @var string   $service_id
 * @var string   $freelancer_label
 * @var string   $service_link
 * @var string   $site_title
 * @var bool     $sent_to_admin
 * @var bool     $plain_text
 * @var WC_Email $email
 */

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

/* Greeting */
echo esc_html__( 'Hello,', 'gigneo' );
echo "\n\n";

/* Introduction */
printf(
	// translators: %s: Profile name.
	esc_html__( 'A new service has been posted by %s. The details of the service are outlined below for your reference.', 'gigneo' ),
	esc_html( $profile_name )
);
echo "\n\n";

/* Section heading */
echo esc_html__( 'Service details', 'gigneo' );
echo "\n----------\n\n";

/* Service ID */
echo esc_html__( 'Service ID:', 'gigneo' ) . ' ' . esc_html( gigneo_format_id( $service_id, 'service', false ) );
echo "\n";

/* Service title */
echo esc_html__( 'Service title:', 'gigneo' ) . ' ' . esc_html( $service_title );
echo "\n";

/* Freelancer label dynamic */
echo esc_html( $freelancer_label ) . ': ' . esc_html( $profile_name );
echo "\n\n";

/* CTA link */
echo esc_html__( 'View service:', 'gigneo' ) . ' ' . esc_url( $service_link );
echo "\n\n";

/* Closing note */
echo esc_html__( 'You can review and manage this service directly from your WordPress admin dashboard.', 'gigneo' );
echo "\n\n";


// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
do_action( 'woocommerce_email_footer', $email );
