Skip to content

Commit

Permalink
fixed readme
Browse files Browse the repository at this point in the history
  • Loading branch information
John Cheesman committed Feb 17, 2014
1 parent 3f8ac43 commit 409b8a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,33 @@
# Pico RSS Content
v1.0.2
v1.0.3

A simple RSS plugin for [Pico](http://pico.dev7studios.com), import content into any template.

Add rss-content to your plugins directory, set your feed and access the array in a template.

## Installation
1. Download the files and move to `plugins/rss-content`
2. Add the fee URL to `config.php`
$config['rss_feed'] = 'http://myfeed.com';
2. Add the feed URL to `config.php`
3. Setup a loop in your template

## Examples
### Feed URL
$config['rss_feed'] = 'http://myfeed.com';
### Template loop
{% for item in rss_content %}
<h2><a href="{{ item.link }}">{{ item.title }}</a></h2>
<time>{{ item.date }}</time>
<p>{{ item.description }}</p>
{% endfor %}

## Properties
- title
- link
- date (formatted by `$config['date_format']`)
- description

## Changelog
- v1.0.3 - fixed readme
- v1.0.2 - updated readme
- v1.0.1 - added MIT license
- v1.0.0 - initial release
2 changes: 1 addition & 1 deletion rss_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* RSS Content *
* @package Pico
* @subpackage RSS Content
* @version 1.0.2
* @version 1.0.3
* @author John Cheesman <info@johncheesman.org.uk>
*/
class Rss_Content {
Expand Down

0 comments on commit 409b8a1

Please # to comment.