fb887d874c09a6c5caa8b1717fc7467c.yaml.php 66 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/mnt/data/Sites/hehe.net/system/blueprints/config/system.yaml',
  5. 'modified' => 1533014916,
  6. 'data' => [
  7. 'title' => 'PLUGIN_ADMIN.SYSTEM',
  8. 'form' => [
  9. 'validation' => 'loose',
  10. 'fields' => [
  11. 'content' => [
  12. 'type' => 'section',
  13. 'title' => 'PLUGIN_ADMIN.CONTENT',
  14. 'underline' => true,
  15. 'fields' => [
  16. 'home.alias' => [
  17. 'type' => 'pages',
  18. 'size' => 'large',
  19. 'classes' => 'fancy',
  20. 'label' => 'PLUGIN_ADMIN.HOME_PAGE',
  21. 'show_all' => false,
  22. 'show_modular' => false,
  23. 'show_root' => false,
  24. 'show_slug' => true,
  25. 'help' => 'PLUGIN_ADMIN.HOME_PAGE_HELP'
  26. ],
  27. 'home.hide_in_urls' => [
  28. 'type' => 'toggle',
  29. 'label' => 'PLUGIN_ADMIN.HIDE_HOME_IN_URLS',
  30. 'help' => 'PLUGIN_ADMIN.HIDE_HOME_IN_URLS_HELP',
  31. 'highlight' => 0,
  32. 'options' => [
  33. 1 => 'PLUGIN_ADMIN.YES',
  34. 0 => 'PLUGIN_ADMIN.NO'
  35. ],
  36. 'validate' => [
  37. 'type' => 'bool'
  38. ]
  39. ],
  40. 'pages.theme' => [
  41. 'type' => 'themeselect',
  42. 'classes' => 'fancy',
  43. 'selectize' => true,
  44. 'size' => 'medium',
  45. 'label' => 'PLUGIN_ADMIN.DEFAULT_THEME',
  46. 'help' => 'PLUGIN_ADMIN.DEFAULT_THEME_HELP'
  47. ],
  48. 'pages.process' => [
  49. 'type' => 'checkboxes',
  50. 'label' => 'PLUGIN_ADMIN.PROCESS',
  51. 'help' => 'PLUGIN_ADMIN.PROCESS_HELP',
  52. 'default' => [
  53. 0 => [
  54. 'markdown' => true
  55. ],
  56. 1 => [
  57. 'twig' => true
  58. ]
  59. ],
  60. 'options' => [
  61. 'markdown' => 'Markdown',
  62. 'twig' => 'Twig'
  63. ],
  64. 'use' => 'keys'
  65. ],
  66. 'timezone' => [
  67. 'type' => 'select',
  68. 'label' => 'PLUGIN_ADMIN.TIMEZONE',
  69. 'size' => 'medium',
  70. 'classes' => 'fancy',
  71. 'help' => 'PLUGIN_ADMIN.TIMEZONE_HELP',
  72. 'data-options@' => '\\Grav\\Common\\Utils::timezones',
  73. 'default' => '',
  74. 'options' => [
  75. '' => 'Default (Server Timezone)'
  76. ]
  77. ],
  78. 'pages.dateformat.default' => [
  79. 'type' => 'select',
  80. 'size' => 'medium',
  81. 'selectize' => [
  82. 'create' => true
  83. ],
  84. 'label' => 'PLUGIN_ADMIN.DEFAULT_DATE_FORMAT',
  85. 'help' => 'PLUGIN_ADMIN.DEFAULT_DATE_FORMAT_HELP',
  86. 'placeholder' => 'PLUGIN_ADMIN.DEFAULT_DATE_FORMAT_PLACEHOLDER',
  87. 'data-options@' => '\\Grav\\Common\\Utils::dateFormats',
  88. 'validate' => [
  89. 'type' => 'string'
  90. ]
  91. ],
  92. 'pages.dateformat.short' => [
  93. 'type' => 'dateformat',
  94. 'size' => 'medium',
  95. 'classes' => 'fancy',
  96. 'label' => 'PLUGIN_ADMIN.SHORT_DATE_FORMAT',
  97. 'help' => 'PLUGIN_ADMIN.SHORT_DATE_FORMAT_HELP',
  98. 'default' => 'jS M Y',
  99. 'options' => [
  100. 'F jS \\a\\t g:ia' => 'Date1',
  101. 'l jS \\of F g:i A' => 'Date2',
  102. 'D, d M Y G:i:s' => 'Date3',
  103. 'd-m-y G:i' => 'Date4',
  104. 'jS M Y' => 'Date5'
  105. ]
  106. ],
  107. 'pages.dateformat.long' => [
  108. 'type' => 'dateformat',
  109. 'size' => 'medium',
  110. 'classes' => 'fancy',
  111. 'label' => 'PLUGIN_ADMIN.LONG_DATE_FORMAT',
  112. 'help' => 'PLUGIN_ADMIN.LONG_DATE_FORMAT_HELP',
  113. 'options' => [
  114. 'F jS \\a\\t g:ia' => 'Date1',
  115. 'l jS \\of F g:i A' => 'Date2',
  116. 'D, d M Y G:i:s' => 'Date3',
  117. 'd-m-y G:i' => 'Date4',
  118. 'jS M Y' => 'Date5'
  119. ]
  120. ],
  121. 'pages.order.by' => [
  122. 'type' => 'select',
  123. 'size' => 'large',
  124. 'classes' => 'fancy',
  125. 'label' => 'PLUGIN_ADMIN.DEFAULT_ORDERING',
  126. 'help' => 'PLUGIN_ADMIN.DEFAULT_ORDERING_HELP',
  127. 'options' => [
  128. 'default' => 'PLUGIN_ADMIN.DEFAULT_ORDERING_DEFAULT',
  129. 'folder' => 'PLUGIN_ADMIN.DEFAULT_ORDERING_FOLDER',
  130. 'title' => 'PLUGIN_ADMIN.DEFAULT_ORDERING_TITLE',
  131. 'date' => 'PLUGIN_ADMIN.DEFAULT_ORDERING_DATE'
  132. ]
  133. ],
  134. 'pages.order.dir' => [
  135. 'type' => 'toggle',
  136. 'label' => 'PLUGIN_ADMIN.DEFAULT_ORDER_DIRECTION',
  137. 'highlight' => 'asc',
  138. 'default' => 'desc',
  139. 'help' => 'PLUGIN_ADMIN.DEFAULT_ORDER_DIRECTION_HELP',
  140. 'options' => [
  141. 'asc' => 'PLUGIN_ADMIN.ASCENDING',
  142. 'desc' => 'PLUGIN_ADMIN.DESCENDING'
  143. ]
  144. ],
  145. 'pages.list.count' => [
  146. 'type' => 'text',
  147. 'size' => 'x-small',
  148. 'append' => 'PLUGIN_ADMIN.PAGES',
  149. 'label' => 'PLUGIN_ADMIN.DEFAULT_PAGE_COUNT',
  150. 'help' => 'PLUGIN_ADMIN.DEFAULT_PAGE_COUNT_HELP',
  151. 'validate' => [
  152. 'type' => 'number',
  153. 'min' => 1
  154. ]
  155. ],
  156. 'pages.publish_dates' => [
  157. 'type' => 'toggle',
  158. 'label' => 'PLUGIN_ADMIN.DATE_BASED_PUBLISHING',
  159. 'help' => 'PLUGIN_ADMIN.DATE_BASED_PUBLISHING_HELP',
  160. 'highlight' => 1,
  161. 'options' => [
  162. 1 => 'PLUGIN_ADMIN.YES',
  163. 0 => 'PLUGIN_ADMIN.NO'
  164. ],
  165. 'validate' => [
  166. 'type' => 'bool'
  167. ]
  168. ],
  169. 'pages.events' => [
  170. 'type' => 'checkboxes',
  171. 'label' => 'PLUGIN_ADMIN.EVENTS',
  172. 'help' => 'PLUGIN_ADMIN.EVENTS_HELP',
  173. 'default' => [
  174. 0 => [
  175. 'page' => true
  176. ],
  177. 1 => [
  178. 'twig' => true
  179. ]
  180. ],
  181. 'options' => [
  182. 'page' => 'Page Events',
  183. 'twig' => 'Twig Events'
  184. ],
  185. 'use' => 'keys'
  186. ],
  187. 'pages.append_url_extension' => [
  188. 'type' => 'text',
  189. 'size' => 'x-small',
  190. 'placeholder' => 'e.g. .html',
  191. 'label' => 'PLUGIN_ADMIN.APPEND_URL_EXT',
  192. 'help' => 'PLUGIN_ADMIN.APPEND_URL_EXT_HELP'
  193. ],
  194. 'pages.redirect_default_route' => [
  195. 'type' => 'toggle',
  196. 'label' => 'PLUGIN_ADMIN.REDIRECT_DEFAULT_ROUTE',
  197. 'help' => 'PLUGIN_ADMIN.REDIRECT_DEFAULT_ROUTE_HELP',
  198. 'highlight' => 0,
  199. 'options' => [
  200. 1 => 'PLUGIN_ADMIN.YES',
  201. 0 => 'PLUGIN_ADMIN.NO'
  202. ],
  203. 'validate' => [
  204. 'type' => 'bool'
  205. ]
  206. ],
  207. 'pages.redirect_default_code' => [
  208. 'type' => 'select',
  209. 'size' => 'medium',
  210. 'classes' => 'fancy',
  211. 'label' => 'PLUGIN_ADMIN.REDIRECT_DEFAULT_CODE',
  212. 'help' => 'PLUGIN_ADMIN.REDIRECT_DEFAULT_CODE_HELP',
  213. 'options' => [
  214. 301 => '301 - Permanent',
  215. 302 => '302 - Found',
  216. 303 => '303 - Other',
  217. 304 => '304 - Not Modified'
  218. ]
  219. ],
  220. 'pages.redirect_trailing_slash' => [
  221. 'type' => 'toggle',
  222. 'label' => 'PLUGIN_ADMIN.REDIRECT_TRAILING_SLASH',
  223. 'help' => 'PLUGIN_ADMIN.REDIRECT_TRAILING_SLASH_HELP',
  224. 'highlight' => 1,
  225. 'options' => [
  226. 1 => 'PLUGIN_ADMIN.YES',
  227. 0 => 'PLUGIN_ADMIN.NO'
  228. ],
  229. 'validate' => [
  230. 'type' => 'bool'
  231. ]
  232. ],
  233. 'pages.ignore_hidden' => [
  234. 'type' => 'toggle',
  235. 'label' => 'PLUGIN_ADMIN.IGNORE_HIDDEN',
  236. 'help' => 'PLUGIN_ADMIN.IGNORE_HIDDEN_HELP',
  237. 'highlight' => 1,
  238. 'options' => [
  239. 1 => 'PLUGIN_ADMIN.YES',
  240. 0 => 'PLUGIN_ADMIN.NO'
  241. ],
  242. 'validate' => [
  243. 'type' => 'bool'
  244. ]
  245. ],
  246. 'pages.ignore_files' => [
  247. 'type' => 'selectize',
  248. 'size' => 'large',
  249. 'label' => 'PLUGIN_ADMIN.IGNORE_FILES',
  250. 'help' => 'PLUGIN_ADMIN.IGNORE_FILES_HELP',
  251. 'classes' => 'fancy',
  252. 'validate' => [
  253. 'type' => 'commalist'
  254. ]
  255. ],
  256. 'pages.ignore_folders' => [
  257. 'type' => 'selectize',
  258. 'size' => 'large',
  259. 'label' => 'PLUGIN_ADMIN.IGNORE_FOLDERS',
  260. 'help' => 'PLUGIN_ADMIN.IGNORE_FOLDERS_HELP',
  261. 'classes' => 'fancy',
  262. 'validate' => [
  263. 'type' => 'commalist'
  264. ]
  265. ],
  266. 'pages.url_taxonomy_filters' => [
  267. 'type' => 'toggle',
  268. 'label' => 'PLUGIN_ADMIN.ALLOW_URL_TAXONOMY_FILTERS',
  269. 'help' => 'PLUGIN_ADMIN.ALLOW_URL_TAXONOMY_FILTERS_HELP',
  270. 'highlight' => 1,
  271. 'options' => [
  272. 1 => 'PLUGIN_ADMIN.YES',
  273. 0 => 'PLUGIN_ADMIN.NO'
  274. ],
  275. 'validate' => [
  276. 'type' => 'bool'
  277. ]
  278. ],
  279. 'pages.twig_first' => [
  280. 'type' => 'toggle',
  281. 'label' => 'PLUGIN_ADMIN.TWIG_FIRST',
  282. 'help' => 'PLUGIN_ADMIN.TWIG_FIRST_HELP',
  283. 'highlight' => 0,
  284. 'options' => [
  285. 1 => 'PLUGIN_ADMIN.YES',
  286. 0 => 'PLUGIN_ADMIN.NO'
  287. ],
  288. 'validate' => [
  289. 'type' => 'bool'
  290. ]
  291. ],
  292. 'pages.never_cache_twig' => [
  293. 'type' => 'toggle',
  294. 'label' => 'PLUGIN_ADMIN.NEVER_CACHE_TWIG',
  295. 'help' => 'PLUGIN_ADMIN.NEVER_CACHE_TWIG_HELP',
  296. 'highlight' => 0,
  297. 'options' => [
  298. 1 => 'PLUGIN_ADMIN.YES',
  299. 0 => 'PLUGIN_ADMIN.NO'
  300. ],
  301. 'validate' => [
  302. 'type' => 'bool'
  303. ]
  304. ],
  305. 'pages.frontmatter.process_twig' => [
  306. 'type' => 'toggle',
  307. 'label' => 'PLUGIN_ADMIN.FRONTMATTER_PROCESS_TWIG',
  308. 'help' => 'PLUGIN_ADMIN.FRONTMATTER_PROCESS_TWIG_HELP',
  309. 'highlight' => 0,
  310. 'options' => [
  311. 1 => 'PLUGIN_ADMIN.YES',
  312. 0 => 'PLUGIN_ADMIN.NO'
  313. ],
  314. 'validate' => [
  315. 'type' => 'bool'
  316. ]
  317. ],
  318. 'pages.frontmatter.ignore_fields' => [
  319. 'type' => 'selectize',
  320. 'size' => 'large',
  321. 'placeholder' => 'e.g. forms',
  322. 'label' => 'PLUGIN_ADMIN.FRONTMATTER_IGNORE_FIELDS',
  323. 'help' => 'PLUGIN_ADMIN.FRONTMATTER_IGNORE_FIELDS_HELP',
  324. 'classes' => 'fancy',
  325. 'validate' => [
  326. 'type' => 'commalist'
  327. ]
  328. ]
  329. ]
  330. ],
  331. 'languages' => [
  332. 'type' => 'section',
  333. 'title' => 'PLUGIN_ADMIN.LANGUAGES',
  334. 'underline' => true,
  335. 'fields' => [
  336. 'languages.supported' => [
  337. 'type' => 'selectize',
  338. 'size' => 'large',
  339. 'placeholder' => 'e.g. en, fr',
  340. 'label' => 'PLUGIN_ADMIN.SUPPORTED',
  341. 'help' => 'PLUGIN_ADMIN.SUPPORTED_HELP',
  342. 'classes' => 'fancy',
  343. 'validate' => [
  344. 'type' => 'commalist'
  345. ]
  346. ],
  347. 'languages.include_default_lang' => [
  348. 'type' => 'toggle',
  349. 'label' => 'PLUGIN_ADMIN.INCLUDE_DEFAULT_LANG',
  350. 'help' => 'PLUGIN_ADMIN.INCLUDE_DEFAULT_LANG_HELP',
  351. 'highlight' => 1,
  352. 'options' => [
  353. 1 => 'PLUGIN_ADMIN.YES',
  354. 0 => 'PLUGIN_ADMIN.NO'
  355. ],
  356. 'validate' => [
  357. 'type' => 'bool'
  358. ]
  359. ],
  360. 'languages.translations' => [
  361. 'type' => 'toggle',
  362. 'label' => 'PLUGIN_ADMIN.TRANSLATIONS_ENABLED',
  363. 'help' => 'PLUGIN_ADMIN.TRANSLATIONS_ENABLED_HELP',
  364. 'highlight' => 1,
  365. 'options' => [
  366. 1 => 'PLUGIN_ADMIN.YES',
  367. 0 => 'PLUGIN_ADMIN.NO'
  368. ],
  369. 'validate' => [
  370. 'type' => 'bool'
  371. ]
  372. ],
  373. 'languages.translations_fallback' => [
  374. 'type' => 'toggle',
  375. 'label' => 'PLUGIN_ADMIN.TRANSLATIONS_FALLBACK',
  376. 'help' => 'PLUGIN_ADMIN.TRANSLATIONS_FALLBACK_HELP',
  377. 'highlight' => 1,
  378. 'options' => [
  379. 1 => 'PLUGIN_ADMIN.YES',
  380. 0 => 'PLUGIN_ADMIN.NO'
  381. ],
  382. 'validate' => [
  383. 'type' => 'bool'
  384. ]
  385. ],
  386. 'languages.session_store_active' => [
  387. 'type' => 'toggle',
  388. 'label' => 'PLUGIN_ADMIN.ACTIVE_LANGUAGE_IN_SESSION',
  389. 'help' => 'PLUGIN_ADMIN.ACTIVE_LANGUAGE_IN_SESSION_HELP',
  390. 'highlight' => 0,
  391. 'options' => [
  392. 1 => 'PLUGIN_ADMIN.YES',
  393. 0 => 'PLUGIN_ADMIN.NO'
  394. ],
  395. 'validate' => [
  396. 'type' => 'bool'
  397. ]
  398. ],
  399. 'languages.http_accept_language' => [
  400. 'type' => 'toggle',
  401. 'label' => 'PLUGIN_ADMIN.HTTP_ACCEPT_LANGUAGE',
  402. 'help' => 'PLUGIN_ADMIN.HTTP_ACCEPT_LANGUAGE_HELP',
  403. 'highlight' => 0,
  404. 'options' => [
  405. 1 => 'PLUGIN_ADMIN.YES',
  406. 0 => 'PLUGIN_ADMIN.NO'
  407. ],
  408. 'validate' => [
  409. 'type' => 'bool'
  410. ]
  411. ],
  412. 'languages.override_locale' => [
  413. 'type' => 'toggle',
  414. 'label' => 'PLUGIN_ADMIN.OVERRIDE_LOCALE',
  415. 'help' => 'PLUGIN_ADMIN.OVERRIDE_LOCALE_HELP',
  416. 'highlight' => 0,
  417. 'options' => [
  418. 1 => 'PLUGIN_ADMIN.YES',
  419. 0 => 'PLUGIN_ADMIN.NO'
  420. ],
  421. 'validate' => [
  422. 'type' => 'bool'
  423. ]
  424. ]
  425. ]
  426. ],
  427. 'http_headers' => [
  428. 'type' => 'section',
  429. 'title' => 'PLUGIN_ADMIN.HTTP_HEADERS',
  430. 'underline' => true,
  431. 'fields' => [
  432. 'pages.expires' => [
  433. 'type' => 'text',
  434. 'size' => 'small',
  435. 'append' => 'NICETIME.SECOND_PLURAL',
  436. 'label' => 'PLUGIN_ADMIN.EXPIRES',
  437. 'help' => 'PLUGIN_ADMIN.EXPIRES_HELP',
  438. 'validate' => [
  439. 'type' => 'number',
  440. 'min' => 1
  441. ]
  442. ],
  443. 'pages.cache_control' => [
  444. 'type' => 'text',
  445. 'size' => 'medium',
  446. 'label' => 'PLUGIN_ADMIN.CACHE_CONTROL',
  447. 'help' => 'PLUGIN_ADMIN.CACHE_CONTROL_HELP',
  448. 'placeholder' => 'e.g. public, max-age=31536000'
  449. ],
  450. 'pages.last_modified' => [
  451. 'type' => 'toggle',
  452. 'label' => 'PLUGIN_ADMIN.LAST_MODIFIED',
  453. 'help' => 'PLUGIN_ADMIN.LAST_MODIFIED_HELP',
  454. 'highlight' => 0,
  455. 'options' => [
  456. 1 => 'PLUGIN_ADMIN.YES',
  457. 0 => 'PLUGIN_ADMIN.NO'
  458. ],
  459. 'validate' => [
  460. 'type' => 'bool'
  461. ]
  462. ],
  463. 'pages.etag' => [
  464. 'type' => 'toggle',
  465. 'label' => 'PLUGIN_ADMIN.ETAG',
  466. 'help' => 'PLUGIN_ADMIN.ETAG_HELP',
  467. 'highlight' => 0,
  468. 'options' => [
  469. 1 => 'PLUGIN_ADMIN.YES',
  470. 0 => 'PLUGIN_ADMIN.NO'
  471. ],
  472. 'validate' => [
  473. 'type' => 'bool'
  474. ]
  475. ],
  476. 'pages.vary_accept_encoding' => [
  477. 'type' => 'toggle',
  478. 'label' => 'PLUGIN_ADMIN.VARY_ACCEPT_ENCODING',
  479. 'help' => 'PLUGIN_ADMIN.VARY_ACCEPT_ENCODING_HELP',
  480. 'highlight' => 0,
  481. 'options' => [
  482. 1 => 'PLUGIN_ADMIN.YES',
  483. 0 => 'PLUGIN_ADMIN.NO'
  484. ],
  485. 'validate' => [
  486. 'type' => 'bool'
  487. ]
  488. ]
  489. ]
  490. ],
  491. 'markdown' => [
  492. 'type' => 'section',
  493. 'title' => 'Markdown',
  494. 'underline' => true,
  495. 'fields' => [
  496. 'pages.markdown.extra' => [
  497. 'type' => 'toggle',
  498. 'label' => 'Markdown extra',
  499. 'help' => 'PLUGIN_ADMIN.MARKDOWN_EXTRA_HELP',
  500. 'highlight' => 0,
  501. 'options' => [
  502. 1 => 'PLUGIN_ADMIN.YES',
  503. 0 => 'PLUGIN_ADMIN.NO'
  504. ],
  505. 'validate' => [
  506. 'type' => 'bool'
  507. ]
  508. ],
  509. 'pages.markdown.auto_line_breaks' => [
  510. 'type' => 'toggle',
  511. 'label' => 'PLUGIN_ADMIN.AUTO_LINE_BREAKS',
  512. 'help' => 'PLUGIN_ADMIN.AUTO_LINE_BREAKS_HELP',
  513. 'highlight' => 0,
  514. 'options' => [
  515. 1 => 'PLUGIN_ADMIN.YES',
  516. 0 => 'PLUGIN_ADMIN.NO'
  517. ],
  518. 'validate' => [
  519. 'type' => 'bool'
  520. ]
  521. ],
  522. 'pages.markdown.auto_url_links' => [
  523. 'type' => 'toggle',
  524. 'label' => 'PLUGIN_ADMIN.AUTO_URL_LINKS',
  525. 'help' => 'PLUGIN_ADMIN.AUTO_URL_LINKS_HELP',
  526. 'highlight' => 0,
  527. 'options' => [
  528. 1 => 'PLUGIN_ADMIN.YES',
  529. 0 => 'PLUGIN_ADMIN.NO'
  530. ],
  531. 'validate' => [
  532. 'type' => 'bool'
  533. ]
  534. ],
  535. 'pages.markdown.escape_markup' => [
  536. 'type' => 'toggle',
  537. 'label' => 'PLUGIN_ADMIN.ESCAPE_MARKUP',
  538. 'help' => 'PLUGIN_ADMIN.ESCAPE_MARKUP_HELP',
  539. 'highlight' => 0,
  540. 'options' => [
  541. 1 => 'PLUGIN_ADMIN.YES',
  542. 0 => 'PLUGIN_ADMIN.NO'
  543. ],
  544. 'validate' => [
  545. 'type' => 'bool'
  546. ]
  547. ]
  548. ]
  549. ],
  550. 'caching' => [
  551. 'type' => 'section',
  552. 'title' => 'PLUGIN_ADMIN.CACHING',
  553. 'underline' => true,
  554. 'fields' => [
  555. 'cache.enabled' => [
  556. 'type' => 'toggle',
  557. 'label' => 'PLUGIN_ADMIN.CACHING',
  558. 'help' => 'PLUGIN_ADMIN.CACHING_HELP',
  559. 'highlight' => 1,
  560. 'options' => [
  561. 1 => 'PLUGIN_ADMIN.YES',
  562. 0 => 'PLUGIN_ADMIN.NO'
  563. ],
  564. 'validate' => [
  565. 'type' => 'bool'
  566. ]
  567. ],
  568. 'cache.check.method' => [
  569. 'type' => 'select',
  570. 'size' => 'medium',
  571. 'classes' => 'fancy',
  572. 'label' => 'PLUGIN_ADMIN.CACHE_CHECK_METHOD',
  573. 'help' => 'PLUGIN_ADMIN.CACHE_CHECK_METHOD_HELP',
  574. 'options' => [
  575. 'file' => 'Markdown + Yaml file timestamps',
  576. 'folder' => 'Folder timestamps',
  577. 'hash' => 'All files timestamps',
  578. 'none' => 'No timestamp checking'
  579. ]
  580. ],
  581. 'cache.driver' => [
  582. 'type' => 'select',
  583. 'size' => 'small',
  584. 'classes' => 'fancy',
  585. 'label' => 'PLUGIN_ADMIN.CACHE_DRIVER',
  586. 'help' => 'PLUGIN_ADMIN.CACHE_DRIVER_HELP',
  587. 'options' => [
  588. 'auto' => 'Auto detect',
  589. 'file' => 'File',
  590. 'apc' => 'APC',
  591. 'apcu' => 'APCu',
  592. 'xcache' => 'Xcache',
  593. 'memcache' => 'Memcache',
  594. 'memcached' => 'Memcached',
  595. 'wincache' => 'WinCache',
  596. 'redis' => 'Redis'
  597. ]
  598. ],
  599. 'cache.prefix' => [
  600. 'type' => 'text',
  601. 'size' => 'x-small',
  602. 'label' => 'PLUGIN_ADMIN.CACHE_PREFIX',
  603. 'help' => 'PLUGIN_ADMIN.CACHE_PREFIX_HELP',
  604. 'placeholder' => 'PLUGIN_ADMIN.CACHE_PREFIX_PLACEHOLDER'
  605. ],
  606. 'cache.clear_images_by_default' => [
  607. 'type' => 'toggle',
  608. 'label' => 'PLUGIN_ADMIN.CLEAR_IMAGES_BY_DEFAULT',
  609. 'help' => 'PLUGIN_ADMIN.CLEAR_IMAGES_BY_DEFAULT_HELP',
  610. 'highlight' => 1,
  611. 'options' => [
  612. 1 => 'PLUGIN_ADMIN.YES',
  613. 0 => 'PLUGIN_ADMIN.NO'
  614. ],
  615. 'validate' => [
  616. 'type' => 'bool'
  617. ]
  618. ],
  619. 'cache.cli_compatibility' => [
  620. 'type' => 'toggle',
  621. 'label' => 'PLUGIN_ADMIN.CLI_COMPATIBILITY',
  622. 'help' => 'PLUGIN_ADMIN.CLI_COMPATIBILITY_HELP',
  623. 'highlight' => 0,
  624. 'options' => [
  625. 1 => 'PLUGIN_ADMIN.YES',
  626. 0 => 'PLUGIN_ADMIN.NO'
  627. ],
  628. 'validate' => [
  629. 'type' => 'bool'
  630. ]
  631. ],
  632. 'cache.lifetime' => [
  633. 'type' => 'text',
  634. 'size' => 'small',
  635. 'append' => 'NICETIME.SECOND_PLURAL',
  636. 'label' => 'PLUGIN_ADMIN.LIFETIME',
  637. 'help' => 'PLUGIN_ADMIN.LIFETIME_HELP',
  638. 'validate' => [
  639. 'type' => 'number'
  640. ]
  641. ],
  642. 'cache.gzip' => [
  643. 'type' => 'toggle',
  644. 'label' => 'PLUGIN_ADMIN.GZIP_COMPRESSION',
  645. 'help' => 'PLUGIN_ADMIN.GZIP_COMPRESSION_HELP',
  646. 'highlight' => 0,
  647. 'options' => [
  648. 1 => 'PLUGIN_ADMIN.YES',
  649. 0 => 'PLUGIN_ADMIN.NO'
  650. ],
  651. 'validate' => [
  652. 'type' => 'bool'
  653. ]
  654. ],
  655. 'cache.allow_webserver_gzip' => [
  656. 'type' => 'toggle',
  657. 'label' => 'PLUGIN_ADMIN.ALLOW_WEBSERVER_GZIP',
  658. 'help' => 'PLUGIN_ADMIN.ALLOW_WEBSERVER_GZIP_HELP',
  659. 'highlight' => 0,
  660. 'options' => [
  661. 1 => 'PLUGIN_ADMIN.YES',
  662. 0 => 'PLUGIN_ADMIN.NO'
  663. ],
  664. 'validate' => [
  665. 'type' => 'bool'
  666. ]
  667. ],
  668. 'cache.memcache.server' => [
  669. 'type' => 'text',
  670. 'size' => 'medium',
  671. 'label' => 'PLUGIN_ADMIN.MEMCACHE_SERVER',
  672. 'help' => 'PLUGIN_ADMIN.MEMCACHE_SERVER_HELP',
  673. 'placeholder' => 'localhost'
  674. ],
  675. 'cache.memcache.port' => [
  676. 'type' => 'text',
  677. 'size' => 'small',
  678. 'label' => 'PLUGIN_ADMIN.MEMCACHE_PORT',
  679. 'help' => 'PLUGIN_ADMIN.MEMCACHE_PORT_HELP',
  680. 'placeholder' => '11211'
  681. ],
  682. 'cache.memcached.server' => [
  683. 'type' => 'text',
  684. 'size' => 'medium',
  685. 'label' => 'PLUGIN_ADMIN.MEMCACHED_SERVER',
  686. 'help' => 'PLUGIN_ADMIN.MEMCACHED_SERVER_HELP',
  687. 'placeholder' => 'localhost'
  688. ],
  689. 'cache.memcached.port' => [
  690. 'type' => 'text',
  691. 'size' => 'small',
  692. 'label' => 'PLUGIN_ADMIN.MEMCACHED_PORT',
  693. 'help' => 'PLUGIN_ADMIN.MEMCACHED_PORT_HELP',
  694. 'placeholder' => '11211'
  695. ],
  696. 'cache.redis.socket' => [
  697. 'type' => 'text',
  698. 'size' => 'medium',
  699. 'label' => 'PLUGIN_ADMIN.REDIS_SOCKET',
  700. 'help' => 'PLUGIN_ADMIN.REDIS_SOCKET_HELP',
  701. 'placeholder' => '/var/run/redis/redis.sock'
  702. ],
  703. 'cache.redis.server' => [
  704. 'type' => 'text',
  705. 'size' => 'medium',
  706. 'label' => 'PLUGIN_ADMIN.REDIS_SERVER',
  707. 'help' => 'PLUGIN_ADMIN.REDIS_SERVER_HELP',
  708. 'placeholder' => 'localhost'
  709. ],
  710. 'cache.redis.port' => [
  711. 'type' => 'text',
  712. 'size' => 'small',
  713. 'label' => 'PLUGIN_ADMIN.REDIS_PORT',
  714. 'help' => 'PLUGIN_ADMIN.REDIS_PORT_HELP',
  715. 'placeholder' => '6379'
  716. ],
  717. 'cache.redis.password' => [
  718. 'type' => 'text',
  719. 'size' => 'small',
  720. 'label' => 'PLUGIN_ADMIN.REDIS_PASSWORD'
  721. ]
  722. ]
  723. ],
  724. 'twig' => [
  725. 'type' => 'section',
  726. 'title' => 'PLUGIN_ADMIN.TWIG_TEMPLATING',
  727. 'underline' => true,
  728. 'fields' => [
  729. 'twig.cache' => [
  730. 'type' => 'toggle',
  731. 'label' => 'PLUGIN_ADMIN.TWIG_CACHING',
  732. 'help' => 'PLUGIN_ADMIN.TWIG_CACHING_HELP',
  733. 'highlight' => 1,
  734. 'options' => [
  735. 1 => 'PLUGIN_ADMIN.YES',
  736. 0 => 'PLUGIN_ADMIN.NO'
  737. ],
  738. 'validate' => [
  739. 'type' => 'bool'
  740. ]
  741. ],
  742. 'twig.debug' => [
  743. 'type' => 'toggle',
  744. 'label' => 'PLUGIN_ADMIN.TWIG_DEBUG',
  745. 'help' => 'PLUGIN_ADMIN.TWIG_DEBUG_HELP',
  746. 'highlight' => 1,
  747. 'options' => [
  748. 1 => 'PLUGIN_ADMIN.YES',
  749. 0 => 'PLUGIN_ADMIN.NO'
  750. ],
  751. 'validate' => [
  752. 'type' => 'bool'
  753. ]
  754. ],
  755. 'twig.auto_reload' => [
  756. 'type' => 'toggle',
  757. 'label' => 'PLUGIN_ADMIN.DETECT_CHANGES',
  758. 'help' => 'PLUGIN_ADMIN.DETECT_CHANGES_HELP',
  759. 'highlight' => 1,
  760. 'options' => [
  761. 1 => 'PLUGIN_ADMIN.YES',
  762. 0 => 'PLUGIN_ADMIN.NO'
  763. ],
  764. 'validate' => [
  765. 'type' => 'bool'
  766. ]
  767. ],
  768. 'twig.autoescape' => [
  769. 'type' => 'toggle',
  770. 'label' => 'PLUGIN_ADMIN.AUTOESCAPE_VARIABLES',
  771. 'help' => 'PLUGIN_ADMIN.AUTOESCAPE_VARIABLES_HELP',
  772. 'highlight' => 0,
  773. 'options' => [
  774. 1 => 'PLUGIN_ADMIN.YES',
  775. 0 => 'PLUGIN_ADMIN.NO'
  776. ],
  777. 'validate' => [
  778. 'type' => 'bool'
  779. ]
  780. ],
  781. 'twig.umask_fix' => [
  782. 'type' => 'toggle',
  783. 'label' => 'PLUGIN_ADMIN.TWIG_UMASK_FIX',
  784. 'help' => 'PLUGIN_ADMIN.TWIG_UMASK_FIX_HELP',
  785. 'highlight' => 0,
  786. 'options' => [
  787. 1 => 'PLUGIN_ADMIN.YES',
  788. 0 => 'PLUGIN_ADMIN.NO'
  789. ],
  790. 'validate' => [
  791. 'type' => 'bool'
  792. ]
  793. ]
  794. ]
  795. ],
  796. 'assets' => [
  797. 'type' => 'section',
  798. 'title' => 'PLUGIN_ADMIN.ASSETS',
  799. 'underline' => true,
  800. 'fields' => [
  801. 'assets.css_pipeline' => [
  802. 'type' => 'toggle',
  803. 'label' => 'PLUGIN_ADMIN.CSS_PIPELINE',
  804. 'help' => 'PLUGIN_ADMIN.CSS_PIPELINE_HELP',
  805. 'highlight' => 0,
  806. 'options' => [
  807. 1 => 'PLUGIN_ADMIN.YES',
  808. 0 => 'PLUGIN_ADMIN.NO'
  809. ],
  810. 'validate' => [
  811. 'type' => 'bool'
  812. ]
  813. ],
  814. 'assets.css_pipeline_include_externals' => [
  815. 'type' => 'toggle',
  816. 'label' => 'PLUGIN_ADMIN.CSS_PIPELINE_INCLUDE_EXTERNALS',
  817. 'help' => 'PLUGIN_ADMIN.CSS_PIPELINE_INCLUDE_EXTERNALS_HELP',
  818. 'highlight' => 1,
  819. 'options' => [
  820. 1 => 'PLUGIN_ADMIN.YES',
  821. 0 => 'PLUGIN_ADMIN.NO'
  822. ],
  823. 'validate' => [
  824. 'type' => 'bool'
  825. ]
  826. ],
  827. 'assets.css_pipeline_before_excludes' => [
  828. 'type' => 'toggle',
  829. 'label' => 'PLUGIN_ADMIN.CSS_PIPELINE_BEFORE_EXCLUDES',
  830. 'help' => 'PLUGIN_ADMIN.CSS_PIPELINE_BEFORE_EXCLUDES_HELP',
  831. 'highlight' => 1,
  832. 'options' => [
  833. 1 => 'PLUGIN_ADMIN.YES',
  834. 0 => 'PLUGIN_ADMIN.NO'
  835. ],
  836. 'validate' => [
  837. 'type' => 'bool'
  838. ]
  839. ],
  840. 'assets.css_minify' => [
  841. 'type' => 'toggle',
  842. 'label' => 'PLUGIN_ADMIN.CSS_MINIFY',
  843. 'help' => 'PLUGIN_ADMIN.CSS_MINIFY_HELP',
  844. 'highlight' => 1,
  845. 'options' => [
  846. 1 => 'PLUGIN_ADMIN.YES',
  847. 0 => 'PLUGIN_ADMIN.NO'
  848. ],
  849. 'validate' => [
  850. 'type' => 'bool'
  851. ]
  852. ],
  853. 'assets.css_minify_windows' => [
  854. 'type' => 'toggle',
  855. 'label' => 'PLUGIN_ADMIN.CSS_MINIFY_WINDOWS_OVERRIDE',
  856. 'help' => 'PLUGIN_ADMIN.CSS_MINIFY_WINDOWS_OVERRIDE_HELP',
  857. 'highlight' => 0,
  858. 'options' => [
  859. 1 => 'PLUGIN_ADMIN.YES',
  860. 0 => 'PLUGIN_ADMIN.NO'
  861. ],
  862. 'validate' => [
  863. 'type' => 'bool'
  864. ]
  865. ],
  866. 'assets.css_rewrite' => [
  867. 'type' => 'toggle',
  868. 'label' => 'PLUGIN_ADMIN.CSS_REWRITE',
  869. 'help' => 'PLUGIN_ADMIN.CSS_REWRITE_HELP',
  870. 'highlight' => 1,
  871. 'options' => [
  872. 1 => 'PLUGIN_ADMIN.YES',
  873. 0 => 'PLUGIN_ADMIN.NO'
  874. ],
  875. 'validate' => [
  876. 'type' => 'bool'
  877. ]
  878. ],
  879. 'assets.js_pipeline' => [
  880. 'type' => 'toggle',
  881. 'label' => 'PLUGIN_ADMIN.JAVASCRIPT_PIPELINE',
  882. 'help' => 'PLUGIN_ADMIN.JAVASCRIPT_PIPELINE_HELP',
  883. 'highlight' => 0,
  884. 'options' => [
  885. 1 => 'PLUGIN_ADMIN.YES',
  886. 0 => 'PLUGIN_ADMIN.NO'
  887. ],
  888. 'validate' => [
  889. 'type' => 'bool'
  890. ]
  891. ],
  892. 'assets.js_pipeline_include_externals' => [
  893. 'type' => 'toggle',
  894. 'label' => 'PLUGIN_ADMIN.JAVASCRIPT_PIPELINE_INCLUDE_EXTERNALS',
  895. 'help' => 'PLUGIN_ADMIN.JAVASCRIPT_PIPELINE_INCLUDE_EXTERNALS_HELP',
  896. 'highlight' => 1,
  897. 'options' => [
  898. 1 => 'PLUGIN_ADMIN.YES',
  899. 0 => 'PLUGIN_ADMIN.NO'
  900. ],
  901. 'validate' => [
  902. 'type' => 'bool'
  903. ]
  904. ],
  905. 'assets.js_pipeline_before_excludes' => [
  906. 'type' => 'toggle',
  907. 'label' => 'PLUGIN_ADMIN.JAVASCRIPT_PIPELINE_BEFORE_EXCLUDES',
  908. 'help' => 'PLUGIN_ADMIN.JAVASCRIPT_PIPELINE_BEFORE_EXCLUDES_HELP',
  909. 'highlight' => 1,
  910. 'options' => [
  911. 1 => 'PLUGIN_ADMIN.YES',
  912. 0 => 'PLUGIN_ADMIN.NO'
  913. ],
  914. 'validate' => [
  915. 'type' => 'bool'
  916. ]
  917. ],
  918. 'assets.js_minify' => [
  919. 'type' => 'toggle',
  920. 'label' => 'PLUGIN_ADMIN.JAVASCRIPT_MINIFY',
  921. 'help' => 'PLUGIN_ADMIN.JAVASCRIPT_MINIFY_HELP',
  922. 'highlight' => 1,
  923. 'options' => [
  924. 1 => 'PLUGIN_ADMIN.YES',
  925. 0 => 'PLUGIN_ADMIN.NO'
  926. ],
  927. 'validate' => [
  928. 'type' => 'bool'
  929. ]
  930. ],
  931. 'assets.enable_asset_timestamp' => [
  932. 'type' => 'toggle',
  933. 'label' => 'PLUGIN_ADMIN.ENABLED_TIMESTAMPS_ON_ASSETS',
  934. 'help' => 'PLUGIN_ADMIN.ENABLED_TIMESTAMPS_ON_ASSETS_HELP',
  935. 'highlight' => 0,
  936. 'options' => [
  937. 1 => 'PLUGIN_ADMIN.YES',
  938. 0 => 'PLUGIN_ADMIN.NO'
  939. ],
  940. 'validate' => [
  941. 'type' => 'bool'
  942. ]
  943. ],
  944. 'assets.collections' => [
  945. 'type' => 'multilevel',
  946. 'label' => 'PLUGIN_ADMIN.COLLECTIONS',
  947. 'placeholder_key' => 'collection_name',
  948. 'placeholder_value' => 'collection_path',
  949. 'validate' => [
  950. 'type' => 'array'
  951. ]
  952. ]
  953. ]
  954. ],
  955. 'errors' => [
  956. 'type' => 'section',
  957. 'title' => 'PLUGIN_ADMIN.ERROR_HANDLER',
  958. 'underline' => true,
  959. 'fields' => [
  960. 'errors.display' => [
  961. 'type' => 'select',
  962. 'label' => 'PLUGIN_ADMIN.DISPLAY_ERRORS',
  963. 'help' => 'PLUGIN_ADMIN.DISPLAY_ERRORS_HELP',
  964. 'size' => 'medium',
  965. 'highlight' => 1,
  966. 'options' => [
  967. -1 => 'PLUGIN_ADMIN.ERROR_SYSTEM',
  968. 0 => 'PLUGIN_ADMIN.ERROR_SIMPLE',
  969. 1 => 'PLUGIN_ADMIN.ERROR_FULL_BACKTRACE'
  970. ],
  971. 'validate' => [
  972. 'type' => 'int'
  973. ]
  974. ],
  975. 'errors.log' => [
  976. 'type' => 'toggle',
  977. 'label' => 'PLUGIN_ADMIN.LOG_ERRORS',
  978. 'help' => 'PLUGIN_ADMIN.LOG_ERRORS_HELP',
  979. 'highlight' => 1,
  980. 'options' => [
  981. 1 => 'PLUGIN_ADMIN.YES',
  982. 0 => 'PLUGIN_ADMIN.NO'
  983. ],
  984. 'validate' => [
  985. 'type' => 'bool'
  986. ]
  987. ]
  988. ]
  989. ],
  990. 'debugger' => [
  991. 'type' => 'section',
  992. 'title' => 'PLUGIN_ADMIN.DEBUGGER',
  993. 'underline' => true,
  994. 'fields' => [
  995. 'debugger.enabled' => [
  996. 'type' => 'toggle',
  997. 'label' => 'PLUGIN_ADMIN.DEBUGGER',
  998. 'help' => 'PLUGIN_ADMIN.DEBUGGER_HELP',
  999. 'highlight' => 0,
  1000. 'options' => [
  1001. 1 => 'PLUGIN_ADMIN.YES',
  1002. 0 => 'PLUGIN_ADMIN.NO'
  1003. ],
  1004. 'validate' => [
  1005. 'type' => 'bool'
  1006. ]
  1007. ],
  1008. 'debugger.shutdown.close_connection' => [
  1009. 'type' => 'toggle',
  1010. 'label' => 'PLUGIN_ADMIN.SHUTDOWN_CLOSE_CONNECTION',
  1011. 'help' => 'PLUGIN_ADMIN.SHUTDOWN_CLOSE_CONNECTION_HELP',
  1012. 'highlight' => 1,
  1013. 'options' => [
  1014. 1 => 'PLUGIN_ADMIN.YES',
  1015. 0 => 'PLUGIN_ADMIN.NO'
  1016. ],
  1017. 'validate' => [
  1018. 'type' => 'bool'
  1019. ]
  1020. ]
  1021. ]
  1022. ],
  1023. 'media' => [
  1024. 'type' => 'section',
  1025. 'title' => 'PLUGIN_ADMIN.MEDIA',
  1026. 'underline' => true,
  1027. 'fields' => [
  1028. 'images.default_image_quality' => [
  1029. 'type' => 'range',
  1030. 'append' => '%',
  1031. 'label' => 'PLUGIN_ADMIN.DEFAULT_IMAGE_QUALITY',
  1032. 'help' => 'PLUGIN_ADMIN.DEFAULT_IMAGE_QUALITY_HELP',
  1033. 'validate' => [
  1034. 'min' => 1,
  1035. 'max' => 100
  1036. ]
  1037. ],
  1038. 'images.cache_all' => [
  1039. 'type' => 'toggle',
  1040. 'label' => 'PLUGIN_ADMIN.CACHE_ALL',
  1041. 'help' => 'PLUGIN_ADMIN.CACHE_ALL_HELP',
  1042. 'highlight' => 0,
  1043. 'options' => [
  1044. 1 => 'PLUGIN_ADMIN.YES',
  1045. 0 => 'PLUGIN_ADMIN.NO'
  1046. ],
  1047. 'validate' => [
  1048. 'type' => 'bool'
  1049. ]
  1050. ],
  1051. 'images.cache_perms' => [
  1052. 'type' => 'select',
  1053. 'size' => 'small',
  1054. 'label' => 'PLUGIN_ADMIN.CACHE_PERMS',
  1055. 'help' => 'PLUGIN_ADMIN.CACHE_PERMS_HELP',
  1056. 'highlight' => '0755',
  1057. 'options' => [
  1058. '0755' => '0755',
  1059. '0775' => '0775'
  1060. ]
  1061. ],
  1062. 'images.debug' => [
  1063. 'type' => 'toggle',
  1064. 'label' => 'PLUGIN_ADMIN.IMAGES_DEBUG',
  1065. 'help' => 'PLUGIN_ADMIN.IMAGES_DEBUG_HELP',
  1066. 'highlight' => 0,
  1067. 'options' => [
  1068. 1 => 'PLUGIN_ADMIN.YES',
  1069. 0 => 'PLUGIN_ADMIN.NO'
  1070. ],
  1071. 'validate' => [
  1072. 'type' => 'bool'
  1073. ]
  1074. ],
  1075. 'images.auto_fix_orientation' => [
  1076. 'type' => 'toggle',
  1077. 'label' => 'PLUGIN_ADMIN.IMAGES_AUTO_FIX_ORIENTATION',
  1078. 'help' => 'PLUGIN_ADMIN.IMAGES_AUTO_FIX_ORIENTATION_HELP',
  1079. 'highlight' => 0,
  1080. 'options' => [
  1081. 1 => 'PLUGIN_ADMIN.YES',
  1082. 0 => 'PLUGIN_ADMIN.NO'
  1083. ],
  1084. 'validate' => [
  1085. 'type' => 'bool'
  1086. ]
  1087. ],
  1088. 'media.enable_media_timestamp' => [
  1089. 'type' => 'toggle',
  1090. 'label' => 'PLUGIN_ADMIN.ENABLE_MEDIA_TIMESTAMP',
  1091. 'help' => 'PLUGIN_ADMIN.ENABLE_MEDIA_TIMESTAMP_HELP',
  1092. 'highlight' => 0,
  1093. 'options' => [
  1094. 1 => 'PLUGIN_ADMIN.YES',
  1095. 0 => 'PLUGIN_ADMIN.NO'
  1096. ],
  1097. 'validate' => [
  1098. 'type' => 'bool'
  1099. ]
  1100. ],
  1101. 'media.auto_metadata_exif' => [
  1102. 'type' => 'toggle',
  1103. 'label' => 'PLUGIN_ADMIN.ENABLE_AUTO_METADATA',
  1104. 'help' => 'PLUGIN_ADMIN.ENABLE_AUTO_METADATA_HELP',
  1105. 'highlight' => 0,
  1106. 'options' => [
  1107. 1 => 'PLUGIN_ADMIN.YES',
  1108. 0 => 'PLUGIN_ADMIN.NO'
  1109. ],
  1110. 'validate' => [
  1111. 'type' => 'bool'
  1112. ]
  1113. ],
  1114. 'media.allowed_fallback_types' => [
  1115. 'type' => 'selectize',
  1116. 'size' => 'large',
  1117. 'label' => 'PLUGIN_ADMIN.FALLBACK_TYPES',
  1118. 'help' => 'PLUGIN_ADMIN.FALLBACK_TYPES_HELP',
  1119. 'classes' => 'fancy',
  1120. 'validate' => [
  1121. 'type' => 'commalist'
  1122. ]
  1123. ],
  1124. 'media.unsupported_inline_types' => [
  1125. 'type' => 'selectize',
  1126. 'size' => 'large',
  1127. 'label' => 'PLUGIN_ADMIN.INLINE_TYPES',
  1128. 'help' => 'PLUGIN_ADMIN.INLINE_TYPES_HELP',
  1129. 'classes' => 'fancy',
  1130. 'validate' => [
  1131. 'type' => 'commalist'
  1132. ]
  1133. ]
  1134. ]
  1135. ],
  1136. 'session' => [
  1137. 'type' => 'section',
  1138. 'title' => 'PLUGIN_ADMIN.SESSION',
  1139. 'underline' => true,
  1140. 'fields' => [
  1141. 'session.enabled' => [
  1142. 'type' => 'hidden',
  1143. 'label' => 'PLUGIN_ADMIN.ENABLED',
  1144. 'help' => 'PLUGIN_ADMIN.SESSION_ENABLED_HELP',
  1145. 'highlight' => 1,
  1146. 'options' => [
  1147. 1 => 'PLUGIN_ADMIN.YES',
  1148. 0 => 'PLUGIN_ADMIN.NO'
  1149. ],
  1150. 'default' => true,
  1151. 'validate' => [
  1152. 'type' => 'bool'
  1153. ]
  1154. ],
  1155. 'session.timeout' => [
  1156. 'type' => 'text',
  1157. 'size' => 'small',
  1158. 'append' => 'NICETIME.SECOND_PLURAL',
  1159. 'label' => 'PLUGIN_ADMIN.TIMEOUT',
  1160. 'help' => 'PLUGIN_ADMIN.TIMEOUT_HELP',
  1161. 'validate' => [
  1162. 'type' => 'number',
  1163. 'min' => 0
  1164. ]
  1165. ],
  1166. 'session.name' => [
  1167. 'type' => 'text',
  1168. 'size' => 'small',
  1169. 'label' => 'PLUGIN_ADMIN.NAME',
  1170. 'help' => 'PLUGIN_ADMIN.SESSION_NAME_HELP'
  1171. ],
  1172. 'session.secure' => [
  1173. 'type' => 'toggle',
  1174. 'label' => 'PLUGIN_ADMIN.SESSION_SECURE',
  1175. 'help' => 'PLUGIN_ADMIN.SESSION_SECURE_HELP',
  1176. 'highlight' => 1,
  1177. 'options' => [
  1178. 1 => 'PLUGIN_ADMIN.YES',
  1179. 0 => 'PLUGIN_ADMIN.NO'
  1180. ],
  1181. 'default' => false,
  1182. 'validate' => [
  1183. 'type' => 'bool'
  1184. ]
  1185. ],
  1186. 'session.httponly' => [
  1187. 'type' => 'toggle',
  1188. 'label' => 'PLUGIN_ADMIN.SESSION_HTTPONLY',
  1189. 'help' => 'PLUGIN_ADMIN.SESSION_HTTPONLY_HELP',
  1190. 'highlight' => 1,
  1191. 'options' => [
  1192. 1 => 'PLUGIN_ADMIN.YES',
  1193. 0 => 'PLUGIN_ADMIN.NO'
  1194. ],
  1195. 'default' => true,
  1196. 'validate' => [
  1197. 'type' => 'bool'
  1198. ]
  1199. ],
  1200. 'session.path' => [
  1201. 'type' => 'text',
  1202. 'size' => 'small',
  1203. 'label' => 'PLUGIN_ADMIN.SESSION_PATH',
  1204. 'help' => 'PLUGIN_ADMIN.SESSION_PATH_HELP'
  1205. ],
  1206. 'session.split' => [
  1207. 'type' => 'toggle',
  1208. 'label' => 'PLUGIN_ADMIN.SESSION_SPLIT',
  1209. 'help' => 'PLUGIN_ADMIN.SESSION_SPLIT_HELP',
  1210. 'highlight' => 1,
  1211. 'options' => [
  1212. 1 => 'PLUGIN_ADMIN.YES',
  1213. 0 => 'PLUGIN_ADMIN.NO'
  1214. ],
  1215. 'default' => true,
  1216. 'validate' => [
  1217. 'type' => 'bool'
  1218. ]
  1219. ]
  1220. ]
  1221. ],
  1222. 'advanced' => [
  1223. 'type' => 'section',
  1224. 'title' => 'PLUGIN_ADMIN.ADVANCED',
  1225. 'underline' => true,
  1226. 'fields' => [
  1227. 'gpm.releases' => [
  1228. 'type' => 'toggle',
  1229. 'label' => 'PLUGIN_ADMIN.GPM_RELEASES',
  1230. 'highlight' => 'stable',
  1231. 'help' => 'PLUGIN_ADMIN.GPM_RELEASES_HELP',
  1232. 'options' => [
  1233. 'stable' => 'PLUGIN_ADMIN.STABLE',
  1234. 'testing' => 'PLUGIN_ADMIN.TESTING'
  1235. ]
  1236. ],
  1237. 'gpm.proxy_url' => [
  1238. 'type' => 'text',
  1239. 'size' => 'medium',
  1240. 'placeholder' => 'e.g. 127.0.0.1:3128',
  1241. 'label' => 'PLUGIN_ADMIN.PROXY_URL',
  1242. 'help' => 'PLUGIN_ADMIN.PROXY_URL_HELP'
  1243. ],
  1244. 'gpm.method' => [
  1245. 'type' => 'toggle',
  1246. 'label' => 'PLUGIN_ADMIN.GPM_METHOD',
  1247. 'highlight' => 'auto',
  1248. 'help' => 'PLUGIN_ADMIN.GPM_METHOD_HELP',
  1249. 'options' => [
  1250. 'auto' => 'PLUGIN_ADMIN.AUTO',
  1251. 'fopen' => 'PLUGIN_ADMIN.FOPEN',
  1252. 'curl' => 'PLUGIN_ADMIN.CURL'
  1253. ]
  1254. ],
  1255. 'gpm.official_gpm_only' => [
  1256. 'type' => 'toggle',
  1257. 'label' => 'PLUGIN_ADMIN.GPM_OFFICIAL_ONLY',
  1258. 'highlight' => 'auto',
  1259. 'help' => 'PLUGIN_ADMIN.GPM_OFFICIAL_ONLY_HELP',
  1260. 'options' => [
  1261. 1 => 'PLUGIN_ADMIN.YES',
  1262. 0 => 'PLUGIN_ADMIN.NO'
  1263. ],
  1264. 'default' => true,
  1265. 'validate' => [
  1266. 'type' => 'bool'
  1267. ]
  1268. ],
  1269. 'gpm.verify_peer' => [
  1270. 'type' => 'toggle',
  1271. 'label' => 'PLUGIN_ADMIN.GPM_VERIFY_PEER',
  1272. 'highlight' => 1,
  1273. 'help' => 'PLUGIN_ADMIN.GPM_VERIFY_PEER_HELP',
  1274. 'options' => [
  1275. 1 => 'PLUGIN_ADMIN.YES',
  1276. 0 => 'PLUGIN_ADMIN.NO'
  1277. ],
  1278. 'validate' => [
  1279. 'type' => 'bool'
  1280. ]
  1281. ],
  1282. 'reverse_proxy_setup' => [
  1283. 'type' => 'toggle',
  1284. 'label' => 'PLUGIN_ADMIN.REVERSE_PROXY',
  1285. 'highlight' => 0,
  1286. 'help' => 'PLUGIN_ADMIN.REVERSE_PROXY_HELP',
  1287. 'options' => [
  1288. 1 => 'PLUGIN_ADMIN.YES',
  1289. 0 => 'PLUGIN_ADMIN.NO'
  1290. ],
  1291. 'validate' => [
  1292. 'type' => 'bool'
  1293. ]
  1294. ],
  1295. 'username_regex' => [
  1296. 'type' => 'text',
  1297. 'size' => 'large',
  1298. 'label' => 'PLUGIN_ADMIN.USERNAME_REGEX',
  1299. 'help' => 'PLUGIN_ADMIN.USERNAME_REGEX_HELP'
  1300. ],
  1301. 'pwd_regex' => [
  1302. 'type' => 'text',
  1303. 'size' => 'large',
  1304. 'label' => 'PLUGIN_ADMIN.PWD_REGEX',
  1305. 'help' => 'PLUGIN_ADMIN.PWD_REGEX_HELP'
  1306. ],
  1307. 'intl_enabled' => [
  1308. 'type' => 'toggle',
  1309. 'label' => 'PLUGIN_ADMIN.INTL_ENABLED',
  1310. 'highlight' => 1,
  1311. 'help' => 'PLUGIN_ADMIN.INTL_ENABLED_HELP',
  1312. 'options' => [
  1313. 1 => 'PLUGIN_ADMIN.YES',
  1314. 0 => 'PLUGIN_ADMIN.NO'
  1315. ],
  1316. 'validate' => [
  1317. 'type' => 'bool'
  1318. ]
  1319. ],
  1320. 'wrapped_site' => [
  1321. 'type' => 'toggle',
  1322. 'label' => 'PLUGIN_ADMIN.WRAPPED_SITE',
  1323. 'highlight' => 0,
  1324. 'help' => 'PLUGIN_ADMIN.WRAPPED_SITE_HELP',
  1325. 'options' => [
  1326. 1 => 'PLUGIN_ADMIN.YES',
  1327. 0 => 'PLUGIN_ADMIN.NO'
  1328. ],
  1329. 'validate' => [
  1330. 'type' => 'bool'
  1331. ]
  1332. ],
  1333. 'absolute_urls' => [
  1334. 'type' => 'toggle',
  1335. 'label' => 'PLUGIN_ADMIN.ABSOLUTE_URLS',
  1336. 'highlight' => 0,
  1337. 'help' => 'PLUGIN_ADMIN.ABSOLUTE_URLS_HELP',
  1338. 'options' => [
  1339. 1 => 'PLUGIN_ADMIN.YES',
  1340. 0 => 'PLUGIN_ADMIN.NO'
  1341. ],
  1342. 'validate' => [
  1343. 'type' => 'bool'
  1344. ]
  1345. ],
  1346. 'param_sep' => [
  1347. 'type' => 'select',
  1348. 'size' => 'medium',
  1349. 'label' => 'PLUGIN_ADMIN.PARAMETER_SEPARATOR',
  1350. 'classes' => 'fancy',
  1351. 'help' => 'PLUGIN_ADMIN.PARAMETER_SEPARATOR_HELP',
  1352. 'default' => '',
  1353. 'options' => [
  1354. ':' => ': (default)',
  1355. ';' => '; (for Apache running on Windows)'
  1356. ]
  1357. ],
  1358. 'force_ssl' => [
  1359. 'type' => 'toggle',
  1360. 'label' => 'PLUGIN_ADMIN.FORCE_SSL',
  1361. 'highlight' => 0,
  1362. 'help' => 'PLUGIN_ADMIN.FORCE_SSL_HELP',
  1363. 'options' => [
  1364. 1 => 'PLUGIN_ADMIN.YES',
  1365. 0 => 'PLUGIN_ADMIN.NO'
  1366. ],
  1367. 'validate' => [
  1368. 'type' => 'bool'
  1369. ]
  1370. ],
  1371. 'force_lowercase_urls' => [
  1372. 'type' => 'toggle',
  1373. 'label' => 'PLUGIN_ADMIN.FORCE_LOWERCASE_URLS',
  1374. 'highlight' => 1,
  1375. 'default' => 1,
  1376. 'help' => 'PLUGIN_ADMIN.FORCE_LOWERCASE_URLS_HELP',
  1377. 'options' => [
  1378. 1 => 'PLUGIN_ADMIN.YES',
  1379. 0 => 'PLUGIN_ADMIN.NO'
  1380. ],
  1381. 'validate' => [
  1382. 'type' => 'bool'
  1383. ]
  1384. ],
  1385. 'custom_base_url' => [
  1386. 'type' => 'text',
  1387. 'size' => 'medium',
  1388. 'placeholder' => 'e.g. http://yoursite.com/yourpath',
  1389. 'label' => 'PLUGIN_ADMIN.CUSTOM_BASE_URL',
  1390. 'help' => 'PLUGIN_ADMIN.CUSTOM_BASE_URL_HELP'
  1391. ]
  1392. ]
  1393. ]
  1394. ]
  1395. ]
  1396. ]
  1397. ];