You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config.default.ini.php
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -132,6 +132,18 @@
132
132
; Defines how often an error must occur before it is reported to the user
133
133
report_limit = 1
134
134
135
+
[youtube]
136
+
137
+
; Whether to use an iframe to directly embed YouTube videos in feeds.
138
+
; If false, a clickable video thumbnail is used instead. This avoids sending a referrer to YouTube or only getting the error 153 if suppressing the referrer browser-wide.
139
+
iframe = true
140
+
141
+
; Use the youtube-nocookie.com domain instead of youtube.com for iframe embeds.
Copy file name to clipboardExpand all lines: docs/06_Helper_functions/index.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -355,3 +355,20 @@ foreach ($urls as $url) {
355
355
$lastmod = $url['lastmod'];
356
356
}
357
357
```
358
+
359
+
# handleYoutube(string $html): string
360
+
361
+
Use this function to throw a YouTube link, iframe tag or video ID and get a HTML snippet that returns a normalized iframe tag or clickable image thumbnail, depending on system configuration.
0 commit comments