@@ -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,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,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,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,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; ?> |
@@ -15,13 +15,13 @@ discard block |
||
| 15 | 15 | * Text Domain: site-reviews |
| 16 | 16 | * Domain Path: languages |
| 17 | 17 | */ |
| 18 | -defined('WPINC') || die; |
|
| 18 | +defined( 'WPINC' ) || die; |
|
| 19 | 19 | |
| 20 | -if (!class_exists('GL_Plugin_Check_v3')) { |
|
| 20 | +if( !class_exists( 'GL_Plugin_Check_v3' ) ) { |
|
| 21 | 21 | require_once __DIR__.'/activate.php'; |
| 22 | 22 | } |
| 23 | -$check = new GL_Plugin_Check_v3(__FILE__); |
|
| 24 | -if (!$check->canProceed()) { |
|
| 23 | +$check = new GL_Plugin_Check_v3( __FILE__ ); |
|
| 24 | +if( !$check->canProceed() ) { |
|
| 25 | 25 | return; |
| 26 | 26 | } |
| 27 | 27 | require_once __DIR__.'/autoload.php'; |
@@ -30,8 +30,8 @@ discard block |
||
| 30 | 30 | require_once __DIR__.'/helpers.php'; |
| 31 | 31 | |
| 32 | 32 | $app = new GeminiLabs\SiteReviews\Application(); |
| 33 | -$app->make('Provider')->register($app); |
|
| 34 | -register_activation_hook(__FILE__, array($app, 'activate')); |
|
| 35 | -register_deactivation_hook(__FILE__, array($app, 'deactivate')); |
|
| 36 | -register_shutdown_function(array($app, 'catchFatalError')); |
|
| 33 | +$app->make( 'Provider' )->register( $app ); |
|
| 34 | +register_activation_hook( __FILE__, array( $app, 'activate' ) ); |
|
| 35 | +register_deactivation_hook( __FILE__, array( $app, 'deactivate' ) ); |
|
| 36 | +register_shutdown_function( array( $app, 'catchFatalError' ) ); |
|
| 37 | 37 | $app->init(); |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php defined('WPINC') || die; ?> |
|
| 1 | +<?php defined( 'WPINC' ) || die; ?> |
|
| 2 | 2 | |
| 3 | 3 | <div class="glsr-form-wrap"> |
| 4 | 4 | <form class="{{ class }}" id="{{ id }}" method="post" enctype="multipart/form-data"> |
@@ -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 }}"> |