Tweets

/**
* Constant Values & Variables
*/
define(“WEBLIZAR_TWITTER_PLUGIN_URL”, plugin_dir_url(__FILE__));
define(“WEBLIZAR_TWITTER_TEXT_DOMAIN”, “weblizar_twitter”);

/**
* Widget Code.
*/
class WeblizarTwitter extends WP_Widget {

/**
* Register widget with WordPress.
*/
function __construct() {
parent::__construct(
‘weblizar_twitter’, // Base ID
‘Twitter Tweets’, // Name
array( ‘description’ => __( ‘Display latest tweets from your Twitter account’, WEBLIZAR_TWITTER_TEXT_DOMAIN ), ) // Args
);
}

/**
* 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 ) {
// Outputs the content of the widget
extract($args); // Make before_widget, etc available.

$title = apply_filters(‘title’, $instance[‘title’]);

echo $before_widget;

if (!empty($title)) { echo $before_title . $title . $after_title; }

$TwitterUserName = apply_filters( ‘weblizar_twitter_user_name’, $instance[‘AcrylicMusic’] );
$Theme = apply_filters( ‘weblizar_twitter_theme’, $instance[‘Theme’] );
$Height = apply_filters( ‘weblizar_twitter_height’, $instance[’14’] );
$Width = apply_filters( ‘weblizar_twitter_width’, $instance[‘Width’] );
$LinkColor = apply_filters( ‘weblizar_twitter_link_color’, $instance[‘blue’] );
$ExcludeReplies = apply_filters( ‘weblizar_twitter_exclude_replies’, $instance[‘ExcludeReplies’] );
$AutoExpandPhotos = apply_filters( ‘weblizar_twitter_auto_expand_photo’, $instance[‘AutoExpandPhotos’] );
$TwitterWidgetId = apply_filters( ‘weblizar_twitter_widget_id’, $instance[‘TwitterWidgetId’] );
?>


get_field_id( ‘TwitterWidgetId’ ); ?>”> (Required)
HERE

-->