faqs
3 months ago
arrow.php
2 months ago
articles.php
3 months ago
create-ticket.php
3 months ago
error.php
3 months ago
faqs.php
3 months ago
getting-started.php
3 months ago
latest-tutorials.php
3 months ago
need-help-paid.php
3 months ago
need-help.php
3 months ago
page.php
3 months ago
searchbox.php
3 months ago
videos.php
3 months ago
faqs.php
86 lines
| 1 | <?php |
| 2 | /** |
| 3 | * FAQs card. |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | */ |
| 8 | |
| 9 | $faqs = [ |
| 10 | [ |
| 11 | 'title' => __( 'What are best practices for getting started with Advanced Ads?', 'advanced-ads' ), |
| 12 | 'content' => 'faqs/getting-started.php', |
| 13 | ], |
| 14 | [ |
| 15 | 'title' => __( 'Are video ads better than image ads?', 'advanced-ads' ), |
| 16 | 'content' => 'faqs/video-ads.php', |
| 17 | ], |
| 18 | [ |
| 19 | 'title' => __( 'How do I activate my license on a test site?', 'advanced-ads' ), |
| 20 | 'content' => 'faqs/activate-license.php', |
| 21 | ], |
| 22 | [ |
| 23 | 'title' => __( 'I purchased a subscription but can’t see the features in the backend of my website. Why?', 'advanced-ads' ), |
| 24 | 'content' => 'faqs/subscription-not-working.php', |
| 25 | ], |
| 26 | [ |
| 27 | 'title' => __( 'Does Advanced Ads work on cached websites?', 'advanced-ads' ), |
| 28 | 'content' => 'faqs/cached-websites.php', |
| 29 | ], |
| 30 | [ |
| 31 | 'title' => __( 'How can I share the statistics of my ads with my clients?', 'advanced-ads' ), |
| 32 | 'content' => 'faqs/share-statistics.php', |
| 33 | ], |
| 34 | [ |
| 35 | 'title' => __( 'Can I manage ads across multiple WordPress installations from one website?', 'advanced-ads' ), |
| 36 | 'content' => 'faqs/manage-ads-across-multiple-installations.php', |
| 37 | ], |
| 38 | [ |
| 39 | 'title' => __( 'How can I prevent click fraud on my ads?', 'advanced-ads' ), |
| 40 | 'content' => 'faqs/prevent-click-fraud.php', |
| 41 | ], |
| 42 | ]; |
| 43 | ?> |
| 44 | <div class="advads-card grid sm:grid-cols-3 gap-5"> |
| 45 | <div> |
| 46 | <div class="header-icon"> |
| 47 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"> |
| 48 | <path d="M21 15C21 15.5304 20.7893 16.0391 20.4142 16.4142C20.0391 16.7893 19.5304 17 19 17H7L3 21V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H19C19.5304 3 20.0391 3.21071 20.4142 3.58579C20.7893 3.96086 21 4.46957 21 5V15Z" stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round"/> |
| 49 | </svg> |
| 50 | </div> |
| 51 | |
| 52 | <h3><?php esc_html_e( 'FAQ\'s', 'advanced-ads' ); ?></h3> |
| 53 | |
| 54 | <p> |
| 55 | <?php esc_html_e( 'Everything you need to know about the product.', 'advanced-ads' ); ?> |
| 56 | </p> |
| 57 | <?php if ( ! \Advanced_Ads_Admin_Licenses::get_instance()->any_license_valid() ) : ?> |
| 58 | <p> |
| 59 | <?php esc_html_e( 'Couldn’t find what you were looking for?', 'advanced-ads' ); ?> |
| 60 | <br /> |
| 61 | <?php esc_html_e( 'Get help from the community.', 'advanced-ads' ); ?> |
| 62 | </p> |
| 63 | <p> |
| 64 | <a class="advads-view-all-link" href="https://wordpress.org/support/plugin/advanced-ads/" target="_blank"> |
| 65 | <?php esc_html_e( 'Visit WordPress Forum', 'advanced-ads' ); ?> |
| 66 | <?php include 'arrow.php'; ?> |
| 67 | </a> |
| 68 | </p> |
| 69 | <?php endif; ?> |
| 70 | </div> |
| 71 | |
| 72 | <div class="advads-accordion col-span-2"> |
| 73 | <?php foreach ( $faqs as $index => $faq ) : ?> |
| 74 | <div class="advads-accordion-item"> |
| 75 | <input type="checkbox" name="accordion-1" id="rb<?php echo esc_attr( $index + 1 ); ?>"<?php checked( 0 === $index ); ?>> |
| 76 | <label for="rb<?php echo esc_attr( $index + 1 ); ?>" class="accordion__header"> |
| 77 | <?php echo esc_html( $faq['title'] ); ?> |
| 78 | </label> |
| 79 | <div class="accordion__content"> |
| 80 | <?php require_once $faq['content']; ?> |
| 81 | </div> |
| 82 | </div> |
| 83 | <?php endforeach; ?> |
| 84 | </div> |
| 85 | </div> |
| 86 |