preserved.php 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. <?php return array (
  2. '6fb247dcae56796457333363ff724923' =>
  3. array (
  4. 'criteria' =>
  5. array (
  6. 'name' => 'clientconfig',
  7. ),
  8. 'object' =>
  9. array (
  10. 'name' => 'clientconfig',
  11. 'path' => '{core_path}components/clientconfig/',
  12. 'assets_path' => '{assets_path}components/clientconfig/',
  13. ),
  14. ),
  15. 'e2f34168abbf97be84eacd9bd6888c77' =>
  16. array (
  17. 'criteria' =>
  18. array (
  19. 'key' => 'clientconfig.admin_groups',
  20. ),
  21. 'object' =>
  22. array (
  23. 'key' => 'clientconfig.admin_groups',
  24. 'value' => 'Administrator',
  25. 'xtype' => 'textfield',
  26. 'namespace' => 'clientconfig',
  27. 'area' => 'Default',
  28. 'editedon' => NULL,
  29. ),
  30. ),
  31. 'bde3bcd36bd2cb8cd4033f92873ca268' =>
  32. array (
  33. 'criteria' =>
  34. array (
  35. 'key' => 'clientconfig.clear_cache',
  36. ),
  37. 'object' =>
  38. array (
  39. 'key' => 'clientconfig.clear_cache',
  40. 'value' => '1',
  41. 'xtype' => 'combo-boolean',
  42. 'namespace' => 'clientconfig',
  43. 'area' => 'Default',
  44. 'editedon' => NULL,
  45. ),
  46. ),
  47. '6a65024102b023fa07c4fcb2e74231ed' =>
  48. array (
  49. 'criteria' =>
  50. array (
  51. 'key' => 'clientconfig.vertical_tabs',
  52. ),
  53. 'object' =>
  54. array (
  55. 'key' => 'clientconfig.vertical_tabs',
  56. 'value' => '',
  57. 'xtype' => 'combo-boolean',
  58. 'namespace' => 'clientconfig',
  59. 'area' => 'Default',
  60. 'editedon' => NULL,
  61. ),
  62. ),
  63. '6fae93dd05ebbdcdb8d67199ebc8db34' =>
  64. array (
  65. 'criteria' =>
  66. array (
  67. 'key' => 'clientconfig.context_aware',
  68. ),
  69. 'object' =>
  70. array (
  71. 'key' => 'clientconfig.context_aware',
  72. 'value' => '1',
  73. 'xtype' => 'combo-boolean',
  74. 'namespace' => 'clientconfig',
  75. 'area' => 'Default',
  76. 'editedon' => '2019-02-06 08:43:20',
  77. ),
  78. ),
  79. 'f7885e8642f1d92721e88f8ce90ea32f' =>
  80. array (
  81. 'criteria' =>
  82. array (
  83. 'key' => 'clientconfig.google_fonts_api_key',
  84. ),
  85. 'object' =>
  86. array (
  87. 'key' => 'clientconfig.google_fonts_api_key',
  88. 'value' => '',
  89. 'xtype' => 'textfield',
  90. 'namespace' => 'clientconfig',
  91. 'area' => 'Default',
  92. 'editedon' => NULL,
  93. ),
  94. ),
  95. '90be2e7cd5457e4494b3803dd562d503' =>
  96. array (
  97. 'criteria' =>
  98. array (
  99. 'name' => 'ClientConfig_ConfigChange',
  100. ),
  101. 'object' =>
  102. array (
  103. 'name' => 'ClientConfig_ConfigChange',
  104. 'service' => 6,
  105. 'groupname' => 'clientconfig',
  106. ),
  107. ),
  108. 'eb5e1b92929b08d3611dbfd205a76513' =>
  109. array (
  110. 'criteria' =>
  111. array (
  112. 'name' => 'ClientConfig',
  113. ),
  114. 'object' =>
  115. array (
  116. 'id' => 16,
  117. 'source' => 0,
  118. 'property_preprocess' => 0,
  119. 'name' => 'ClientConfig',
  120. 'description' => 'Sets system settings from the Client Config CMP.',
  121. 'editor_type' => 0,
  122. 'category' => 0,
  123. 'cache_type' => 0,
  124. 'plugincode' => '/**
  125. * ClientConfig
  126. *
  127. * Copyright 2011-2014 by Mark Hamstra <hello@markhamstra.com>
  128. *
  129. * ClientConfig is free software; you can redistribute it and/or modify it under the
  130. * terms of the GNU General Public License as published by the Free Software
  131. * Foundation; either version 2 of the License, or (at your option) any later
  132. * version.
  133. *
  134. * ClientConfig is distributed in the hope that it will be useful, but WITHOUT ANY
  135. * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  136. * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  137. *
  138. * You should have received a copy of the GNU General Public License along with
  139. * ClientConfig; if not, write to the Free Software Foundation, Inc., 59 Temple
  140. * Place, Suite 330, Boston, MA 02111-1307 USA
  141. *
  142. * @package clientconfig
  143. *
  144. * @var modX $modx
  145. * @var int $id
  146. * @var string $mode
  147. * @var modResource $resource
  148. * @var modTemplate $template
  149. * @var modTemplateVar $tv
  150. * @var modChunk $chunk
  151. * @var modSnippet $snippet
  152. * @var modPlugin $plugin
  153. */
  154. $eventName = $modx->event->name;
  155. switch($eventName) {
  156. case \'OnMODXInit\':
  157. case \'OnHandleRequest\':
  158. /* Grab the class */
  159. $path = $modx->getOption(\'clientconfig.core_path\', null, $modx->getOption(\'core_path\') . \'components/clientconfig/\');
  160. $path .= \'model/clientconfig/\';
  161. $clientConfig = $modx->getService(\'clientconfig\',\'ClientConfig\', $path);
  162. /* If we got the class (gotta be careful of failed migrations), grab settings and go! */
  163. if ($clientConfig instanceof ClientConfig) {
  164. $contextKey = $modx->context instanceof modContext ? $modx->context->get(\'key\') : \'web\';
  165. $settings = $clientConfig->getSettings($contextKey);
  166. /* Make settings available as [[++tags]] */
  167. $modx->setPlaceholders($settings, \'+\');
  168. /* Make settings available for $modx->getOption() */
  169. foreach ($settings as $key => $value) {
  170. $modx->setOption($key, $value);
  171. }
  172. }
  173. break;
  174. }
  175. return;',
  176. 'locked' => 0,
  177. 'properties' => NULL,
  178. 'disabled' => 0,
  179. 'moduleguid' => '',
  180. 'static' => 0,
  181. 'static_file' => '',
  182. 'content' => '/**
  183. * ClientConfig
  184. *
  185. * Copyright 2011-2014 by Mark Hamstra <hello@markhamstra.com>
  186. *
  187. * ClientConfig is free software; you can redistribute it and/or modify it under the
  188. * terms of the GNU General Public License as published by the Free Software
  189. * Foundation; either version 2 of the License, or (at your option) any later
  190. * version.
  191. *
  192. * ClientConfig is distributed in the hope that it will be useful, but WITHOUT ANY
  193. * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  194. * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  195. *
  196. * You should have received a copy of the GNU General Public License along with
  197. * ClientConfig; if not, write to the Free Software Foundation, Inc., 59 Temple
  198. * Place, Suite 330, Boston, MA 02111-1307 USA
  199. *
  200. * @package clientconfig
  201. *
  202. * @var modX $modx
  203. * @var int $id
  204. * @var string $mode
  205. * @var modResource $resource
  206. * @var modTemplate $template
  207. * @var modTemplateVar $tv
  208. * @var modChunk $chunk
  209. * @var modSnippet $snippet
  210. * @var modPlugin $plugin
  211. */
  212. $eventName = $modx->event->name;
  213. switch($eventName) {
  214. case \'OnMODXInit\':
  215. case \'OnHandleRequest\':
  216. /* Grab the class */
  217. $path = $modx->getOption(\'clientconfig.core_path\', null, $modx->getOption(\'core_path\') . \'components/clientconfig/\');
  218. $path .= \'model/clientconfig/\';
  219. $clientConfig = $modx->getService(\'clientconfig\',\'ClientConfig\', $path);
  220. /* If we got the class (gotta be careful of failed migrations), grab settings and go! */
  221. if ($clientConfig instanceof ClientConfig) {
  222. $contextKey = $modx->context instanceof modContext ? $modx->context->get(\'key\') : \'web\';
  223. $settings = $clientConfig->getSettings($contextKey);
  224. /* Make settings available as [[++tags]] */
  225. $modx->setPlaceholders($settings, \'+\');
  226. /* Make settings available for $modx->getOption() */
  227. foreach ($settings as $key => $value) {
  228. $modx->setOption($key, $value);
  229. }
  230. }
  231. break;
  232. }
  233. return;',
  234. ),
  235. ),
  236. 'ce69f177314a52339ac18f19ab8be599' =>
  237. array (
  238. 'criteria' =>
  239. array (
  240. 'pluginid' => 16,
  241. 'event' => 'OnMODXInit',
  242. ),
  243. 'object' =>
  244. array (
  245. 'pluginid' => 16,
  246. 'event' => 'OnMODXInit',
  247. 'priority' => 0,
  248. 'propertyset' => 0,
  249. ),
  250. ),
  251. '2f1582f5e049303ec4004570321eb527' =>
  252. array (
  253. 'criteria' =>
  254. array (
  255. 'text' => 'clientconfig',
  256. ),
  257. 'object' =>
  258. array (
  259. 'text' => 'clientconfig',
  260. 'parent' => 'components',
  261. 'action' => 'home',
  262. 'description' => 'clientconfig.desc',
  263. 'icon' => '',
  264. 'menuindex' => 0,
  265. 'params' => '',
  266. 'handler' => '',
  267. 'permissions' => '',
  268. 'namespace' => 'clientconfig',
  269. ),
  270. ),
  271. '7832244677f449a9f8fcb2a69ae66df6' =>
  272. array (
  273. 'criteria' =>
  274. array (
  275. 'category' => 'ClientConfig',
  276. ),
  277. 'object' =>
  278. array (
  279. 'id' => 31,
  280. 'parent' => 0,
  281. 'category' => 'ClientConfig',
  282. 'rank' => 0,
  283. ),
  284. ),
  285. );