0d9d16b8cdc536c6074d448e30104953.yaml.php 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/mnt/data/Sites/static-ethica.net/user/config/plugins/mediaembed.yaml',
  5. 'modified' => 1520021421,
  6. 'data' => [
  7. 'enabled' => true,
  8. 'link' => false,
  9. 'built_in_css' => true,
  10. 'built_in_js' => true,
  11. 'media' => [
  12. 'width' => 640,
  13. 'height' => 390,
  14. 'adjust' => true,
  15. 'preview' => true,
  16. 'responsive' => true,
  17. 'protocol' => 'http://'
  18. ],
  19. 'services' => [
  20. 'SoundCloud' => [
  21. 'enabled' => true,
  22. 'type' => 'rich',
  23. 'example' => 'https://soundcloud.com/semiseria/verruckert-ausschnitt',
  24. 'url' => 'w.soundcloud.com/player/?url=http://api.soundcloud.com/tracks/{:id}',
  25. 'canonical' => 'http://soundcloud.com/{:id}',
  26. 'endpoint' => 'http://soundcloud.com/oembed?url={:canonical}&format=json',
  27. 'schemes' => [
  28. 0 => 'soundcloud.com/*',
  29. 1 => 'soundcloud.com/*/*',
  30. 2 => 'soundcloud.com/*/sets/*',
  31. 3 => 'soundcloud.com/groups/*',
  32. 4 => 'snd.sc/*'
  33. ],
  34. 'params' => [
  35. 'auto_play' => false,
  36. 'buying' => true,
  37. 'download' => true,
  38. 'hide_related' => false,
  39. 'liking' => true,
  40. 'sharing' => true,
  41. 'show_artwork' => true,
  42. 'show_comments' => true,
  43. 'show_playcount' => true,
  44. 'show_user' => true,
  45. 'visual' => false
  46. ]
  47. ],
  48. 'Spotify' => [
  49. 'enabled' => true,
  50. 'type' => 'rich',
  51. 'canonical' => 'http://open.spotify.com/track/{:id}',
  52. 'endpoint' => 'https://embed.spotify.com/oembed/?url={:canonical}&format=json',
  53. 'schemes' => [
  54. 0 => 'open.spotify.com/track/*',
  55. 1 => 'spoti.fi/*'
  56. ]
  57. ],
  58. 'Flickr' => [
  59. 'enabled' => true,
  60. 'type' => 'photo',
  61. 'canonical' => 'http://www.flickr.com/photos/{:id}',
  62. 'endpoint' => 'http://flickr.com/services/oembed?url={:canonical}&format=json',
  63. 'schemes' => [
  64. 0 => 'flickr.com/photos/*',
  65. 1 => 'flic.kr/*'
  66. ]
  67. ],
  68. 'Imgur' => [
  69. 'enabled' => true,
  70. 'type' => 'rich',
  71. 'canonical' => 'http://imgur.com/gallery/{:id}',
  72. 'endpoint' => 'http://api.imgur.com/oembed?url={:canonical}&format=json',
  73. 'schemes' => [
  74. 0 => 'imgur.com/gallery/*',
  75. 1 => 'imgur.com/a/*',
  76. 2 => 'imgur.com/*'
  77. ]
  78. ],
  79. 'Instagram' => [
  80. 'enabled' => true,
  81. 'type' => 'rich',
  82. 'canonical' => 'http://instagram.com/p/{:id}',
  83. 'endpoint' => 'http://api.instagram.com/oembed?url={:canonical}&format=json',
  84. 'schemes' => [
  85. 0 => 'instagr.am/p/*',
  86. 1 => 'instagram.com/p/*'
  87. ]
  88. ],
  89. 'Dailymotion' => [
  90. 'enabled' => true,
  91. 'type' => 'video',
  92. 'url' => 'www.dailymotion.com/embed/video/{:id}',
  93. 'canonical' => 'http://dailymotion.com/video/{:id}',
  94. 'endpoint' => 'http://www.dailymotion.com/services/oembed?url={:canonical}&format=json',
  95. 'schemes' => [
  96. 0 => 'dailymotion.com/video/*',
  97. 1 => 'dailymotion.com/*/video/*',
  98. 2 => 'dai\\.ly/*'
  99. ],
  100. 'params' => [
  101. 'quality' => 1080
  102. ]
  103. ],
  104. 'YouTube' => [
  105. 'enabled' => true,
  106. 'type' => 'video',
  107. 'url' => 'www.youtube.com/embed/{:id}',
  108. 'canonical' => 'http://www.youtube.com/watch?v={:id}',
  109. 'endpoint' => 'http://www.youtube.com/oembed?url={:canonical}&format=json',
  110. 'schemes' => [
  111. 0 => 'youtube.com/watch?*v=*',
  112. 1 => 'youtube.com/embed/*',
  113. 2 => 'youtube.com/v/*',
  114. 3 => 'youtube.com/?*v=*',
  115. 4 => 'youtu.be/*'
  116. ],
  117. 'params' => [
  118. 'autoplay' => 0,
  119. 'modestbranding' => 1,
  120. 'theme' => 'light'
  121. ]
  122. ],
  123. 'Vimeo' => [
  124. 'enabled' => true,
  125. 'type' => 'video',
  126. 'url' => 'player.vimeo.com/video/{:id}',
  127. 'canonical' => 'https://vimeo.com/{:id}',
  128. 'endpoint' => 'http://vimeo.com/api/oembed.json?url={:canonical}',
  129. 'schemes' => [
  130. 0 => 'vimeo.com/*',
  131. 1 => 'vimeo.com/channels/*/*',
  132. 2 => 'vimeo.com/groups/*/videos/*'
  133. ],
  134. 'params' => [
  135. 'autoplay' => 0
  136. ]
  137. ],
  138. 'Github' => [
  139. 'enabled' => true,
  140. 'type' => 'rich',
  141. 'canonical' => 'https://gist.github.com/{:id}',
  142. 'endpoint' => 'https://gist.github.com/{:id}.json',
  143. 'schemes' => [
  144. 0 => 'gist.github.com/*',
  145. 1 => 'gist.github.com/*/*',
  146. 2 => 'gist.github.com/*?*'
  147. ]
  148. ],
  149. 'Slides' => [
  150. 'enabled' => true,
  151. 'type' => 'rich',
  152. 'canonical' => 'http://slides.com/{:id}',
  153. 'endpoint' => 'http://slides.com/{:id}',
  154. 'schemes' => [
  155. 0 => 'slides.com/*',
  156. 1 => 'slid.es/*'
  157. ],
  158. 'params' => [
  159. 'style' => 'light',
  160. 'width' => 1920,
  161. 'height' => 1400
  162. ]
  163. ],
  164. 'Twitter' => [
  165. 'enabled' => true,
  166. 'type' => 'rich',
  167. 'canonical' => 'https://twitter.com/{:id}',
  168. 'endpoint' => 'https://api.twitter.com/1/statuses/oembed.json?url={:canonical}',
  169. 'schemes' => [
  170. 0 => 'twitter.com/*',
  171. 1 => 'twitter.com/*/*'
  172. ]
  173. ],
  174. 'GitHub' => [
  175. 'enabled' => true
  176. ]
  177. ]
  178. ]
  179. ];