About this plugin
OmniFeed was inspired by InlineFeed made by Dennis Kruyt
We loved that plugin but when it broke and it didn’t look like it was being supported anymore, we built our own.
Instead of holding it just for our company, we thought it would be great to share it – please feel free to use, modify, abuse, disassemble, and generally make this your own according to open source etiquette ofcourse 😉 We think we’ve added everything you need but if not, please feel free to contact us!
com/omnifeed
Use the following shortcode inside your post:
xml"]
1 UPDATE:
- removed caching
- gave the option to add target=”_blank” to the Channel URL (thanks to Olivier for reporting this bug)
- added spacing between feeds
FILTER USAGE
- Simple:
rdf"] in your post, and the feed will show up.
Left as rss for backwards compatibility but will work with ATOM feeds as well.
- NAMED PARAMETERS
For some customisation there are some options you can use.
display(1-100) -> Show the number of lines from the feed.
rss_feed_url -> The RSS/ATOM URL.
displaydescriptions(true/false) -> Show the discription / content of the feed, default true.
truncatetitle(false/1-100) -> Truncate long title headers after x caracters. Or false if no truncate (default).
newwindow (true/false)-> Open links in new window?
displayfeedname (true/false)-> Display the name of the feed, default true.
boxwidth (integer) -> width of the div containing the feed
titlefontsize(integer) -> font size for feed title. Not required. If not given, then the template’s value will be used
fonttype(integer) -> font type of the entire field. Not required. If not given, then the template’s value will be used
channelfontcolor -> color for channel (feed); Example: #aa231b or simply “red”. Not required. If not given, then the template’s value will be used
Not required. If not given, then the template’s value will be used
Not required. If not given, then the template’s value will be used
Not required. If not given, then the template’s value will be used
Examples:
com/rss/mostemailed" displaydescriptions=true truncatetitle=false displayfeedname=true boxwidth=500 titlefontsize=18 fonttype=helvetica channelfontcolor=red titlefontcolor=green descriptionfontcolor=#000 descriptionfontsize=16 newwindow=false]
rss" displaydescriptions=true truncatetitle=false newwindow=true display=5]
rss"]
Finally note the whole thing must be on ONE line. No line breaks or else it won’t work.
org/extend/plugins/class-snoopyphp-gzip-support/
Live examples:
soon to come
Major updates from Inlinefeed:
- The code can be added in both Visual and HTML mode
- Based on Simplepie
- Pictures inside description now have a 5 pixels right margin
- Control over font type, font size and font color of the feed