Changeset 17636
- Timestamp:
- 08/30/07 20:14:36 (10 months ago)
- Files:
-
- accessible-news-ticker/tags/0.3 (added)
- accessible-news-ticker/tags/0.3/ant.php (added)
- accessible-news-ticker/tags/0.3/includes (added)
- accessible-news-ticker/tags/0.3/includes/domnews.css (added)
- accessible-news-ticker/tags/0.3/includes/domnews.js (added)
- accessible-news-ticker/tags/0.3/includes/simplepie.inc (added)
- accessible-news-ticker/tags/0.3/readme.txt (added)
- accessible-news-ticker/trunk/ant.php (modified) (4 diffs)
- accessible-news-ticker/trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
accessible-news-ticker/trunk/ant.php
r17353 r17636 5 5 Description: Display latest posts or RSS news in an accessible/unobtrusive scroll box. Based on Chris Heilmann's <a href="http://onlinetools.org/tools/domnews/">DOMnews 1.0</a>. 6 6 Author: Pixline 7 Version: 0.3 rc27 Version: 0.3 8 8 Author URI: http://pixline.net/ 9 9 … … 97 97 98 98 function widget_ant($args) { 99 99 global $cat; 100 100 extract($args); 101 101 $options = get_option('widget_ant_options'); … … 111 111 switch($kind): 112 112 case 'posts': 113 $news = get_posts("numberposts=".$howmany."&category=".$antcat); 113 # if(isset($cat) && $cat != 0) $menocat = "&exclude=".$cat; else $menocat = ""; // if global post list, but inside cat, exclude double posts 114 $news = get_posts("numberposts=".$howmany."&category=".$antcat.$menocat); 114 115 echo "<div id='accessible-news-ticker'>"; 115 116 echo "<ul>"; … … 165 166 $newoptions['category'] = strip_tags(stripslashes($_POST['ant-category'])); 166 167 $newoptions['feedurl'] = strip_tags(stripslashes($_POST['ant-feedurl'])); 167 } 168 168 169 if ( $options != $newoptions ) { 169 170 $options = $newoptions; 170 171 update_option('widget_ant_options', $newoptions); 171 } 172 } 173 } 174 $options = get_option('widget_ant_options'); 172 175 ?> 173 176 <div> accessible-news-ticker/trunk/readme.txt
r17297 r17636 4 4 Tags: admin, post, javascript, scroller, news, ticker, widget, widgets, posts 5 5 Requires at least: 2.1 6 Tested up to: 2. 2.27 Stable tag: trunk6 Tested up to: 2.3b1 7 Stable tag: 0.3 8 8 9 9 A news ticker/scroller widget that displays posts and RSS with accessible javascript). … … 15 15 Based on the wonderful [DOMNews 1.0](http://onlinetools.org/tools/domnews/) (by Chris Heilmann) and [SimplePie RSS-parsing php class](http://simplepie.org) 16 16 17 [Accessible News Ticker support forum](http://talks.pixline.net/forum/accessible-news-ticker-widget) 18 17 19 == Installation == 18 20 … … 21 23 REALLY IMPORTANT: Make sure that the plugin creates a folder `cache` in your wp-content folder to cache RSS feeds, and that this folder is writeable (chmod 755 or chmod 777). 22 24 25 REALLY REALLY IMPORTANT: check your theme's header.php and footer.php for presence of wp_head(); (in the <head> section) and wp_footer(); (near </body>), otherwise this plugin can't work. if you can't find them, INSERT THEM! 26 23 27 1. Place and activate like *all* the others WP plugins in the world. 24 28 1. (Optional) Tweak .css file to suit your need. 25 29 1. Enjoy! :-) 30 31 [Accessible News Ticker support forum](http://talks.pixline.net/forum/accessible-news-ticker-widget)
