bdbf934defa3f8a9f0a1974fe0f79355.yaml.php 24 KB

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