| 1 |
<?php |
| 2 |
|
| 3 |
return array( |
| 4 |
|
| 5 |
//////////////////////////////////////////////// |
| 6 |
// Scripts and Styles Dependencies Definition // |
| 7 |
//////////////////////////////////////////////// |
| 8 |
|
| 9 |
/** |
| 10 |
* jQuery UI Theme |
| 11 |
*/ |
| 12 |
'jqui_theme' => ($jqui_theme = 'smoothness'), |
| 13 |
|
| 14 |
/** |
| 15 |
* Scripts. |
| 16 |
*/ |
| 17 |
'scripts' => array( |
| 18 |
'always' => array('jquery', 'scrollspy', 'tipsy', 'jquery-typing'), |
| 19 |
'paths' => array( |
| 20 |
'jquery' => array( |
| 21 |
'path' => VP_PUBLIC_URL . '/js/vendor/jquery-1.8.3.min.js', |
| 22 |
'deps' => array(), |
| 23 |
'ver' => '1.8.3', |
| 24 |
'override' => false, |
| 25 |
), |
| 26 |
'bootstrap-colorpicker' => array( |
| 27 |
'path' => VP_PUBLIC_URL . '/js/vendor/bootstrap-colorpicker.js', |
| 28 |
'deps' => array('jquery'), |
| 29 |
'ver' => false, |
| 30 |
), |
| 31 |
'tipsy' => array( |
| 32 |
'path' => VP_PUBLIC_URL . '/js/vendor/jquery.tipsy.js', |
| 33 |
'deps' => array('jquery'), |
| 34 |
'ver' => '1.0.0a' |
| 35 |
), |
| 36 |
'scrollspy' => array( |
| 37 |
'path' => VP_PUBLIC_URL . '/js/vendor/jquery-scrollspy.js', |
| 38 |
'deps' => array('jquery'), |
| 39 |
'ver' => false, |
| 40 |
), |
| 41 |
'jquery-ui-core' => array( |
| 42 |
'path' => VP_PUBLIC_URL . '/js/vendor/jquery.ui.core.js', |
| 43 |
'deps' => array(), |
| 44 |
'ver' => '1.9.2', |
| 45 |
), |
| 46 |
'jquery-ui-widget' => array( |
| 47 |
'path' => VP_PUBLIC_URL . '/js/vendor/jquery.ui.widget.js', |
| 48 |
'deps' => array(), |
| 49 |
'ver' => '1.9.2', |
| 50 |
), |
| 51 |
'jquery-ui-mouse' => array( |
| 52 |
'path' => VP_PUBLIC_URL . '/js/vendor/jquery.ui.mouse.js', |
| 53 |
'deps' => array('jquery-ui-widget'), |
| 54 |
'ver' => '1.9.2', |
| 55 |
), |
| 56 |
'jquery-ui-slider' => array( |
| 57 |
'path' => VP_PUBLIC_URL . '/js/vendor/jquery.ui.slider.js', |
| 58 |
'deps' => array('jquery', 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-mouse'), |
| 59 |
'ver' => '1.9.2', |
| 60 |
), |
| 61 |
'jquery-ui-datepicker' => array( |
| 62 |
'path' => VP_PUBLIC_URL . '/js/vendor/jquery.ui.datepicker.js', |
| 63 |
'deps' => array('jquery', 'jquery-ui-core', 'jquery-ui-widget'), |
| 64 |
'ver' => '1.9.2', |
| 65 |
), |
| 66 |
'jquery-typing' => array( |
| 67 |
'path' => VP_PUBLIC_URL . '/js/vendor/jquery.typing-0.2.0.min.js', |
| 68 |
'deps' => array('jquery'), |
| 69 |
'ver' => '0.2', |
| 70 |
), |
| 71 |
'ace-editor' => array( |
| 72 |
'path' => VP_PUBLIC_URL . '/js/vendor/ace/ace.js', |
| 73 |
'deps' => array(), |
| 74 |
'ver' => '1.0.0', |
| 75 |
), |
| 76 |
'select2' => array( |
| 77 |
'path' => VP_PUBLIC_URL . '/js/vendor/select2.min.js', |
| 78 |
'deps' => array('jquery'), |
| 79 |
'ver' => '3.3.2', |
| 80 |
'override' => true, |
| 81 |
), |
| 82 |
'select2-sortable' => array( |
| 83 |
'path' => VP_PUBLIC_URL . '/js/vendor/select2.sortable.js', |
| 84 |
'deps' => array('jquery', 'jquery-ui-sortable', 'select2'), |
| 85 |
'ver' => '1.0.0', |
| 86 |
'override' => true, |
| 87 |
), |
| 88 |
'reveal' => array( |
| 89 |
'path' => VP_PUBLIC_URL . '/js/vendor/jquery.reveal.js', |
| 90 |
'deps' => array('jquery'), |
| 91 |
'ver' => '1.0.0', |
| 92 |
), |
| 93 |
'kia-metabox' => array( |
| 94 |
'path' => VP_PUBLIC_URL . '/js/kia-metabox.js', |
| 95 |
'deps' => array('jquery', 'editor'), |
| 96 |
'ver' => '1.0', |
| 97 |
'override' => true, |
| 98 |
), |
| 99 |
'shared' => array( |
| 100 |
'path' => VP_PUBLIC_URL . '/js/shared.min.js', |
| 101 |
'deps' => array(), |
| 102 |
'ver' => '1.1', |
| 103 |
'localize' => array( |
| 104 |
'name' => 'vp_wp', |
| 105 |
'keys' => array( |
| 106 |
'use_upload', 'use_new_media_upload', 'public_url', 'wp_include_url', 'val_msg', 'ctrl_msg', |
| 107 |
'alphabet_validatable', 'alphanumeric_validatable', 'numeric_validatable', 'email_validatable', |
| 108 |
'url_validatable', 'maxlength_validatable', 'minlength_validatable' |
| 109 |
) |
| 110 |
) |
| 111 |
), |
| 112 |
'vp-option' => array( |
| 113 |
'path' => VP_PUBLIC_URL . '/js/option.min.js', |
| 114 |
'deps' => array(), |
| 115 |
'ver' => '2.0', |
| 116 |
'localize' => array( |
| 117 |
'name' => 'vp_opt', |
| 118 |
'keys' => array( |
| 119 |
'util_msg', 'nonce' |
| 120 |
) |
| 121 |
) |
| 122 |
), |
| 123 |
'vp-metabox' => array( |
| 124 |
'path' => VP_PUBLIC_URL . '/js/metabox.min.js', |
| 125 |
'deps' => array(), |
| 126 |
'ver' => '2.0', |
| 127 |
'localize' => array( |
| 128 |
'name' => 'vp_mb', |
| 129 |
'keys' => array( |
| 130 |
'use_upload', 'use_new_media_upload' |
| 131 |
) |
| 132 |
) |
| 133 |
), |
| 134 |
'vp-shortcode-qt' => array( |
| 135 |
'path' => VP_PUBLIC_URL . '/js/shortcode-quicktags.js', |
| 136 |
'deps' => array('reveal'), |
| 137 |
'ver' => '1.0.0', |
| 138 |
), |
| 139 |
'vp-shortcode' => array( |
| 140 |
'path' => VP_PUBLIC_URL . '/js/shortcode-menu.js', |
| 141 |
'deps' => array('reveal', 'vp-shortcode-qt'), |
| 142 |
'ver' => '2.0', |
| 143 |
'localize' => array( |
| 144 |
'name' => 'vp_ext_sc', |
| 145 |
'keys' => array( |
| 146 |
'use_upload', 'use_new_media_upload', 'public_url' |
| 147 |
) |
| 148 |
) |
| 149 |
), |
| 150 |
), |
| 151 |
), |
| 152 |
|
| 153 |
/** |
| 154 |
* Styles. |
| 155 |
*/ |
| 156 |
'styles' => array( |
| 157 |
'always' => array('tipsy', 'font-awesome'), |
| 158 |
'paths' => array( |
| 159 |
'bootstrap-colorpicker' => array( |
| 160 |
'path' => VP_PUBLIC_URL . '/css/vendor/bootstrap-colorpicker.css', |
| 161 |
'deps' => array(), |
| 162 |
), |
| 163 |
'tipsy' => array( |
| 164 |
'path' => VP_PUBLIC_URL . '/css/vendor/tipsy.css', |
| 165 |
'deps' => array(), |
| 166 |
), |
| 167 |
'jqui' => array( |
| 168 |
'path' => VP_PUBLIC_URL . '/css/vendor/jqueryui/themes/' . $jqui_theme . '/jquery-ui-1.9.2.custom.min.css', |
| 169 |
'deps' => array(), |
| 170 |
), |
| 171 |
'font-awesome' => array( |
| 172 |
'path' => VP_PUBLIC_URL . '/css/vendor/font-awesome.min.css', |
| 173 |
'deps' => array(), |
| 174 |
), |
| 175 |
'select2' => array( |
| 176 |
'path' => VP_PUBLIC_URL . '/css/vendor/select2.css', |
| 177 |
'deps' => array(), |
| 178 |
), |
| 179 |
'reveal' => array( |
| 180 |
'path' => VP_PUBLIC_URL . '/css/vendor/reveal.css', |
| 181 |
'deps' => array(), |
| 182 |
), |
| 183 |
'vp-option' => array( |
| 184 |
'path' => VP_PUBLIC_URL . '/css/option.min.css', |
| 185 |
'deps' => array(), |
| 186 |
), |
| 187 |
'vp-metabox' => array( |
| 188 |
'path' => VP_PUBLIC_URL . '/css/metabox.min.css', |
| 189 |
'deps' => array(), |
| 190 |
), |
| 191 |
'vp-shortcode' => array( |
| 192 |
'path' => VP_PUBLIC_URL . '/css/shortcode.min.css', |
| 193 |
'deps' => array('reveal'), |
| 194 |
), |
| 195 |
), |
| 196 |
), |
| 197 |
|
| 198 |
/** |
| 199 |
* Rules for dynamic loading of dependencies, load only what needed. |
| 200 |
*/ |
| 201 |
'rules' => array( |
| 202 |
'color' => array( 'js' => array('bootstrap-colorpicker'), 'css' => array('bootstrap-colorpicker') ), |
| 203 |
'select' => array( 'js' => array('select2'), 'css' => array('select2') ), |
| 204 |
'multiselect' => array( 'js' => array('select2'), 'css' => array('select2') ), |
| 205 |
'slider' => array( 'js' => array('jquery-ui-slider'), 'css' => array('jqui') ), |
| 206 |
'date' => array( 'js' => array('jquery-ui-datepicker'), 'css' => array('jqui') ), |
| 207 |
'codeeditor' => array( 'js' => array('ace-editor'), 'css' => array() ), |
| 208 |
'sorter' => array( 'js' => array('select2-sortable'), 'css' => array('select2', 'jqui') ), |
| 209 |
'fontawesome' => array( 'js' => array('select2'), 'css' => array('select2') ), |
| 210 |
'wpeditor' => array( 'js' => array('kia-metabox'), 'css' => array() ), |
| 211 |
) |
| 212 |
|
| 213 |
); |
| 214 |
|
| 215 |
/** |
| 216 |
* EOF |
| 217 |
*/ |