Passed
Push — master ( 9ef78c...1834ab )
by Paul
08:49 queued 04:22
created
views/pages/welcome/support.php 1 patch
Spacing   +2 added lines, -2 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 3
 <p class="about-description">
4
-    Still need help with <?= glsr()->name; ?>? We offer excellent support for you. But don't forget to check our <a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!shortcodes'); ?>">documentation</a> first.
4
+    Still need help with <?= glsr()->name; ?>? We offer excellent support for you. But don't forget to check our <a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!shortcodes' ); ?>">documentation</a> first.
5 5
 </p>
6 6
 <div class="is-fullwidth">
7 7
     <div class="glsr-flex-row glsr-has-2-columns">
Please login to merge, or discard this patch.
views/pages/welcome/getting-started.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@  discard block
 block discarded – undo
1
-<?php defined('WPINC') || die; ?>
1
+<?php defined( 'WPINC' ) || die; ?>
2 2
 
3 3
 <div class="is-fullwidth">
4 4
     <div class="glsr-flex-row glsr-has-2-columns">
5 5
         <div class="glsr-column">
6 6
             <h3>Editor Blocks</h3>
7 7
             <p>The fastest way to getting started with Site Reviews is use the three provided blocks in the WordPress Block Editor. Each block comes with multiple settings which let you configure the block exactly as needed. To add a block to your page, click the "Add Block" button and search for "Site Reviews".</p>
8
-            <img class="screenshot" src="<?= glsr()->url('assets/images/blocks.png'); ?>" alt="Editor Blocks" />
8
+            <img class="screenshot" src="<?= glsr()->url( 'assets/images/blocks.png' ); ?>" alt="Editor Blocks" />
9 9
         </div>
10 10
         <div class="glsr-column">
11 11
             <h3>Shortcodes and Widgets</h3>
12 12
             <p>You can also use the shortcodes or widgets on your page. Keep in mind, however, that widgets are limited in options compared to the shortcodes (for example, the "Latest Reviews" widget does not allow pagination). If you are using the Classic Editor in WordPress, you can click on the Site Reviews shortcode button above the editor (next to the media button) to add a shortcode via a friendly popup.</p>
13 13
             <p>To learn more about the shortcodes and the available shortcode options, please see the Shortcode Documentation page of the plugin.</p>
14
-            <a class="button" href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!shortcodes'); ?>">View Shortcode Documentation</a>
14
+            <a class="button" href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!shortcodes' ); ?>">View Shortcode Documentation</a>
15 15
         </div>
16 16
     </div>
17 17
 </div>
@@ -20,31 +20,31 @@  discard block
 block discarded – undo
20 20
     <h2>Features</h2>
21 21
     <ul class="glsr-flex-row glsr-has-3-columns">
22 22
         <li class="glsr-column">
23
-            <h3><a href="<?= admin_url('edit.php?post_type=site-review&page=addons'); ?>">Add-ons</a></h3>
23
+            <h3><a href="<?= admin_url( 'edit.php?post_type=site-review&page=addons' ); ?>">Add-ons</a></h3>
24 24
             <p>Extend Site Reviews with add-ons that provide additional features.</p>
25 25
         </li>
26 26
         <li class="glsr-column">
27
-            <h3><a href="<?= admin_url('edit.php?post_type=site-review&page=settings#!reviews'); ?>">Avatars</a></h3>
27
+            <h3><a href="<?= admin_url( 'edit.php?post_type=site-review&page=settings#!reviews' ); ?>">Avatars</a></h3>
28 28
             <p>Enable avatars to generate images using the WordPress Gravatar service.</p>
29 29
         </li>
30 30
         <li class="glsr-column">
31
-            <h3><a href="<?= admin_url('edit.php?post_type=site-review&page=tools#!general'); ?>">Backup/Restore</a></h3>
31
+            <h3><a href="<?= admin_url( 'edit.php?post_type=site-review&page=tools#!general' ); ?>">Backup/Restore</a></h3>
32 32
             <p>Backup and restore your plugin settings as needed.</p>
