@@ -1,10 +1,10 @@ discard block |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | 3 | <div id="functions-01" class="glsr-card postbox"> |
4 | 4 | <div class="glsr-card-header"> |
5 | 5 | <h3>Read me first!</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> |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | <div class="glsr-card-header"> |
39 | 39 | <h3>Helper function to create a review</h3> |
40 | 40 | <button type="button" class="handlediv" aria-expanded="true"> |
41 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
41 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
42 | 42 | <span class="toggle-indicator" aria-hidden="true"></span> |
43 | 43 | </button> |
44 | 44 | </div> |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | ]); |
86 | 86 | </code></pre> |
87 | 87 | <p><strong>Helpful Tip:</strong></p> |
88 | - <p>You can use the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!functions'); ?>" data-expand="#functions-03">glsr_debug</a></code> helper function to view the review object that is returned.</p> |
|
88 | + <p>You can use the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!functions' ); ?>" data-expand="#functions-03">glsr_debug</a></code> helper function to view the review object that is returned.</p> |
|
89 | 89 | <pre><code class="php">glsr_debug($review);</code></pre> |
90 | 90 | </div> |
91 | 91 | </div> |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | <div class="glsr-card-header"> |
95 | 95 | <h3>Helper function to debug variables</h3> |
96 | 96 | <button type="button" class="handlediv" aria-expanded="true"> |
97 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
97 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
98 | 98 | <span class="toggle-indicator" aria-hidden="true"></span> |
99 | 99 | </button> |
100 | 100 | </div> |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | <div class="glsr-card-header"> |
120 | 120 | <h3>Helper function to get a plugin setting</h3> |
121 | 121 | <button type="button" class="handlediv" aria-expanded="true"> |
122 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
122 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
123 | 123 | <span class="toggle-indicator" aria-hidden="true"></span> |
124 | 124 | </button> |
125 | 125 | </div> |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | |
140 | 140 | $requireApproval = apply_filters('glsr_get_option', 'no', 'general.require.approval', 'no');</code></pre> |
141 | 141 | <p><strong>Helpful Tip:</strong></p> |
142 | - <p>You can use the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!functions'); ?>" data-expand="#functions-03">glsr_debug</a></code> helper function to view the whole plugin settings array, this will help you figure out which dot-notation path to use.</p> |
|
142 | + <p>You can use the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!functions' ); ?>" data-expand="#functions-03">glsr_debug</a></code> helper function to view the whole plugin settings array, this will help you figure out which dot-notation path to use.</p> |
|
143 | 143 | <pre><code class="php">glsr_debug(glsr_get_options());</code></pre> |
144 | 144 | </div> |
145 | 145 | </div> |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | <div class="glsr-card-header"> |
149 | 149 | <h3>Helper function to get all plugin settings</h3> |
150 | 150 | <button type="button" class="handlediv" aria-expanded="true"> |
151 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
151 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
152 | 152 | <span class="toggle-indicator" aria-hidden="true"></span> |
153 | 153 | </button> |
154 | 154 | </div> |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | |
166 | 166 | $pluginSettings = apply_filters('glsr_get_options', []);</code></pre> |
167 | 167 | <p><strong>Helpful Tip:</strong></p> |
168 | - <p>You can use the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!functions'); ?>" data-expand="#functions-03">glsr_debug</a></code> helper function to print the settings array to the screen:</p> |
|
168 | + <p>You can use the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!functions' ); ?>" data-expand="#functions-03">glsr_debug</a></code> helper function to print the settings array to the screen:</p> |
|
169 | 169 | <pre><code class="php">glsr_debug($pluginSettings);</code></pre> |
170 | 170 | </div> |
171 | 171 | </div> |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | <div class="glsr-card-header"> |
175 | 175 | <h3>Helper function to get a single review</h3> |
176 | 176 | <button type="button" class="handlediv" aria-expanded="true"> |
177 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
177 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
178 | 178 | <span class="toggle-indicator" aria-hidden="true"></span> |
179 | 179 | </button> |
180 | 180 | </div> |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | <pre><code class="php">echo $reviewHtml; // This is identical to: $review->render();</code></pre> |
216 | 216 | </li> |
217 | 217 | <li> |
218 | - <p>You can also use the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!functions'); ?>" data-expand="#functions-03">glsr_debug</a></code> helper function to print both arrayable objects to the screen:</p> |
|
218 | + <p>You can also use the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!functions' ); ?>" data-expand="#functions-03">glsr_debug</a></code> helper function to print both arrayable objects to the screen:</p> |
|
219 | 219 | <pre><code class="php">glsr_debug($review, $reviewHtml);</code></pre> |
220 | 220 | </li> |
221 | 221 | </ol> |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | <div class="glsr-card-header"> |
227 | 227 | <h3>Helper function to get multiple reviews</h3> |
228 | 228 | <button type="button" class="handlediv" aria-expanded="true"> |
229 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
229 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
230 | 230 | <span class="toggle-indicator" aria-hidden="true"></span> |
231 | 231 | </button> |
232 | 232 | </div> |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | <pre><code class="php">echo $reviews; // This is identical to: $reviews->render();</code></pre> |
271 | 271 | </li> |
272 | 272 | <li> |
273 | - <p>Loop through all reviews and handle each review as needed. Each <code>$review</code> is identical to what the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!functions'); ?>" data-expand="#functions-06">glsr_get_review</a></code> helper function returns, so make sure to read the "Helpful Tips" from that section above for more information.</p> |
|
273 | + <p>Loop through all reviews and handle each review as needed. Each <code>$review</code> is identical to what the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!functions' ); ?>" data-expand="#functions-06">glsr_get_review</a></code> helper function returns, so make sure to read the "Helpful Tips" from that section above for more information.</p> |
|
274 | 274 | <pre><code class="php">foreach ($reviews as $review) { |
275 | 275 | echo $review; |
276 | 276 | };</code></pre> |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | echo $reviewsHtml->navigation;</code></pre> |
289 | 289 | </li> |
290 | 290 | <li> |
291 | - <p>You can also use the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!functions'); ?>" data-expand="#functions-03">glsr_debug</a></code> helper function to print both arrayable objects to the screen:</p> |
|
291 | + <p>You can also use the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!functions' ); ?>" data-expand="#functions-03">glsr_debug</a></code> helper function to print both arrayable objects to the screen:</p> |
|
292 | 292 | <pre><code class="php">glsr_debug($reviews, $reviewsHtml);</code></pre> |
293 | 293 | </li> |
294 | 294 | |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | <div class="glsr-card-header"> |
301 | 301 | <h3>Helper function to generate HTML stars for a rating</h3> |
302 | 302 | <button type="button" class="handlediv" aria-expanded="true"> |
303 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
303 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
304 | 304 | <span class="toggle-indicator" aria-hidden="true"></span> |
305 | 305 | </button> |
306 | 306 | </div> |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | <div class="glsr-card-header"> |
325 | 325 | <h3>Helper function to log variables to the plugin console</h3> |
326 | 326 | <button type="button" class="handlediv" aria-expanded="true"> |
327 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
327 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
328 | 328 | <span class="toggle-indicator" aria-hidden="true"></span> |
329 | 329 | </button> |
330 | 330 | </div> |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | // OR: |
345 | 345 | |
346 | 346 | apply_filters('glsr_log', null, $var1);</code></pre> |
347 | - <p>Logged entries will be found in the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=tools#!console'); ?>">Tools → Console</a></code>.</p> |
|
347 | + <p>Logged entries will be found in the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=tools#!console' ); ?>">Tools → Console</a></code>.</p> |
|
348 | 348 | </div> |
349 | 349 | </div> |
350 | 350 | |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | <div class="glsr-card-header"> |
353 | 353 | <h3>Helper function to recalculate the rating counts</h3> |
354 | 354 | <button type="button" class="handlediv" aria-expanded="true"> |
355 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
355 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
356 | 356 | <span class="toggle-indicator" aria-hidden="true"></span> |
357 | 357 | </button> |
358 | 358 | </div> |
@@ -368,6 +368,6 @@ discard block |
||
368 | 368 | // OR: |
369 | 369 | |
370 | 370 | apply_filters('glsr_calculate_ratings', null);</code></pre> |
371 | - <p>You can verify that it runs by checking the log entries in the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=tools#!console'); ?>">Tools → Console</a></code>.</p> |
|
371 | + <p>You can verify that it runs by checking the log entries in the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=tools#!console' ); ?>">Tools → Console</a></code>.</p> |
|
372 | 372 | </div> |
373 | 373 | </div> |
@@ -1,16 +1,16 @@ |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | 3 | <div class="wrap"> |
4 | - <h1 class="page-title"><?= esc_html(get_admin_page_title()); ?></h1> |
|
5 | - <p><?= __('Click an active tab to expand/collapse all sections.', 'site-reviews'); ?></p> |
|
4 | + <h1 class="page-title"><?= esc_html( get_admin_page_title() ); ?></h1> |
|
5 | + <p><?= __( 'Click an active tab to expand/collapse all sections.', 'site-reviews' ); ?></p> |
|
6 | 6 | <h2 class="glsr-nav-tab-wrapper nav-tab-wrapper"> |
7 | - <?php foreach ($tabs as $id => $title) : ?> |
|
7 | + <?php foreach( $tabs as $id => $title ) : ?> |
|
8 | 8 | <a class="glsr-nav-tab nav-tab" href="#<?= $id; ?>"><?= $title; ?></a> |
9 | 9 | <?php endforeach; ?> |
10 | 10 | </h2> |
11 | - <?php foreach ($tabs as $id => $title) : ?> |
|
11 | + <?php foreach( $tabs as $id => $title ) : ?> |
|
12 | 12 | <div class="glsr-nav-view ui-tabs-hide" id="<?= $id; ?>"> |
13 | - <?php glsr()->render('pages/documentation/'.$id, $data); ?> |
|
13 | + <?php glsr()->render( 'pages/documentation/'.$id, $data ); ?> |
|
14 | 14 | </div> |
15 | 15 | <?php endforeach; ?> |
16 | 16 | <input type="hidden" name="_active_tab"> |
@@ -1,10 +1,10 @@ discard block |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | 3 | <div id="shortcodes-01" class="glsr-card postbox"> |
4 | 4 | <div class="glsr-card-header"> |
5 | 5 | <h3>[site_reviews]</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> |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | <div class="glsr-card-header"> |
79 | 79 | <h3>[site_reviews_form]</h3> |
80 | 80 | <button type="button" class="handlediv" aria-expanded="true"> |
81 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
81 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
82 | 82 | <span class="toggle-indicator" aria-hidden="true"></span> |
83 | 83 | </button> |
84 | 84 | </div> |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | <div class="glsr-card-header"> |
127 | 127 | <h3>[site_reviews_summary]</h3> |
128 | 128 | <button type="button" class="handlediv" aria-expanded="true"> |
129 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
129 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
130 | 130 | <span class="toggle-indicator" aria-hidden="true"></span> |
131 | 131 | </button> |
132 | 132 | </div> |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | <pre><code>[site_reviews_summary hide="bars,if_empty,rating,stars,summary"]</code></pre> |
157 | 157 | |
158 | 158 | <p class="glsr-heading">labels</p> |
159 | - <p>The "labels" attribute allows you to enter custom labels for the percentage bar levels (from high to low), each level should be separated with a comma. However, rather than using this attribute to change the labels it's recommended to instead create a custom translation for them in the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=settings#!translations'); ?>">Settings → Translations</a></code> page.</p> |
|
159 | + <p>The "labels" attribute allows you to enter custom labels for the percentage bar levels (from high to low), each level should be separated with a comma. However, rather than using this attribute to change the labels it's recommended to instead create a custom translation for them in the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=settings#!translations' ); ?>">Settings → Translations</a></code> page.</p> |
|
160 | 160 | <p>The default labels value is: <code>"Excellent,Very good,Average,Poor,Terrible"</code></p> |
161 | 161 | <pre><code>[site_reviews_summary labels="5 star,4 star,3 star,2 star,1 star"]</code></pre> |
162 | 162 | |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | <pre><code>[site_reviews_summary schema="true"]</code></pre> |
174 | 174 | |
175 | 175 | <p class="glsr-heading">text</p> |
176 | - <p>The "text" attribute allows you to change the summary text. Available template tags to use are, "{rating}" which represents the calculated average rating, "{max}" which represents the maximum star rating available, and "{num}" which represents the total number of reviews. However, rather than using this attribute to change the summary text it's recommended to instead create a custom translation for it in the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=settings#!translations'); ?>">Settings → Translations</a></code> page. That way, you will be able to customize both the singular (1 review) and plural (2 reviews) summary texts.</p> |
|
176 | + <p>The "text" attribute allows you to change the summary text. Available template tags to use are, "{rating}" which represents the calculated average rating, "{max}" which represents the maximum star rating available, and "{num}" which represents the total number of reviews. However, rather than using this attribute to change the summary text it's recommended to instead create a custom translation for it in the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=settings#!translations' ); ?>">Settings → Translations</a></code> page. That way, you will be able to customize both the singular (1 review) and plural (2 reviews) summary texts.</p> |
|
177 | 177 | <p>The default text value is: <code>"{rating} out of {max} stars (based on {num} reviews)"</code></p> |
178 | 178 | <pre><code>[site_reviews_summary text="{num} customer reviews"]</code></pre> |
179 | 179 |
@@ -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,16 +1,16 @@ |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | 3 | <div class="wrap"> |
4 | - <h1 class="page-title"><?= esc_html(get_admin_page_title()); ?></h1> |
|
4 | + <h1 class="page-title"><?= esc_html( get_admin_page_title() ); ?></h1> |
|
5 | 5 | <?= $notices; ?> |
6 | 6 | <h2 class="glsr-nav-tab-wrapper nav-tab-wrapper"> |
7 | - <?php foreach ($tabs as $id => $title) : ?> |
|
7 | + <?php foreach( $tabs as $id => $title ) : ?> |
|
8 | 8 | <a class="glsr-nav-tab nav-tab" href="#<?= $id; ?>"><?= $title; ?></a> |
9 | 9 | <?php endforeach; ?> |
10 | 10 | </h2> |
11 | - <?php foreach ($tabs as $id => $title) : ?> |
|
11 | + <?php foreach( $tabs as $id => $title ) : ?> |
|
12 | 12 | <div class="glsr-nav-view ui-tabs-hide" id="<?= $id; ?>"> |
13 | - <?php $template->render('pages/tools/'.$id, $data); ?> |
|
13 | + <?php $template->render( 'pages/tools/'.$id, $data ); ?> |
|
14 | 14 | </div> |
15 | 15 | <?php endforeach; ?> |
16 | 16 | <input type="hidden" name="_active_tab"> |
@@ -1,22 +1,22 @@ |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | 3 | <textarea id="log-file" class="large-text code glsr-code glsr-code-large" rows="20" readonly>{{ console }}</textarea> |
4 | 4 | <form method="post" class="float-left"> |
5 | 5 | <input type="hidden" name="{{ id }}[_action]" value="download-console"> |
6 | - <?php wp_nonce_field('download-console'); ?> |
|
7 | - <?php submit_button(__('Download Console', 'site-reviews'), 'primary', '', false); ?> |
|
6 | + <?php wp_nonce_field( 'download-console' ); ?> |
|
7 | + <?php submit_button( __( 'Download Console', 'site-reviews' ), 'primary', '', false ); ?> |
|
8 | 8 | </form> |
9 | 9 | <form method="post" class="float-left"> |
10 | 10 | <input type="hidden" name="{{ id }}[_action]" value="fetch-console"> |
11 | - <?php wp_nonce_field('fetch-console'); ?> |
|
11 | + <?php wp_nonce_field( 'fetch-console' ); ?> |
|
12 | 12 | <button type="submit" class="glsr-button button" id="fetch-console"> |
13 | - <span data-loading="<?= __('Reloading...', 'site-reviews'); ?>"><?= __('Reload', 'site-reviews'); ?></span> |
|
13 | + <span data-loading="<?= __( 'Reloading...', 'site-reviews' ); ?>"><?= __( 'Reload', 'site-reviews' ); ?></span> |
|
14 | 14 | </button> |
15 | 15 | </form> |
16 | 16 | <form method="post"> |
17 | 17 | <input type="hidden" name="{{ id }}[_action]" value="clear-console"> |
18 | - <?php wp_nonce_field('clear-console'); ?> |
|
18 | + <?php wp_nonce_field( 'clear-console' ); ?> |
|
19 | 19 | <button type="submit" class="glsr-button button" id="clear-console"> |
20 | - <span data-loading="<?= __('Clearing...', 'site-reviews'); ?>"><?= __('Clear', 'site-reviews'); ?></span> |
|
20 | + <span data-loading="<?= __( 'Clearing...', 'site-reviews' ); ?>"><?= __( 'Clear', 'site-reviews' ); ?></span> |
|
21 | 21 | </button> |
22 | 22 | </form> |
@@ -1,37 +1,37 @@ discard block |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | 3 | <form method="post" class="glsr-status"> |
4 | - <?php $selected = key($services); ?> |
|
4 | + <?php $selected = key( $services ); ?> |
|
5 | 5 | <table class="wp-list-table widefat fixed striped"> |
6 | 6 | <thead> |
7 | 7 | <tr> |
8 | 8 | <td class="check-column glsr-radio-column"><span class="dashicons-before dashicons-update"></span></td> |
9 | - <th scope="col" class="column-primary"><?= __('Service', 'site-reviews'); ?></th> |
|
10 | - <th scope="col" class="column-total_fetched"><?= __('Reviews', 'site-reviews'); ?></th> |
|
11 | - <th scope="col" class="column-last_sync"><?= __('Last Sync', 'site-reviews'); ?></th> |
|
9 | + <th scope="col" class="column-primary"><?= __( 'Service', 'site-reviews' ); ?></th> |
|
10 | + <th scope="col" class="column-total_fetched"><?= __( 'Reviews', 'site-reviews' ); ?></th> |
|
11 | + <th scope="col" class="column-last_sync"><?= __( 'Last Sync', 'site-reviews' ); ?></th> |
|
12 | 12 | </tr> |
13 | 13 | </thead> |
14 | 14 | <tbody> |
15 | - <?php foreach ($services as $slug => $details) : ?> |
|
15 | + <?php foreach( $services as $slug => $details ) : ?> |
|
16 | 16 | <tr class="service-<?= $slug; ?>"> |
17 | 17 | <th scope="row" class="check-column"> |
18 | - <input type="radio" name="{{ id }}[service]" value="<?= $slug; ?>" <?php checked($slug, $selected); ?>> |
|
18 | + <input type="radio" name="{{ id }}[service]" value="<?= $slug; ?>" <?php checked( $slug, $selected ); ?>> |
|
19 | 19 | </th> |
20 | 20 | <td class="column-primary has-row-actions"> |
21 | 21 | <strong><?= $details['name']; ?></strong> |
22 | 22 | <div class="row-actions"> |
23 | - <span><a href="{{ base_url }}&page=settings#!addons"><?= __('Settings', 'site-reviews'); ?></a> | </span> |
|
24 | - <span><a href="{{ base_url }}&page=settings#!licenses"><?= __('License', 'site-reviews'); ?></a> | </span> |
|
25 | - <span><a href="{{ base_url }}&page=documentation#!addons"><?= __('Documentation', 'site-reviews'); ?></a></span> |
|
23 | + <span><a href="{{ base_url }}&page=settings#!addons"><?= __( 'Settings', 'site-reviews' ); ?></a> | </span> |
|
24 | + <span><a href="{{ base_url }}&page=settings#!licenses"><?= __( 'License', 'site-reviews' ); ?></a> | </span> |
|
25 | + <span><a href="{{ base_url }}&page=documentation#!addons"><?= __( 'Documentation', 'site-reviews' ); ?></a></span> |
|
26 | 26 | </div> |
27 | 27 | <button type="button" class="toggle-row"> |
28 | - <span class="screen-reader-text"><?= __('Show more details', 'site-reviews'); ?></span> |
|
28 | + <span class="screen-reader-text"><?= __( 'Show more details', 'site-reviews' ); ?></span> |
|
29 | 29 | </button> |
30 | 30 | </td> |
31 | - <td class="column-total_fetched" data-colname="<?= __('Reviews', 'site-reviews'); ?>"> |
|
31 | + <td class="column-total_fetched" data-colname="<?= __( 'Reviews', 'site-reviews' ); ?>"> |
|
32 | 32 | <a href="<?= $details['reviews_url']; ?>"><?= $details['reviews_count']; ?></a> |
33 | 33 | </td> |
34 | - <td class="column-last_sync" data-colname="<?= __('Last Sync', 'site-reviews'); ?>"> |
|
34 | + <td class="column-last_sync" data-colname="<?= __( 'Last Sync', 'site-reviews' ); ?>"> |
|
35 | 35 | <?= $details['last_sync']; ?> |
36 | 36 | </td> |
37 | 37 | </tr> |
@@ -40,12 +40,12 @@ discard block |
||
40 | 40 | <tfoot> |
41 | 41 | <tr> |
42 | 42 | <td colspan="4" class="no-items" style="display:table-cell!important;"> |
43 | - <div class="glsr-progress" data-active-text="<?= __('Please wait...', 'site-reviews'); ?>"> |
|
43 | + <div class="glsr-progress" data-active-text="<?= __( 'Please wait...', 'site-reviews' ); ?>"> |
|
44 | 44 | <div class="glsr-progress-bar" style="width: 0%;"> |
45 | - <span class="glsr-progress-status"><?= __('Inactive', 'site-reviews'); ?></span> |
|
45 | + <span class="glsr-progress-status"><?= __( 'Inactive', 'site-reviews' ); ?></span> |
|
46 | 46 | </div> |
47 | 47 | <div class="glsr-progress-background"> |
48 | - <span class="glsr-progress-status"><?= __('Inactive', 'site-reviews'); ?></span> |
|
48 | + <span class="glsr-progress-status"><?= __( 'Inactive', 'site-reviews' ); ?></span> |
|
49 | 49 | </div> |
50 | 50 | </div> |
51 | 51 | </td> |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | </table> |
55 | 55 | <div class="tablenav bottom"> |
56 | 56 | <button type="submit" class="glsr-button button" id="sync-reviews"> |
57 | - <span data-loading="<?= __('Syncing...', 'site-reviews'); ?>"><?= __('Sync Reviews', 'site-reviews'); ?></span> |
|
57 | + <span data-loading="<?= __( 'Syncing...', 'site-reviews' ); ?>"><?= __( 'Sync Reviews', 'site-reviews' ); ?></span> |
|
58 | 58 | </button> |
59 | 59 | </div> |
60 | 60 | </form> |
@@ -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> |