// \'small\', \'medium\', \'large\' @define('RSS_CACHE_TIME', '10'); @define('DIR_FS_RSSFEED_CACHE', DIR_FS_SQL_CACHE); @define('RSS_ERROR_CACHE_DIR', 'Cache directory not found "' . DIR_FS_RSSFEED_CACHE . '"'); require_once DIR_WS_CLASSES . 'rss_feed.php'; $rss = new rss_feed(); if (RSS_CACHE_TIME > 0) { $rss->rssFeedCahcheSet(true); } else { $rss->rssFeedCahcheSet(false); } $rss->rss_feed_encoding(CHARSET); $rss->rss_feed_content_type('text/xml'); // 'application/rss+xml' $rss->rss_feed_set('ttl', RSS_TTL); if (!$rss->rss_feed_cache($_SERVER['QUERY_STRING'], RSS_CACHE_TIME * 60)) { // Google Base and Custom Namespaces - http://base.google.com/support/bin/answer.py?answer=58085 $rss->rss_feed_xmlns('xmlns:g="http://base.google.com/ns/1.0"'); $rss->rss_feed_xmlns('xmlns:c="http://base.google.com/cns/1.0"'); // "Ecommerce RSS" Module Specification (ERSS) - http://shopping.discovery.com/erss/ // $rss->rss_feed_xmlns('xmlns:ecommerce="http://shopping.discovery.com/erss'); // $rss->rss_feed_xmlns('xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"'); // $rss->rss_feed_xmlns('xmlns:admin="http://webns.net/mvcb/"'); // $rss->rss_feed_xmlns(array('xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"', 'xmlns:content="http://purl.org/rss/1.0/modules/content/"')); $directory_array = array(); $tpl_dir = $template->get_template_dir('rss(.*)\\.css', DIR_WS_TEMPLATE, $current_page_base, 'css'); $directory_array = $template->get_template_part($tpl_dir, '/^rss/', '.css'); foreach ($directory_array as $value) { $rss->rss_feed_style(HTTP_SERVER . DIR_WS_CATALOG . $tpl_dir . '/' . $value); } $tpl_dir = $template->get_template_dir('rss(.*)\\.xsl', DIR_WS_TEMPLATE, $current_page_base, 'css');