33 33
         </li>
34 34
         <li class="glsr-column">
35
-            <h3><a data-expand="#faq-14" href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!faq'); ?>">Bayesian Ranking</a></h3>
35
+            <h3><a data-expand="#faq-14" href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!faq' ); ?>">Bayesian Ranking</a></h3>
36 36
             <p>Easily rank pages with assigned reviews using the bayesian algorithm.</p>
37 37
         </li>
38 38
         <li class="glsr-column">
39
-            <h3><a href="<?= admin_url('edit.php?post_type=site-review&page=settings#!submissions'); ?>">Blacklist</a></h3>
39
+            <h3><a href="<?= admin_url( 'edit.php?post_type=site-review&page=settings#!submissions' ); ?>">Blacklist</a></h3>
40 40
             <p>Blacklist words, phrases, IP addresses, names, and emails.</p>
41 41
         </li>
42 42
         <li class="glsr-column">
43
-            <h3><a href="<?= admin_url('edit.php?post_type=site-review&page=settings#!general'); ?>">Blockchain Validation</a></h3>
43
+            <h3><a href="<?= admin_url( 'edit.php?post_type=site-review&page=settings#!general' ); ?>">Blockchain Validation</a></h3>
44 44
             <p>Verify your reviews on the Blockchain with <a href="https://rebusify.com?ref=105">Rebusify</a>.</p>
45 45
         </li>
46 46
         <li class="glsr-column">
47
-            <h3><a href="<?= admin_url('edit-tags.php?taxonomy=site-review-category&post_type=site-review'); ?>">Categories</a></h3>
47
+            <h3><a href="<?= admin_url( 'edit-tags.php?taxonomy=site-review-category&post_type=site-review' ); ?>">Categories</a></h3>
48 48
             <p>Add your own categories and assign reviews to them.</p>
49 49
         </li>
50 50
         <li class="glsr-column">
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             <p>Designed for WordPress developers with over 100 filter hooks and convenient functions.</p>
53 53
         </li>
54 54
         <li class="glsr-column">
55
-            <h3><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!faq'); ?>">Documentation</a></h3>
55
+            <h3><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!faq' ); ?>">Documentation</a></h3>
56 56
             <p>Provides FAQ and documenation for hooks and all shortcodes and functions.</p>
57 57
         </li>
58 58
         <li class="glsr-column">
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
             <p>Use configurable editor blocks in the new WordPress 5.0 editor.</p>
61 61
         </li>
62 62
         <li class="glsr-column">
63
-            <h3><a href="<?= admin_url('edit.php?post_type=site-review&page=settings#!schema'); ?>">JSON-LD Schema</a></h3>
63
+            <h3><a href="<?= admin_url( 'edit.php?post_type=site-review&page=settings#!schema' ); ?>">JSON-LD Schema</a></h3>
64 64
             <p>Enable JSON-LD schema to display your reviews and ratings in search results.</p>
65 65
         </li>
66 66
         <li class="glsr-column">
67
-            <h3><a href="<?= admin_url('edit.php?post_type=site-review&page=settings#!general'); ?>">Multilingual</a></h3>
67
+            <h3><a href="<?= admin_url( 'edit.php?post_type=site-review&page=settings#!general' ); ?>">Multilingual</a></h3>
68 68
             <p>Integrates with Polylang and WPML and provides easy search/replace translation.</p>
69 69
         </li>
70 70
         <li class="glsr-column">
@@ -72,47 +72,47 @@  discard block
 block discarded – undo
72 72
             <p>Provides full support for the WordPress multisite feature.</p>
73 73
         </li>
74 74
         <li class="glsr-column">
75
-            <h3><a href="<?= admin_url('edit.php?post_type=site-review&page=settings#!general'); ?>">Notifications</a></h3>
75
+            <h3><a href="<?= admin_url( 'edit.php?post_type=site-review&page=settings#!general' ); ?>">Notifications</a></h3>
76 76
             <p>Send notifications to one or more emails when a review is submitted.</p>
