PluginProbe
Parse.ly / 3.14.1
Parse.ly v3.14.1
3.24.1 3.24.0 3.23.7 3.23.6 3.23.5 3.23.4 3.23.3 3.16.0 3.16.1 3.16.2 3.16.3 3.16.4 3.17.0 3.18.0 3.18.1 3.19.0 3.19.1 3.19.2 3.19.3 3.2.0 3.2.1 3.20.0 3.20.1 3.20.2 3.20.3 All 105 releases
← All changes | views/parsely-settings.php +30 -12 3.2.13.14.1 View file →
@@ -1,14 +1,11 @@
1 1 <?php
2 2 /**
3 - * Settings file
3 + * Views: Plugin settings view
4 4 *
5 - * Create the settings page for parse.ly
5 + * Shows the settings page.
6 6 *
7 - * @package Parsely\wp-parsely
8 - * @author Parse.ly
9 - * @copyright 2012 Parse.ly
10 - * @license GPL-2.0-or-later
7 + * @package Parsely
11 8 */
12 9
13 10 declare(strict_types=1);
14 11
@@ -13,15 +10,21 @@
13 10 declare(strict_types=1);
14 11
15 12 namespace Parsely;
16 13
14 +use Parsely\UI\Settings_Page;
15 +
17 16 /* translators: %s: Plugin version */
18 17 $parsely_version_string = sprintf( __( 'Version %s', 'wp-parsely' ), Parsely::VERSION );
18 +
19 +/**
20 + * Variable.
21 + *
22 + * @var Settings_Page
23 + */
24 +$wp_parsely_settings = $GLOBALS['parsely_settings_page'];
19 25 ?>
20 -<div class="wrap">
21 - <h1 class="wp-heading-inline"><?php echo esc_html( get_admin_page_title() ); ?></h1>
22 - <span id="wp-parsely_version"><?php echo esc_html( $parsely_version_string ); ?></span>
23 - <p><em><?php esc_html_e( 'More settings can be enabled via Screen Options (button on the top of the page).', 'wp-parsely' ); ?></em></p>
26 +
24 27 <?php
25 28 if ( is_multisite() && is_main_site() ) {
26 29 ?>
27 30 <div class="notice notice-info">
@@ -29,12 +32,27 @@
29 32 </div>
30 33 <?php
31 34 }
32 35 ?>
33 - <form name="parsely" method="post" action="options.php" novalidate>
36 +
37 +<div class="wrap">
38 + <h1 class="wp-heading-inline"><?php echo esc_html_e( 'Parse.ly Settings', 'wp-parsely' ); ?></h1>
39 + <span id="wp-parsely_version"><?php echo esc_html( $parsely_version_string ); ?></span>
40 +
41 + <?php $wp_parsely_settings->show_setting_tabs(); ?>
42 +
43 + <form name="parsely" method="post" action='options.php' novalidate hidden>
34 44 <?php
35 45 settings_fields( Parsely::OPTIONS_KEY );
36 - do_settings_sections( Parsely::OPTIONS_KEY );
46 + $wp_parsely_settings->show_setting_tabs_content();
47 +
48 + // phpcs:ignore WordPress.Security.NonceVerification.Recommended
49 + if ( isset( $_GET['e2e_parsely_skip_api_validate'] ) && 'y' === $_GET['e2e_parsely_skip_api_validate'] ) {
50 + ?>
51 + <input type="hidden" name="e2e_parsely_skip_api_validate" value="y" />
52 + <?php
53 + }
54 +
37 55 submit_button();
38 56 ?>
39 57 </form>
40 58 </div>