Weblizar Twitter Widget - Version 1.8.1

Version Description

  • Update : change layout of Tweet block on both plugin setting dashboard and frontend
Download this release

Release Info

Developer weblizar
Plugin Icon 128x128 Weblizar Twitter Widget
Version 1.8.1
Comparing to
See all releases

Code changes from version 1.8.0 to 1.8.1

css/front-end-css.css CHANGED
@@ -1,5 +1,4 @@
1
  /* Front end CSS file for API generated tweets */
2
-
3
  .wl_twt_free .wl_tweet_box {
4
  margin-bottom: 15px;
5
  padding: 20px 15px;
@@ -13,4 +12,10 @@
13
  -webkit-border-image: -webkit-linear-gradient(top, #3acfd5 0%, #3a4ed5 100%);
14
  border-image: linear-gradient(to bottom, #3acfd5 0%, #3a4ed5 100%);
15
  border-image-slice: 1;
 
 
 
 
 
 
16
  }
1
  /* Front end CSS file for API generated tweets */
 
2
  .wl_twt_free .wl_tweet_box {
3
  margin-bottom: 15px;
4
  padding: 20px 15px;
12
  -webkit-border-image: -webkit-linear-gradient(top, #3acfd5 0%, #3a4ed5 100%);
13
  border-image: linear-gradient(to bottom, #3acfd5 0%, #3a4ed5 100%);
14
  border-image-slice: 1;
15
+ }
16
+ p.wl_tweet {
17
+ font-size: 13px;
18
+ line-height: 1.5;
19
+ margin: 1em 0;
20
+ display: flex;
21
  }
css/weblizar-option-twiiter-style.css CHANGED
@@ -819,4 +819,10 @@ span.helptopic a {
819
  span.helplink a:hover,
820
  span.helptopic a:hover {
821
  color: #42f4e5;
 
 
 
 
 
 
822
  }
819
  span.helplink a:hover,
820
  span.helptopic a:hover {
821
  color: #42f4e5;
822
+ }
823
+ p.wl_tweet {
824
+ font-size: 13px ;
825
+ line-height: 1.5;
826
+ margin: 1em 0;
827
+ display: flex;
828
  }
load-tweets.php CHANGED
@@ -5,17 +5,19 @@
5
 
6
  $wl_twitter_api_settings = get_option('wl_twitter_api_settings');
7
 
 
8
  $wl_twitter_consumer_key = $wl_twitter_api_settings['wl_twitter_consumer_key'];
9
  $wl_twitter_consumer_secret = $wl_twitter_api_settings['wl_twitter_consumer_secret'];
10
  $wl_twitter_access_token = $wl_twitter_api_settings['wl_twitter_access_token'];
11
  $wl_twitter_token_secret = $wl_twitter_api_settings['wl_twitter_token_secret'];
 
12
 
13
  /* temp value assigned in case of empty value coming from DB */
14
 
15
- $temp_wl_twitter_consumer_key = "t16IxBkBFFallZqal2jqEEYqN";
16
- $temp_wl_twitter_consumer_secret = "fqVVDgbKTfEKi6FeiqBsXjT7NRJMR1qFPYOTMZNtiEAs8Vk2xk";
17
- $temp_wl_twitter_access_token = "1009787162479378432-xMehbUOP4WuEc4wxsp3G8DjbT3hStn";
18
- $temp_wl_twitter_token_secret = "gQs3P4wC3TOTqqxGLN6Ud0ANxcz1ns1l7hsLUO678p1Vt";
19
 
20
  $wl_twitter_tweets = ( isset( $wl_twitter_api_settings['wl_twitter_tweets'] ) ) ? $wl_twitter_api_settings['wl_twitter_tweets'] : '5';
21
  $wl_twitter_layout = ( isset( $wl_twitter_api_settings['wl_twitter_layout'] ) ) ? $wl_twitter_api_settings['wl_twitter_layout'] : '6';
5
 
6
  $wl_twitter_api_settings = get_option('wl_twitter_api_settings');
7
 
8
+ if( ! empty( $wl_twitter_api_settings ) ) {
9
  $wl_twitter_consumer_key = $wl_twitter_api_settings['wl_twitter_consumer_key'];
10
  $wl_twitter_consumer_secret = $wl_twitter_api_settings['wl_twitter_consumer_secret'];
11
  $wl_twitter_access_token = $wl_twitter_api_settings['wl_twitter_access_token'];
12
  $wl_twitter_token_secret = $wl_twitter_api_settings['wl_twitter_token_secret'];
13
+ }
14
 
15
  /* temp value assigned in case of empty value coming from DB */
16
 
17
+ $temp_wl_twitter_consumer_key = "72eoxhZGGhhACh4oQ0MKM5Z1G";
18
+ $temp_wl_twitter_consumer_secret = "LLVWGiSB6mUfjdNk1UugGHxpkHSo3ppcmRVZWqe7VfiVlZaFjs";
19
+ $temp_wl_twitter_access_token = "2409346562-OR0avORZhdUblkLh7mQmzbR4lqlrccfcb3okLd7";
20
+ $temp_wl_twitter_token_secret = "iRohUaA8INkcWZG7S8TnrUCd24lFDHPviEs4XW2ALfKhy";
21
 
22
  $wl_twitter_tweets = ( isset( $wl_twitter_api_settings['wl_twitter_tweets'] ) ) ? $wl_twitter_api_settings['wl_twitter_tweets'] : '5';
23
  $wl_twitter_layout = ( isset( $wl_twitter_api_settings['wl_twitter_layout'] ) ) ? $wl_twitter_api_settings['wl_twitter_layout'] : '6';
readme.txt CHANGED
@@ -3,16 +3,16 @@ Contributors: weblizar
3
  Donate link: https://www.weblizar.com/
4
  Tags: twitter, tweets, twitter tweets, twitter widget, twitter wordPress plugin, twitter feed
5
  Requires at least: 3.8
6
- Tested up to: 4.9.8
7
- Stable tag: 1.8.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Weblizar Twitter Tweets plugin for WordPress. You can use this to display real time Twitter feeds on any where on your webiste by using shortcode or widgets.
12
 
13
  == Description ==
14
 
15
- Weblizar Twitter Tweets plugin is display the real time Twitter feeds on your WordPress webiste by using shortcode or widgetsg.
16
 
17
  It is completely customizable, responsive and search engine crawlable versions of your Twitter feed on your website. Completely match the look and feel of your site with tons of customization options!
18
 
@@ -53,14 +53,14 @@ Using **Twitter Tweets** widget display your least tweets on your WordPress blog
53
  * completely customizable, responsive design
54
 
55
  * For Premium Upgrade, Please go [here](https://weblizar.com/plugins/twitter-tweets-pro/)
56
- = Live Twitter Tweets Pro Demos =
57
 
58
  * [Twitter TweetsPro Demo](http://demo.weblizar.com/twitter-tweets-pro/wp-admin/)
59
  * [Twitter Tweets Pro Admin Demo](http://demo.weblizar.com/twitter-tweets-pro-admindemo/wp-admin/)
60
  * **Username:** userdemo
61
  * **Password:** userdemo
62
 
63
- = Premium Upgrade =
64
 
65
  * For premium upgrade, please go [here](https://weblizar.com/plugins/twitter-tweets-pro/)
66
 
@@ -100,19 +100,22 @@ Please use WordPress support forum to ask any query regarding any issue.
100
 
101
  For more information, see Weblizar(https://weblizar.com/)
102
 
103
- = 1.8.0 =
 
 
 
104
  - Add : Fetch Tweets using API Key
105
 
106
- = 1.7.9 =
107
  - Add : Pro Features Layout Page
108
  - Update : Change layout of plugin setting dashboard
109
 
110
 
111
- = 1.7.8 =
112
  - Add : Upgrade to pro banner at plugin dashboard setting page
113
  - Add : Premium feature text added
114
 
115
- = 1.7.7 =
116
  - Add : about protected tweet link
117
  - Fix : minor changed
118
 
@@ -122,11 +125,11 @@ For more information, see Weblizar(https://weblizar.com/)
122
  - ADD : Review link on Plugin Page
123
  - ADD : New Products in Product Page
124
  : Version update + WordPress 4.9.8 Compatible
125
- -
126
  = 1.7.5 =
127
- - Bug Fixed : First time activation twitter widget not open
128
  - ADD : Add product page
129
- : Version update
130
  : WordPress 4.9.6 Compatible
131
 
132
  = 1.7.4 - version update + WordPress 4.9.5 Compatible
@@ -209,4 +212,4 @@ For more information, see Weblizar(https://weblizar.com/)
209
  * Set Widget Height
210
  * Tweets URL Link Color Option
211
  * Show/Hide Tweets Reply
212
- * Auto Expand Photos in Tweets
3
  Donate link: https://www.weblizar.com/
4
  Tags: twitter, tweets, twitter tweets, twitter widget, twitter wordPress plugin, twitter feed
5
  Requires at least: 3.8
6
+ Tested up to: 5.0.3
7
+ Stable tag: 1.8.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Weblizar Twitter Tweets plugin for WordPress. You can use this to display real time Twitter feeds on any where on your website by using shortcode or widgets.
12
 
13
  == Description ==
14
 
15
+ Weblizar Twitter Tweets plugin is display the real time Twitter feeds on your WordPress website by using shortcode or widgetsg.
16
 
17
  It is completely customizable, responsive and search engine crawlable versions of your Twitter feed on your website. Completely match the look and feel of your site with tons of customization options!
18
 
53
  * completely customizable, responsive design
54
 
55
  * For Premium Upgrade, Please go [here](https://weblizar.com/plugins/twitter-tweets-pro/)
56
+ = Live Twitter Tweets Pro Demos =
57
 
58
  * [Twitter TweetsPro Demo](http://demo.weblizar.com/twitter-tweets-pro/wp-admin/)
59
  * [Twitter Tweets Pro Admin Demo](http://demo.weblizar.com/twitter-tweets-pro-admindemo/wp-admin/)
60
  * **Username:** userdemo
61
  * **Password:** userdemo
62
 
63
+ = Premium Upgrade =
64
 
65
  * For premium upgrade, please go [here](https://weblizar.com/plugins/twitter-tweets-pro/)
66
 
100
 
101
  For more information, see Weblizar(https://weblizar.com/)
102
 
103
+ = 1.8.1 =
104
+ - Update : change layout of Tweet block on both plugin setting dashboard and frontend
105
+
106
+ = 1.8.0 =
107
  - Add : Fetch Tweets using API Key
108
 
109
+ = 1.7.9 =
110
  - Add : Pro Features Layout Page
111
  - Update : Change layout of plugin setting dashboard
112
 
113
 
114
+ = 1.7.8 =
115
  - Add : Upgrade to pro banner at plugin dashboard setting page
116
  - Add : Premium feature text added
117
 
118
+ = 1.7.7 =
119
  - Add : about protected tweet link
120
  - Fix : minor changed
121
 
125
  - ADD : Review link on Plugin Page
126
  - ADD : New Products in Product Page
127
  : Version update + WordPress 4.9.8 Compatible
128
+ -
129
  = 1.7.5 =
130
+ - Bug Fixed : First time activation twitter widget not open
131
  - ADD : Add product page
132
+ : Version update
133
  : WordPress 4.9.6 Compatible
134
 
135
  = 1.7.4 - version update + WordPress 4.9.5 Compatible
212
  * Set Widget Height
213
  * Tweets URL Link Color Option
214
  * Show/Hide Tweets Reply
215
+ * Auto Expand Photos in Tweets
twiiter_help.php CHANGED
@@ -354,7 +354,7 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
354
  <br>
355
  <p>
356
  <label><?php _e( 'Consumer Key',"WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?>&nbsp;*</label>
357
- <input class="widefat" id="wl_twitter_consumer_key" name="wl_twitter_consumer_key" type="text" value="<?php echo esc_attr($wl_twitter_consumer_key); ?>" placeholder="<?php _e( 'Enter Your Twitter Consumer Key',"WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?>">
358
  </p>
359
  <span class="helplink"><?php _e("Visit this link to ", "WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?><a href="https://weblizar.com/blog/generate-twitter-api-key/" target="_bank"><?php _e("Generate Twitter API key", "WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?></a></span>
360
  <br>
@@ -362,27 +362,27 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
362
  <br>
363
  <p>
364
  <label><?php _e( 'Consumer Secret',"WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?>&nbsp;*</label>
365
- <input class="widefat" id="wl_twitter_consumer_secret" name="wl_twitter_consumer_secret" type="text" value="<?php echo esc_attr($wl_twitter_consumer_secret); ?>" placeholder="<?php _e( 'Enter Your Twitter Consumer Secret',"WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?>">
366
  </p>
367
  <br>
368
 
369
  <br>
370
  <p>
371
  <label><?php _e( 'Access Token',"WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?>&nbsp;*</label>
372
- <input class="widefat" id="wl_twitter_access_token" name="wl_twitter_access_token" type="text" value="<?php echo esc_attr($wl_twitter_access_token); ?>" placeholder="<?php _e( 'Enter Your Twitter Access Token',"WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?>">
373
  </p>
374
  <br>
375
 
376
  <br>
377
  <p>
378
  <label><?php _e( 'Access Token Secret',"WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?>&nbsp;*</label>
379
- <input class="widefat" id="wl_twitter_token_secret" name="wl_twitter_token_secret" type="text" value="<?php echo esc_attr($wl_twitter_token_secret); ?>" placeholder="<?php _e( 'Enter Your Twitter Token Secret',"WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?>">
380
  </p>
381
 
382
  <br>
383
  <p>
384
  <label><?php _e( 'No. Of tweets Show',"WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?></label>
385
- <input class="widefat wltt-slider" id="wl_twitter_tweets" name="wl_twitter_tweets" type="range" value="<?php echo esc_attr($wl_twitter_tweets); ?>" min="1" max="14" data-rangeSlider>
386
  </p>
387
  <p>
388
  <b>Set no of tweets you want to show</b>: <span id="wl_twitter_range_show"></span>
@@ -424,29 +424,50 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
424
  <div class="col-md-6">
425
  <div class="wl_twt_free">
426
  <div class="container-fluid">
427
- <div class="row">
428
- <?php
429
- foreach ( $statuses as $status ) {
 
 
430
  /* user info */
431
- $user = $status->user;
432
- $name = $user->name;
 
 
 
 
 
433
  $screen_name = $user->screen_name;
434
- $location = $user->location;
 
 
 
 
435
  $description = $user->description;
436
- $url = $user->url;
437
- $id_str = $status->id_str; /* use it to make link of post */
438
- $created_at = $status->created_at; /* time when tweet was created */
 
 
 
 
 
 
 
439
  /* profile_image_url */
440
- $profile_image_url = $user->profile_image_url;
441
- $profile_image_url_https = $user->profile_image_url_https;
442
- ?>
443
- <div class="col-md-<?php echo $wl_twitter_layout; ?>">
 
 
 
444
  <div class="wl_tweet_box">
445
- <p>
446
- <img class="align-self-start mr-3" src="<?php echo $profile_image_url_https; ?>"
447
  alt="">
448
- <a href="https://twitter.com/<?php echo $screen_name; ?>">
449
- <?php echo "@" . $screen_name; ?>
450
  </a>
451
  </p>
452
  <?php
@@ -502,21 +523,33 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
502
  }
503
  ?>
504
  <p class="wl_tweet_desc">
505
- <?php
 
506
  echo makeLinks( $status->text );
 
507
  ?>
508
  </p>
509
  <p class="wl_tweet_action_buttons">
510
  <a href="https://twitter.com/intent/retweet?tweet_id=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?> retweet"
511
  target="_blank"
512
- onclick="window.open('https://twitter.com/intent/retweet?tweet_id=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?> retweet', 'newwindow', 'width=600,height=450'); return false;"><?php _e( 'Retweet', twitter_tweets );
513
- echo " ($status->retweet_count)"; ?>
 
 
 
 
 
514
  </a>
515
 
516
  <a href="https://twitter.com/intent/like?tweet_id=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?>"
517
  target="_blank"
518
- onclick="window.open('https://twitter.com/intent/like?tweet_id=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?> retweet', 'newwindow', 'width=600,height=450'); return false;"><?php _e( 'Like', twitter_tweets );
519
- echo " ($status->favorite_count)" ?>
 
 
 
 
 
520
  </a>
521
 
522
  <a href="https://twitter.com/intent/tweet?in_reply_to=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?>"
@@ -524,11 +557,12 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
524
  onclick="window.open('https://twitter.com/intent/tweet?in_reply_to=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?> retweet', 'newwindow', 'width=600,height=450'); return false;"><?php _e( 'Reply', twitter_tweets ); ?>
525
  </a>
526
  </p>
527
- <span class="wl-wtp-date-font-size"><?php echo tweet_time_calculate( $created_at ); ?>
528
- &nbsp;<?php _e( 'ago', twitter_tweets ); ?></span>
529
  </div> <!-- Tweet box -->
 
 
530
  </div>
531
- <?php } ?>
532
  </div>
533
  </div>
534
  </div>
354
  <br>
355
  <p>
356
  <label><?php _e( 'Consumer Key',"WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?>&nbsp;*</label>
357
+ <input class="widefat" id="wl_twitter_consumer_key" name="wl_twitter_consumer_key" type="text" value="<?php if( isset( $wl_twitter_consumer_key ) ) {echo esc_attr($wl_twitter_consumer_key);} ?>" placeholder="<?php _e( 'Enter Your Twitter Consumer Key',"WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?>">
358
  </p>
359
  <span class="helplink"><?php _e("Visit this link to ", "WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?><a href="https://weblizar.com/blog/generate-twitter-api-key/" target="_bank"><?php _e("Generate Twitter API key", "WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?></a></span>
360
  <br>
362
  <br>
363
  <p>
364
  <label><?php _e( 'Consumer Secret',"WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?>&nbsp;*</label>
365
+ <input class="widefat" id="wl_twitter_consumer_secret" name="wl_twitter_consumer_secret" type="text" value="<?php if(isset($wl_twitter_consumer_secret)) {echo esc_attr($wl_twitter_consumer_secret);} ?>" placeholder="<?php _e( 'Enter Your Twitter Consumer Secret',"WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?>">
366
  </p>
367
  <br>
368
 
369
  <br>
370
  <p>
371
  <label><?php _e( 'Access Token',"WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?>&nbsp;*</label>
372
+ <input class="widefat" id="wl_twitter_access_token" name="wl_twitter_access_token" type="text" value="<?php if( isset( $wl_twitter_access_token ) ) {echo esc_attr($wl_twitter_access_token);} ?>" placeholder="<?php _e( 'Enter Your Twitter Access Token',"WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?>">
373
  </p>
374
  <br>
375
 
376
  <br>
377
  <p>
378
  <label><?php _e( 'Access Token Secret',"WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?>&nbsp;*</label>
379
+ <input class="widefat" id="wl_twitter_token_secret" name="wl_twitter_token_secret" type="text" value="<?php if( isset( $wl_twitter_token_secret ) ) {echo esc_attr($wl_twitter_token_secret);} ?>" placeholder="<?php _e( 'Enter Your Twitter Token Secret',"WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?>">
380
  </p>
381
 
382
  <br>
383
  <p>
384
  <label><?php _e( 'No. Of tweets Show',"WEBLIZAR_TWITTER_TEXT_DOMAIN"); ?></label>
385
+ <input class="widefat wltt-slider" id="wl_twitter_tweets" name="wl_twitter_tweets" type="range" value="<?php if( isset( $wl_twitter_tweets ) ) {echo esc_attr($wl_twitter_tweets);} ?>" min="1" max="14" data-rangeSlider>
386
  </p>
387
  <p>
388
  <b>Set no of tweets you want to show</b>: <span id="wl_twitter_range_show"></span>
424
  <div class="col-md-6">
425
  <div class="wl_twt_free">
426
  <div class="container-fluid">
427
+ <div class="row">
428
+ <div class="col-md-<?php if( isset( $wl_twitter_layout ) ){echo $wl_twitter_layout;} ?>">
429
+ <?php
430
+ if ( isset( $statuses ) && is_array( $statuses ) ) {
431
+ foreach ( $statuses as $status ) {
432
  /* user info */
433
+ if( isset( $status->user ) ) {
434
+ $user = $status->user;
435
+ }
436
+ if( isset( $user->name ) ) {
437
+ $name = $user->name;
438
+ }
439
+ if( isset( $user->screen_name ) ) {
440
  $screen_name = $user->screen_name;
441
+ }
442
+ if( isset( $user->location ) ) {
443
+ $location = $user->location;
444
+ }
445
+ if( isset( $user->description ) ) {
446
  $description = $user->description;
447
+ }
448
+ if( isset( $user->url ) ) {
449
+ $url = $user->url;
450
+ }
451
+ if( isset( $status->id_str ) ) {
452
+ $id_str = $status->id_str; /* use it to make link of post */
453
+ }
454
+ if( isset( $status->created_at ) ) {
455
+ $created_at = $status->created_at; /* time when tweet was created */
456
+ }
457
  /* profile_image_url */
458
+ if( isset( $user->profile_image_url ) ) {
459
+ $profile_image_url = $user->profile_image_url;
460
+ }
461
+ if( isset( $user->profile_image_url_https ) ) {
462
+ $profile_image_url_https = $user->profile_image_url_https;
463
+ }
464
+ ?>
465
  <div class="wl_tweet_box">
466
+ <p class="wl_tweet">
467
+ <img class="align-self-start mr-3" src="<?php if( isset( $user->profile_image_url_https ) ){echo $profile_image_url_https;} ?>"
468
  alt="">
469
+ <a href="https://twitter.com/<?php if( isset( $user->screen_name ) ){echo $screen_name;} ?>">
470
+ <?php if( isset( $user->screen_name ) ) {echo "@" . $screen_name;} ?>
471
  </a>
472
  </p>
473
  <?php
523
  }
524
  ?>
525
  <p class="wl_tweet_desc">
526
+ <?php
527
+ if( isset( $status->text ) ) {
528
  echo makeLinks( $status->text );
529
+ }
530
  ?>
531
  </p>
532
  <p class="wl_tweet_action_buttons">
533
  <a href="https://twitter.com/intent/retweet?tweet_id=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?> retweet"
534
  target="_blank"
535
+ onclick="window.open('https://twitter.com/intent/retweet?tweet_id=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?> retweet', 'newwindow', 'width=600,height=450'); return false;">
536
+ <?php
537
+ if ( isset( $status->retweet_count ) ) {
538
+ _e( 'Retweet', twitter_tweets );
539
+ echo " ($status->retweet_count)";
540
+ }
541
+ ?>
542
  </a>
543
 
544
  <a href="https://twitter.com/intent/like?tweet_id=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?>"
545
  target="_blank"
546
+ onclick="window.open('https://twitter.com/intent/like?tweet_id=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?> retweet', 'newwindow', 'width=600,height=450'); return false;">
547
+ <?php
548
+ if ( isset( $status->favorite_count ) ) {
549
+ _e( 'Like', twitter_tweets );
550
+ echo " ($status->favorite_count)";
551
+ }
552
+ ?>
553
  </a>
554
 
555
  <a href="https://twitter.com/intent/tweet?in_reply_to=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?>"
557
  onclick="window.open('https://twitter.com/intent/tweet?in_reply_to=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?> retweet', 'newwindow', 'width=600,height=450'); return false;"><?php _e( 'Reply', twitter_tweets ); ?>
558
  </a>
559
  </p>
560
+ <span class="wl-wtp-date-font-size"><?php if( isset( $status->created_at ) ) {echo tweet_time_calculate( $created_at );} ?>
561
+ &nbsp;<?php if( isset( $status->created_at ) ) {_e( 'ago', twitter_tweets );} ?></span>
562
  </div> <!-- Tweet box -->
563
+ <?php }
564
+ } ?>
565
  </div>
 
566
  </div>
567
  </div>
568
  </div>
twiiter_help_body.php CHANGED
@@ -1,4 +1,4 @@
1
- <div class="wrap" id="weblizar_wrap">
2
  <div id="content_wrap">
3
  <div class="weblizar-header">
4
  <h2><span class="dashicons dashicons-twitter" style="width: auto;"> Weblizar Twitter Tweets</span></h2>
1
+ <div class="wrap" id="weblizar_wrap">
2
  <div id="content_wrap">
3
  <div class="weblizar-header">
4
  <h2><span class="dashicons dashicons-twitter" style="width: auto;"> Weblizar Twitter Tweets</span></h2>
twitter-tweets.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php
2
  /*
3
  * Plugin Name: Weblizar Twitter Tweets
4
- * Version: 1.8.0
5
  * Description: Weblizar Twitter Tweets plugin for WordPress. You can use this to display real time Twitter feeds on any where on your webiste by using shortcode or widgets
6
  * Author: Weblizar
7
  * Author URI: https://www.weblizar.com/
8
  * Plugin URI: https://www.weblizar.com/plugins/
9
  */
10
-
11
  /**
12
  * Constant Values & Variables
13
  */
@@ -28,14 +28,14 @@ class WeblizarTwitter extends WP_Widget {
28
  'Weblizar Twitter Widget', // Name
29
  array( 'description' => __( 'Display latest tweets from your Twitter account', twitter_tweets )));
30
  }
31
-
32
  /*
33
  * Front-end display of widget.
34
  */
35
  public function widget( $args, $instance ) {
36
  // Outputs the content of the widget
37
  extract($args); // Make before_widget, etc available.
38
- $title = apply_filters('title', $instance['title']);
39
  echo $before_widget;
40
  if (!empty($title)) { echo $before_title . $title . $after_title; }
41
  $TwitterUserName = apply_filters( 'weblizar_twitter_user_name', $instance['TwitterUserName'] );
@@ -49,10 +49,10 @@ class WeblizarTwitter extends WP_Widget {
49
  $tw_language = apply_filters( 'weblizar_twitter_language', $instance['tw_language'] );
50
  ?>
51
  <div style="display:block;width:100%;float:left;overflow:hidden">
52
- <a class="twitter-timeline" data-dnt="true" href="https://twitter.com/<?php echo esc_attr($TwitterUserName); ?>"
53
- min-width="<?php echo esc_attr($Width); ?>"
54
- height="<?php echo esc_attr($Height); ?>"
55
- data-theme="<?php echo esc_attr($Theme); ?>"
56
  data-lang="<?php echo esc_attr($tw_language); ?>"
57
  data-link-color="<?php echo esc_attr($LinkColor); ?>"></a>
58
  <script>
@@ -64,7 +64,7 @@ class WeblizarTwitter extends WP_Widget {
64
  <?php
65
  echo $after_widget;
66
  }
67
-
68
  /*
69
  * Back-end widget form.
70
  */
@@ -89,26 +89,26 @@ class WeblizarTwitter extends WP_Widget {
89
  $Width = $instance[ 'Width' ];
90
  } else {
91
  $Width = "450";
92
- }
93
 
94
  if ( isset( $instance[ 'LinkColor' ] ) ) {
95
  $LinkColor = $instance[ 'LinkColor' ];
96
  } else {
97
  $LinkColor = "450";
98
  }
99
-
100
  if ( isset( $instance[ 'ExcludeReplies' ] ) ) {
101
  $ExcludeReplies = $instance[ 'ExcludeReplies' ];
102
  } else {
103
  $ExcludeReplies = "yes";
104
  }
105
-
106
  if ( isset( $instance[ 'AutoExpandPhotos' ] ) ) {
107
  $AutoExpandPhotos = $instance[ 'AutoExpandPhotos' ];
108
  } else {
109
  $AutoExpandPhotos = "yes";
110
  }
111
-
112
  if ( isset( $instance[ 'tw_language' ] ) ) {
113
  $tw_language = $instance[ 'tw_language' ];
114
  } else {
@@ -119,14 +119,14 @@ class WeblizarTwitter extends WP_Widget {
119
  } else {
120
  $TwitterWidgetId = "";
121
  }
122
-
123
  if ( isset( $instance[ 'title' ] ) ) {
124
  $title = $instance[ 'title' ];
125
  } else {
126
  $title = __( 'Tweets', 'Widget Title Here' );
127
  } ?>
128
  <p>
129
- <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
130
  <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" placeholder="<?php _e( 'Enter Widget Title',twitter_tweets); ?>">
131
  </p>
132
  <p>
@@ -166,8 +166,8 @@ class WeblizarTwitter extends WP_Widget {
166
  <option value="no" <?php if($AutoExpandPhotos == "no") echo "selected=selected" ?>>No</option>
167
  </select>
168
  </p>
169
-
170
-
171
  <p>
172
  <label for="<?php echo $this->get_field_id( 'tw_language' ); ?>"><?php _e( 'Select Language' ); ?></label>
173
  <select id="<?php echo $this->get_field_id( 'tw_language' ); ?>" name="<?php echo $this->get_field_name('tw_language' ); ?>">
@@ -208,8 +208,8 @@ class WeblizarTwitter extends WP_Widget {
208
  <option value="zh-tw"<?php if($tw_language == "zh-tw") echo "selected=selected" ?>>Chinese (Traditional)</option>
209
  </select>
210
  </p>
211
-
212
- <?php
213
  }
214
  /*
215
  Sanitize widget form values as they are saved.
@@ -228,13 +228,13 @@ class WeblizarTwitter extends WP_Widget {
228
  $Linkcolor = sanitize_option( ( ! empty( $new_instance['LinkColor'] ) ) ? strip_tags( $new_instance['LinkColor'] ) : '#CC0000' );
229
  $ExcludeReplies = sanitize_option( ( ! empty( $new_instance['ExcludeReplies'] ) ) ? strip_tags( $new_instance['ExcludeReplies'] ) : 'yes' );
230
  $AutoExpandPhotos = sanitize_option( ( ! empty( $new_instance['AutoExpandPhotos'] ) ) ? strip_tags( $new_instance['AutoExpandPhotos'] ) : 'yes' );
231
- $TwitterWidgetId = sanitize_text_field( ( ! empty( $new_instance['TwitterWidgetId'] ) ) ? strip_tags( $new_instance['TwitterWidgetId'] ) : '' );
232
- $tw_language = sanitize_text_field( ( ! empty( $new_instance['tw_language'] ) ) ? strip_tags( $new_instance['tw_language'] ) : '' );
233
-
234
  $instance['title'] = $title;
235
  $instance['TwitterUserName'] = $TwitterUserName;
236
  $instance['Theme'] = $Theme;
237
- $instance['Height'] = $Height;
238
  $instance['LinkColor'] = $Linkcolor;
239
  $instance['ExcludeReplies'] = $ExcludeReplies;
240
  $instance['AutoExpandPhotos'] = $AutoExpandPhotos;
@@ -243,7 +243,7 @@ class WeblizarTwitter extends WP_Widget {
243
  $instance['Width'] = $Width;
244
  return $instance;
245
  }
246
- }
247
 
248
  // end of class WeblizarTwitter
249
 
@@ -276,16 +276,16 @@ if( ! is_admin() ){
276
  }
277
  function wl_enqueue_css_frontend(){
278
  global $post;
279
- if ( is_a( $post, 'WP_Post' ) && has_shortcode( $post->post_content, 'WL_TWITTER' ) ) {
280
  wp_enqueue_style('front-end-css', WEBLIZAR_TWITTER_PLUGIN_URL .'css/front-end-css.css');
281
  wp_enqueue_style('front-end-bs-css', WEBLIZAR_TWITTER_PLUGIN_URL .'css/bootstrap-front.min.css');
282
  }
283
-
284
 
285
  }
286
 
287
  /*Plugin Setting Link*/
288
- function wl_twitter_settinglinks( $links ) {
289
  $twt_go_pro_link = '<a href="https://weblizar.com/plugins/twitter-tweets-pro/" style="font-weight:700; color:#e35400" target="_blank">Go Pro</a>';
290
  $twitter_settings_link = '<a href="admin.php?page=Twitter">' . __( 'Settings' ) . '</a>';
291
  array_unshift( $links,$twt_go_pro_link,$twitter_settings_link);
@@ -299,4 +299,4 @@ add_filter( "plugin_action_links_$plugin_wl_twitter", 'wl_twitter_settinglinks'
299
  * Twitter Shortcode
300
  */
301
  require_once("twitter-tweets_shortcode.php");
302
- ?>
1
  <?php
2
  /*
3
  * Plugin Name: Weblizar Twitter Tweets
4
+ * Version: 1.8.1
5
  * Description: Weblizar Twitter Tweets plugin for WordPress. You can use this to display real time Twitter feeds on any where on your webiste by using shortcode or widgets
6
  * Author: Weblizar
7
  * Author URI: https://www.weblizar.com/
8
  * Plugin URI: https://www.weblizar.com/plugins/
9
  */
10
+
11
  /**
12
  * Constant Values & Variables
13
  */
28
  'Weblizar Twitter Widget', // Name
29
  array( 'description' => __( 'Display latest tweets from your Twitter account', twitter_tweets )));
30
  }
31
+
32
  /*
33
  * Front-end display of widget.
34
  */
35
  public function widget( $args, $instance ) {
36
  // Outputs the content of the widget
37
  extract($args); // Make before_widget, etc available.
38
+ $title = apply_filters('title', $instance['title']);
39
  echo $before_widget;
40
  if (!empty($title)) { echo $before_title . $title . $after_title; }
41
  $TwitterUserName = apply_filters( 'weblizar_twitter_user_name', $instance['TwitterUserName'] );
49
  $tw_language = apply_filters( 'weblizar_twitter_language', $instance['tw_language'] );
50
  ?>
51
  <div style="display:block;width:100%;float:left;overflow:hidden">
52
+ <a class="twitter-timeline" data-dnt="true" href="https://twitter.com/<?php echo esc_attr($TwitterUserName); ?>"
53
+ min-width="<?php echo esc_attr($Width); ?>"
54
+ height="<?php echo esc_attr($Height); ?>"
55
+ data-theme="<?php echo esc_attr($Theme); ?>"
56
  data-lang="<?php echo esc_attr($tw_language); ?>"
57
  data-link-color="<?php echo esc_attr($LinkColor); ?>"></a>
58
  <script>
64
  <?php
65
  echo $after_widget;
66
  }
67
+
68
  /*
69
  * Back-end widget form.
70
  */
89
  $Width = $instance[ 'Width' ];
90
  } else {
91
  $Width = "450";
92
+ }
93
 
94
  if ( isset( $instance[ 'LinkColor' ] ) ) {
95
  $LinkColor = $instance[ 'LinkColor' ];
96
  } else {
97
  $LinkColor = "450";
98
  }
99
+
100
  if ( isset( $instance[ 'ExcludeReplies' ] ) ) {
101
  $ExcludeReplies = $instance[ 'ExcludeReplies' ];
102
  } else {
103
  $ExcludeReplies = "yes";
104
  }
105
+
106
  if ( isset( $instance[ 'AutoExpandPhotos' ] ) ) {
107
  $AutoExpandPhotos = $instance[ 'AutoExpandPhotos' ];
108
  } else {
109
  $AutoExpandPhotos = "yes";
110
  }
111
+
112
  if ( isset( $instance[ 'tw_language' ] ) ) {
113
  $tw_language = $instance[ 'tw_language' ];
114
  } else {
119
  } else {
120
  $TwitterWidgetId = "";
121
  }
122
+
123
  if ( isset( $instance[ 'title' ] ) ) {
124
  $title = $instance[ 'title' ];
125
  } else {
126
  $title = __( 'Tweets', 'Widget Title Here' );
127
  } ?>
128
  <p>
129
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
130
  <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" placeholder="<?php _e( 'Enter Widget Title',twitter_tweets); ?>">
131
  </p>
132
  <p>
166
  <option value="no" <?php if($AutoExpandPhotos == "no") echo "selected=selected" ?>>No</option>
167
  </select>
168
  </p>
169
+
170
+
171
  <p>
172
  <label for="<?php echo $this->get_field_id( 'tw_language' ); ?>"><?php _e( 'Select Language' ); ?></label>
173
  <select id="<?php echo $this->get_field_id( 'tw_language' ); ?>" name="<?php echo $this->get_field_name('tw_language' ); ?>">
208
  <option value="zh-tw"<?php if($tw_language == "zh-tw") echo "selected=selected" ?>>Chinese (Traditional)</option>
209
  </select>
210
  </p>
211
+
212
+ <?php
213
  }
214
  /*
215
  Sanitize widget form values as they are saved.
228
  $Linkcolor = sanitize_option( ( ! empty( $new_instance['LinkColor'] ) ) ? strip_tags( $new_instance['LinkColor'] ) : '#CC0000' );
229
  $ExcludeReplies = sanitize_option( ( ! empty( $new_instance['ExcludeReplies'] ) ) ? strip_tags( $new_instance['ExcludeReplies'] ) : 'yes' );
230
  $AutoExpandPhotos = sanitize_option( ( ! empty( $new_instance['AutoExpandPhotos'] ) ) ? strip_tags( $new_instance['AutoExpandPhotos'] ) : 'yes' );
231
+ $TwitterWidgetId = sanitize_text_field( ( ! empty( $new_instance['TwitterWidgetId'] ) ) ? strip_tags( $new_instance['TwitterWidgetId'] ) : '' );
232
+ $tw_language = sanitize_text_field( ( ! empty( $new_instance['tw_language'] ) ) ? strip_tags( $new_instance['tw_language'] ) : '' );
233
+
234
  $instance['title'] = $title;
235
  $instance['TwitterUserName'] = $TwitterUserName;
236
  $instance['Theme'] = $Theme;
237
+ $instance['Height'] = $Height;
238
  $instance['LinkColor'] = $Linkcolor;
239
  $instance['ExcludeReplies'] = $ExcludeReplies;
240
  $instance['AutoExpandPhotos'] = $AutoExpandPhotos;
243
  $instance['Width'] = $Width;
244
  return $instance;
245
  }
246
+ }
247
 
248
  // end of class WeblizarTwitter
249
 
276
  }
277
  function wl_enqueue_css_frontend(){
278
  global $post;
279
+ if ( is_a( $post, 'WP_Post' ) && has_shortcode( $post->post_content, 'WL_TWITTER' ) ) {
280
  wp_enqueue_style('front-end-css', WEBLIZAR_TWITTER_PLUGIN_URL .'css/front-end-css.css');
281
  wp_enqueue_style('front-end-bs-css', WEBLIZAR_TWITTER_PLUGIN_URL .'css/bootstrap-front.min.css');
282
  }
283
+
284
 
285
  }
286
 
287
  /*Plugin Setting Link*/
288
+ function wl_twitter_settinglinks( $links ) {
289
  $twt_go_pro_link = '<a href="https://weblizar.com/plugins/twitter-tweets-pro/" style="font-weight:700; color:#e35400" target="_blank">Go Pro</a>';
290
  $twitter_settings_link = '<a href="admin.php?page=Twitter">' . __( 'Settings' ) . '</a>';
291
  array_unshift( $links,$twt_go_pro_link,$twitter_settings_link);
299
  * Twitter Shortcode
300
  */
301
  require_once("twitter-tweets_shortcode.php");
302
+ ?>
twitter-tweets_shortcode.php CHANGED
@@ -76,36 +76,56 @@ function twitter_tweet_shortcode() {
76
  }
77
 
78
  add_shortcode("WL_TWITTER", "wl_twitter_tweets_api");
79
- function wl_twitter_tweets_api(){
80
  require_once( wl_twitter_dir_path . "load-tweets.php" );
81
  ob_start();
82
  ?>
83
  <div class="wl_twt_free">
84
  <div class="container-fluid">
85
- <div class="row">
86
- <?php
 
87
  foreach ( $statuses as $status ) {
88
- /* user info */
89
- $user = $status->user;
90
- $name = $user->name;
91
- $screen_name = $user->screen_name;
92
- $location = $user->location;
93
- $description = $user->description;
94
- $url = $user->url;
95
- $id_str = $status->id_str; /* use it to make link of post */
96
- $created_at = $status->created_at; /* time when tweet was created */
97
-
98
- /* profile_image_url */
99
- $profile_image_url = $user->profile_image_url;
100
- $profile_image_url_https = $user->profile_image_url_https;
101
- ?>
102
- <div class="col-md-<?php echo $wl_twitter_layout; ?>">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  <div class="wl_tweet_box">
104
- <p>
105
- <img class="align-self-start mr-3" src="<?php echo $profile_image_url_https; ?>"
106
  alt="">
107
- <a href="https://twitter.com/<?php echo $screen_name; ?>">
108
- <?php echo "@" . $screen_name; ?>
109
  </a>
110
  </p>
111
  <?php
@@ -157,24 +177,36 @@ function wl_twitter_tweets_api(){
157
  </a>
158
  <?php
159
  }
160
- }
161
  ?>
162
  <p class="wl_tweet_desc">
163
- <?php
 
164
  echo makeLinks( $status->text );
 
165
  ?>
166
  </p>
167
  <p class="wl_tweet_action_buttons">
168
  <a href="https://twitter.com/intent/retweet?tweet_id=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?> retweet"
169
  target="_blank"
170
- onclick="window.open('https://twitter.com/intent/retweet?tweet_id=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?> retweet', 'newwindow', 'width=600,height=450'); return false;"><?php _e( 'Retweet', twitter_tweets );
171
- echo " ($status->retweet_count)"; ?>
 
 
 
 
 
172
  </a>
173
 
174
  <a href="https://twitter.com/intent/like?tweet_id=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?>"
175
  target="_blank"
176
- onclick="window.open('https://twitter.com/intent/like?tweet_id=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?> retweet', 'newwindow', 'width=600,height=450'); return false;"><?php _e( 'Like', twitter_tweets );
177
- echo " ($status->favorite_count)" ?>
 
 
 
 
 
178
  </a>
179
 
180
  <a href="https://twitter.com/intent/tweet?in_reply_to=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?>"
@@ -182,15 +214,19 @@ function wl_twitter_tweets_api(){
182
  onclick="window.open('https://twitter.com/intent/tweet?in_reply_to=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?> retweet', 'newwindow', 'width=600,height=450'); return false;"><?php _e( 'Reply', twitter_tweets ); ?>
183
  </a>
184
  </p>
185
- <span class="wl-wtp-date-font-size"><?php echo tweet_time_calculate( $created_at ); ?>
186
- &nbsp;<?php _e( 'ago', twitter_tweets ); ?></span>
187
  </div> <!-- Tweet box -->
 
188
  </div>
189
- <?php } ?>
 
 
190
  </div>
191
  </div>
192
  </div>
193
  <?php
194
  return ob_get_clean();
195
  }
 
196
  ?>
76
  }
77
 
78
  add_shortcode("WL_TWITTER", "wl_twitter_tweets_api");
79
+ function wl_twitter_tweets_api() {
80
  require_once( wl_twitter_dir_path . "load-tweets.php" );
81
  ob_start();
82
  ?>
83
  <div class="wl_twt_free">
84
  <div class="container-fluid">
85
+ <div class="row">
86
+ <div class="col-md-<?php if( isset( $wl_twitter_layout ) ) {echo $wl_twitter_layout;} ?>">
87
+ <?php if ( isset( $statuses ) && is_array( $statuses ) ) {
88
  foreach ( $statuses as $status ) {
89
+ // var_dump($status);
90
+ /* user info */
91
+ if( isset( $status->user ) ) {
92
+ $user = $status->user;
93
+ }
94
+ if( isset( $user->name ) ) {
95
+ $name = $user->name;
96
+ }
97
+ if( isset( $user->screen_name ) ) {
98
+ $screen_name = $user->screen_name;
99
+ }
100
+ if( isset( $user->location ) ) {
101
+ $location = $user->location;
102
+ }
103
+ if( isset( $user->description ) ) {
104
+ $description = $user->description;
105
+ }
106
+ if( isset( $user->url ) ) {
107
+ $url = $user->url;
108
+ }
109
+ if( isset( $status->id_str ) ) {
110
+ $id_str = $status->id_str; /* use it to make link of post */
111
+ }
112
+ if( isset( $status->created_at ) ) {
113
+ $created_at = $status->created_at; /* time when tweet was created */
114
+ }
115
+ /* profile_image_url */
116
+ if( isset( $user->profile_image_url ) ) {
117
+ $profile_image_url = $user->profile_image_url;
118
+ }
119
+ if( isset( $user->profile_image_url_https ) ) {
120
+ $profile_image_url_https = $user->profile_image_url_https;
121
+ }
122
+ ?>
123
  <div class="wl_tweet_box">
124
+ <p class="wl_tweet">
125
+ <img class="align-self-start mr-3" src="<?php if( isset( $user->profile_image_url_https ) ) {echo $profile_image_url_https;} ?>"
126
  alt="">
127
+ <a href="https://twitter.com/<?php if( isset( $user->screen_name ) ) { var_dump($screen_name); echo $screen_name;} ?>">
128
+ <?php if( isset( $user->screen_name ) ) {echo "@" . $screen_name;} ?>
129
  </a>
130
  </p>
131
  <?php
177
  </a>
178
  <?php
179
  }
180
+
181
  ?>
182
  <p class="wl_tweet_desc">
183
+ <?php
184
+ if( isset( $status->text ) ) {
185
  echo makeLinks( $status->text );
186
+ }
187
  ?>
188
  </p>
189
  <p class="wl_tweet_action_buttons">
190
  <a href="https://twitter.com/intent/retweet?tweet_id=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?> retweet"
191
  target="_blank"
192
+ onclick="window.open('https://twitter.com/intent/retweet?tweet_id=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?> retweet', 'newwindow', 'width=600,height=450'); return false;">
193
+ <?php
194
+ if ( isset( $status->retweet_count ) ) {
195
+ _e( 'Retweet', twitter_tweets );
196
+ echo " ($status->retweet_count)";
197
+ }
198
+ ?>
199
  </a>
200
 
201
  <a href="https://twitter.com/intent/like?tweet_id=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?>"
202
  target="_blank"
203
+ onclick="window.open('https://twitter.com/intent/like?tweet_id=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?> retweet', 'newwindow', 'width=600,height=450'); return false;">
204
+ <?php
205
+ if ( isset( $status->favorite_count ) ) {
206
+ _e( 'Like', twitter_tweets );
207
+ echo " ($status->favorite_count)";
208
+ }
209
+ ?>
210
  </a>
211
 
212
  <a href="https://twitter.com/intent/tweet?in_reply_to=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?>"
214
  onclick="window.open('https://twitter.com/intent/tweet?in_reply_to=<?php echo $id_str; ?>&related=<?php echo $screen_name; ?> retweet', 'newwindow', 'width=600,height=450'); return false;"><?php _e( 'Reply', twitter_tweets ); ?>
215
  </a>
216
  </p>
217
+ <span class="wl-wtp-date-font-size"><?php if( isset( $status->created_at ) ) {echo tweet_time_calculate( $created_at );} ?>
218
+ &nbsp;<?php if( isset( $status->created_at ) ) { _e( 'ago', twitter_tweets );} ?></span>
219
  </div> <!-- Tweet box -->
220
+ <?php } ?>
221
  </div>
222
+ <?php }
223
+ }
224
+ ?>
225
  </div>
226
  </div>
227
  </div>
228
  <?php
229
  return ob_get_clean();
230
  }
231
+
232
  ?>