<?php
/**
 * @package: EGPS - Easy Sell for Google Photo
 */

if(!defined('ABSPATH')){
    exit; // Exit if accessed directly
}

$faqtext = array(
    "How does the EGPS WordPress plugin work?" => "The EGPS WordPress plugin simplifies the process of showcasing and selling your photos stored on your 
    Google Photos account. 
    <br>After installation and a one-time setup, the plugin operates automatically. 
    It periodically scans your Google Photos account for newly added albums and photos, and seamlessly 
    integrates them into your website's gallery. This automated process ensures that your gallery stays up-to-date without 
    requiring manual intervention, allowing you to focus on your photography while the plugin handles the rest.",

    "IMPORTANT" => "<strong><b style='color: red'>DO NOT DELETE PHOTOS OR ALBUMS</b>  on Google Photos.
    Instead, set visibility in the EGPS admin panel </strong><br>

    Once you upload and arrange your photos into albums, please do not make any changes to their arrangement. 
    <br>This is important because the Google Photos API does not support photo deletion, 
    and <b>photos that have been purchased must remain available for download in their original location.</b> 
    <br>Thank you for your understanding.", 

    "Is there a trial period available for the EGPS plugin?" => "No, a trial period is not available at the moment. However, the gallery part of the plugin is free to use, 
    allowing you to showcase your photos and albums on your website at no cost. 
    The photo selling feature is optional and requires a subscription.",

    "Can I get help after I sign up/purchase?" => "<b>Absolutely!</b> We are here to assist you every step of the way. 
    Whether you have questions about setting up your plugin, customizing your gallery, or managing your subscription, we're just an email or message away. 
    Don't hesitate to reach out to us for prompt and personalized assistance.",

    "Is there a limit to the number of photos I can showcase and sell with the EGPS plugin?" => "No, there is no limit to the number of photos you can display or sell using the EGPS plugin. 
    You have the freedom to upload and organize as many albums and photos as you desire, 
    allowing you to showcase your entire portfolio to potential customers.",

    "Do I need technical expertise to set up and use the EGPS plugin?" => "Not at all! The EGPS plugin is designed with ease of use in mind, making it accessible to users of all skill levels. 
    With intuitive controls and step-by-step instructions, you can quickly set up and configure your gallery without any prior technical knowledge.",

    "What are the benefits of an Annual plan over a Month-by-month plan?" => "Opting for an annual plan provides several advantages, including cost savings and convenience. 
    With an annual plan, you typically enjoy a discounted rate compared to the month-by-month option.
    Additionally, an annual plan offers peace of mind, as you won't need to worry about monthly renewals, 
    allowing you to focus more on your photography business.",

    "What payment methods are accepted for purchasing a subscription?" => "Currently, we accept payments exclusively through PayPal and Stripe. 
    For your security and privacy, our servers do not process or store any payment data. 
    When you make a purchase, you'll be securely redirected to either PayPal or Stripe to complete your transaction. 
    This ensures that your payment information is handled in accordance with the highest standards of security and compliance.",

    "How can I cancel my subscription?" => "You can cancel your subscription at any time by accessing your account settings within feldvebel.hu's admin area. 
    Simply navigate to the subscription section and follow the prompts to cancel. 
    In addition, subscriptions can also be canceled directly through the payment service used for the purchase—either PayPal or Stripe, 
    depending on your chosen method. 
    <br>Please note that cancellation will take effect at the end of your current billing cycle, and no refunds will 
    be provided for unused portions of your subscription.",

    "Can I get a refund if I cancel my subscription?" => "We can refund purchases within the first 14 days, provided you haven't genereated a license key for your website. 
    After 14 days or once a license key is generated, it is no longer eligible for a refund. "
);

?>

<section id="faq" class="section-padding">
  <div class="container">	
    <div class="text-center">
        <h3>FAQ / Help</h3>
      </div>	

    <div class="accordion col-lg-12 col-sm-12 col-xs-12" id="accordion">


    <?php 
    
    $i = 1;
    foreach($faqtext as $key => $val){
        echo '
        <div class="accordion-item">
            <h2 class="accordion-header" id="heading_'.esc_html($i).'">
                <button 
                    class="accordion-button collapsed" 
                    type="button" 
                    data-bs-toggle="collapse" 
                    data-bs-target="#collapse_'.esc_html($i).'" 
                    aria-expanded="false" 
                    aria-controls="collapse_'.esc_html($i).'">
                    '.esc_html($key).'
                </button>
            </h2>
            <div id="collapse_'.esc_html($i).'" class="accordion-collapse collapse" aria-labelledby="heading_'.esc_html($i).'" data-bs-parent="#faq">
                <div class="accordion-body">
                    '.wp_kses_post($val).'
                </div>
            </div>
        </div>';

        $i++;
    }
    
    ?>


    </div>
  </div>
</section>