Join The Team!*
Version: 0.4.2
Author: codelyfe@gmail.com
Author URI: https://www.paypal.me/codelyfe
Text Domain: LightWRSSFeed
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Network: True
Copyright 2018 Randal C. Burger
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
//function wporg_shortcodes_init()
//{
//function wporg_shortcode($atts = [], $content = null)
//{
// do something to $content
// always return
//return $content;
//}
//add_shortcode('wporg', 'wporg_shortcode');
//}
//add_action('init', 'wporg_shortcodes_init');
class eliterssfeed_widget extends WP_Widget {
public function __construct() {
parent::__construct(
'eliterssfeed_widget',
__( '1337 RSS Feed | Made for sharing', 'LightWRSSFeed' ),
array(
'classname' => 'eliterssfeed_widget',
'description' => __( 'Made by an 1337 so the world can easily share ( RSS FEED )', 'LightWRSSFeed' )
)
);
load_plugin_textdomain( 'LightWRSSFeed', false, basename( dirname( __FILE__ ) ) . '/languages' );
}
/**
* Front-end display of widget.
*
* @see WP_Widget::widget()
*
* @param array $args Widget arguments.
* @param array $instance Saved values from database.
*/
public function widget( $args, $instance ) {
extract( $args );
// 1
$title = apply_filters( 'widget_title', $instance['title'] );
// 0
$message = $instance['message'];
// 1
$rssurl = $instance['rssurl'];
// 1
$rsstitle = $instance['rsstitle'];
// 1
$socialbtntwitterhashtag = $instance['socialbtntwitterhashtag'];
// 1
$twittertext = $instance['twittertext'];
// 1
$adspace = $instance['adspace'];
// 1
$postcount = $instance['postcount'];
// 1
$tcolor = $instance['tcolor'];
// 1
$tfsize = $instance['tfsize'];
// 1
$dcolor = $instance['dcolor'];
// 1
$dfsize = $instance['dfsize'];
// 1
$tff = $instance['tff'];
// 1
$dff = $instance['dff'];
// 1
$frssf = $instance['frssf'];
// 1
$are4 = $instance['are4'];
// 1
$are5 = $instance['are5'];
// 1
$are6 = $instance['are6'];
// 1
$are7 = $instance['are7'];
// 1
$are8 = $instance['are8'];
// 1
$are9 = $instance['are9'];
// 1
$are10 = $instance['are10'];
// 1
$are11 = $instance['are11'];
//
$xx00 = $instance['xx00'];
//
$xx01 = $instance['xx01'];
//
$xx02 = $instance['xx02'];
//
$xx03 = $instance['xx03'];
//
$xx04 = $instance['xx04'];
//
$xx05 = $instance['xx05'];
//
$xx06 = $instance['xx06'];
//
echo $before_widget;
//
// WP TITLE
//
if ( $title ) { echo $before_title . $title . $after_title; }
//
// WidgetWP - Start
//
//
// RSS TITLE
//
echo '