Passed
Push — master ( e0a59a...75b6ac )
by Paul
06:30 queued 02:41
created
views/partials/notices/rebusify.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <div class="notice is-dismissible glsr-notice" data-dismiss="rebusify">
2 2
     <div class="glsr-notice-icon">
3
-        <img width="96" height="96" src="<?= glsr()->url('assets/images/rebusify-badge.png'); ?>">
3
+        <img width="96" height="96" src="<?= glsr()->url( 'assets/images/rebusify-badge.png' ); ?>">
4 4
     </div>
5 5
     <div class="glsr-notice-content">
6 6
         <h3>Validate Your Reviews on the Blockchain With the Rebusify Confidence System</h3>
7
-        <p>Site Reviews now integrates with the Rebusify Confidence System which uses blockchain technology to verify to your visitors and customers that your reviews are authentic. Simply create a free Rebusify account and <a href="<?= admin_url('edit.php?post_type=site-review&page=settings#!general'); ?>">enter your credentials in the Settings</a>. Site Reviews will take care of the rest!</p>
7
+        <p>Site Reviews now integrates with the Rebusify Confidence System which uses blockchain technology to verify to your visitors and customers that your reviews are authentic. Simply create a free Rebusify account and <a href="<?= admin_url( 'edit.php?post_type=site-review&page=settings#!general' ); ?>">enter your credentials in the Settings</a>. Site Reviews will take care of the rest!</p>
8 8
         <a href="https://rebusify.com/plans?ref=105" class="button" target="_blank">Create Your Rebusify Account</a>
9 9
     </div>
10 10
 </div>
Please login to merge, or discard this patch.
views/pages/welcome/upgrade-guide.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
 <p class="about-description">If you are using any Site Reviews code snippets or have built any custom integrations with Site Reviews, please make sure to read this upgrade guide.</p>
4 4
 <div class="is-fullwidth">
Please login to merge, or discard this patch.
views/partials/notices/addons.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,3 +1,3 @@
 block discarded – undo
1 1
 <div class="notice notice-warning is-dismissible">
2
-    <p><?= __('Expect to see these add-ons released in the coming months! Thank you again for your continued patience.', 'site-reviews'); ?></p>
2
+    <p><?= __( 'Expect to see these add-ons released in the coming months! Thank you again for your continued patience.', 'site-reviews' ); ?></p>
3 3
 </div>
Please login to merge, or discard this patch.
plugin/Reviews.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public $reviews;
26 26
 
27
-    public function __construct(array $reviews, $maxPageCount, array $args)
27
+    public function __construct( array $reviews, $maxPageCount, array $args )
28 28
     {
29 29
         $this->args = $args;
30 30
         $this->max_num_pages = $maxPageCount;
31 31
         $this->reviews = $reviews;
32
-        parent::__construct($reviews, ArrayObject::STD_PROP_LIST | ArrayObject::ARRAY_AS_PROPS);
32
+        parent::__construct( $reviews, ArrayObject::STD_PROP_LIST | ArrayObject::ARRAY_AS_PROPS );
33 33
     }
34 34
 
35 35
     /**
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function __toString()
39 39
     {
40
-        return (string) $this->build();
40
+        return (string)$this->build();
41 41
     }
42 42
 
43 43
     /**
@@ -45,20 +45,20 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function build()
47 47
     {
48
-        $args = glsr(SiteReviewsDefaults::class)->merge($this->args);
49
-        return glsr(SiteReviewsPartial::class)->build($args, $this);
48
+        $args = glsr( SiteReviewsDefaults::class )->merge( $this->args );
49
+        return glsr( SiteReviewsPartial::class )->build( $args, $this );
50 50
     }
51 51
 
52 52
     /**
53 53
      * @param mixed $key
54 54
      * @return mixed
55 55
      */
