Embedding livestreams from a custom source does not work
When choosing 'Your own' livestream (Theme-options > Celebrations & Livestreams), and defining a custom livestream url (option
aga_own_livestream_embed), the livestream url will have no effect. Instead the default url hardcoded in slider/slider.php file will be used.
The problem is the comparison of option
aga_show_onlinechurch in slider/slider.php. It is compared with strict type checking
===, which always yields
false, because the option is returned as a string (e.g.
"2", not int
wp-admin/themes.php?page=options-framework (tab "Celebrations & Livestreams")
- Choose the last option "your own" in the select box "Show livestream" ("Zeige Livestream").
- Configure some urls for embedded livestream and muted embedded livestream. ("Livestream Einbindung" and "Stummgeschaltete Livestream Einbindung")
- In the front page setting, make sure that a 'next sunday' element is configured (otherwise livestreams are not shown at all)
- Open the (frontend-)url
- The html element with class
livestreamcontains the default urls as values for the attribues
data-muted. Expected is to see the urls which were configured in step 2.