: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
if (type === 'youtube') {
allow = 'accelerometer;encrypted-media;gyroscope;picture-in-picture';
src = 'https://www.youtube';
queryArgs.start = parseFloat(data.ext_start);
else if (params.hash && params.hash!=='#') {
queryArgs.start = parseFloat(params.hash.replace('#',''));
if(isNaN(queryArgs.start)){
queryArgs.end = parseFloat(data.ext_end);
src += '.com/embed/' + provider.id;
src = 'https://player.vimeo.com/video/' +provider.id;
src += '#t=' + data.ext_start;
else if (params.hash && params.hash!=='#') {
queryArgs.byline= queryArgs.title = queryArgs.portrait = 0;
for(let arr=['controls','loop','autoplay','mute','muted'],i=arr.length-1;i>-1;--i){
delete queryArgs[arr[i]];
if (data.ext_hide_ctrls==='yes') {
queryArgs.playlist = provider.id;
if (data.autoplay_video==='yes' || queryArgs.autoplay==='1') {
if (data.mute_video==='yes' || (Themify.isTouch && queryArgs.autoplay===1)) {
if (type === 'youtube') {
noscript.appendChild(createElement('iframe',{src:src+'?'+(new URLSearchParams(queryArgs)).toString(),class:'tf_abs tf_w tf_h',allow:allow,'data-no-script':1}));
wrap.appendChild(noscript);
wrap.className+=' tb_voverlay';
const img=constructor.setEditableImage(createElement('img',{alt:data.title_video || '',style:'width:100%;object-fit:cover'}),'o_i','o_w','o_h',data);
if(data.hover_play==='yes'){
img.className='tb_video_poster tf_abs_t';
const overlay=createElement('','tb_video_overlay tf_abs_t tf_w tf_h');
overlay.append(createElement('','tb_video_play tf_abs_c'),img);
wrap.appendChild(overlay);
if (data.mod_title_video) {
module.appendChild(constructor.getModuleTitle(data.mod_title_video,'mod_title_video'));
module.appendChild(outer);
if(data.title_video || data.caption_video){
const content=createElement('','video-content');
let title=createElement(data.title_tag || 'h3','video-title'),
if(data.title_link_video){
const link=createElement('a',{href:data.title_link_video});
constructor._setEditableContent(editItem,'title_video',data.title_video);
content.appendChild(title);
content.appendChild(constructor._setEditableContent(createElement('','video-caption tb_text_wrap'),'caption_video',data.caption_video));
module.appendChild(content);
module.className=classes.join(' ');