Passed
Push — master ( 054ae2...bf35ce )
by Paul
04:22
created
views/pages/documentation/functions.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 &rarr; 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 &rarr; Console</a></code>.</p>
348 348
     </div>
349 349
 </div>
350 350
 
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 &rarr; 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 &rarr; Console</a></code>.</p>
372 372
     </div>
373 373
 </div>
Please login to merge, or discard this patch.
views/pages/documentation/support.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 &rarr; 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 &rarr; 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 &rarr; 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 &rarr; 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>
Please login to merge, or discard this patch.
views/pages/documentation/addons.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
views/pages/tools/system-info.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
views/pages/tools/general.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,25 +1,25 @@  discard block
 block discarded – undo
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
 block discarded – undo
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>
Please login to merge, or discard this patch.
views/pages/addons/index.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -9,24 +9,24 @@
 block discarded – undo
9 9
     <p><?= __('Add-ons extend the functionality of Site Reviews.', 'site-reviews'); ?></p>
10 10
     <div class="glsr-addons wp-clearfix">
11 11
     <?php
12
-        $template->render('partials/addons/addon', [
13
-            'context' => [
14
-                'description' => __('Allow your visitors to submit multiple images with their reviews.', 'site-reviews'),
15
-                'link' => 'https://niftyplugins.com/addons/site-reviews-images/',
16
-                'slug' => 'images',
17
-                'title' => 'Images',
18
-            ],
19
-            'plugin' => 'site-reviews-images/site-reviews-images.php',
20
-        ]);
21
-        $template->render('partials/addons/addon', [
22
-            'context' => [
23
-                'description' => __('Sync your Tripadvisor reviews to your website and manage them with Site Reviews.', 'site-reviews'),
24
-                'link' => 'https://niftyplugins.com/addons/site-reviews-tripadvisor/',
25
-                'slug' => 'tripadvisor',
26
-                'title' => 'Tripadvisor Reviews',
27
-            ],
28
-            'plugin' => 'site-reviews-tripadvisor/site-reviews-tripadvisor.php',
29
-        ]);
30
-    ?>
12
+		$template->render('partials/addons/addon', [
13
+			'context' => [
14
+				'description' => __('Allow your visitors to submit multiple images with their reviews.', 'site-reviews'),
15
+				'link' => 'https://niftyplugins.com/addons/site-reviews-images/',
16
+				'slug' => 'images',
17
+				'title' => 'Images',
18
+			],
19
+			'plugin' => 'site-reviews-images/site-reviews-images.php',
20
+		]);
21
+		$template->render('partials/addons/addon', [
22
+			'context' => [
23
+				'description' => __('Sync your Tripadvisor reviews to your website and manage them with Site Reviews.', 'site-reviews'),
24
+				'link' => 'https://niftyplugins.com/addons/site-reviews-tripadvisor/',
25
+				'slug' => 'tripadvisor',
26
+				'title' => 'Tripadvisor Reviews',
27
+			],
28
+			'plugin' => 'site-reviews-tripadvisor/site-reviews-tripadvisor.php',
29
+		]);
30
+	?>
31 31
     </div>
32 32
 </div>
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,29 +1,29 @@
 block discarded – undo
1
-<?php defined('WPINC') || die; ?>
1
+<?php defined( 'WPINC' ) || die; ?>
2 2
 
3 3
 <div class="wrap">
4
-    <h1 class="wp-heading-inline"><?= esc_html(get_admin_page_title()); ?></h1>
4
+    <h1 class="wp-heading-inline"><?= esc_html( get_admin_page_title() ); ?></h1>
5 5
     <?= $notices; ?>
6
-    <p><?= __('Add-ons extend the functionality of Site Reviews.', 'site-reviews'); ?></p>
6
+    <p><?= __( 'Add-ons extend the functionality of Site Reviews.', 'site-reviews' ); ?></p>
7 7
     <div class="glsr-addons wp-clearfix">
8 8
     <?php
9
-        $template->render('partials/addons/addon', [
9
+        $template->render( 'partials/addons/addon', [
10 10
             'context' => [
11
-                'description' => __('Allow your visitors to submit multiple images with their reviews.', 'site-reviews'),
11
+                'description' => __( 'Allow your visitors to submit multiple images with their reviews.', 'site-reviews' ),
12 12
                 'link' => 'https://niftyplugins.com/addons/site-reviews-images/',
13 13
                 'slug' => 'images',
14 14
                 'title' => 'Images',
15 15
             ],
16 16
             'plugin' => 'site-reviews-images/site-reviews-images.php',
17
-        ]);
18
-        $template->render('partials/addons/addon', [
17
+        ] );
18
+        $template->render( 'partials/addons/addon', [
19 19
             'context' => [
20
-                'description' => __('Sync your Tripadvisor reviews to your website and manage them with Site Reviews.', 'site-reviews'),
20
+                'description' => __( 'Sync your Tripadvisor reviews to your website and manage them with Site Reviews.', 'site-reviews' ),
21 21
                 'link' => 'https://niftyplugins.com/addons/site-reviews-tripadvisor/',
22 22
                 'slug' => 'tripadvisor',
23 23
                 'title' => 'Tripadvisor Reviews',
24 24
             ],
25 25
             'plugin' => 'site-reviews-tripadvisor/site-reviews-tripadvisor.php',
26
-        ]);
26
+        ] );
27 27
     ?>
28 28
     </div>
29 29
 </div>
Please login to merge, or discard this patch.
views/pages/settings/submissions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php defined('WPINC') || die; ?>
1
+<?php defined( 'WPINC' ) || die; ?>
2 2
 
3 3
 <table class="form-table">
4 4
     <tbody>
Please login to merge, or discard this patch.
views/pages/settings/addons.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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; ?>
Please login to merge, or discard this patch.
templates/reviews-summary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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 }}">
Please login to merge, or discard this patch.