/** * Parses url array * * @param &vivvo_lite_site $sm * @param array $url_array * @return array */ function xspf_url_handler(&$sm, $url_array) { $um = $sm->get_url_manager(); array_shift($um->_url_array); $um->parse_url(); $template = $sm->get_template(); $template->set_template_file(VIVVO_FS_INSTALL_ROOT . 'templates/_syndication/xspf.tpl'); defined('VIVVO_CUSTOM_FIELD_SEARCH') or define('VIVVO_CUSTOM_FIELD_SEARCH', 1); $sm->define_proxy_url(); $sm->article_list_params['search_field_video_attachment_neq'] = ''; $sm->article_list_params['search_field_video_attachment_notnull'] = 1; $template->assign('content_params', $sm->article_list_params); header('Content-type: application/xspf+xml'); echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n"; echo $sm->get_output(); ob_end_flush(); exit; }