Check out the demo video. Author: Aakash Chakravarthy Version: 2.3 */ if(!defined('WP_CONTENT_URL')) { $srr_url = get_option('siteurl') . '/wp-content/plugins/' . plugin_basename(dirname(__FILE__)).'/'; }else{ $srr_url = WP_CONTENT_URL . '/plugins/' . plugin_basename(dirname(__FILE__)) . '/'; } define('SRR_VERSION', '2.3'); define('SRR_AUTHOR', 'Aakash Chakravarthy'); define('SRR_URL', $srr_url); ## Include the required scripts function srr_public_scripts(){ // jQuery //wp_deregister_script('jquery'); //wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'); wp_enqueue_script('jquery'); // Super RSS Reader JS and CSS wp_register_script('super-rss-reader-js', SRR_URL . 'public/srr-js.js'); wp_enqueue_script(array('jquery', 'super-rss-reader-js')); } add_action('wp_enqueue_scripts', 'srr_public_scripts'); ## Include the required styles function srr_public_styles(){ wp_register_style('super-rss-reader-css', SRR_URL . 'public/srr-css.css'); wp_enqueue_style('super-rss-reader-css'); } add_action('wp_enqueue_scripts', 'srr_public_styles'); ## Default color styles $srr_color_styles = array( 'No style' => 'none', 'Grey' => 'grey', 'Dark' => 'dark', 'Orange' => 'orange' ); ## The main RSS Parser function srr_rss_parser($instance){ $urls = stripslashes($instance['urls']); $count = intval($instance['count']); $show_date = intval($instance['show_date']); $show_desc = intval($instance['show_desc']); $show_author = intval($instance['show_author']); $show_thumb = stripslashes($instance['show_thumb']); $open_newtab = intval($instance['open_newtab']); $strip_desc = intval($instance['strip_desc']); $read_more = htmlspecialchars($instance['read_more']); $color_style = stripslashes($instance['color_style']); $enable_ticker = intval($instance['enable_ticker']); $visible_items = intval($instance['visible_items']); $ticker_speed = intval($instance['ticker_speed']) * 1000; if(empty($urls)){ return ''; } $rand = array(); $url = explode(',', $urls); $ucount = count($url); // Generate the Tabs if($ucount > 1){ echo '
RSS Error: ' . $rss->get_error_message() . '
' . $desc . '
'; echo '| Can enter multiple RSS/atom feed URLs seperated by a comma. |
| /> | |||
| /> | |||
| /> | Show Author | ||
| /> | /> |
| get_field_name('color_style') . '" id="' . $this->get_field_id('color_style') . '">'; foreach($srr_color_styles as $k => $v){ echo ''; } echo ''; ?> | |
| /> | |
| seconds |