PluginProbe
Customify / 1.2.4
Customify v1.2.4
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 / views / admin.php

admin.php in Customify 1.2.4, at views/admin.php

63 lines 1.7 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 = include pixcustomify::pluginpath() . 'plugin-config' . EXT;
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 _e( 'PixCustomify', 'pixcustomify_txtd' ); ?></h2>
27
28 <?php if ( $processor->ok() ): ?>
29
30 <?php if ( ! empty( $errors ) ): ?>
31 <br/>
32 <p class="update-nag">
33 <strong><?php _e( 'Unable to save settings.', 'pixcustomify_txtd' ); ?></strong>
34 <?php _e( 'Please check the fields for errors and typos.', 'pixcustomify_txtd' ); ?>
35 </p>
36 <?php endif;
37
38 if ( $processor->performed_update() ): ?>
39 <br/>
40 <p class="update-nag">
41 <?php _e( 'Settings have been updated.', 'pixcustomify_txtd' ); ?>
42 </p>
43 <?php endif;
44 echo $f = pixcustomify::form( $config, $processor );
45 echo $f->field( 'hiddens' )->render();
46 echo $f->field( 'general' )->render();
47 echo $f->field( 'output' )->render();
48 echo $f->field( 'typography' )->render();
49 // echo $f->field( 'css_editor' )->render(); ?>
50 <button type="submit" class="button button-primary">
51 <?php _e( 'Save Changes', 'pixcustomify_txtd' ); ?>
52 </button>
53
54 <?php echo $f->endform();
55
56 elseif ( $status['state'] == 'error' ): ?>
57
58 <h3>Critical Error</h3>
59
60 <p><?php echo $status['message'] ?></p>
61
62 <?php endif; ?>
63 </div>