@@ -1,8 +1,8 @@ |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | 3 | <form method="post"> |
4 | 4 | <textarea class="large-text code glsr-code glsr-code-large" name="{{ id }}[system-info]" rows="20" onclick="this.select()" readonly>{{ system }}</textarea> |
5 | 5 | <input type="hidden" name="{{ id }}[_action]" value="download-system-info"> |
6 | - <?php wp_nonce_field('download-system-info'); ?> |
|
7 | - <?php submit_button(__('Download System Info', 'site-reviews'), 'primary', '', false); ?> |
|
6 | + <?php wp_nonce_field( 'download-system-info' ); ?> |
|
7 | + <?php submit_button( __( 'Download System Info', 'site-reviews' ), 'primary', '', false ); ?> |
|
8 | 8 | </form> |
@@ -1,25 +1,25 @@ discard block |
||
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 |
||
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> |
@@ -9,24 +9,24 @@ |
||
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> |
@@ -1,32 +1,32 @@ |
||
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 | <div class="notice notice-warning is-dismissible"> |
6 | - <p><?= __('Now that Site Reviews v3.0 (a major overhaul of the plugin) has been released, the only thing delaying the add-ons is the distribution platform which is currently being built. Expect to see them in the coming months!', 'site-reviews'); ?></p> |
|
7 | - <p><?= __('Thank you for your patience.', 'site-reviews'); ?></p> |
|
6 | + <p><?= __( 'Now that Site Reviews v3.0 (a major overhaul of the plugin) has been released, the only thing delaying the add-ons is the distribution platform which is currently being built. Expect to see them in the coming months!', 'site-reviews' ); ?></p> |
|
7 | + <p><?= __( 'Thank you for your patience.', 'site-reviews' ); ?></p> |
|
8 | 8 | </div> |
9 | - <p><?= __('Add-ons extend the functionality of Site Reviews.', 'site-reviews'); ?></p> |
|
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', [ |
|
12 | + $template->render( 'partials/addons/addon', [ |
|
13 | 13 | 'context' => [ |
14 | - 'description' => __('Allow your visitors to submit multiple images with their reviews.', 'site-reviews'), |
|
14 | + 'description' => __( 'Allow your visitors to submit multiple images with their reviews.', 'site-reviews' ), |
|
15 | 15 | 'link' => 'https://niftyplugins.com/addons/site-reviews-images/', |
16 | 16 | 'slug' => 'images', |
17 | 17 | 'title' => 'Images', |
18 | 18 | ], |
19 | 19 | 'plugin' => 'site-reviews-images/site-reviews-images.php', |
20 | - ]); |
|
21 | - $template->render('partials/addons/addon', [ |
|
20 | + ] ); |
|
21 | + $template->render( 'partials/addons/addon', [ |
|
22 | 22 | 'context' => [ |
23 | - 'description' => __('Sync your Tripadvisor reviews to your website and manage them with Site Reviews.', 'site-reviews'), |
|
23 | + 'description' => __( 'Sync your Tripadvisor reviews to your website and manage them with Site Reviews.', 'site-reviews' ), |
|
24 | 24 | 'link' => 'https://niftyplugins.com/addons/site-reviews-tripadvisor/', |
25 | 25 | 'slug' => 'tripadvisor', |
26 | 26 | 'title' => 'Tripadvisor Reviews', |
27 | 27 | ], |
28 | 28 | 'plugin' => 'site-reviews-tripadvisor/site-reviews-tripadvisor.php', |
29 | - ]); |
|
29 | + ] ); |
|
30 | 30 | ?> |
31 | 31 | </div> |
32 | 32 | </div> |
@@ -1,4 +1,4 @@ |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | 3 | <table class="form-table"> |
4 | 4 | <tbody> |
@@ -1,21 +1,21 @@ |
||
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 | 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> |
@@ -1,20 +1,20 @@ discard block |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | 3 | <div class="glsr-strings-form"> |
4 | 4 | <div class="glsr-search-box" id="glsr-search-translations"> |
5 | - <span class="screen-reader-text"><?= __('Search for translatable text', 'site-reviews'); ?></span> |
|
5 | + <span class="screen-reader-text"><?= __( 'Search for translatable text', 'site-reviews' ); ?></span> |
|
6 | 6 | <div class="glsr-spinner"> |
7 | 7 | <span class="spinner"></span> |
8 | 8 | </div> |
9 | - <input type="search" class="glsr-search-input" autocomplete="off" placeholder="<?= __('Search here for text to translate...', 'site-reviews'); ?>"> |
|
10 | - <?php wp_nonce_field('search-translations', '_search_nonce', false); ?> |
|
9 | + <input type="search" class="glsr-search-input" autocomplete="off" placeholder="<?= __( 'Search here for text to translate...', 'site-reviews' ); ?>"> |
|
10 | + <?php wp_nonce_field( 'search-translations', '_search_nonce', false ); ?> |
|
11 | 11 | <div class="glsr-search-results" data-prefix="{{ database_key }}"></div> |
12 | 12 | </div> |
13 | 13 | <table class="glsr-strings-table wp-list-table widefat {{ class }}"> |
14 | 14 | <thead> |
15 | 15 | <tr> |
16 | - <th scope="col" class="manage-column column-primary"><?= __('Original Text', 'site-reviews'); ?></th> |
|
17 | - <th scope="col" class="manage-column"><?= __('Custom Translation', 'site-reviews'); ?></th> |
|
16 | + <th scope="col" class="manage-column column-primary"><?= __( 'Original Text', 'site-reviews' ); ?></th> |
|
17 | + <th scope="col" class="manage-column"><?= __( 'Custom Translation', 'site-reviews' ); ?></th> |
|
18 | 18 | </tr> |
19 | 19 | </thead> |
20 | 20 | <tbody>{{ translations }}</tbody> |
@@ -23,8 +23,8 @@ discard block |
||
23 | 23 | </div> |
24 | 24 | |
25 | 25 | <script type="text/html" id="tmpl-glsr-string-plural"> |
26 | -<?php include glsr()->path('views/partials/translations/plural.php'); ?> |
|
26 | +<?php include glsr()->path( 'views/partials/translations/plural.php' ); ?> |
|
27 | 27 | </script> |
28 | 28 | <script type="text/html" id="tmpl-glsr-string-single"> |
29 | -<?php include glsr()->path('views/partials/translations/single.php'); ?> |
|
29 | +<?php include glsr()->path( 'views/partials/translations/single.php' ); ?> |
|
30 | 30 | </script> |
@@ -1,7 +1,7 @@ |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | -<p><?= __('The JSON-LD schema appears in Google\'s search results and shows the star rating and other information about your reviews. If the schema has been enabled in your shortcodes, you can use Google\'s <a href="https://search.google.com/structured-data/testing-tool">Structured Data Testing Tool</a> to test your pages for valid schema data.', 'site-reviews'); ?></p> |
|
4 | -<p><?= __('You may override any of these options on a per-post/page basis by using its Custom Field name and adding a custom value using the <a href="https://codex.wordpress.org/Using_Custom_Fields#Usage">Custom Fields</a> metabox.', 'site-reviews'); ?></p> |
|
3 | +<p><?= __( 'The JSON-LD schema appears in Google\'s search results and shows the star rating and other information about your reviews. If the schema has been enabled in your shortcodes, you can use Google\'s <a href="https://search.google.com/structured-data/testing-tool">Structured Data Testing Tool</a> to test your pages for valid schema data.', 'site-reviews' ); ?></p> |
|
4 | +<p><?= __( 'You may override any of these options on a per-post/page basis by using its Custom Field name and adding a custom value using the <a href="https://codex.wordpress.org/Using_Custom_Fields#Usage">Custom Fields</a> metabox.', 'site-reviews' ); ?></p> |
|
5 | 5 | <table class="form-table"> |
6 | 6 | <tbody> |
7 | 7 | {{ rows }} |
@@ -1,7 +1,7 @@ |
||
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; ?> |
@@ -1,4 +1,4 @@ |
||
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 }}"> |