mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 20:41:20 -05:00
fields
This commit is contained in:
parent
c5c629e52f
commit
667f388f28
@ -301,11 +301,10 @@ class Main extends CI_Controller
|
|||||||
|
|
||||||
if ($check)
|
if ($check)
|
||||||
{
|
{
|
||||||
|
$paste = $this->pastes->getPaste(3);
|
||||||
$data = $this->pastes->getReplies(3);
|
$data = $this->pastes->getReplies(3);
|
||||||
$data['feed_url'] = '';
|
$data['page_title'] = $paste['title'] . ' - ' . $this->config->item('site_name');
|
||||||
$data['page_description'] = '';
|
$data['feed_url'] = site_url('view/rss/' . $this->uri->segment(3));
|
||||||
$data['page_language'] = '';
|
|
||||||
$data['creator_email'] = '';
|
|
||||||
$this->load->view('view/rss', $data);
|
$this->load->view('view/rss', $data);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -6,7 +6,12 @@ xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|||||||
xmlns:atom="http://www.w3.org/2005/Atom"
|
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||||
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
||||||
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
|
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
|
||||||
><channel><title>Stikked</title> <atom:link href="<?php echo $feed_url; ?>" rel="self" type="application/rss+xml" /><link><?php echo $feed_url; ?></link> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency>
|
>
|
||||||
|
<channel>
|
||||||
|
<title><?php echo $page_title; ?></title>
|
||||||
|
<atom:link href="<?php echo $feed_url; ?>" rel="self" type="application/rss+xml" />
|
||||||
|
<link><?php echo base_url(); ?></link>
|
||||||
|
<language>en</language>
|
||||||
<?php foreach($replies as $paste): ?>
|
<?php foreach($replies as $paste): ?>
|
||||||
<item>
|
<item>
|
||||||
<title><?php echo $paste['title']; ?></title>
|
<title><?php echo $paste['title']; ?></title>
|
||||||
@ -14,7 +19,6 @@ xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
|
|||||||
<pubDate><?php echo date('c', $paste['created']); ?></pubDate>
|
<pubDate><?php echo date('c', $paste['created']); ?></pubDate>
|
||||||
<dc:creator><?php echo $paste['name']; ?></dc:creator>
|
<dc:creator><?php echo $paste['name']; ?></dc:creator>
|
||||||
<guid isPermaLink="false"><?php echo site_url('view/' . $paste['pid']) ?></guid>
|
<guid isPermaLink="false"><?php echo site_url('view/' . $paste['pid']) ?></guid>
|
||||||
<description><![CDATA[<?php echo $paste['paste']; ?>]]></description>
|
|
||||||
<content:encoded><![CDATA[<?php echo $paste['paste']; ?>]]></content:encoded>
|
<content:encoded><![CDATA[<?php echo $paste['paste']; ?>]]></content:encoded>
|
||||||
</item>
|
</item>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user