') !== false) { $style = ''; } if (array_key_exists('title', $arr) && isset($arr['title'])) { $title = $arr['title']; } else { $title = $channel['channel_name']; } if (array_key_exists('subtitle', $arr) && isset($arr['subtitle'])) { $subtitle = $arr['subtitle']; } else { $subtitle = str_replace('@', '@', $channel['xchan_addr']); } if ($site_banner) { $title = $site_banner; $subtitle = ''; } $c = get_cover_photo($channel_id, 'html'); if ($c) { $c = str_replace('src=', 'data-src=', $c); $photo_html = (($style) ? str_replace('alt=', ' style="' . $style . '" alt=', $c) : $c); $o = replace_macros(get_markup_template('cover_photo_widget.tpl'), array( '$photo_html' => $photo_html, '$title' => $title, '$subtitle' => $subtitle, '$hovertitle' => t('Click to show more'), '$hide_cover' => $hide_cover )); } return $o; } }