77 77
         </li>
78 78
         <li class="glsr-column">
79
-            <h3><a data-expand="#faq-03" href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!faq'); ?>">Page Assignment</a></h3>
79
+            <h3><a data-expand="#faq-03" href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!faq' ); ?>">Page Assignment</a></h3>
80 80
             <p>Assign reviews to Posts, Pages, and Custom Post Types.</p>
81 81
         </li>
82 82
         <li class="glsr-column">
83
-            <h3><a data-expand="#faq-02" href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!faq'); ?>">Pagination</a></h3>
83
+            <h3><a data-expand="#faq-02" href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!faq' ); ?>">Pagination</a></h3>
84 84
             <p>Enable AJAX pagination to display a custom number of reviews per-page.</p>
85 85
         </li>
86 86
         <li class="glsr-column">
87
-            <h3><a href="<?= admin_url('edit.php?post_type=site-review'); ?>">Responses</a></h3>
87
+            <h3><a href="<?= admin_url( 'edit.php?post_type=site-review' ); ?>">Responses</a></h3>
88 88
             <p>Write a response to reviews that require a response.</p>
89 89
         </li>
90 90
         <li class="glsr-column">
91
-            <h3><a href="<?= admin_url('edit.php?post_type=site-review&page=settings#!general'); ?>">Restrictions</a></h3>
91
+            <h3><a href="<?= admin_url( 'edit.php?post_type=site-review&page=settings#!general' ); ?>">Restrictions</a></h3>
92 92
             <p>Require approval before publishing reviews and limit to registered users.</p>
93 93
         </li>
94 94
         <li class="glsr-column">
95
-            <h3><a href="<?= admin_url('edit.php?post_type=site-review&page=settings#!submissions'); ?>">Review Limits</a></h3>
95
+            <h3><a href="<?= admin_url( 'edit.php?post_type=site-review&page=settings#!submissions' ); ?>">Review Limits</a></h3>
96 96
             <p>Limit review submissions by email address, IP address, or username.</p>
97 97
         </li>
98 98
         <li class="glsr-column">
99
-            <h3><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!shortcodes'); ?>">Review Summaries</a></h3>
99
+            <h3><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!shortcodes' ); ?>">Review Summaries</a></h3>
100 100
             <p>Display a summary of your review ratings from high to low.</p>
101 101
         </li>
102 102
         <li class="glsr-column">
103
-            <h3><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!shortcodes'); ?>">Shortcodes</a></h3>
103
+            <h3><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!shortcodes' ); ?>">Shortcodes</a></h3>
104 104
             <p>Use the configurable shortcodes complete with documentation.</p>
105 105
         </li>
106 106
         <li class="glsr-column">
107
-            <h3><a href="<?= admin_url('edit.php?post_type=site-review&page=settings#!general'); ?>">Slack</a></h3>
107
+            <h3><a href="<?= admin_url( 'edit.php?post_type=site-review&page=settings#!general' ); ?>">Slack</a></h3>
108 108
             <p>Receive notifications in Slack when a review is submitted.</p>
109 109
         </li>
110 110
         <li class="glsr-column">
111
-            <h3><a href="<?= admin_url('edit.php?post_type=site-review&page=settings#!submissions'); ?>">SPAM Protection</a></h3>
111
+            <h3><a href="<?= admin_url( 'edit.php?post_type=site-review&page=settings#!submissions' ); ?>">SPAM Protection</a></h3>
112 112
             <p>Uses a Honeypot and integrates with Invisible reCAPTCHA and Akismet.</p>
113 113
         </li>
114 114
         <li class="glsr-column">
115
-            <h3><a href="<?= admin_url('edit.php?post_type=site-review&page=settings#!general'); ?>">Styles</a></h3>
115
+            <h3><a href="<?= admin_url( 'edit.php?post_type=site-review&page=settings#!general' ); ?>">Styles</a></h3>
116 116
             <p>Change the submission form style to match popular themes and form plugins.</p>
