PluginProbe
Customify / 2.5.9
Customify v2.5.9
2.10.9 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.7.1 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.6.0 1.6.0.1 1.6.5 1.7.0 1.7.1 All 77 releases
customify / includes / admin-settings / views / admin.php

admin.php in Customify 2.5.9, at includes/admin-settings/views/admin.php

66 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Represents the view for the administration dashboard.
4 *
5 * This includes the header, options, and other information that should
6 * provide the user interface to the end user.
7 *
8 * @package customify
9 * @author Pixelgrade <contact@pixelgrade.com>
10 * @license GPL-2.0+
11 * @link http://pixelgrade.com
12 * @copyright 2013 Pixel Grade Media
13 */
14
15 $config = Customify_Settings::get_plugin_config();
16
17 // invoke processor
18 $processor = pixcustomify::processor( $config );
19 $status = $processor->status();
20 $errors = $processor->errors(); ?>
21
22 <div class="wrap" id="pixcustomify_form">
23
24 <div id="icon-options-general" class="icon32"><br></div>
25
26 <h2><?php esc_html_e( 'Customify', 'customify' ); ?></h2>
27
28 <?php if ( $processor->ok() ): ?>
29
30 <?php if ( ! empty( $errors ) ): ?>
31 <br/>
32 <p class="update-nag">
33 <strong><?php esc_html_e( 'Unable to save settings.', 'customify' ); ?></strong>
34 <?php esc_html_e( 'Please check the fields for errors and typos.', 'customify' ); ?>
35 </p>
36 <?php endif;
37
38 if ( $processor->performed_update() ): ?>
39 <br/>
40 <p class="update-nag">
41 <?php esc_html_e( 'Settings have been updated.', 'customify' ); ?>
42 </p>
43 <?php endif;
44 $f = pixcustomify::form( $config, $processor );
45 echo $f->startform();
46
47 echo $f->field( 'hiddens' )->render();
48 echo $f->field( 'general' )->render();
49 echo $f->field( 'output' )->render();
50 echo $f->field( 'typography' )->render();
51 echo $f->field( 'tools' )->render(); ?>
52 <button type="submit" class="button button-primary">
53 <?php esc_html_e( 'Save Changes', 'customify' ); ?>
54 </button>
55
56 <?php echo $f->endform();
57
58 elseif ( $status['state'] == 'error' ): ?>
59
60 <h3><?php esc_html_e( 'Critical Error', 'customify' ); ?></h3>
61
62 <p><?php echo $status['message'] ?></p>
63
64 <?php endif; ?>
65 </div>
66