@@ -1,10 +1,10 @@ discard block |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | 3 | <div id="support-01" class="glsr-card postbox"> |
4 | 4 | <div class="glsr-card-header"> |
5 | 5 | <h3>Basic Troubleshooting Steps</h3> |
6 | 6 | <button type="button" class="handlediv" aria-expanded="true"> |
7 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
7 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
8 | 8 | <span class="toggle-indicator" aria-hidden="true"></span> |
9 | 9 | </button> |
10 | 10 | </div> |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | <div class="glsr-card-header"> |
33 | 33 | <h3>Common Problems and Solutions</h3> |
34 | 34 | <button type="button" class="handlediv" aria-expanded="true"> |
35 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
35 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
36 | 36 | <span class="toggle-indicator" aria-hidden="true"></span> |
37 | 37 | </button> |
38 | 38 | </div> |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | </li> |
45 | 45 | <li> |
46 | 46 | <p class="glsr-heading">I only want my reviews to show on the page they were published or assigned to but they are showing on every page.</p> |
47 | - <p>All reviews are unassigned by default. If you want to assign reviews to specific pages, you will need to use the “assign_to” and “assigned_to” shortcode options. Please see the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!shortcodes'); ?>">Shortcodes</a></code> documentation page for more information.</p> |
|
47 | + <p>All reviews are unassigned by default. If you want to assign reviews to specific pages, you will need to use the “assign_to” and “assigned_to” shortcode options. Please see the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!shortcodes' ); ?>">Shortcodes</a></code> documentation page for more information.</p> |
|
48 | 48 | </li> |
49 | 49 | <li> |
50 | 50 | <p class="glsr-heading">My submission form is not assigning reviews to the page even though I have set the option to do so.</p> |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | <div class="glsr-card-header"> |
61 | 61 | <h3>Contact Support</h3> |
62 | 62 | <button type="button" class="handlediv" aria-expanded="true"> |
63 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
63 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
64 | 64 | <span class="toggle-indicator" aria-hidden="true"></span> |
65 | 65 | </button> |
66 | 66 | </div> |
@@ -68,15 +68,15 @@ discard block |
||
68 | 68 | <p>The recommended way to get help is to post a support request in the <a href="https://wordpress.org/support/plugin/site-reviews/">WordPress Support Forum</a>, not only does this allow existing and future users of the plugin to benefit from the solution, it is also <strong>the fastest way to get help</strong>. However, you may also contact us directly after confirming the following:</p> |
69 | 69 | <p class="glsr-card-field"> |
70 | 70 | <input type="checkbox" id="step-1" class="glsr-support-step"> |
71 | - <label for="step-1">I have read the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!faq'); ?>">FAQ</a></code> documentation page.</label> |
|
71 | + <label for="step-1">I have read the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!faq' ); ?>">FAQ</a></code> documentation page.</label> |
|
72 | 72 | </p> |
73 | 73 | <p class="glsr-card-field"> |
74 | 74 | <input type="checkbox" id="step-2" class="glsr-support-step"> |
75 | - <label for="step-2">I have read the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!shortcodes'); ?>">Shortcodes</a></code> documentation page.</label> |
|
75 | + <label for="step-2">I have read the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!shortcodes' ); ?>">Shortcodes</a></code> documentation page.</label> |
|
76 | 76 | </p> |
77 | 77 | <p class="glsr-card-field"> |
78 | 78 | <input type="checkbox" id="step-3" class="glsr-support-step"> |
79 | - <label for="step-3">I have read the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!hooks'); ?>">Hooks</a></code> documentation page.</label> |
|
79 | + <label for="step-3">I have read the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!hooks' ); ?>">Hooks</a></code> documentation page.</label> |
|
80 | 80 | </p> |
81 | 81 | <p class="glsr-card-field"> |
82 | 82 | <input type="checkbox" id="step-4" class="glsr-support-step"> |
@@ -86,8 +86,8 @@ discard block |
||
86 | 86 | <p><strong>Please send an email to <a href="mailto:[email protected]?subject=Support%20request">[email protected]</a> and include the following details:</strong></p> |
87 | 87 | <ul> |
88 | 88 | <li>A detailed description of the problem you are having and steps to reproduce it.</li> |
89 | - <li>Download and attach the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=tools#!console'); ?>">Tools → Console</a></code> log file to the email.</li> |
|
90 | - <li>Download and attach the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=tools#!system-info'); ?>">Tools → System Info</a></code> report to the email.</li> |
|
89 | + <li>Download and attach the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=tools#!console' ); ?>">Tools → Console</a></code> log file to the email.</li> |
|
90 | + <li>Download and attach the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=tools#!system-info' ); ?>">Tools → System Info</a></code> report to the email.</li> |
|
91 | 91 | <li>Include screenshots if they will help explain the problem.</li> |
92 | 92 | </ul> |
93 | 93 | </div> |
@@ -1,11 +1,11 @@ |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | -<?php foreach ($addons as $title => $section) : ?> |
|
3 | +<?php foreach( $addons as $title => $section ) : ?> |
|
4 | 4 | <div class="glsr-card postbox"> |
5 | 5 | <div class="glsr-card-header"> |
6 | 6 | <h3><?= $title; ?></h3> |
7 | 7 | <button type="button" class="handlediv" aria-expanded="true"> |
8 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
8 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
9 | 9 | <span class="toggle-indicator" aria-hidden="true"></span> |
10 | 10 | </button> |
11 | 11 | </div> |
@@ -1,8 +1,8 @@ |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | 3 | <form method="post"> |
4 | 4 | <textarea class="large-text code glsr-code glsr-code-large" name="{{ id }}[system-info]" rows="20" onclick="this.select()" readonly>{{ system }}</textarea> |
5 | 5 | <input type="hidden" name="{{ id }}[_action]" value="download-system-info"> |
6 | - <?php wp_nonce_field('download-system-info'); ?> |
|
7 | - <?php submit_button(__('Download System Info', 'site-reviews'), 'primary', '', false); ?> |
|
6 | + <?php wp_nonce_field( 'download-system-info' ); ?> |
|
7 | + <?php submit_button( __( 'Download System Info', 'site-reviews' ), 'primary', '', false ); ?> |
|
8 | 8 | </form> |
@@ -1,25 +1,25 @@ discard block |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | -<?php if (glsr()->hasPermission('settings')) : ?> |
|
3 | +<?php if( glsr()->hasPermission( 'settings' ) ) : ?> |
|
4 | 4 | <div class="glsr-card card"> |
5 | 5 | <h3>Export Settings</h3> |
6 | 6 | <p>Export the Site Reviews settings for this site to a <code>*.json</code> file. This allows you to easily import the plugin settings into another site.</p> |
7 | - <p>To export your Site Reviews reviews and categories, please use the WordPress <a href="<?= admin_url('export.php'); ?>">Export</a> tool.</p> |
|
7 | + <p>To export your Site Reviews reviews and categories, please use the WordPress <a href="<?= admin_url( 'export.php' ); ?>">Export</a> tool.</p> |
|
8 | 8 | <form method="post"> |
9 | 9 | <input type="hidden" name="{{ id }}[_action]" value="export-settings"> |
10 | - <?php wp_nonce_field('export-settings'); ?> |
|
11 | - <?php submit_button(__('Export Settings', 'site-reviews'), 'secondary'); ?> |
|
10 | + <?php wp_nonce_field( 'export-settings' ); ?> |
|
11 | + <?php submit_button( __( 'Export Settings', 'site-reviews' ), 'secondary' ); ?> |
|
12 | 12 | </form> |
13 | 13 | </div> |
14 | 14 | <div class="glsr-card card"> |
15 | 15 | <h3>Import Settings</h3> |
16 | 16 | <p>Import the Site Reviews settings from a <code>*.json</code> file. This file can be obtained by exporting the settings on another site using the export tool below.</p> |
17 | - <p>To import your Site Reviews reviews and categories from another website, please use the WordPress <a href="<?= admin_url('import.php'); ?>">Import</a> tool.</p> |
|
17 | + <p>To import your Site Reviews reviews and categories from another website, please use the WordPress <a href="<?= admin_url( 'import.php' ); ?>">Import</a> tool.</p> |
|
18 | 18 | <form method="post" enctype="multipart/form-data"> |
19 | 19 | <input type="file" name="import-file"> |
20 | 20 | <input type="hidden" name="{{ id }}[_action]" value="import-settings"> |
21 | - <?php wp_nonce_field('import-settings'); ?> |
|
22 | - <?php submit_button(__('Import Settings', 'site-reviews'), 'secondary'); ?> |
|
21 | + <?php wp_nonce_field( 'import-settings' ); ?> |
|
22 | + <?php submit_button( __( 'Import Settings', 'site-reviews' ), 'secondary' ); ?> |
|
23 | 23 | </form> |
24 | 24 | </div> |
25 | 25 | <?php endif; ?> |
@@ -30,10 +30,10 @@ discard block |
||
30 | 30 | <p>If you suspect that the rating counts are incorrect (perhaps you have edited reviews directly in your database), you can recalculate them here.</p> |
31 | 31 | <form method="post"> |
32 | 32 | <input type="hidden" name="{{ id }}[_action]" value="count-reviews"> |
33 | - <?php wp_nonce_field('count-reviews'); ?> |
|
33 | + <?php wp_nonce_field( 'count-reviews' ); ?> |
|
34 | 34 | <p class="submit"> |
35 | 35 | <button type="submit" class="glsr-button button" name="count-reviews" id="count-reviews"> |
36 | - <span data-loading="<?= __('Recalculating Counts...', 'site-reviews'); ?>"><?= __('Recalculate Counts', 'site-reviews'); ?></span> |
|
36 | + <span data-loading="<?= __( 'Recalculating Counts...', 'site-reviews' ); ?>"><?= __( 'Recalculate Counts', 'site-reviews' ); ?></span> |
|
37 | 37 | </button> |
38 | 38 | </p> |
39 | 39 | </form> |
@@ -1,4 +1,4 @@ |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | 3 | <table class="form-table"> |
4 | 4 | <tbody> |
@@ -1,7 +1,7 @@ |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | -<?php foreach ($settings as $key => $rows) : ?> |
|
3 | +<?php foreach( $settings as $key => $rows ) : ?> |
|
4 | 4 | <div class="glsr-nav-view-section" id="<?= $key; ?>" style="margin-top:40px;"> |
5 | - <?php do_action('site-reviews/addon/settings/'.$key, $rows); ?> |
|
5 | + <?php do_action( 'site-reviews/addon/settings/'.$key, $rows ); ?> |
|
6 | 6 | </div> |
7 | 7 | <?php endforeach; ?> |
@@ -1,4 +1,4 @@ |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | 3 | <div class="glsr-summary-wrap"> |
4 | 4 | <div class="{{ class }}" id="{{ id }}"> |
@@ -1,4 +1,4 @@ |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | 3 | <div class="glsr-review"> |
4 | 4 | {{ title }} |
@@ -1,4 +1,4 @@ |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | 3 | <button type="submit" class="glsr-button button btn"> |
4 | 4 | <span class="glsr-button-loading"></span> |