117 117
         </li>
118 118
         <li class="glsr-column">
@@ -120,11 +120,11 @@  discard block
 block discarded – undo
120 120
             <p>Free premium-level support included on the WordPress support forum.</p>
121 121
         </li>
122 122
         <li class="glsr-column">
123
-            <h3><a data-expand="#faq-17" href="<?= admin_url('edit.php?post_type=site-review&page=documentation#!faq'); ?>">Templates</a></h3>
123
+            <h3><a data-expand="#faq-17" href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation#!faq' ); ?>">Templates</a></h3>
124 124
             <p>Use the Site Reviews templates in your theme for full control over the HTML.</p>
125 125
         </li>
126 126
         <li class="glsr-column">
127
-            <h3><a href="<?= admin_url('widgets.php'); ?>">Widgets</a></h3>
127
+            <h3><a href="<?= admin_url( 'widgets.php' ); ?>">Widgets</a></h3>
128 128
             <p>Use the configurable widgets in your sidebars.</p>
129 129
         </li>
130 130
     </ul>
Please login to merge, or discard this patch.
views/pages/settings/index.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 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 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 11
     <form class="glsr-form" action="options.php" enctype="multipart/form-data" method="post">
12
-        <?php foreach ($tabs as $id => $title) : ?>
12
+        <?php foreach( $tabs as $id => $title ) : ?>
13 13
         <div class="glsr-nav-view ui-tabs-hide" id="<?= $id; ?>">
14
-            <?= $settings->buildFields($id); ?>
14
+            <?= $settings->buildFields( $id ); ?>
15 15
         </div>
16 16
         <?php endforeach; ?>
17 17
         <input type="hidden" name="_active_tab">
18
-        <?php settings_fields(glsr()->id.'-settings'); ?>
18
+        <?php settings_fields( glsr()->id.'-settings' ); ?>
19 19
         <?php submit_button(); ?>
20 20
     </form>
21 21
 </div>
Please login to merge, or discard this patch.
views/pages/addons/index.php 1 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/tools/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 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 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">
Please login to merge, or discard this patch.
views/pages/documentation/index.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,18 +1,18 @@
 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>
5
-    <a href="<?= admin_url('edit.php?post_type=site-review&page=welcome'); ?>" class="page-title-action"><?= __('About', 'site-reviews'); ?></a>
4
+    <h1 class="wp-heading-inline"><?= esc_html( get_admin_page_title() ); ?></h1>
5
+    <a href="<?= admin_url( 'edit.php?post_type=site-review&page=welcome' ); ?>" class="page-title-action"><?= __( 'About', 'site-reviews' ); ?></a>
6 6
     <?= $notices; ?>
7
-    <p><?= __('Click an active tab to expand/collapse all sections.', 'site-reviews'); ?></p>
7
+    <p><?= __( 'Click an active tab to expand/collapse all sections.', 'site-reviews' ); ?></p>
8 8
     <h2 class="glsr-nav-tab-wrapper nav-tab-wrapper">
9
-        <?php foreach ($tabs as $id => $title) : ?>
9
+        <?php foreach( $tabs as $id => $title ) : ?>
10 10
         <a class="glsr-nav-tab nav-tab" href="#<?= $id; ?>"><?= $title; ?></a>
11 11
         <?php endforeach; ?>
12 12
     </h2>
13
-    <?php foreach ($tabs as $id => $title) : ?>
13
+    <?php foreach( $tabs as $id => $title ) : ?>
14 14
     <div class="glsr-nav-view ui-tabs-hide" id="<?= $id; ?>">
15
-        <?php glsr()->render('pages/documentation/'.$id, $data); ?>
15
+        <?php glsr()->render( 'pages/documentation/'.$id, $data ); ?>
16 16
     </div>
17 17
     <?php endforeach; ?>
18 18
     <input type="hidden" name="_active_tab">
Please login to merge, or discard this patch.