PluginProbe
Customify / 1.6.0
Customify v1.6.0
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 / plugin-config.php

plugin-config.php in Customify 1.6.0, at plugin-config.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 defined( 'ABSPATH' ) or die;
2
3 $basepath = dirname( __FILE__ ) . DIRECTORY_SEPARATOR;
4
5 $debug = false;
6 if ( isset( $_GET['debug'] ) && $_GET['debug'] == 'true' ) {
7 $debug = true;
8 }
9
10 $debug = true;
11
12 $customify_config = require $basepath . 'customify_config.php';
13
14 // Load our mock customizer section
15 // @todo Remove this at some point.
16 require_once $basepath . 'mock_style_manager_config.php';
17
18 return array(
19 'plugin-name' => 'pixcustomify',
20 'settings-key' => 'pixcustomify_settings',
21 'textdomain' => 'customify',
22 'template-paths' => array(
23 $basepath . 'core/views/form-partials/',
24 $basepath . 'views/form-partials/',
25 ),
26 'fields' => array(
27 'hiddens' => include 'settings/hiddens' . EXT,
28 'general' => include 'settings/general' . EXT,
29 'output' => include 'settings/output' . EXT,
30 'typography' => include 'settings/typography' . EXT,
31 'css_editor' => include 'settings/css_editor' . EXT,
32 'tools' => include 'settings/tools' . EXT,
33 ),
34 'processor' => array(
35 // callback signature: (array $input, customifyProcessor $processor)
36 'preupdate' => array(
37 // callbacks to run before update process
38 // cleanup and validation has been performed on data
39 ),
40 // 'postupdate' => array(
41 // 'save_settings'
42 // ),
43 ),
44 'cleanup' => array(
45 'switch' => array( 'switch_not_available' ),
46 ),
47 'checks' => array(
48 'counter' => array( 'is_numeric', 'not_empty' ),
49 ),
50 'errors' => array(
51 'not_empty' => __( 'Invalid Value.', 'customify' ),
52 ),
53 // 'callbacks' => array(
54 // 'save_settings' => 'save_customizer_plugin_settings'
55 // ),
56 // shows exception traces on error
57 'debug' => $debug,
58
59 /**
60 * DEFAULTS - The default plugin options
61 */
62 'default_options' => array(
63
64 )
65
66 ); # config