<?php defined('ABSPATH') || exit; ?>

<div class="glsr-card postbox">
    <h3 class="glsr-card-heading">
        <button type="button" class="glsr-accordion-trigger" aria-expanded="false" aria-controls="faq-change-review-field-order">
            <span class="title">How do I change the order of the review fields?</span>
            <span class="icon"></span>
        </button>
    </h3>
    <div id="faq-change-review-field-order" class="inside">
        <p>Site Reviews uses a custom templating system which makes it easy to customize the HTML of the widgets and shortcodes to meet your needs.</p>
        <p>The <code>review.php</code> template determines how a single review is displayed.</p>
        <p>The first thing you will need to do (if you haven't already) is create a folder in your theme called <code>site-reviews</code>. Once you have done this, <strong>copy</strong> over the <code>review.php</code> file from the "templates" directory in the Site Reviews plugin to this new folder. If you have done this correctly, the path to the template file in your theme should look something like this:</p>
        <p><code>/wp-content/themes/your-theme/site-reviews/review.php</code></p>
        <p>Finally, open the template file you copied over into a text editer, it will look something like this:</p>
        <pre><code class="language-html"><?php echo trim(esc_html(glsr()->build('templates/review'))); ?></code></pre>
        <p>Now simply rearrange the review fields into the order you want (you can also remove the fields that you don't want) and then save the template.</p>
    </div>
</div>