56
-    public function offsetGet($key)
56
+    public function offsetGet( $key )
57 57
     {
58
-        if (property_exists($this, $key)) {
58
+        if( property_exists( $this, $key ) ) {
59 59
             return $this->$key;
60 60
         }
61
-        return array_key_exists($key, $this->reviews)
61
+        return array_key_exists( $key, $this->reviews )
62 62
             ? $this->reviews[$key]
63 63
             : null;
64 64
     }
Please login to merge, or discard this patch.
plugin/Actions.php 1 patch
Spacing   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -38,23 +38,23 @@  discard block
 block discarded – undo
38 38
     protected $taxonomy;
39 39
     protected $welcome;
40 40
 
41
-    public function __construct(Application $app ) {
41
+    public function __construct( Application $app ) {
42 42
         $this->app = $app;
43
-        $this->admin = $app->make(AdminController::class);
44
-        $this->blocks = $app->make(BlocksController::class);
45
-        $this->console = $app->make(Console::class);
46
-        $this->editor = $app->make(EditorController::class);
47
-        $this->listtable = $app->make(ListTableController::class);
48
-        $this->main = $app->make(MainController::class);
49
-        $this->menu = $app->make(MenuController::class);
50
-        $this->notices = $app->make(NoticeController::class);
51
-        $this->public = $app->make(PublicController::class);
52
-        $this->rebusify = $app->make(RebusifyController::class);
53
-        $this->review = $app->make(ReviewController::class);
54
-        $this->router = $app->make(Router::class);
55
-        $this->settings = $app->make(SettingsController::class);
56
-        $this->taxonomy = $app->make(TaxonomyController::class);
57
-        $this->welcome = $app->make(WelcomeController::class);
43
+        $this->admin = $app->make( AdminController::class );
44
+        $this->blocks = $app->make( BlocksController::class );
45
+        $this->console = $app->make( Console::class );
46
+        $this->editor = $app->make( EditorController::class );
47
+        $this->listtable = $app->make( ListTableController::class );
48
+        $this->main = $app->make( MainController::class );
49
+        $this->menu = $app->make( MenuController::class );
50
+        $this->notices = $app->make( NoticeController::class );
51
+        $this->public = $app->make( PublicController::class );
52
+        $this->rebusify = $app->make( RebusifyController::class );
53
+        $this->review = $app->make( ReviewController::class );
54
+        $this->router = $app->make( Router::class );
55
+        $this->settings = $app->make( SettingsController::class );
56
+        $this->taxonomy = $app->make( TaxonomyController::class );
57
+        $this->welcome = $app->make( WelcomeController::class );
58 58
     }
59 59
 
60 60
     /**
@@ -62,66 +62,66 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function run()
64 64
     {
65
-        add_action('admin_enqueue_scripts',                                 [$this->admin, 'enqueueAssets']);
66
-        add_action('admin_init',                                            [$this->admin, 'registerTinymcePopups']);
67
-        add_action('media_buttons',                                         [$this->admin, 'renderTinymceButton'], 11);
68
-        add_action('plugins_loaded',                                        [$this->app, 'getDefaults'], 11);
69
-        add_action('plugins_loaded',                                        [$this->app, 'registerAddons']);
70
-        add_action('plugins_loaded',                                        [$this->app, 'registerLanguages']);
71
-        add_action('plugins_loaded',                                        [$this->app, 'registerReviewTypes']);
72
-        add_action('upgrader_process_complete',                             [$this->app, 'upgraded'], 10, 2);
73
-        add_action('init',                                                  [$this->blocks, 'registerAssets'], 9);
74
-        add_action('init',                                                  [$this->blocks, 'registerBlocks']);
75
-        add_action('admin_footer',                                          [$this->console, 'logOnce']);
76
-        add_action('wp_footer',                                             [$this->console, 'logOnce']);
77
-        add_action('admin_enqueue_scripts',                                 [$this->editor, 'customizePostStatusLabels']);
78
-        add_action('add_meta_boxes_'.Application::POST_TYPE,                [$this->editor, 'registerMetaBoxes']);
79
-        add_action('admin_print_scripts',                                   [$this->editor, 'removeAutosave'], 999);
80
-        add_action('admin_menu',                                            [$this->editor, 'removeMetaBoxes']);
81
-        add_action('current_screen',                                        [$this->editor, 'removePostTypeSupport']);
82
-        add_action('post_submitbox_misc_actions',                           [$this->editor, 'renderPinnedInPublishMetaBox']);
83
-        add_action('admin_head',                                            [$this->editor, 'renderReviewFields']);
84
-        add_action('admin_action_revert',                                   [$this->editor, 'revertReview']);
85
-        add_action('save_post_'.Application::POST_TYPE,                     [$this->editor, 'saveMetaboxes'], 10, 3);
86
-        add_action('admin_action_approve',                                  [$this->listtable, 'approve']);
87
-        add_action('bulk_edit_custom_box',                                  [$this->listtable, 'renderBulkEditFields'], 10, 2);
88
-        add_action('restrict_manage_posts',                                 [$this->listtable, 'renderColumnFilters']);
89
-        add_action('manage_'.Application::POST_TYPE.'_posts_custom_column', [$this->listtable, 'renderColumnValues'], 10, 2);
90
-        add_action('save_post_'.Application::POST_TYPE,                     [$this->listtable, 'saveBulkEditFields']);
91
-        add_action('pre_get_posts',                                         [$this->listtable, 'setQueryForColumn']);
92
-        add_action('admin_action_unapprove',                                [$this->listtable, 'unapprove']);
93
-        add_action('init',                                                  [$this->main, 'registerPostType'], 8);
94
-        add_action('init',                                                  [$this->main, 'registerShortcodes']);
95
-        add_action('init',                                                  [$this->main, 'registerTaxonomy']);
96
-        add_action('widgets_init',                                          [$this->main, 'registerWidgets']);
97
-        add_action('admin_menu',                                            [$this->menu, 'registerMenuCount']);
98
-        add_action('admin_menu',                                            [$this->menu, 'registerSubMenus']);
99
-        add_action('admin_init',                                            [$this->menu, 'setCustomPermissions'], 999);
100
-        add_action('admin_notices',                                         [$this->notices, 'filterAdminNotices']);
101
-        add_action('wp_enqueue_scripts',                                    [$this->public, 'enqueueAssets'], 999);
102
-        add_filter('site-reviews/builder',                                  [$this->public, 'modifyBuilder']);
103
-        add_action('wp_footer',                                             [$this->public, 'renderSchema']);
104
-        add_action('site-reviews/review/created',                           [$this->rebusify, 'onCreated']);
105
-        add_action('site-reviews/review/reverted',                          [$this->rebusify, 'onReverted']);
106
-        add_action('site-reviews/review/saved',                             [$this->rebusify, 'onSaved']);
107
-        add_action('updated_postmeta',                                      [$this->rebusify, 'onUpdatedMeta'], 10, 3);
108
-        add_action('set_object_terms',                                      [$this->review, 'onAfterChangeCategory'], 10, 6);
109
-        add_action('transition_post_status',                                [$this->review, 'onAfterChangeStatus'], 10, 3);
110
-        add_action('site-reviews/review/created',                           [$this->review, 'onAfterCreate']);
111
-        add_action('before_delete_post',                                    [$this->review, 'onBeforeDelete']);
112
-        add_action('update_postmeta',                                       [$this->review, 'onBeforeUpdate'], 10, 4);
113
-        add_action('admin_init',                                            [$this->router, 'routeAdminPostRequest']);
114
-        add_action('wp_ajax_'.Application::PREFIX.'action',                 [$this->router, 'routeAjaxRequest']);
115
-        add_action('wp_ajax_nopriv_'.Application::PREFIX.'action',          [$this->router, 'routeAjaxRequest']);
116
-        add_action('init',                                                  [$this->router, 'routePublicPostRequest']);
117
-        add_action('admin_init',                                            [$this->settings, 'registerSettings']);
118
-        add_action(Application::TAXONOMY.'_term_edit_form_top',             [$this->taxonomy, 'disableParents']);
119
-        add_action(Application::TAXONOMY.'_term_new_form_tag',              [$this->taxonomy, 'disableParents']);
120
-        add_action(Application::TAXONOMY.'_add_form_fields',                [$this->taxonomy, 'enableParents']);
121
-        add_action(Application::TAXONOMY.'_edit_form',                      [$this->taxonomy, 'enableParents']);
122
-        add_action('restrict_manage_posts',                                 [$this->taxonomy, 'renderTaxonomyFilter'], 9);
123
-        add_action('set_object_terms',                                      [$this->taxonomy, 'restrictTermSelection'], 9, 6);
124
-        add_action('activated_plugin',                                      [$this->welcome, 'redirectOnActivation'], 10, 2);
125
-        add_action('admin_menu',                                            [$this->welcome, 'registerPage']);
65
+        add_action( 'admin_enqueue_scripts', [$this->admin, 'enqueueAssets'] );
66
+        add_action( 'admin_init', [$this->admin, 'registerTinymcePopups'] );
67
+        add_action( 'media_buttons', [$this->admin, 'renderTinymceButton'], 11 );
68
+        add_action( 'plugins_loaded', [$this->app, 'getDefaults'], 11 );
69
+        add_action( 'plugins_loaded', [$this->app, 'registerAddons'] );
70
+        add_action( 'plugins_loaded', [$this->app, 'registerLanguages'] );
71
+        add_action( 'plugins_loaded', [$this->app, 'registerReviewTypes'] );
72
+        add_action( 'upgrader_process_complete', [$this->app, 'upgraded'], 10, 2 );
73
+        add_action( 'init', [$this->blocks, 'registerAssets'], 9 );
74
+        add_action( 'init', [$this->blocks, 'registerBlocks'] );
75
+        add_action( 'admin_footer', [$this->console, 'logOnce'] );
76
+        add_action( 'wp_footer', [$this->console, 'logOnce'] );
77
+        add_action( 'admin_enqueue_scripts', [$this->editor, 'customizePostStatusLabels'] );
78
+        add_action( 'add_meta_boxes_'.Application::POST_TYPE, [$this->editor, 'registerMetaBoxes'] );
79
+        add_action( 'admin_print_scripts', [$this->editor, 'removeAutosave'], 999 );
80
+        add_action( 'admin_menu', [$this->editor, 'removeMetaBoxes'] );
81
+        add_action( 'current_screen', [$this->editor, 'removePostTypeSupport'] );
82
+        add_action( 'post_submitbox_misc_actions', [$this->editor, 'renderPinnedInPublishMetaBox'] );
83
+        add_action( 'admin_head', [$this->editor, 'renderReviewFields'] );
84
+        add_action( 'admin_action_revert', [$this->editor, 'revertReview'] );
85
+        add_action( 'save_post_'.Application::POST_TYPE, [$this->editor, 'saveMetaboxes'], 10, 3 );
86
+        add_action( 'admin_action_approve', [$this->listtable, 'approve'] );
87
+        add_action( 'bulk_edit_custom_box', [$this->listtable, 'renderBulkEditFields'], 10, 2 );
88
+        add_action( 'restrict_manage_posts', [$this->listtable, 'renderColumnFilters'] );
89
+        add_action( 'manage_'.Application::POST_TYPE.'_posts_custom_column', [$this->listtable, 'renderColumnValues'], 10, 2 );
90
+        add_action( 'save_post_'.Application::POST_TYPE, [$this->listtable, 'saveBulkEditFields'] );
91
+        add_action( 'pre_get_posts', [$this->listtable, 'setQueryForColumn'] );
92
+        add_action( 'admin_action_unapprove', [$this->listtable, 'unapprove'] );
93
+        add_action( 'init', [$this->main, 'registerPostType'], 8 );
94
+        add_action( 'init', [$this->main, 'registerShortcodes'] );
95
+        add_action( 'init', [$this->main, 'registerTaxonomy'] );
96
+        add_action( 'widgets_init', [$this->main, 'registerWidgets'] );
97
+        add_action( 'admin_menu', [$this->menu, 'registerMenuCount'] );
98
+        add_action( 'admin_menu', [$this->menu, 'registerSubMenus'] );
99
+        add_action( 'admin_init', [$this->menu, 'setCustomPermissions'], 999 );
100
+        add_action( 'admin_notices', [$this->notices, 'filterAdminNotices'] );
101
+        add_action( 'wp_enqueue_scripts', [$this->public, 'enqueueAssets'], 999 );
102
+        add_filter( 'site-reviews/builder', [$this->public, 'modifyBuilder'] );
103
+        add_action( 'wp_footer', [$this->public, 'renderSchema'] );
104
+        add_action( 'site-reviews/review/created', [$this->rebusify, 'onCreated'] );
105
+        add_action( 'site-reviews/review/reverted', [$this->rebusify, 'onReverted'] );
106
+        add_action( 'site-reviews/review/saved', [$this->rebusify, 'onSaved'] );
107
+        add_action( 'updated_postmeta', [$this->rebusify, 'onUpdatedMeta'], 10, 3 );
108
+        add_action( 'set_object_terms', [$this->review, 'onAfterChangeCategory'], 10, 6 );
109
+        add_action( 'transition_post_status', [$this->review, 'onAfterChangeStatus'], 10, 3 );
110
+        add_action( 'site-reviews/review/created', [$this->review, 'onAfterCreate'] );
111
+        add_action( 'before_delete_post', [$this->review, 'onBeforeDelete'] );
112
+        add_action( 'update_postmeta', [$this->review, 'onBeforeUpdate'], 10, 4 );
113
+        add_action( 'admin_init', [$this->router, 'routeAdminPostRequest'] );
114
+        add_action( 'wp_ajax_'.Application::PREFIX.'action', [$this->router, 'routeAjaxRequest'] );
115
+        add_action( 'wp_ajax_nopriv_'.Application::PREFIX.'action', [$this->router, 'routeAjaxRequest'] );
116
+        add_action( 'init', [$this->router, 'routePublicPostRequest'] );
117
+        add_action( 'admin_init', [$this->settings, 'registerSettings'] );
118
+        add_action( Application::TAXONOMY.'_term_edit_form_top', [$this->taxonomy, 'disableParents'] );
119
+        add_action( Application::TAXONOMY.'_term_new_form_tag', [$this->taxonomy, 'disableParents'] );
120
+        add_action( Application::TAXONOMY.'_add_form_fields', [$this->taxonomy, 'enableParents'] );
121
+        add_action( Application::TAXONOMY.'_edit_form', [$this->taxonomy, 'enableParents'] );
122
+        add_action( 'restrict_manage_posts', [$this->taxonomy, 'renderTaxonomyFilter'], 9 );
123
+        add_action( 'set_object_terms', [$this->taxonomy, 'restrictTermSelection'], 9, 6 );
124
+        add_action( 'activated_plugin', [$this->welcome, 'redirectOnActivation'], 10, 2 );
125
+        add_action( 'admin_menu', [$this->welcome, 'registerPage'] );
126 126
     }
127 127
 }
Please login to merge, or discard this patch.
plugin/Widgets/Widget.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -12,48 +12,48 @@
 block discarded – undo
12 12
      */
13 13
     protected $widgetArgs;
14 14
 
15
-    public function __construct($idBase, $name, $values)
15
+    public function __construct( $idBase, $name, $values )
16 16
     {
17 17
         $controlOptions = $widgetOptions = [];
18
-        if (isset($values['class'])) {
18
+        if( isset($values['class']) ) {
19 19
             $widgetOptions['classname'] = $values['class'];
20 20
         }
21
-        if (isset($values['description'])) {
21
+        if( isset($values['description']) ) {
22 22
             $widgetOptions['description'] = $values['description'];
23 23
         }
24
-        if (isset($values['width'])) {
24
+        if( isset($values['width']) ) {
25 25
             $controlOptions['width'] = $values['width'];
26 26
         }
27
-        parent::__construct($idBase, $name, $widgetOptions, $controlOptions);
27
+        parent::__construct( $idBase, $name, $widgetOptions, $controlOptions );
28 28
     }
29 29
 
30 30
     /**
31 31
      * @param string $tag
32 32
      * @return void
33 33
      */
34
-    protected function renderField($tag, array $args = [])
34
+    protected function renderField( $tag, array $args = [] )
35 35
     {
36
-        $args = $this->normalizeFieldAttributes($tag, $args);
37
-        $field = glsr(Builder::class)->$tag($args['name'], $args);
38
-        echo glsr(Builder::class)->div($field, [
36
+        $args = $this->normalizeFieldAttributes( $tag, $args );
37
+        $field = glsr( Builder::class )->$tag( $args['name'], $args );
38
+        echo glsr( Builder::class )->div( $field, [
39 39
             'class' => 'glsr-field',
40
-        ]);
40
+        ] );
41 41
     }
42 42
 
43 43
     /**
44 44
      * @param string $tag
45 45
      * @return array
46 46
      */
47
-    protected function normalizeFieldAttributes($tag, array $args)
47
+    protected function normalizeFieldAttributes( $tag, array $args )
48 48
     {
49
-        if (empty($args['value'])) {
49
+        if( empty($args['value']) ) {
50 50
             $args['value'] = $this->widgetArgs[$args['name']];
51 51
         }
52
-        if (empty($this->widgetArgs['options']) && in_array($tag, ['checkbox', 'radio'])) {
53
-            $args['checked'] = in_array($args['value'], (array) $this->widgetArgs[$args['name']]);
52
+        if( empty($this->widgetArgs['options']) && in_array( $tag, ['checkbox', 'radio'] ) ) {
53
+            $args['checked'] = in_array( $args['value'], (array)$this->widgetArgs[$args['name']] );
54 54
         }
55
-        $args['id'] = $this->get_field_id($args['name']);
56
-        $args['name'] = $this->get_field_name($args['name']);
55
+        $args['id'] = $this->get_field_id( $args['name'] );
56
+        $args['name'] = $this->get_field_name( $args['name'] );
57 57
         $args['is_widget'] = true;
58 58
         return $args;
59 59
     }
Please login to merge, or discard this patch.
plugin/Modules/Html/ReviewHtml.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public $values;
19 19
 
20
-    public function __construct(Review $review, array $values = [])
20
+    public function __construct( Review $review, array $values = [] )
21 21
     {
22 22
         $this->review = $review;
23 23
         $this->values = $values;
24
-        parent::__construct($values, ArrayObject::STD_PROP_LIST | ArrayObject::ARRAY_AS_PROPS);
24
+        parent::__construct( $values, ArrayObject::STD_PROP_LIST | ArrayObject::ARRAY_AS_PROPS );
25 25
     }
26 26
 
27 27
     /**
@@ -29,25 +29,25 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function __toString()
31 31
     {
32
-        if (empty($this->values)) {
32
+        if( empty($this->values) ) {
33 33
             return;
34 34
         }
35
-        return glsr(Template::class)->build('templates/review', [
35
+        return glsr( Template::class )->build( 'templates/review', [
36 36
             'context' => $this->values,
37 37
             'review' => $this->review,
38
-        ]);
38
+        ] );
39 39
     }
40 40
 
41 41
     /**
42 42
      * @param mixed $key
43 43
      * @return mixed
44 44
      */
45
-    public function offsetGet($key)
45
+    public function offsetGet( $key )
46 46
     {
47
-        if (property_exists($this, $key)) {
47
+        if( property_exists( $this, $key ) ) {
48 48
             return $this->$key;
49 49
         }
50
-        return array_key_exists($key, $this->values)
50
+        return array_key_exists( $key, $this->values )
51 51
             ? $this->values[$key]
52 52
             : null;
53 53
     }
Please login to merge, or discard this patch.
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.