예제 #1
0
파일: feed.php 프로젝트: jphpsf/gregarius
<?php

if (rss_feed_do_title()) {
    ?>
<h3>
<?php 
    if (rss_feed_favicon_url()) {
        ?>
<img src="<?php 
        echo rss_feed_favicon_url();
        ?>
" class="favicon" width="16" height="16" alt="" />
<?php 
    }
    ?>
<a href="<?php 
    echo rss_feed_url();
    ?>
"><?php 
    echo rss_feed_title();
    ?>
</a></h3>
<?php 
}
rss_feed_items();
예제 #2
0
function rss_feed_link_alternate()
{
    $feed_array = array('specials', 'new_products', 'upcoming', 'featured', 'best_sellers');
    // 'news'
    $link = '';
    foreach ($feed_array as $i => $feed) {
        $link .= '<link rel="alternate" type="application/rss+xml" title="' . rss_feed_title($feed) . '" href="' . zen_href_link(FILENAME_RSS_FEED, 'feed=' . $feed, 'NONSSL', false) . '" />' . "\n";
    }
    list($feed, $title) = rss_feed_current_page();
    if ($feed && !in_array($feed, $feed_array)) {
        $link .= '<link rel="alternate" type="application/rss+xml" title="' . $title . '" href="' . zen_href_link(FILENAME_RSS_FEED, 'feed=' . $feed, 'NONSSL', false) . '" />' . "\n";
    }
    return $link;
}
예제 #3
0
 }
 $tpl_dir = $template->get_template_dir('rss(.*)\\.xsl', DIR_WS_TEMPLATE, $current_page_base, 'css');
 $directory_array = $template->get_template_part($tpl_dir, '/^rss/', '.xsl');
 foreach ($directory_array as $value) {
     $rss->rss_feed_style(HTTP_SERVER . DIR_WS_CATALOG . $tpl_dir . '/' . $value);
 }
 if (is_file($template->get_template_dir(RSS_IMAGE, DIR_WS_TEMPLATE, $current_page_base, 'images') . '/' . RSS_IMAGE)) {
     $image = zen_href_link($template->get_template_dir(RSS_IMAGE, DIR_WS_TEMPLATE, $current_page_base, 'images') . '/' . RSS_IMAGE, '', 'NONSSL', false, true, true);
 } elseif (is_file(DIR_FS_CATALOG . DIR_WS_IMAGES . RSS_IMAGE)) {
     $image = HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_IMAGES . RSS_IMAGE;
 } else {
     $image = false;
 }
 $rss->rss_feed_image(RSS_IMAGE_NAME == '' ? STORE_NAME : RSS_IMAGE_NAME, HTTP_SERVER . DIR_WS_CATALOG, $image);
 $rss_title = RSS_TITLE == '' ? STORE_NAME : RSS_TITLE;
 $rss_title .= RSS_TITLE_DELIMITER . rss_feed_title();
 $rss->rss_feed_description_set(RSS_ITEMS_DESCRIPTION, RSS_ITEMS_DESCRIPTION_MAX_LENGTH);
 $rss->rss_feed_set('title', $rss_title);
 $rss->rss_feed_set('link', HTTP_SERVER . DIR_WS_CATALOG);
 $rss->rss_feed_set('description', RSS_DESCRIPTION);
 $rss->rss_feed_set('lastBuildDate', date('r'));
 $rss->rss_feed_set('generator', 'Zen-Cart v. ' . RSS_FEED_VERSION . ' RSS 2.0 Feed');
 $rss->rss_feed_set('copyright', 'Copyright &copy; ' . date('Y') . ' ' . (RSS_COPYRIGHT == '' ? STORE_OWNER : RSS_COPYRIGHT));
 $rss->rss_feed_set('managingEditor', RSS_MANAGING_EDITOR == '' ? STORE_OWNER_EMAIL_ADDRESS . " (" . STORE_OWNER . ")" : RSS_MANAGING_EDITOR);
 $rss->rss_feed_set('webMaster', RSS_WEBMASTER == '' ? STORE_OWNER_EMAIL_ADDRESS . " (" . STORE_OWNER . ")" : RSS_WEBMASTER);
 $rss->rss_feed_set('language', $_SESSION["languages_code"]);
 $additionalURL = '';
 if ($_SESSION["languages_code"] != DEFAULT_LANGUAGE) {
     $additionalURL .= '&language=' . $_SESSION["languages_code"];
 }
 if (isset($_GET["ref"])) {
예제 #4
0
파일: item.php 프로젝트: jphpsf/gregarius
<entry>
		<id><?php 
echo rss_item_url();
?>
</id>
		<author><name><?php 
echo $GLOBALS['rss']->currentItem->author;
?>
</name></author>
		<title><?php 
echo rss_htmlspecialchars(rss_feed_title());
?>
: <?php 
echo rss_htmlspecialchars(rss_item_title());
?>
</title>
                <link rel="alternate" type="text/html" href="<?php 
echo rss_item_url();
?>
"/>		
		<updated><?php 
echo rss_item_date_with_format('c');
?>
</updated>
		<published><?php 
echo rss_item_date_with_format('c');
?>
</published>
		<content type="html"><![CDATA[	<?php 
echo rss_item_content();
?>