@@ -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,15 +1,15 @@ discard block |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | 3 | <div id="faq-01" class="glsr-card postbox"> |
4 | 4 | <div class="glsr-card-header"> |
5 | 5 | <h3>How do I add additional values to the schema?</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> |
11 | 11 | <div class="inside"> |
12 | - <p>To add additional values to the generated schema, use the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!hooks'); ?>" data-expand="#hooks-07">site-reviews/schema/[SCHEMA_TYPE]</a></code> hook in your theme's functions.php file.</p> |
|
12 | + <p>To add additional values to the generated schema, use the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!hooks' ); ?>" data-expand="#hooks-07">site-reviews/schema/[SCHEMA_TYPE]</a></code> hook in your theme's functions.php file.</p> |
|
13 | 13 | <p>Make sure to use Google's <a href="https://search.google.com/structured-data/testing-tool">Structured Data Testing Tool</a> to test the schema after any custom modifications have been made.</p> |
14 | 14 | <pre><code class="php">/** |
15 | 15 | * Modifies the schema created by Site Reviews. |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | <div class="glsr-card-header"> |
35 | 35 | <h3>How do I change the font?</h3> |
36 | 36 | <button type="button" class="handlediv" aria-expanded="true"> |
37 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
37 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
38 | 38 | <span class="toggle-indicator" aria-hidden="true"></span> |
39 | 39 | </button> |
40 | 40 | </div> |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | <div class="glsr-card-header"> |
51 | 51 | <h3>How do I change the order of the review fields?</h3> |
52 | 52 | <button type="button" class="handlediv" aria-expanded="true"> |
53 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
53 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
54 | 54 | <span class="toggle-indicator" aria-hidden="true"></span> |
55 | 55 | </button> |
56 | 56 | </div> |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | <div class="glsr-card-header"> |
79 | 79 | <h3>How do I change the order of the reviews summary fields?</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> |
@@ -104,12 +104,12 @@ discard block |
||
104 | 104 | <div class="glsr-card-header"> |
105 | 105 | <h3>How do I change the order of the submission form fields?</h3> |
106 | 106 | <button type="button" class="handlediv" aria-expanded="true"> |
107 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
107 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
108 | 108 | <span class="toggle-indicator" aria-hidden="true"></span> |
109 | 109 | </button> |
110 | 110 | </div> |
111 | 111 | <div class="inside"> |
112 | - <p>To customise the order of the fields in the review submission form, use the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!hooks'); ?>" data-expand="#hooks-01">site-reviews/submission-form/order</a></code> filter hook in your theme's <code>functions.php</code> file.</p> |
|
112 | + <p>To customise the order of the fields in the review submission form, use the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!hooks' ); ?>" data-expand="#hooks-01">site-reviews/submission-form/order</a></code> filter hook in your theme's <code>functions.php</code> file.</p> |
|
113 | 113 | <pre><code class="php">/** |
114 | 114 | * Customises the order of the fields used in the Site Reviews submission form. |
115 | 115 | * Paste this in your active theme's functions.php file. |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | 'terms', |
129 | 129 | ]; |
130 | 130 | });</code></pre> |
131 | - <p>If you have used the example above and the submission-form fields are not working correctly, check the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=tools#!console'); ?>">Tools → Console</a></code> for errors.</p> |
|
131 | + <p>If you have used the example above and the submission-form fields are not working correctly, check the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=tools#!console' ); ?>">Tools → Console</a></code> for errors.</p> |
|
132 | 132 | </div> |
133 | 133 | </div> |
134 | 134 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | <div class="glsr-card-header"> |
137 | 137 | <h3>How do I change the pagination query string?</h3> |
138 | 138 | <button type="button" class="handlediv" aria-expanded="true"> |
139 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
139 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
140 | 140 | <span class="toggle-indicator" aria-hidden="true"></span> |
141 | 141 | </button> |
142 | 142 | </div> |
@@ -158,12 +158,12 @@ discard block |
||
158 | 158 | <div class="glsr-card-header"> |
159 | 159 | <h3>How do I change the text of...?</h3> |
160 | 160 | <button type="button" class="handlediv" aria-expanded="true"> |
161 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
161 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
162 | 162 | <span class="toggle-indicator" aria-hidden="true"></span> |
163 | 163 | </button> |
164 | 164 | </div> |
165 | 165 | <div class="inside"> |
166 | - <p>You can change any text in the plugin on the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=settings#!translations'); ?>">Settings → Translations</a></code> page.</p> |
|
166 | + <p>You can change any text in the plugin on the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=settings#!translations' ); ?>">Settings → Translations</a></code> page.</p> |
|
167 | 167 | </div> |
168 | 168 | </div> |
169 | 169 | |
@@ -171,12 +171,12 @@ discard block |
||
171 | 171 | <div class="glsr-card-header"> |
172 | 172 | <h3>How do I create a review programmatically?</h3> |
173 | 173 | <button type="button" class="handlediv" aria-expanded="true"> |
174 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
174 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
175 | 175 | <span class="toggle-indicator" aria-hidden="true"></span> |
176 | 176 | </button> |
177 | 177 | </div> |
178 | 178 | <div class="inside"> |
179 | - <p>Site Reviews provides a <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!functions'); ?>" data-expand="#functions-02">glsr_create_review()</a></code> helper function to easily create a review.</p> |
|
179 | + <p>Site Reviews provides a <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!functions' ); ?>" data-expand="#functions-02">glsr_create_review()</a></code> helper function to easily create a review.</p> |
|
180 | 180 | <p>Here is an example:</p> |
181 | 181 | <pre><code class="php">if (function_exists('glsr_create_review')) { |
182 | 182 | $review = glsr_create_review([ |
@@ -196,12 +196,12 @@ discard block |
||
196 | 196 | <div class="glsr-card-header"> |
197 | 197 | <h3>How do I customise the stars?</h3> |
198 | 198 | <button type="button" class="handlediv" aria-expanded="true"> |
199 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
199 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
200 | 200 | <span class="toggle-indicator" aria-hidden="true"></span> |
201 | 201 | </button> |
202 | 202 | </div> |
203 | 203 | <div class="inside"> |
204 | - <p>To customise the star images used by the plugin, use the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!hooks'); ?>" data-expand="#hooks-02">site-reviews/config/inline-styles</a></code> filter hook in your theme's <code>functions.php</code> file.</p> |
|
204 | + <p>To customise the star images used by the plugin, use the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!hooks' ); ?>" data-expand="#hooks-02">site-reviews/config/inline-styles</a></code> filter hook in your theme's <code>functions.php</code> file.</p> |
|
205 | 205 | <p>Here is an example:</p> |
206 | 206 | <pre><code class="php">/** |
207 | 207 | * Customises the stars used by Site Reviews. |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | <div class="glsr-card-header"> |
225 | 225 | <h3>How do I limit the submitted review length?</h3> |
226 | 226 | <button type="button" class="handlediv" aria-expanded="true"> |
227 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
227 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
228 | 228 | <span class="toggle-indicator" aria-hidden="true"></span> |
229 | 229 | </button> |
230 | 230 | </div> |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | <div class="glsr-card-header"> |
263 | 263 | <h3>How do I redirect to a custom URL after a form is submitted?</h3> |
264 | 264 | <button type="button" class="handlediv" aria-expanded="true"> |
265 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
265 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
266 | 266 | <span class="toggle-indicator" aria-hidden="true"></span> |
267 | 267 | </button> |
268 | 268 | </div> |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | <div class="glsr-card-header"> |
276 | 276 | <h3>How do I remove the dash in front of the author's name?</h3> |
277 | 277 | <button type="button" class="handlediv" aria-expanded="true"> |
278 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
278 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
279 | 279 | <span class="toggle-indicator" aria-hidden="true"></span> |
280 | 280 | </button> |
281 | 281 | </div> |
@@ -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,4 +1,4 @@ discard block |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | 3 | <p>Hooks (also known as <a href="https://developer.wordpress.org/plugins/hooks/index.html">Actions and Filters</a>) are used in your theme's <code>functions.php</code> file to make changes to the plugin.</p> |
4 | 4 | |
@@ -6,13 +6,13 @@ discard block |
||
6 | 6 | <div class="glsr-card-header"> |
7 | 7 | <h3>Customise the order of the fields in the review submission form</h3> |
8 | 8 | <button type="button" class="handlediv" aria-expanded="true"> |
9 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
9 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
10 | 10 | <span class="toggle-indicator" aria-hidden="true"></span> |
11 | 11 | </button> |
12 | 12 | </div> |
13 | 13 | <div class="inside"> |
14 | 14 | <p>Use this hook to customise the order of the fields in the review submission form used by Site Reviews.</p> |
15 | - <p>See the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!faq'); ?>" data-expand="#faq-05">FAQ</a></code> for a detailed example of how to use this hook.</p> |
|
15 | + <p>See the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!faq' ); ?>" data-expand="#faq-05">FAQ</a></code> for a detailed example of how to use this hook.</p> |
|
16 | 16 | <pre><code class="php">/** |
17 | 17 | * Customises the order of the fields used in the Site Reviews submission form. |
18 | 18 | * Paste this in your active theme's functions.php file. |
@@ -30,13 +30,13 @@ discard block |
||
30 | 30 | <div class="glsr-card-header"> |
31 | 31 | <h3>Customise the star images</h3> |
32 | 32 | <button type="button" class="handlediv" aria-expanded="true"> |
33 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
33 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
34 | 34 | <span class="toggle-indicator" aria-hidden="true"></span> |
35 | 35 | </button> |
36 | 36 | </div> |
37 | 37 | <div class="inside"> |
38 | 38 | <p>Use this hook to customise the star images used by Site Reviews.</p> |
39 | - <p>See the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!faq'); ?>" data-expand="#faq-09">FAQ</a></code> for a detailed example of how to use this hook.</p> |
|
39 | + <p>See the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!faq' ); ?>" data-expand="#faq-09">FAQ</a></code> for a detailed example of how to use this hook.</p> |
|
40 | 40 | <pre><code class="php">/** |
41 | 41 | * Customises the stars used by Site Reviews. |
42 | 42 | * Paste this in your active theme's functions.php file. |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | <div class="glsr-card-header"> |
55 | 55 | <h3>Disable the plugin javascript</h3> |
56 | 56 | <button type="button" class="handlediv" aria-expanded="true"> |
57 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
57 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
58 | 58 | <span class="toggle-indicator" aria-hidden="true"></span> |
59 | 59 | </button> |
60 | 60 | </div> |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | <div class="glsr-card-header"> |
74 | 74 | <h3>Disable the plugin stylesheet</h3> |
75 | 75 | <button type="button" class="handlediv" aria-expanded="true"> |
76 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
76 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
77 | 77 | <span class="toggle-indicator" aria-hidden="true"></span> |
78 | 78 | </button> |
79 | 79 | </div> |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | <div class="glsr-card-header"> |
93 | 93 | <h3>Disable the polyfill.io script</h3> |
94 | 94 | <button type="button" class="handlediv" aria-expanded="true"> |
95 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
95 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
96 | 96 | <span class="toggle-indicator" aria-hidden="true"></span> |
97 | 97 | </button> |
98 | 98 | </div> |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | <div class="glsr-card-header"> |
113 | 113 | <h3>Do something immediately after a review has been submitted</h3> |
114 | 114 | <button type="button" class="handlediv" aria-expanded="true"> |
115 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
115 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
116 | 116 | <span class="toggle-indicator" aria-hidden="true"></span> |
117 | 117 | </button> |
118 | 118 | </div> |
@@ -136,14 +136,14 @@ discard block |
||
136 | 136 | <div class="glsr-card-header"> |
137 | 137 | <h3>Modify the schema</h3> |
138 | 138 | <button type="button" class="handlediv" aria-expanded="true"> |
139 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
139 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
140 | 140 | <span class="toggle-indicator" aria-hidden="true"></span> |
141 | 141 | </button> |
142 | 142 | </div> |
143 | 143 | <div class="inside"> |
144 | 144 | <p>Use this hook if you would like to modify the schema type properties.</p> |
145 | 145 | <p>This hook is specific to the schema type. For example, to modify the schema properties for the LocalBusiness schema type you would use the <code>site-reviews/schema/LocalBusiness</code> hook, but to modify the schema properties for the Product schema type you would use the <code>site-reviews/schema/Product</code> hook.</p> |
146 | - <p>See the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!faq'); ?>" data-expand="#faq-01">FAQ</a></code> for a detailed example of how to use this hook.</p> |
|
146 | + <p>See the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!faq' ); ?>" data-expand="#faq-01">FAQ</a></code> for a detailed example of how to use this hook.</p> |
|
147 | 147 | <p>Make sure to use Google's <a href="https://search.google.com/structured-data/testing-tool">Structured Data Testing Tool</a> to test the schema after any custom modifications have been made.</p> |
148 | 148 | <pre><code class="php">/** |
149 | 149 | * Modifies the properties of the schema created by Site Reviews. |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | <div class="glsr-card-header"> |
164 | 164 | <h3>Modify the submitted review before it is saved</h3> |
165 | 165 | <button type="button" class="handlediv" aria-expanded="true"> |
166 | - <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span> |
|
166 | + <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span> |
|
167 | 167 | <span class="toggle-indicator" aria-hidden="true"></span> |
168 | 168 | </button> |
169 | 169 | </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> |