PluginProbe
Super RSS Reader – Add attractive RSS Feed Widget / 3.2
Super RSS Reader – Add attractive RSS Feed Widget v3.2
trunk 0.8 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 3.0 3.1 3.2 4.0 4.0.1 4.1 4.2 4.3 4.4 4.4.1 4.5 4.6 4.7 4.8 All 33 releases
super-rss-reader / includes / options.php

options.php in Super RSS Reader – Add attractive RSS Feed Widget 3.2, at includes/options.php

118 lines 3.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin options
4 *
5 */
6
7 if( ! defined( 'ABSPATH' ) ) exit;
8
9 class SRR_Options{
10
11 public static function options(){
12
13 return array(
14 'urls' => array(
15 'default' => '',
16 'description' => __( 'The URLs to display RSS feed for. Multiple RSS feed URLs can be separated by a new line or comma' )
17 ),
18 'tab_titles' => array(
19 'default' => '',
20 'description' => __( 'The title of the tab for the respective RSS feed.' )
21 ),
22 'count' => array(
23 'default' => 5,
24 'description' => __( 'The total number of feed items to fetch.' )
25 ),
26 'show_date' => array(
27 'default' => 0,
28 'description' => __( 'Display the date of the feed item' )
29 ),
30 'show_desc' => array(
31 'default' => 1,
32 'description' => __( 'Display the description/excerpt of the feed item' )
33 ),
34 'show_author' => array(
35 'default' => 0,
36 'description' => __( 'Display the author of the feed item' )
37 ),
38 'show_thumb' => array(
39 'default' => 1,
40 'description' => __( 'Display the thumbnail of the feed item' )
41 ),
42 'strip_desc' => array(
43 'default' => 30,
44 'description' => __( 'Trim the description to certain number of words' )
45 ),
46 'strip_title' => array(
47 'default' => 0,
48 'description' => __( 'Trim the title text to certain number of words.' )
49 ),
50 'read_more' => array(
51 'default' => '[...]',
52 'description' => __( 'The read more text if the description is stripped.' )
53 ),
54 'rich_desc' => array(
55 'default' => 0,
56 'description' => __( 'Display rich description with all the formatting present in the feed.' )
57 ),
58 'add_nofollow' => array(
59 'default' => 1,
60 'description' => __( 'Add "nofollow" attribute to feed links' )
61 ),
62 'open_newtab' => array(
63 'default' => 1,
64 'description' => __( 'Display the thumbnail of the feed item' )
65 ),
66 'color_style' => array(
67 'default' => 'none',
68 'description' => __( 'The style of the feed display' )
69 ),
70 'display_type' => array(
71 'default' => 'vertical_ticker',
72 'description' => __( 'The type of feed display mode.' )
73 ),
74 'visible_items' => array(
75 'default' => 5,
76 'description' => __( 'The number of feed items to be visible when ticker is enabled.' )
77 ),
78 'ticker_speed' => array(
79 'default' => 4,
80 'description' => __( 'The speed of the ticker animation in seconds' )
81 ),
82 );
83
84 }
85
86 public static function color_themes(){
87 return array(
88 'No style' => 'none',
89 'Grey' => 'grey',
90 'Dark' => 'dark',
91 'Orange' => 'orange',
92 'Simple modern' => 'smodern'
93 );
94 }
95
96 public static function display_types(){
97 return array(
98 'normal' => 'Only feed list',
99 'vertical_ticker' => 'Feed list + Ticker',
100 );
101 }
102
103 public static function default_options(){
104
105 $defaults = array();
106 $all_options = self::options();
107
108 foreach( $all_options as $id => $props ){
109 $defaults[ $id ] = $props[ 'default' ];
110 }
111
112 return $defaults;
113
114 }
115
116 }
117
118 ?>