f71f7ba60a1dfd40cf140fcb19ff93f8.yaml.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/home/kevin/Documents/Sites/anissabensalah.net/user/plugins/youtube/blueprints.yaml',
  5. 'modified' => 1544136631,
  6. 'data' => [
  7. 'name' => 'YouTube',
  8. 'version' => '3.0.1',
  9. 'description' => '**YouTube** is a simple plugin that converts markdown links or shortcodes into responsive embeds.',
  10. 'icon' => 'youtube',
  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-youtube',
  17. 'keywords' => 'youtube, markdown',
  18. 'bugs' => 'https://github.com/getgrav/grav-plugin-youtube/issues',
  19. 'license' => 'MIT',
  20. 'form' => [
  21. 'validation' => 'strict',
  22. 'fields' => [
  23. 'enabled' => [
  24. 'type' => 'toggle',
  25. 'label' => 'Plugin status',
  26. 'highlight' => 1,
  27. 'default' => 0,
  28. 'options' => [
  29. 1 => 'Enabled',
  30. 0 => 'Disabled'
  31. ],
  32. 'validate' => [
  33. 'type' => 'bool'
  34. ]
  35. ],
  36. 'built_in_css' => [
  37. 'type' => 'toggle',
  38. 'label' => 'Use built in CSS',
  39. 'highlight' => 1,
  40. 'default' => 1,
  41. 'options' => [
  42. 1 => 'Enabled',
  43. 0 => 'Disabled'
  44. ],
  45. 'validate' => [
  46. 'type' => 'bool'
  47. ]
  48. ],
  49. 'add_editor_button' => [
  50. 'type' => 'toggle',
  51. 'label' => 'Add editor button',
  52. 'help' => 'The editor button allows you to easily enter YouTube videos in the page content',
  53. 'highlight' => 1,
  54. 'default' => 1,
  55. 'options' => [
  56. 1 => 'Enabled',
  57. 0 => 'Disabled'
  58. ],
  59. 'validate' => [
  60. 'type' => 'bool'
  61. ]
  62. ],
  63. 'privacy_enhanced_mode' => [
  64. 'type' => 'toggle',
  65. 'label' => 'Privacy-enhanced mode',
  66. 'help' => 'If enabled, YouTube won’t store information about visitors on your web page unless they play the video.',
  67. 'highlight' => 0,
  68. 'default' => 0,
  69. 'options' => [
  70. 1 => 'Enabled',
  71. 0 => 'Disabled'
  72. ],
  73. 'validate' => [
  74. 'type' => 'bool'
  75. ]
  76. ],
  77. 'player_parameters' => [
  78. 'type' => 'section',
  79. 'title' => 'Player parameters',
  80. 'underline' => true,
  81. 'fields' => [
  82. 'player_parameters.vq' => [
  83. 'type' => 'select',
  84. 'size' => 'medium',
  85. 'label' => 'Preferred video quality',
  86. 'help' => 'Specifies the preferred video quality to display. This may be overridden by YouTube to improve playback quality based on the user\'s screen resolution, bandwidth etc.',
  87. 'default' => 'default',
  88. 'options' => [
  89. 'default' => 'Default',
  90. 'small' => 'Small',
  91. 'medium' => 'Medium',
  92. 'large' => 'Large',
  93. 'highres' => 'High resolution',
  94. 'hd1080' => 'High definition (1080)',
  95. 'hd720' => 'High definition (720)'
  96. ],
  97. 'validate' => [
  98. 'type' => 'string'
  99. ]
  100. ],
  101. 'player_parameters.autoplay' => [
  102. 'type' => 'toggle',
  103. 'label' => 'Autoplay',
  104. 'help' => 'Specifies whether the initial video will automatically start to play when the player loads.',
  105. 'highlight' => 0,
  106. 'default' => 0,
  107. 'options' => [
  108. 1 => 'Enabled',
  109. 0 => 'Disabled'
  110. ],
  111. 'validate' => [
  112. 'type' => 'int'
  113. ]
  114. ],
  115. 'player_parameters.loop' => [
  116. 'type' => 'toggle',
  117. 'label' => 'Loop',
  118. 'help' => 'If enabled, the player will play the initial video again and again.',
  119. 'highlight' => 0,
  120. 'default' => 0,
  121. 'options' => [
  122. 1 => 'Enabled',
  123. 0 => 'Disabled'
  124. ],
  125. 'validate' => [
  126. 'type' => 'int'
  127. ]
  128. ],
  129. 'player_parameters.showinfo' => [
  130. 'type' => 'toggle',
  131. 'label' => 'Show information',
  132. 'help' => 'If enabled, the player will display information like the video title and uploader before the video starts playing.',
  133. 'highlight' => 1,
  134. 'default' => 1,
  135. 'options' => [
  136. 1 => 'Enabled',
  137. 0 => 'Disabled'
  138. ],
  139. 'validate' => [
  140. 'type' => 'int'
  141. ]
  142. ],
  143. 'player_parameters.rel' => [
  144. 'type' => 'toggle',
  145. 'label' => 'Related videos',
  146. 'help' => 'If enabled, the player will show related videos when playback of the initial video ends.',
  147. 'highlight' => 1,
  148. 'default' => 1,
  149. 'options' => [
  150. 1 => 'Enabled',
  151. 0 => 'Disabled'
  152. ],
  153. 'validate' => [
  154. 'type' => 'int'
  155. ]
  156. ],
  157. 'player_parameters.modestbranding' => [
  158. 'type' => 'toggle',
  159. 'label' => 'Modest branding',
  160. 'help' => 'If enabled, the YouTube logo won\'t be displayed in the control bar. Note that a small YouTube text label will still display in the upper-right corner of a paused video when the user\'s mouse pointer hovers over the player.',
  161. 'highlight' => 0,
  162. 'default' => 0,
  163. 'options' => [
  164. 1 => 'Enabled',
  165. 0 => 'Disabled'
  166. ],
  167. 'validate' => [
  168. 'type' => 'int'
  169. ]
  170. ],
  171. 'player_parameters.color' => [
  172. 'type' => 'select',
  173. 'size' => 'medium',
  174. 'label' => 'Color',
  175. 'help' => 'Specifies the color that will be used in the player\'s video progress bar to highlight the amount of the video that the viewer has already seen. Setting this to white will disable the modest branding option.',
  176. 'default' => 'red',
  177. 'options' => [
  178. 'red' => 'Red',
  179. 'white' => 'White'
  180. ],
  181. 'validate' => [
  182. 'type' => 'string'
  183. ]
  184. ],
  185. 'player_parameters.cc_load_policy' => [
  186. 'type' => 'toggle',
  187. 'label' => 'Show closed captions by default',
  188. 'help' => 'If enabled, this causes closed captions to be shown by default, even if the user has turned captions off. The default behavior is based on user preference.',
  189. 'highlight' => 0,
  190. 'default' => 0,
  191. 'options' => [
  192. 1 => 'Enabled',
  193. 0 => 'Disabled'
  194. ],
  195. 'validate' => [
  196. 'type' => 'int'
  197. ]
  198. ],
  199. 'player_parameters.iv_load_policy' => [
  200. 'type' => 'select',
  201. 'size' => 'medium',
  202. 'label' => 'Video annotations',
  203. 'help' => 'Specifies whether video annotatins should be displayed.',
  204. 'default' => 1,
  205. 'options' => [
  206. 1 => 'Displayed by default',
  207. 3 => 'Hidden by default'
  208. ],
  209. 'validate' => [
  210. 'type' => 'int'
  211. ]
  212. ],
  213. 'player_parameters.controls' => [
  214. 'type' => 'toggle',
  215. 'label' => 'Controls',
  216. 'help' => 'Indicates whether the video player controls are displayed.',
  217. 'highlight' => 1,
  218. 'default' => 1,
  219. 'options' => [
  220. 1 => 'Enabled',
  221. 0 => 'Disabled'
  222. ],
  223. 'validate' => [
  224. 'type' => 'int'
  225. ]
  226. ],
  227. 'player_parameters.disablekb' => [
  228. 'type' => 'toggle',
  229. 'label' => 'Keyboard controls',
  230. 'help' => 'If enabled, the player responds to supported keyboard controls.',
  231. 'highlight' => 0,
  232. 'default' => 0,
  233. 'options' => [
  234. 1 => 'Enabled',
  235. 0 => 'Disabled'
  236. ],
  237. 'validate' => [
  238. 'type' => 'int'
  239. ]
  240. ],
  241. 'player_parameters.fs' => [
  242. 'type' => 'toggle',
  243. 'label' => 'Fullscreen button',
  244. 'help' => 'If enabled, the player displays the fullscreen button.',
  245. 'highlight' => 1,
  246. 'default' => 1,
  247. 'options' => [
  248. 1 => 'Enabled',
  249. 0 => 'Disabled'
  250. ],
  251. 'validate' => [
  252. 'type' => 'int'
  253. ]
  254. ],
  255. 'player_parameters.hl' => [
  256. 'type' => 'text',
  257. 'label' => 'Language',
  258. 'placeholder' => 'e.g. en or en-us',
  259. 'help' => 'Specifies the player\'s interface language. This has to be an ISO 639-1 two-letter language code or a fully specified locale. The interface language is used for tooltips in the player and also affects the default caption track. Note that YouTube might select a different caption track language for a particular user based on the user\'s individual language preferences and the availability of caption tracks.',
  260. 'default' => '',
  261. 'validate' => [
  262. 'type' => 'string'
  263. ]
  264. ],
  265. 'player_parameters.enablejsapi' => [
  266. 'type' => 'toggle',
  267. 'label' => 'JavaScript API',
  268. 'help' => 'If enabled, the player may be controlled via IFrame or JavaScript Player API calls.',
  269. 'highlight' => 0,
  270. 'default' => 0,
  271. 'options' => [
  272. 1 => 'Enabled',
  273. 0 => 'Disabled'
  274. ],
  275. 'validate' => [
  276. 'type' => 'int'
  277. ]
  278. ],
  279. 'player_parameters.origin' => [
  280. 'type' => 'text',
  281. 'label' => 'Origin',
  282. 'placeholder' => 'e.g. example.com',
  283. 'help' => 'If using the IFrame API, specify your domain name. This provides an extra security measure for the IFrame API and is only supported for IFrame embeds.',
  284. 'default' => '',
  285. 'validate' => [
  286. 'type' => 'string'
  287. ]
  288. ],
  289. 'player_parameters.playsinline' => [
  290. 'type' => 'toggle',
  291. 'label' => 'iOS playback behavior',
  292. 'help' => 'Specifies whether videos play inline or fullscreen in an HTML5 player on iOS.',
  293. 'highlight' => 0,
  294. 'default' => 0,
  295. 'options' => [
  296. 0 => 'Fullscreen',
  297. 1 => 'Inline'
  298. ],
  299. 'validate' => [
  300. 'type' => 'int'
  301. ]
  302. ]
  303. ]
  304. ]
  305. ]
  306. ]
  307. ]
  308. ];