PluginProbe
Super RSS Reader – Add attractive RSS Feed Widget / 5.0
Super RSS Reader – Add attractive RSS Feed Widget v5.0
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
← All changes | includes/widget.php +13 -5 3.25.0 View file →
@@ -15,8 +15,10 @@
15 15 add_action( 'wp_enqueue_scripts', array( __CLASS__, 'public_scripts' ) );
16 16
17 17 add_action( 'admin_enqueue_scripts', array( __CLASS__, 'admin_scripts' ) );
18 18
19 + add_filter( 'plugin_action_links_' . SRR_BASE_NAME, array( __CLASS__, 'action_links' ) );
20 +
19 21 }
20 22
21 23 public static function init_widget(){
22 24
@@ -25,19 +27,20 @@
25 27 }
26 28
27 29 public static function public_scripts(){
28 30
29 - wp_enqueue_script( 'jquery-easy-ticker-js', SRR_URL . 'public/js/jquery.easy-ticker.min.js', array( 'jquery', 'super-rss-reader-js' ), SRR_VERSION );
30 - wp_enqueue_script( 'super-rss-reader-js', SRR_URL . 'public/js/script.min.js', array( 'jquery' ), SRR_VERSION );
31 - wp_enqueue_style( 'super-rss-reader-css', SRR_URL . 'public/css/style.min.css', array(), SRR_VERSION );
31 + wp_enqueue_script( 'jquery-easy-ticker', SRR_URL . 'public/js/jquery.easy-ticker.min.js', array( 'jquery' ), SRR_VERSION );
32 + wp_enqueue_script( 'super-rss-reader', SRR_URL . 'public/js/script.min.js', array( 'jquery' ), SRR_VERSION );
32 33
34 + wp_enqueue_style( 'super-rss-reader', SRR_URL . 'public/css/style.min.css', array(), SRR_VERSION );
35 +
33 36 }
34 37
35 38 public static function admin_scripts( $hook ){
36 39
37 40 if( $hook == 'widgets.php' ){
38 - wp_enqueue_style( 'srr_admin_css', SRR_URL . 'admin/css/style.css', array(), SRR_VERSION );
39 - wp_enqueue_script( 'srr_admin_js', SRR_URL . 'admin/js/script.js', array( 'jquery' ), SRR_VERSION );
41 + wp_enqueue_style( 'srr_admin_css', SRR_URL . 'admin/css/style-widget.css', array(), SRR_VERSION );
42 + wp_enqueue_script( 'srr_admin_js', SRR_URL . 'admin/js/script-widget.js', array( 'jquery' ), SRR_VERSION );
40 43 }
41 44
42 45 }
43 46
@@ -45,8 +48,13 @@
45 48
46 49 $feed = new SRR_Feed( $options );
47 50 echo $feed->html();
48 51
52 + }
53 +
54 + public static function action_links( $links ){
55 + array_unshift( $links, '<a href="https://www.aakashweb.com/wordpress-plugins/super-rss-reader/?utm_source=admin&utm_medium=plugin-list&utm_campaign=srr-pro" target="_blank"><b>' . esc_html__( 'Upgrade to PRO', 'super-rss-reader' ) . '</b></a>' );
56 + return $links;
49 57 }
50 58
51 59 }
52 60