7d40baafd3052995f3938ec15ff590c4.yaml.php 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/mnt/data/Sites/hehe.net/user/plugins/admin/blueprints.yaml',
  5. 'modified' => 1533014916,
  6. 'data' => [
  7. 'name' => 'Admin Panel',
  8. 'version' => '1.8.7',
  9. 'description' => 'Adds an advanced administration panel to manage your site',
  10. 'icon' => 'empire',
  11. 'author' => [
  12. 'name' => 'Team Grav',
  13. 'email' => 'devs@getgrav.org',
  14. 'url' => 'http://getgrav.org'
  15. ],
  16. 'homepage' => 'https://github.com/getgrav/grav-plugin-admin',
  17. 'keywords' => 'admin, plugin, manager, panel',
  18. 'bugs' => 'https://github.com/getgrav/grav-plugin-admin/issues',
  19. 'docs' => 'https://github.com/getgrav/grav-plugin-admin/blob/develop/README.md',
  20. 'license' => 'MIT',
  21. 'dependencies' => [
  22. 0 => [
  23. 'name' => 'grav',
  24. 'version' => '>=1.4.5'
  25. ],
  26. 1 => [
  27. 'name' => 'form',
  28. 'version' => '>=2.14.0'
  29. ],
  30. 2 => [
  31. 'name' => 'login',
  32. 'version' => '>=2.7.0'
  33. ],
  34. 3 => [
  35. 'name' => 'email',
  36. 'version' => '>=2.7.0'
  37. ]
  38. ],
  39. 'form' => [
  40. 'validation' => 'loose',
  41. 'fields' => [
  42. 'Basics' => [
  43. 'type' => 'section',
  44. 'title' => 'Basics',
  45. 'underline' => false
  46. ],
  47. 'enabled' => [
  48. 'type' => 'hidden',
  49. 'label' => 'PLUGIN_ADMIN.PLUGIN_STATUS',
  50. 'highlight' => 1,
  51. 'default' => 0,
  52. 'options' => [
  53. 1 => 'PLUGIN_ADMIN.ENABLED',
  54. 0 => 'PLUGIN_ADMIN.DISABLED'
  55. ],
  56. 'validate' => [
  57. 'type' => 'bool'
  58. ]
  59. ],
  60. 'cache_enabled' => [
  61. 'type' => 'toggle',
  62. 'label' => 'PLUGIN_ADMIN.ADMIN_CACHING',
  63. 'help' => 'PLUGIN_ADMIN.ADMIN_CACHING_HELP',
  64. 'highlight' => 0,
  65. 'options' => [
  66. 1 => 'PLUGIN_ADMIN.YES',
  67. 0 => 'PLUGIN_ADMIN.NO'
  68. ],
  69. 'validate' => [
  70. 'type' => 'bool'
  71. ]
  72. ],
  73. 'twofa_enabled' => [
  74. 'type' => 'toggle',
  75. 'label' => 'PLUGIN_ADMIN.2FA_TITLE',
  76. 'help' => 'PLUGIN_ADMIN.2FA_ENABLED_HELP',
  77. 'default' => 1,
  78. 'highlight' => 1,
  79. 'options' => [
  80. 1 => 'PLUGIN_ADMIN.YES',
  81. 0 => 'PLUGIN_ADMIN.NO'
  82. ],
  83. 'validate' => [
  84. 'type' => 'bool'
  85. ]
  86. ],
  87. 'route' => [
  88. 'type' => 'text',
  89. 'label' => 'Administrator path',
  90. 'size' => 'medium',
  91. 'placeholder' => 'Default route for administrator (relative to base)',
  92. 'help' => 'If you want to change the URL for the administrator, you can provide a path here'
  93. ],
  94. 'logo_text' => [
  95. 'type' => 'text',
  96. 'label' => 'Logo text',
  97. 'size' => 'medium',
  98. 'placeholder' => 'Grav',
  99. 'help' => 'Text to display in place of the default Grav logo'
  100. ],
  101. 'content_padding' => [
  102. 'type' => 'toggle',
  103. 'label' => 'PLUGIN_ADMIN.CONTENT_PADDING',
  104. 'help' => 'PLUGIN_ADMIN.CONTENT_PADDING_HELP',
  105. 'highlight' => 1,
  106. 'options' => [
  107. 1 => 'PLUGIN_ADMIN.YES',
  108. 0 => 'PLUGIN_ADMIN.NO'
  109. ],
  110. 'validate' => [
  111. 'type' => 'bool'
  112. ]
  113. ],
  114. 'body_classes' => [
  115. 'type' => 'text',
  116. 'label' => 'Body classes',
  117. 'size' => 'medium',
  118. 'help' => 'Add a space separated name of custom body classes'
  119. ],
  120. 'sidebar.activate' => [
  121. 'type' => 'select',
  122. 'label' => 'Sidebar Activation',
  123. 'help' => 'Control how the sidebar is activated',
  124. 'size' => 'small',
  125. 'default' => 'tab',
  126. 'options' => [
  127. 'tab' => 'Tab',
  128. 'hover' => 'Hover'
  129. ]
  130. ],
  131. 'sidebar.hover_delay' => [
  132. 'type' => 'text',
  133. 'size' => 'x-small',
  134. 'append' => 'millseconds',
  135. 'label' => 'Hover delay',
  136. 'default' => 500,
  137. 'validate' => [
  138. 'type' => 'number',
  139. 'min' => 1
  140. ]
  141. ],
  142. 'sidebar.size' => [
  143. 'type' => 'select',
  144. 'label' => 'Sidebar Size',
  145. 'help' => 'Control the width of the sidebar',
  146. 'size' => 'medium',
  147. 'default' => 'auto',
  148. 'options' => [
  149. 'auto' => 'Automatic width',
  150. 'small' => 'Small width'
  151. ]
  152. ],
  153. 'theme' => [
  154. 'type' => 'hidden',
  155. 'label' => 'Theme',
  156. 'default' => 'grav'
  157. ],
  158. 'edit_mode' => [
  159. 'type' => 'select',
  160. 'label' => 'Edit mode',
  161. 'size' => 'small',
  162. 'default' => 'normal',
  163. 'options' => [
  164. 'normal' => 'Normal',
  165. 'expert' => 'Expert'
  166. ],
  167. 'help' => 'Auto will use blueprint if available, if none found, it will use "Expert" mode.'
  168. ],
  169. 'frontend_preview_target' => [
  170. 'type' => 'select',
  171. 'label' => 'Preview pages target',
  172. 'size' => 'medium',
  173. 'default' => 'inline',
  174. 'options' => [
  175. 'inline' => 'Inline in Admin',
  176. '_blank' => 'New tab',
  177. '_self' => 'Current tab'
  178. ]
  179. ],
  180. 'pages.show_parents' => [
  181. 'type' => 'select',
  182. 'size' => 'medium',
  183. 'label' => 'Parent dropdown',
  184. 'highlight' => 1,
  185. 'options' => [
  186. 'both' => 'Show slug and folder',
  187. 'folder' => 'Show folder',
  188. 'fullpath' => 'Show fullpath'
  189. ]
  190. ],
  191. 'pages.parents_levels' => [
  192. 'type' => 'text',
  193. 'label' => 'Parents Levels',
  194. 'size' => 'small',
  195. 'help' => 'The number of levels to show in parent select list'
  196. ],
  197. 'google_fonts' => [
  198. 'type' => 'toggle',
  199. 'label' => 'Use Google Fonts',
  200. 'highlight' => 0,
  201. 'default' => 0,
  202. 'options' => [
  203. 1 => 'PLUGIN_ADMIN.ENABLED',
  204. 0 => 'PLUGIN_ADMIN.DISABLED'
  205. ],
  206. 'validate' => [
  207. 'type' => 'bool'
  208. ],
  209. 'help' => 'Use Google custom fonts. Disable this to use Helvetica. Useful when using Cyrillic and other languages with unsupported characters.'
  210. ],
  211. 'admin_icons' => [
  212. 'type' => 'select',
  213. 'size' => 'medium',
  214. 'label' => 'Icon Style',
  215. 'default' => 'line-awesome',
  216. 'options' => [
  217. 'line-awesome' => 'Lighter Line Icons (LineAwesome)',
  218. 'font-awesome' => 'Darker Solid Icons (FontAwesome)'
  219. ]
  220. ],
  221. 'show_beta_msg' => [
  222. 'type' => 'hidden'
  223. ],
  224. 'show_github_msg' => [
  225. 'type' => 'toggle',
  226. 'label' => 'Show GitHub Link',
  227. 'highlight' => 1,
  228. 'default' => 1,
  229. 'options' => [
  230. 1 => 'PLUGIN_ADMIN.ENABLED',
  231. 0 => 'PLUGIN_ADMIN.DISABLED'
  232. ],
  233. 'validate' => [
  234. 'type' => 'bool'
  235. ],
  236. 'help' => 'Show the "Found an issue? Please report it on GitHub." message.'
  237. ],
  238. 'pages_list_display_field' => [
  239. 'type' => 'text',
  240. 'size' => 'small',
  241. 'label' => 'Pages List Display Field',
  242. 'help' => 'Field of the page to use in the list of pages if present. Defaults/Fallback to title.'
  243. ],
  244. 'enable_auto_updates_check' => [
  245. 'type' => 'toggle',
  246. 'label' => 'Automatically check for updates',
  247. 'highlight' => 1,
  248. 'default' => 1,
  249. 'options' => [
  250. 1 => 'PLUGIN_ADMIN.ENABLED',
  251. 0 => 'PLUGIN_ADMIN.DISABLED'
  252. ],
  253. 'validate' => [
  254. 'type' => 'bool'
  255. ],
  256. 'help' => 'Shows an informative message, in the admin panel, when an update is available.'
  257. ],
  258. 'session.timeout' => [
  259. 'type' => 'text',
  260. 'size' => 'small',
  261. 'label' => 'Session Timeout',
  262. 'append' => 'secs',
  263. 'help' => 'Sets the session timeout in seconds',
  264. 'validate' => [
  265. 'type' => 'number',
  266. 'min' => 1
  267. ]
  268. ],
  269. 'warnings.delete_page' => [
  270. 'type' => 'toggle',
  271. 'label' => 'Warn on page delete',
  272. 'highlight' => 1,
  273. 'default' => 1,
  274. 'options' => [
  275. 1 => 'PLUGIN_ADMIN.ENABLED',
  276. 0 => 'PLUGIN_ADMIN.DISABLED'
  277. ],
  278. 'validate' => [
  279. 'type' => 'bool'
  280. ],
  281. 'help' => 'Ask the user confirmation when deleting a page'
  282. ],
  283. 'hide_page_types' => [
  284. 'type' => 'array',
  285. 'label' => 'Hide page types in Admin',
  286. 'value_only' => true
  287. ],
  288. 'hide_modular_page_types' => [
  289. 'type' => 'array',
  290. 'label' => 'Hide modular page types in Admin',
  291. 'value_only' => true
  292. ],
  293. 'MediaResize' => [
  294. 'type' => 'section',
  295. 'title' => 'Page Media Image Resizer',
  296. 'underline' => true
  297. ],
  298. 'MediaResizeNote' => [
  299. 'type' => 'spacer',
  300. 'text' => 'PLUGIN_ADMIN.PAGEMEDIA_RESIZER',
  301. 'markdown' => true
  302. ],
  303. 'pagemedia.resize_width' => [
  304. 'type' => 'number',
  305. 'size' => 'x-small',
  306. 'append' => 'pixels',
  307. 'label' => 'Resize Width',
  308. 'default' => 0,
  309. 'validate' => [
  310. 'type' => 'number'
  311. ],
  312. 'help' => 'Resize wide images down to the set value'
  313. ],
  314. 'pagemedia.resize_height' => [
  315. 'type' => 'number',
  316. 'size' => 'x-small',
  317. 'append' => 'pixels',
  318. 'label' => 'Resize Height',
  319. 'default' => 0,
  320. 'validate' => [
  321. 'type' => 'number'
  322. ],
  323. 'help' => 'Resize tall images down to the set value'
  324. ],
  325. 'pagemedia.res_min_width' => [
  326. 'type' => 'number',
  327. 'size' => 'x-small',
  328. 'append' => 'pixels',
  329. 'label' => 'Resolution Min Width',
  330. 'default' => 0,
  331. 'validate' => [
  332. 'type' => 'number'
  333. ],
  334. 'help' => 'The minimum width allowed for an image to be added'
  335. ],
  336. 'pagemedia.res_min_height' => [
  337. 'type' => 'number',
  338. 'size' => 'x-small',
  339. 'append' => 'pixels',
  340. 'label' => 'Resolution Min Height',
  341. 'default' => 0,
  342. 'validate' => [
  343. 'type' => 'number'
  344. ],
  345. 'help' => 'The minimum height allowed for an image to be added'
  346. ],
  347. 'pagemedia.res_max_width' => [
  348. 'type' => 'number',
  349. 'size' => 'x-small',
  350. 'append' => 'pixels',
  351. 'label' => 'Resolution Max Width',
  352. 'default' => 0,
  353. 'validate' => [
  354. 'type' => 'number'
  355. ],
  356. 'help' => 'The maximum width allowed for an image to be added'
  357. ],
  358. 'pagemedia.res_max_height' => [
  359. 'type' => 'number',
  360. 'size' => 'x-small',
  361. 'append' => 'pixels',
  362. 'label' => 'Resolution Max Height',
  363. 'default' => 0,
  364. 'validate' => [
  365. 'type' => 'number'
  366. ],
  367. 'help' => 'The maximum height allowed for an image to be added'
  368. ],
  369. 'pagemedia.resize_quality' => [
  370. 'type' => 'number',
  371. 'size' => 'x-small',
  372. 'append' => '0...1',
  373. 'label' => 'Resize Quality',
  374. 'default' => 0.8,
  375. 'validate' => [
  376. 'type' => 'number',
  377. 'step' => 0.01
  378. ],
  379. 'help' => 'The quality to use when resizing an image. Between 0 and 1 value.'
  380. ],
  381. 'Dashboard' => [
  382. 'type' => 'section',
  383. 'title' => 'Dashboard',
  384. 'underline' => true
  385. ],
  386. 'widgets.dashboard-maintenance' => [
  387. 'type' => 'toggle',
  388. 'label' => 'Maintenance Widget',
  389. 'highlight' => 1,
  390. 'default' => 1,
  391. 'options' => [
  392. 1 => 'PLUGIN_ADMIN.ENABLED',
  393. 0 => 'PLUGIN_ADMIN.DISABLED'
  394. ],
  395. 'validate' => [
  396. 'type' => 'bool'
  397. ],
  398. 'help' => 'Display dashboard maintenance widget'
  399. ],
  400. 'widgets.dashboard-statistics' => [
  401. 'type' => 'toggle',
  402. 'label' => 'Statistics Widget',
  403. 'highlight' => 1,
  404. 'default' => 1,
  405. 'options' => [
  406. 1 => 'PLUGIN_ADMIN.ENABLED',
  407. 0 => 'PLUGIN_ADMIN.DISABLED'
  408. ],
  409. 'validate' => [
  410. 'type' => 'bool'
  411. ],
  412. 'help' => 'Display dashboard statistics widget'
  413. ],
  414. 'widgets.dashboard-notifications' => [
  415. 'type' => 'toggle',
  416. 'label' => 'Notifications Feed Widget',
  417. 'highlight' => 1,
  418. 'default' => 1,
  419. 'options' => [
  420. 1 => 'PLUGIN_ADMIN.ENABLED',
  421. 0 => 'PLUGIN_ADMIN.DISABLED'
  422. ],
  423. 'validate' => [
  424. 'type' => 'bool'
  425. ],
  426. 'help' => 'Display dashboard notifications feed widget'
  427. ],
  428. 'widgets.dashboard-feed' => [
  429. 'type' => 'toggle',
  430. 'label' => 'News Feed Widget',
  431. 'highlight' => 1,
  432. 'default' => 1,
  433. 'options' => [
  434. 1 => 'PLUGIN_ADMIN.ENABLED',
  435. 0 => 'PLUGIN_ADMIN.DISABLED'
  436. ],
  437. 'validate' => [
  438. 'type' => 'bool'
  439. ],
  440. 'help' => 'Display dashboard news feed widget'
  441. ],
  442. 'widgets.dashboard-pages' => [
  443. 'type' => 'toggle',
  444. 'label' => 'Latest Pages Widget',
  445. 'highlight' => 1,
  446. 'default' => 1,
  447. 'options' => [
  448. 1 => 'PLUGIN_ADMIN.ENABLED',
  449. 0 => 'PLUGIN_ADMIN.DISABLED'
  450. ],
  451. 'validate' => [
  452. 'type' => 'bool'
  453. ],
  454. 'help' => 'Display dashboard latest pages widget'
  455. ],
  456. 'Notifications' => [
  457. 'type' => 'section',
  458. 'title' => 'Notifications',
  459. 'underline' => true
  460. ],
  461. 'notifications.feed' => [
  462. 'type' => 'toggle',
  463. 'label' => 'Feed Notifications',
  464. 'highlight' => 1,
  465. 'default' => 1,
  466. 'options' => [
  467. 1 => 'PLUGIN_ADMIN.ENABLED',
  468. 0 => 'PLUGIN_ADMIN.DISABLED'
  469. ],
  470. 'validate' => [
  471. 'type' => 'bool'
  472. ],
  473. 'help' => 'Display feed-based notifications'
  474. ],
  475. 'notifications.dashboard' => [
  476. 'type' => 'toggle',
  477. 'label' => 'Dashboard Notifications',
  478. 'highlight' => 1,
  479. 'default' => 1,
  480. 'options' => [
  481. 1 => 'PLUGIN_ADMIN.ENABLED',
  482. 0 => 'PLUGIN_ADMIN.DISABLED'
  483. ],
  484. 'validate' => [
  485. 'type' => 'bool'
  486. ],
  487. 'help' => 'Display dashboard-based notifications'
  488. ],
  489. 'notifications.plugins' => [
  490. 'type' => 'toggle',
  491. 'label' => 'Plugins Notifications',
  492. 'highlight' => 1,
  493. 'default' => 1,
  494. 'options' => [
  495. 1 => 'PLUGIN_ADMIN.ENABLED',
  496. 0 => 'PLUGIN_ADMIN.DISABLED'
  497. ],
  498. 'validate' => [
  499. 'type' => 'bool'
  500. ],
  501. 'help' => 'Display plugins-targeted notifications'
  502. ],
  503. 'notifications.themes' => [
  504. 'type' => 'toggle',
  505. 'label' => 'Themes Notifications',
  506. 'highlight' => 1,
  507. 'default' => 1,
  508. 'options' => [
  509. 1 => 'PLUGIN_ADMIN.ENABLED',
  510. 0 => 'PLUGIN_ADMIN.DISABLED'
  511. ],
  512. 'validate' => [
  513. 'type' => 'bool'
  514. ],
  515. 'help' => 'Display themes-targeted notifications'
  516. ],
  517. 'Popularity' => [
  518. 'type' => 'section',
  519. 'title' => 'Popularity',
  520. 'underline' => true
  521. ],
  522. 'popularity.enabled' => [
  523. 'type' => 'toggle',
  524. 'label' => 'Visitor tracking',
  525. 'highlight' => 1,
  526. 'default' => 1,
  527. 'options' => [
  528. 1 => 'PLUGIN_ADMIN.ENABLED',
  529. 0 => 'PLUGIN_ADMIN.DISABLED'
  530. ],
  531. 'validate' => [
  532. 'type' => 'bool'
  533. ],
  534. 'help' => 'Enable the visitors stats collecting feature'
  535. ],
  536. 'dashboard.days_of_stats' => [
  537. 'type' => 'text',
  538. 'label' => 'Days of stats',
  539. 'append' => 'days',
  540. 'size' => 'x-small',
  541. 'default' => 7,
  542. 'help' => 'Keep stats for the specified number of days, then drop them',
  543. 'validate' => [
  544. 'type' => 'int'
  545. ]
  546. ],
  547. 'popularity.ignore' => [
  548. 'type' => 'array',
  549. 'label' => 'Ignore',
  550. 'size' => 'large',
  551. 'help' => 'URLs to ignore',
  552. 'default' => [
  553. 0 => '/test*',
  554. 1 => '/modular'
  555. ],
  556. 'value_only' => true,
  557. 'placeholder_value' => '/ignore-this-route'
  558. ],
  559. 'popularity.history.daily' => [
  560. 'type' => 'hidden',
  561. 'label' => 'Daily history',
  562. 'default' => 30
  563. ],
  564. 'popularity.history.monthly' => [
  565. 'type' => 'hidden',
  566. 'label' => 'Monthly history',
  567. 'default' => 12
  568. ],
  569. 'popularity.history.visitors' => [
  570. 'type' => 'hidden',
  571. 'label' => 'Visitors history',
  572. 'default' => 20
  573. ]
  574. ]
  575. ]
  576. ]
  577. ];