53fc171b308742d2523d51213e2b36aa.yaml.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/mnt/data/Sites/static-ethica.net/user/plugins/admin/blueprints.yaml',
  5. 'modified' => 1520021428,
  6. 'data' => [
  7. 'name' => 'Admin Panel',
  8. 'version' => '1.6.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.3.9'
  25. ],
  26. 1 => [
  27. 'name' => 'form',
  28. 'version' => '>=2.11.0'
  29. ],
  30. 2 => [
  31. 'name' => 'login',
  32. 'version' => '>=2.5.0'
  33. ],
  34. 3 => [
  35. 'name' => 'email',
  36. 'version' => '~2.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_pages_target' => [
  170. 'type' => 'select',
  171. 'label' => 'Open frontend pages in',
  172. 'size' => 'medium',
  173. 'default' => '_blank',
  174. 'options' => [
  175. '_blank' => 'New tab',
  176. 'frontend_tab' => 'Separate tab (always the same)',
  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. 'google_fonts' => [
  192. 'type' => 'toggle',
  193. 'label' => 'Use Google Fonts',
  194. 'highlight' => 1,
  195. 'default' => 1,
  196. 'options' => [
  197. 1 => 'PLUGIN_ADMIN.ENABLED',
  198. 0 => 'PLUGIN_ADMIN.DISABLED'
  199. ],
  200. 'validate' => [
  201. 'type' => 'bool'
  202. ],
  203. 'help' => 'Use Google custom fonts. Disable this to use Helvetica. Useful when using Cyrillic and other languages with unsupported characters.'
  204. ],
  205. 'show_beta_msg' => [
  206. 'type' => 'hidden'
  207. ],
  208. 'show_github_msg' => [
  209. 'type' => 'toggle',
  210. 'label' => 'Show GitHub Link',
  211. 'highlight' => 1,
  212. 'default' => 1,
  213. 'options' => [
  214. 1 => 'PLUGIN_ADMIN.ENABLED',
  215. 0 => 'PLUGIN_ADMIN.DISABLED'
  216. ],
  217. 'validate' => [
  218. 'type' => 'bool'
  219. ],
  220. 'help' => 'Show the "Found an issue? Please report it on GitHub." message.'
  221. ],
  222. 'pages_list_display_field' => [
  223. 'type' => 'text',
  224. 'size' => 'small',
  225. 'label' => 'Pages List Display Field',
  226. 'help' => 'Field of the page to use in the list of pages if present. Defaults/Fallback to title.'
  227. ],
  228. 'enable_auto_updates_check' => [
  229. 'type' => 'toggle',
  230. 'label' => 'Automatically check for updates',
  231. 'highlight' => 1,
  232. 'default' => 1,
  233. 'options' => [
  234. 1 => 'PLUGIN_ADMIN.ENABLED',
  235. 0 => 'PLUGIN_ADMIN.DISABLED'
  236. ],
  237. 'validate' => [
  238. 'type' => 'bool'
  239. ],
  240. 'help' => 'Shows an informative message, in the admin panel, when an update is available.'
  241. ],
  242. 'session.timeout' => [
  243. 'type' => 'text',
  244. 'size' => 'small',
  245. 'label' => 'Session Timeout',
  246. 'append' => 'secs',
  247. 'help' => 'Sets the session timeout in seconds',
  248. 'validate' => [
  249. 'type' => 'number',
  250. 'min' => 1
  251. ]
  252. ],
  253. 'warnings.delete_page' => [
  254. 'type' => 'toggle',
  255. 'label' => 'Warn on page delete',
  256. 'highlight' => 1,
  257. 'default' => 1,
  258. 'options' => [
  259. 1 => 'PLUGIN_ADMIN.ENABLED',
  260. 0 => 'PLUGIN_ADMIN.DISABLED'
  261. ],
  262. 'validate' => [
  263. 'type' => 'bool'
  264. ],
  265. 'help' => 'Ask the user confirmation when deleting a page'
  266. ],
  267. 'hide_page_types' => [
  268. 'type' => 'array',
  269. 'label' => 'Hide page types in Admin',
  270. 'value_only' => true
  271. ],
  272. 'hide_modular_page_types' => [
  273. 'type' => 'array',
  274. 'label' => 'Hide modular page types in Admin',
  275. 'value_only' => true
  276. ],
  277. 'Dashboard' => [
  278. 'type' => 'section',
  279. 'title' => 'Dashboard',
  280. 'underline' => true
  281. ],
  282. 'widgets.dashboard-maintenance' => [
  283. 'type' => 'toggle',
  284. 'label' => 'Maintenance Widget',
  285. 'highlight' => 1,
  286. 'default' => 1,
  287. 'options' => [
  288. 1 => 'PLUGIN_ADMIN.ENABLED',
  289. 0 => 'PLUGIN_ADMIN.DISABLED'
  290. ],
  291. 'validate' => [
  292. 'type' => 'bool'
  293. ],
  294. 'help' => 'Display dashboard maintenance widget'
  295. ],
  296. 'widgets.dashboard-statistics' => [
  297. 'type' => 'toggle',
  298. 'label' => 'Statistics Widget',
  299. 'highlight' => 1,
  300. 'default' => 1,
  301. 'options' => [
  302. 1 => 'PLUGIN_ADMIN.ENABLED',
  303. 0 => 'PLUGIN_ADMIN.DISABLED'
  304. ],
  305. 'validate' => [
  306. 'type' => 'bool'
  307. ],
  308. 'help' => 'Display dashboard statistics widget'
  309. ],
  310. 'widgets.dashboard-notifications' => [
  311. 'type' => 'toggle',
  312. 'label' => 'Notifications Feed Widget',
  313. 'highlight' => 1,
  314. 'default' => 1,
  315. 'options' => [
  316. 1 => 'PLUGIN_ADMIN.ENABLED',
  317. 0 => 'PLUGIN_ADMIN.DISABLED'
  318. ],
  319. 'validate' => [
  320. 'type' => 'bool'
  321. ],
  322. 'help' => 'Display dashboard notifications feed widget'
  323. ],
  324. 'widgets.dashboard-feed' => [
  325. 'type' => 'toggle',
  326. 'label' => 'News Feed Widget',
  327. 'highlight' => 1,
  328. 'default' => 1,
  329. 'options' => [
  330. 1 => 'PLUGIN_ADMIN.ENABLED',
  331. 0 => 'PLUGIN_ADMIN.DISABLED'
  332. ],
  333. 'validate' => [
  334. 'type' => 'bool'
  335. ],
  336. 'help' => 'Display dashboard news feed widget'
  337. ],
  338. 'widgets.dashboard-pages' => [
  339. 'type' => 'toggle',
  340. 'label' => 'Latest Pages Widget',
  341. 'highlight' => 1,
  342. 'default' => 1,
  343. 'options' => [
  344. 1 => 'PLUGIN_ADMIN.ENABLED',
  345. 0 => 'PLUGIN_ADMIN.DISABLED'
  346. ],
  347. 'validate' => [
  348. 'type' => 'bool'
  349. ],
  350. 'help' => 'Display dashboard latest pages widget'
  351. ],
  352. 'Notifications' => [
  353. 'type' => 'section',
  354. 'title' => 'Notifications',
  355. 'underline' => true
  356. ],
  357. 'notifications.feed' => [
  358. 'type' => 'toggle',
  359. 'label' => 'Feed Notifications',
  360. 'highlight' => 1,
  361. 'default' => 1,
  362. 'options' => [
  363. 1 => 'PLUGIN_ADMIN.ENABLED',
  364. 0 => 'PLUGIN_ADMIN.DISABLED'
  365. ],
  366. 'validate' => [
  367. 'type' => 'bool'
  368. ],
  369. 'help' => 'Display feed-based notifications'
  370. ],
  371. 'notifications.dashboard' => [
  372. 'type' => 'toggle',
  373. 'label' => 'Dashboard Notifications',
  374. 'highlight' => 1,
  375. 'default' => 1,
  376. 'options' => [
  377. 1 => 'PLUGIN_ADMIN.ENABLED',
  378. 0 => 'PLUGIN_ADMIN.DISABLED'
  379. ],
  380. 'validate' => [
  381. 'type' => 'bool'
  382. ],
  383. 'help' => 'Display dashboard-based notifications'
  384. ],
  385. 'notifications.plugins' => [
  386. 'type' => 'toggle',
  387. 'label' => 'Plugins Notifications',
  388. 'highlight' => 1,
  389. 'default' => 1,
  390. 'options' => [
  391. 1 => 'PLUGIN_ADMIN.ENABLED',
  392. 0 => 'PLUGIN_ADMIN.DISABLED'
  393. ],
  394. 'validate' => [
  395. 'type' => 'bool'
  396. ],
  397. 'help' => 'Display plugins-targeted notifications'
  398. ],
  399. 'notifications.themes' => [
  400. 'type' => 'toggle',
  401. 'label' => 'Themes Notifications',
  402. 'highlight' => 1,
  403. 'default' => 1,
  404. 'options' => [
  405. 1 => 'PLUGIN_ADMIN.ENABLED',
  406. 0 => 'PLUGIN_ADMIN.DISABLED'
  407. ],
  408. 'validate' => [
  409. 'type' => 'bool'
  410. ],
  411. 'help' => 'Display themes-targeted notifications'
  412. ],
  413. 'Popularity' => [
  414. 'type' => 'section',
  415. 'title' => 'Popularity',
  416. 'underline' => true
  417. ],
  418. 'popularity.enabled' => [
  419. 'type' => 'toggle',
  420. 'label' => 'Visitor tracking',
  421. 'highlight' => 1,
  422. 'default' => 1,
  423. 'options' => [
  424. 1 => 'PLUGIN_ADMIN.ENABLED',
  425. 0 => 'PLUGIN_ADMIN.DISABLED'
  426. ],
  427. 'validate' => [
  428. 'type' => 'bool'
  429. ],
  430. 'help' => 'Enable the visitors stats collecting feature'
  431. ],
  432. 'dashboard.days_of_stats' => [
  433. 'type' => 'text',
  434. 'label' => 'Days of stats',
  435. 'append' => 'days',
  436. 'size' => 'x-small',
  437. 'default' => 7,
  438. 'help' => 'Keep stats for the specified number of days, then drop them',
  439. 'validate' => [
  440. 'type' => 'int'
  441. ]
  442. ],
  443. 'popularity.ignore' => [
  444. 'type' => 'array',
  445. 'label' => 'Ignore',
  446. 'size' => 'large',
  447. 'help' => 'URLs to ignore',
  448. 'default' => [
  449. 0 => '/test*',
  450. 1 => '/modular'
  451. ],
  452. 'value_only' => true,
  453. 'placeholder_value' => '/ignore-this-route'
  454. ],
  455. 'popularity.history.daily' => [
  456. 'type' => 'hidden',
  457. 'label' => 'Daily history',
  458. 'default' => 30
  459. ],
  460. 'popularity.history.monthly' => [
  461. 'type' => 'hidden',
  462. 'label' => 'Monthly history',
  463. 'default' => 12
  464. ],
  465. 'popularity.history.visitors' => [
  466. 'type' => 'hidden',
  467. 'label' => 'Visitors history',
  468. 'default' => 20
  469. ]
  470. ]
  471. ]
  472. ]
  473. ];