Weblizar Twitter Widget - Version 1.9.3

Version Description

[13-03-2020] * Minor bug fix. * layout fix.

Download this release

Release Info

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

Code changes from version 1.9.2 to 1.9.3

Files changed (4) hide show
  1. readme.txt +11 -7
  2. twiiter_help.php +71 -73
  3. twitter-tweets.php +6 -6
  4. twitter-tweets_shortcode.php +30 -30
readme.txt CHANGED
@@ -3,8 +3,8 @@ 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: 5.3
7
- Stable tag: 1.9.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -57,7 +57,7 @@ ifferent pages or posts without any limitations.
57
 
58
  * **Tweet Actions (reply, retweet, like)** - When showing twitter feeds, users can also reply, retweet or like a tweet.
59
 
60
- * **Share Tweets on Social Media** - Also, users can share tweets from your website to social media like Facebook, Google Plus etc.
61
 
62
  * **Update Twitter Status** - You can also directly post a tweet from your WordPress website to update your twitter status.
63
 
@@ -113,6 +113,10 @@ Please use WordPress support forum to ask any query regarding any issue.
113
 
114
  For more information, see Weblizar(https://weblizar.com/)
115
 
 
 
 
 
116
  = 1.9.2 =[28-01-2020]
117
  * Bootstrap library update.
118
  * Minor bug fixed and color picker added.
@@ -124,19 +128,19 @@ For more information, see Weblizar(https://weblizar.com/)
124
  * version update compatible with wordpress 5.2.4
125
  * updated: some minor issues fixed.
126
 
127
- = 1.8.9 =[29/08/2019]
128
  * Nonce and permission check.
129
  * readme file text update.
130
 
131
- = 1.8.8 =[28/08/2019]
132
  * Some security issue fixed
133
  * readme file text update.
134
 
135
- = 1.8.7 =[27/08/2019]
136
  * Plugin name change
137
  * Some file text update
138
 
139
- = 1.8.6 =[26/08/2019]
140
  * Plugin name change
141
  * Updated bootstrap library.
142
  * Updated font awesome library.
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.4
7
+ Stable tag: 1.9.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
57
 
58
  * **Tweet Actions (reply, retweet, like)** - When showing twitter feeds, users can also reply, retweet or like a tweet.
59
 
60
+ * **Share Tweets on Social Media** - Also, users can share tweets from your website to social media like Facebook, Google Plus etc.
61
 
62
  * **Update Twitter Status** - You can also directly post a tweet from your WordPress website to update your twitter status.
63
 
113
 
114
  For more information, see Weblizar(https://weblizar.com/)
115
 
116
+ = 1.9.3 =[13-03-2020]
117
+ * Minor bug fix.
118
+ * layout fix.
119
+
120
  = 1.9.2 =[28-01-2020]
121
  * Bootstrap library update.
122
  * Minor bug fixed and color picker added.
128
  * version update compatible with wordpress 5.2.4
129
  * updated: some minor issues fixed.
130
 
131
+ = 1.8.9 =[29/08/2019]
132
  * Nonce and permission check.
133
  * readme file text update.
134
 
135
+ = 1.8.8 =[28/08/2019]
136
  * Some security issue fixed
137
  * readme file text update.
138
 
139
+ = 1.8.7 =[27/08/2019]
140
  * Plugin name change
141
  * Some file text update
142
 
143
+ = 1.8.6 =[26/08/2019]
144
  * Plugin name change
145
  * Updated bootstrap library.
146
  * Updated font awesome library.
twiiter_help.php CHANGED
@@ -2,7 +2,7 @@
2
  <script type="text/javascript">
3
  function SaveSettings() {
4
  var FbAppId = jQuery("#twitter-page-id-fetch").val();
5
- var User_name_3 = jQuery("#twitter-page-user-name").val();
6
  var show_theme = jQuery("#show-theme-background").val();
7
  var Height = jQuery("#twitter-page-url-Height").val();
8
  var link_color = jQuery("#twitter-page-lnk-Color").val();
@@ -64,11 +64,11 @@ jQuery("#twitter-img").show();
64
  dataType: "html",
65
  //Do not cache the page
66
  cache: false,
67
- //success
68
  success: function (html) {
69
  jQuery("#twitter-img").hide();
70
  jQuery("#wl_twitter_preview").show();
71
- setTimeout(function() {location.reload(true);}, 2000);
72
  }
73
  });
74
  }
@@ -104,7 +104,7 @@ if(isset($_REQUEST['twitter-page-user_name'])) {
104
  'tw_language' => $tw_language,
105
  ));
106
  update_option("ali_twitter_shortcode", $TwitterSettingsArray);
107
- }
108
 
109
  /* Twitter api key save */
110
 
@@ -135,7 +135,7 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
135
  update_option( 'wl_twitter_api_settings', $twitter_api_settings );
136
  }
137
  ?>
138
- <div class="block ui-tabs-panel active" id="option-general">
139
  <div class="row">
140
  <div class="col-md-6">
141
  <h2 class="well"><?php esc_html_e( 'Customize feeds shortcode Settings', 'twitter-tweets'); ?></h2>
@@ -214,7 +214,7 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
214
  </div>
215
  </p>
216
  <br>
217
-
218
  <p><div class="container">
219
  <div class="row">
220
  <div class="col-sm">
@@ -227,11 +227,11 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
227
  </div>
228
  </div>
229
  </div>
230
-
231
 
232
  </p>
233
  <!-- <br> -->
234
-
235
  <p>
236
  <div class="container">
237
  <div class="row">
@@ -241,16 +241,14 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
241
  <div class="col-sm">
242
 
243
  <input class=" color-field" id="twitter-page-lnk-Color" name="twitter-page-lnk-Color" type="text" value="<?php echo esc_attr( $LinkColor ); ?>" data-default-color="#effeff" >
244
-
245
- <?php esc_html_e( 'Find More Color Codes', 'twitter-tweets' ); ?> <a href="http://html-color-codes.info/" target="_blank"><?php esc_html_e( 'HERE', 'twitter-tweets' ); ?></a>
246
  </div>
247
  </div>
248
  </div>
249
-
250
-
251
  </p>
252
  <br>
253
-
254
  <p><div class="container">
255
  <div class="row">
256
  <div class="col-sm">
@@ -264,8 +262,8 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
264
  </div>
265
  </div>
266
  </div>
267
-
268
-
269
  </p>
270
  <br>
271
  <p><div class="container">
@@ -281,10 +279,10 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
281
  </div>
282
  </div>
283
  </div>
284
-
285
-
286
  </p>
287
- <br>
288
  <p><div class="container">
289
  <div class="row">
290
  <div class="col-sm">
@@ -331,21 +329,21 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
331
  </div>
332
  </div>
333
  </div>
334
-
335
-
336
  </p>
337
  <br>
338
-
339
  <input onclick="return SaveSettings();" type="button" class="twt_save_btn" id="fb-save-settings" name="fb-save-settings" value="SAVE">
340
-
341
  <div id="fb-img" style="display: none;">
342
  <img src="<?php echo WEBLIZAR_TWITTER_PLUGIN_URL.'images/loading.gif'; ?>" />
343
  </div>
344
  <div id="fb-msg" style="display: none;" class="alert">
345
- <?php esc_html_e( 'Settings successfully saved. Reloading page for generating preview right side of setting.', 'twitter-tweets' ); ?>
346
- </div>
347
  </form>
348
-
349
  </div>
350
  <!-- Preview Part-->
351
  <div class="col-md-6">
@@ -353,10 +351,10 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
353
  <h2 class="well"><?php esc_html_e( 'Feeds Shortcode Preview', 'twitter-tweets'); ?></h2>
354
  <hr>
355
  <p>
356
- <a class="twitter-timeline" data-dnt="true" href="https://twitter.com/<?php echo esc_attr($TwitterUserName); ?>"
357
- min-width="<?php echo esc_attr($Width); ?>"
358
- height="<?php echo esc_attr($Height); ?>"
359
- data-theme="<?php echo esc_attr($Theme); ?>"
360
  data-lang="<?php echo esc_attr($tw_language); ?>"
361
  data-link-color="<?php echo esc_attr($LinkColor); ?>"></a>
362
  <div class="twt_help">
@@ -391,7 +389,7 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
391
  <p><div class="container">
392
  <div class="row">
393
  <div class="col-sm">
394
- <label><?php esc_html_e( 'Consumer Key', 'twitter-tweets' ); ?>&nbsp;*</label>
395
  </div>
396
  <div class="col-sm">
397
  <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 esc_attr_e( 'Enter Your Twitter Consumer Key', 'twitter-tweets' ); ?>">
@@ -400,24 +398,24 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
400
  </div>
401
  </div>
402
  </div>
403
-
404
-
405
  </p>
406
-
407
 
408
  <br>
409
  <p><div class="container">
410
  <div class="row">
411
  <div class="col-sm">
412
- <label><?php esc_html_e( 'Consumer Secret', 'twitter-tweets' ); ?>&nbsp;*</label>
413
  </div>
414
  <div class="col-sm">
415
  <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 esc_attr_e( 'Enter Your Twitter Consumer Secret', 'twitter-tweets' ); ?>">
416
  </div>
417
  </div>
418
  </div>
419
-
420
-
421
  </p>
422
  <br>
423
 
@@ -433,8 +431,8 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
433
  </div>
434
  </div>
435
  </div>
436
-
437
-
438
  </p>
439
  <br>
440
 
@@ -450,8 +448,8 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
450
  </div>
451
  </div>
452
  </div>
453
-
454
-
455
  </p>
456
 
457
  <br>
@@ -469,10 +467,10 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
469
  </div>
470
  </div>
471
  </div>
472
-
473
 
474
  </p>
475
-
476
  <br>
477
  <p>
478
  <div class="container">
@@ -491,28 +489,28 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
491
  </div>
492
  </div>
493
  </div>
494
-
495
-
496
  </p>
497
  <script type="text/javascript">
498
  var abc = '<?php echo esc_attr($wl_twitter_layout); ?>';
499
  jQuery('#wl_twitter_layout').find('option[value="' + abc + '"]').attr('selected', 'selected')
500
  </script>
501
  <br>
502
- <?php
503
  wp_nonce_field( 'twitter_api_nonce', 'twitter_api_nonce' );
504
  ?>
505
  <input onclick="return SaveApiSettings();" type="button" class="twt_save_btn" id="fb-api-save-settings" name="fb-api-save-settings" value="SAVE">
506
  <br><br><br>
507
  <div class="twt_help">
508
- <?php esc_html_e('Please copy the twitter shortcode', 'twitter-tweets' );?> <span style="color:#000;"> <b><?php esc_html_e('[WL_TWITTER]', 'twitter-tweets' );?></b> </span>
509
  <?php esc_html_e('and paste it to on the Page/Post', 'twitter-tweets' );?></span>
510
- </div>
511
  <div id="twitter-img" style="display: none;">
512
  <img src="<?php echo WEBLIZAR_TWITTER_PLUGIN_URL.'images/loading.gif'; ?>" />
513
  </div>
514
  <div id="wl_twitter_preview" style="display: none;" class="alert">
515
- <?php esc_html_e( 'Settings successfully saved. Reloading page for generating preview right side of setting.', 'twitter-tweets' ); ?>
516
  </div>
517
  </form>
518
  </div>
@@ -521,11 +519,11 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
521
  <div class="col-md-6">
522
  <div class="wl_twt_free">
523
  <div class="container-fluid">
524
- <div class="row">
525
  <div class="col-md-<?php if( isset( $wl_twitter_layout ) ){echo esc_attr($wl_twitter_layout);} ?>">
526
  <?php
527
  if ( isset( $statuses ) && is_array( $statuses ) ) {
528
- foreach ( $statuses as $status ) {
529
  /* user info */
530
  if( isset( $status->user ) ) {
531
  $user = $status->user;
@@ -543,22 +541,22 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
543
  $description = $user->description;
544
  }
545
  if( isset( $user->url ) ) {
546
- $url = $user->url;
547
  }
548
  if( isset( $status->id_str ) ) {
549
- $id_str = $status->id_str; /* use it to make link of post */
550
  }
551
  if( isset( $status->created_at ) ) {
552
- $created_at = $status->created_at; /* time when tweet was created */
553
  }
554
  /* profile_image_url */
555
  if( isset( $user->profile_image_url ) ) {
556
- $profile_image_url = $user->profile_image_url;
557
  }
558
  if( isset( $user->profile_image_url_https ) ) {
559
- $profile_image_url_https = $user->profile_image_url_https;
560
  }
561
- ?>
562
  <div class="wl_tweet_box">
563
  <p class="wl_tweet">
564
  <img class="align-self-start mr-3" src="<?php if( isset( $user->profile_image_url_https ) ){echo esc_url($profile_image_url_https);} ?>"
@@ -568,7 +566,7 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
568
  </a>
569
  </p>
570
  <?php
571
- // $entities = $status->entities;
572
  if ( isset( $status->extended_entities ) ) {
573
  $extended_entities_array = $status->extended_entities->media;
574
  $extended_entities = $extended_entities_array[0];
@@ -585,7 +583,7 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
585
  $content_type = $video_info->content_type;
586
  $url = $video_info->url;
587
  $new_url = str_replace( "?tag=8", "", $url );
588
-
589
  if ( isset( $enable_extended_entitie ) && $enable_extended_entitie == "enable" ) {
590
  ?>
591
  <a href="#" data-toggle="modal" data-target="#myModal">
@@ -617,11 +615,11 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
617
  </a>
618
  <?php
619
  }
620
- }
621
  ?>
622
  <p class="wl_tweet_desc">
623
  <?php
624
- if( isset( $status->text ) ) {
625
  echo makeLinks( $status->text );
626
  }
627
  ?>
@@ -653,18 +651,18 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
653
  <span class="wl-wtp-date-font-size"><?php if( isset( $status->created_at ) ) {echo tweet_time_calculate( $created_at );} ?>
654
  &nbsp;<?php if( isset( $status->created_at ) ) {esc_html_e( 'ago', 'twitter-tweets' );} ?></span>
655
  </div> <!-- Tweet box -->
656
- <?php }
657
  } ?>
658
  </div>
659
  </div>
660
  </div>
661
- </div>
662
  </div>
663
- </div>
664
  </div>
665
 
666
  <!---------------- need help tab------------------------>
667
- <div class="block ui-tabs-panel deactive" id="option-needhelp">
668
  <div class="row">
669
  <div class="col-md-10">
670
  <div id="heading">
@@ -678,8 +676,8 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
678
  </ol>
679
  <br>
680
  <p class="well"><strong><?php esc_html_e('Customize Feeds for Twitter Widget', 'twitter-tweets'); ?></strong></p>
681
-
682
- <ol>
683
  <li><?php esc_html_e('You can use the widget to display your Twitter Tweets in any theme Widget Sections.', 'twitter-tweets'); ?></li>
684
  <li><?php esc_html_e('Simple go to your', 'twitter-tweets' ); ?><a href="<?php echo get_site_url(); ?>/wp-admin/widgets.php"><strong><?php esc_html_e('Widgets', 'twitter-tweets'); ?></strong></a><?php esc_html_e(' section and activate available', 'twitter-tweets'); ?> <strong><?php esc_html_e('Twitter By Weblizar', 'twitter-tweets'); ?></strong> <?php esc_html_e('widget in any sidebar section, like in left sidebar, right sidebar or footer sidebar.', 'twitter-tweets'); ?></li>
685
  </ol>
@@ -699,20 +697,20 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
699
 
700
  <br>
701
  <p class="well"><strong><?php esc_html_e('How to generate Twitter API Key', 'twitter-tweets'); ?></strong></p>
702
- <p><?php esc_html_e('We have created a blog post on this topic. It is very easy to understand.', 'twitter-tweets'); ?> <span class="helptopic"><a href="https://weblizar.com/blog/generate-twitter-api-key/" target="_blank"><?php esc_html_e('Click here', 'twitter-tweets'); ?></a></span><?php esc_html_e(' to visit the blog.', 'twitter-tweets'); ?>
703
  </p>
704
 
705
  <br>
706
  <p class="well"><strong><?php esc_html_e('Q. What is Twitter Widget ID?', 'twitter-tweets'); ?></strong></p>
707
  <p><strong><?php esc_html_e('Ans. Twitter Widget ID', 'twitter-tweets'); ?></strong><?php esc_html_e( 'used to authenticate your TWITTER Page data & settings. To get your own TWITTER ID please read our very simple and easy', 'twitter-tweets'); ?> <a href="https://weblizar.com/get-twitter-widget-id/" target="_blank"><strong><?php esc_html_e('Tutorial', 'twitter-tweets'); ?></strong>.</a>
708
- </p>
709
  </div>
710
- </div>
711
  <div class="row">
712
  <div class="col-md-10">
713
  <div id="heading"><h2><?php esc_html_e('Rate Us', 'twitter-tweets' ); ?></h2></div>
714
  <p><?php esc_html_e('If you are enjoying using our', 'twitter-tweets' ); ?> <b><?php esc_html_e('Customize Feeds for Twitter Widget', 'twitter-tweets'); ?></b><?php esc_html_e( 'plugin and find it useful, then please consider writing a positive feedback. Your feedback will help us to encourage and support the plugin continued development and better user support.', 'twitter-tweets'); ?>
715
- </p>
716
  <div class="twt_star">
717
  <a class="acl-rate-us" style="text-align:center; text-decoration: none;font:normal 30px/l;" href="https://wordpress.org/plugins/twitter-tweets/#reviews" target="_blank" >
718
  <span class="dashicons dashicons-star-filled"></span>
@@ -726,6 +724,6 @@ if ( isset( $_REQUEST['wl_twitter_consumer_key'] ) && isset( $_REQUEST['twitter_
726
  </div>
727
  </div>
728
  <!---------------- our product tab------------------------>
729
- <div class="block ui-tabs-panel deactive" id="option-ourproduct">
730
- <?php require_once('our_product.php'); ?>
731
- </div>
2
  <script type="text/javascript">
3
  function SaveSettings() {
4
  var FbAppId = jQuery("#twitter-page-id-fetch").val();
5
+ var User_name_3 = jQuery("#twitter-page-user-name").val();
6
  var show_theme = jQuery("#show-theme-background").val();
7
  var Height = jQuery("#twitter-page-url-Height").val();
8
  var link_color = jQuery("#twitter-page-lnk-Color").val();
64
  dataType: "html",
65
  //Do not cache the page
66
  cache: false,
67
+ //success
68
  success: function (html) {
69
  jQuery("#twitter-img").hide();
70
  jQuery("#wl_twitter_preview").show();
71
+ setTimeout(function() {location.reload(true);}, 2000);
72
  }
73
  });
74
  }
104
  'tw_language' => $tw_language,
105
  ));
106
  update_option("ali_twitter_shortcode", $TwitterSettingsArray);
107
+ }
108
 
109
  /* Twitter api key save */
110
 
135
  update_option( 'wl_twitter_api_settings', $twitter_api_settings );
136
  }
137
  ?>
138
+ <div class="block ui-tabs-panel active" id="option-general">
139
  <div class="row">
140
  <div class="col-md-6">
141
  <h2 class="well"><?php esc_html_e( 'Customize feeds shortcode Settings', 'twitter-tweets'); ?></h2>
214
  </div>
215
  </p>
216
  <br>
217
+
218
  <p><div class="container">
219
  <div class="row">
220
  <div class="col-sm">
227
  </div>
228
  </div>
229
  </div>
230
+
231
 
232
  </p>
233
  <!-- <br> -->
234
+
235
  <p>
236
  <div class="container">
237
  <div class="row">
241
  <div class="col-sm">
242
 
243
  <input class=" color-field" id="twitter-page-lnk-Color" name="twitter-page-lnk-Color" type="text" value="<?php echo esc_attr( $LinkColor ); ?>" data-default-color="#effeff" >
 
 
244
  </div>
245
  </div>
246
  </div>
247
+
248
+
249
  </p>
250
  <br>
251
+
252
  <p><div class="container">
253
  <div class="row">
254
  <div class="col-sm">
262
  </div>
263
  </div>
264
  </div>
265
+
266
+
267
  </p>
268
  <br>
269
  <p><div class="container">
279
  </div>
280
  </div>
281
  </div>
282
+
283
+
284
  </p>
285
+ <br>
286
  <p><div class="container">
287
  <div class="row">
288
  <div class="col-sm">
329
  </div>
330
  </div>
331
  </div>
332
+
333
+
334
  </p>
335
  <br>
336
+
337
  <input onclick="return SaveSettings();" type="button" class="twt_save_btn" id="fb-save-settings" name="fb-save-settings" value="SAVE">
338
+
339
  <div id="fb-img" style="display: none;">
340
  <img src="<?php echo WEBLIZAR_TWITTER_PLUGIN_URL.'images/loading.gif'; ?>" />
341
  </div>
342
  <div id="fb-msg" style="display: none;" class="alert">
343
+ <?php esc_html_e( 'Settings successfully saved. Reloading page for generating preview right side of setting.', 'twitter-tweets' ); ?>
344
+ </div>
345
  </form>
346
+
347
  </div>
348
  <!-- Preview Part-->
349
  <div class="col-md-6">
351
  <h2 class="well"><?php esc_html_e( 'Feeds Shortcode Preview', 'twitter-tweets'); ?></h2>
352
  <hr>
353
  <p>
354
+ <a class="twitter-timeline" data-dnt="true" href="https://twitter.com/<?php echo esc_attr($TwitterUserName); ?>"
355
+ min-width="<?php echo esc_attr($Width); ?>"
356
+ height="<?php echo esc_attr($Height); ?>"
357
+ data-theme="<?php echo esc_attr($Theme); ?>"
358
  data-lang="<?php echo esc_attr($tw_language); ?>"
359
  data-link-color="<?php echo esc_attr($LinkColor); ?>"></a>
360
  <div class="twt_help">
389
  <p><div class="container">
390
  <div class="row">
391
  <div class="col-sm">
392
+ <label><?php esc_html_e( 'Consumer Key', 'twitter-tweets' ); ?>&nbsp;*</label>
393
  </div>
394
  <div class="col-sm">
395
  <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 esc_attr_e( 'Enter Your Twitter Consumer Key', 'twitter-tweets' ); ?>">
398
  </div>
399
  </div>
400
  </div>
401
+
402
+
403
  </p>
404
+
405
 
406
  <br>
407
  <p><div class="container">
408
  <div class="row">
409
  <div class="col-sm">
410
+ <label><?php esc_html_e( 'Consumer Secret', 'twitter-tweets' ); ?>&nbsp;*</label>
411
  </div>
412
  <div class="col-sm">
413
  <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 esc_attr_e( 'Enter Your Twitter Consumer Secret', 'twitter-tweets' ); ?>">
414
  </div>
415
  </div>
416
  </div>
417
+
418
+
419
  </p>
420
  <br>
421
 
431
  </div>
432
  </div>
433
  </div>
434
+
435
+
436
  </p>
437
  <br>
438
 
448
  </div>
449
  </div>
450
  </div>
451
+
452
+
453
  </p>
454
 
455
  <br>
467
  </div>
468
  </div>
469
  </div>
470
+
471
 
472
  </p>
473
+
474
  <br>
475
  <p>
476
  <div class="container">
489
  </div>
490
  </div>
491
  </div>
492
+
493
+
494
  </p>
495
  <script type="text/javascript">
496
  var abc = '<?php echo esc_attr($wl_twitter_layout); ?>';
497
  jQuery('#wl_twitter_layout').find('option[value="' + abc + '"]').attr('selected', 'selected')
498
  </script>
499
  <br>
500
+ <?php
501
  wp_nonce_field( 'twitter_api_nonce', 'twitter_api_nonce' );
502
  ?>
503
  <input onclick="return SaveApiSettings();" type="button" class="twt_save_btn" id="fb-api-save-settings" name="fb-api-save-settings" value="SAVE">
504
  <br><br><br>
505
  <div class="twt_help">
506
+ <?php esc_html_e('Please copy the twitter shortcode', 'twitter-tweets' );?> <span style="color:#000;"> <b><?php esc_html_e('[WL_TWITTER]', 'twitter-tweets' );?></b> </span>
507
  <?php esc_html_e('and paste it to on the Page/Post', 'twitter-tweets' );?></span>
508
+ </div>
509
  <div id="twitter-img" style="display: none;">
510
  <img src="<?php echo WEBLIZAR_TWITTER_PLUGIN_URL.'images/loading.gif'; ?>" />
511
  </div>
512
  <div id="wl_twitter_preview" style="display: none;" class="alert">
513
+ <?php esc_html_e( 'Settings successfully saved. Reloading page for generating preview right side of setting.', 'twitter-tweets' ); ?>
514
  </div>
515
  </form>
516
  </div>
519
  <div class="col-md-6">
520
  <div class="wl_twt_free">
521
  <div class="container-fluid">
522
+ <div class="row">
523
  <div class="col-md-<?php if( isset( $wl_twitter_layout ) ){echo esc_attr($wl_twitter_layout);} ?>">
524
  <?php
525
  if ( isset( $statuses ) && is_array( $statuses ) ) {
526
+ foreach ( $statuses as $status ) {
527
  /* user info */
528
  if( isset( $status->user ) ) {
529
  $user = $status->user;
541
  $description = $user->description;
542
  }
543
  if( isset( $user->url ) ) {
544
+ $url = $user->url;
545
  }
546
  if( isset( $status->id_str ) ) {
547
+ $id_str = $status->id_str; /* use it to make link of post */
548
  }
549
  if( isset( $status->created_at ) ) {
550
+ $created_at = $status->created_at; /* time when tweet was created */
551
  }
552
  /* profile_image_url */
553
  if( isset( $user->profile_image_url ) ) {
554
+ $profile_image_url = $user->profile_image_url;
555
  }
556
  if( isset( $user->profile_image_url_https ) ) {
557
+ $profile_image_url_https = $user->profile_image_url_https;
558
  }
559
+ ?>
560
  <div class="wl_tweet_box">
561
  <p class="wl_tweet">
562
  <img class="align-self-start mr-3" src="<?php if( isset( $user->profile_image_url_https ) ){echo esc_url($profile_image_url_https);} ?>"
566
  </a>
567
  </p>
568
  <?php
569
+ // $entities = $status->entities;
570
  if ( isset( $status->extended_entities ) ) {
571
  $extended_entities_array = $status->extended_entities->media;
572
  $extended_entities = $extended_entities_array[0];
583
  $content_type = $video_info->content_type;
584
  $url = $video_info->url;
585
  $new_url = str_replace( "?tag=8", "", $url );
586
+
587
  if ( isset( $enable_extended_entitie ) && $enable_extended_entitie == "enable" ) {
588
  ?>
589
  <a href="#" data-toggle="modal" data-target="#myModal">
615
  </a>
616
  <?php
617
  }
618
+ }
619
  ?>
620
  <p class="wl_tweet_desc">
621
  <?php
622
+ if( isset( $status->text ) ) {
623
  echo makeLinks( $status->text );
624
  }
625
  ?>
651
  <span class="wl-wtp-date-font-size"><?php if( isset( $status->created_at ) ) {echo tweet_time_calculate( $created_at );} ?>
652
  &nbsp;<?php if( isset( $status->created_at ) ) {esc_html_e( 'ago', 'twitter-tweets' );} ?></span>
653
  </div> <!-- Tweet box -->
654
+ <?php }
655
  } ?>
656
  </div>
657
  </div>
658
  </div>
659
+ </div>
660
  </div>
661
+ </div>
662
  </div>
663
 
664
  <!---------------- need help tab------------------------>
665
+ <div class="block ui-tabs-panel deactive" id="option-needhelp">
666
  <div class="row">
667
  <div class="col-md-10">
668
  <div id="heading">
676
  </ol>
677
  <br>
678
  <p class="well"><strong><?php esc_html_e('Customize Feeds for Twitter Widget', 'twitter-tweets'); ?></strong></p>
679
+
680
+ <ol>
681
  <li><?php esc_html_e('You can use the widget to display your Twitter Tweets in any theme Widget Sections.', 'twitter-tweets'); ?></li>
682
  <li><?php esc_html_e('Simple go to your', 'twitter-tweets' ); ?><a href="<?php echo get_site_url(); ?>/wp-admin/widgets.php"><strong><?php esc_html_e('Widgets', 'twitter-tweets'); ?></strong></a><?php esc_html_e(' section and activate available', 'twitter-tweets'); ?> <strong><?php esc_html_e('Twitter By Weblizar', 'twitter-tweets'); ?></strong> <?php esc_html_e('widget in any sidebar section, like in left sidebar, right sidebar or footer sidebar.', 'twitter-tweets'); ?></li>
683
  </ol>
697
 
698
  <br>
699
  <p class="well"><strong><?php esc_html_e('How to generate Twitter API Key', 'twitter-tweets'); ?></strong></p>
700
+ <p><?php esc_html_e('We have created a blog post on this topic. It is very easy to understand.', 'twitter-tweets'); ?> <span class="helptopic"><a href="https://weblizar.com/blog/generate-twitter-api-key/" target="_blank"><?php esc_html_e('Click here', 'twitter-tweets'); ?></a></span><?php esc_html_e(' to visit the blog.', 'twitter-tweets'); ?>
701
  </p>
702
 
703
  <br>
704
  <p class="well"><strong><?php esc_html_e('Q. What is Twitter Widget ID?', 'twitter-tweets'); ?></strong></p>
705
  <p><strong><?php esc_html_e('Ans. Twitter Widget ID', 'twitter-tweets'); ?></strong><?php esc_html_e( 'used to authenticate your TWITTER Page data & settings. To get your own TWITTER ID please read our very simple and easy', 'twitter-tweets'); ?> <a href="https://weblizar.com/get-twitter-widget-id/" target="_blank"><strong><?php esc_html_e('Tutorial', 'twitter-tweets'); ?></strong>.</a>
706
+ </p>
707
  </div>
708
+ </div>
709
  <div class="row">
710
  <div class="col-md-10">
711
  <div id="heading"><h2><?php esc_html_e('Rate Us', 'twitter-tweets' ); ?></h2></div>
712
  <p><?php esc_html_e('If you are enjoying using our', 'twitter-tweets' ); ?> <b><?php esc_html_e('Customize Feeds for Twitter Widget', 'twitter-tweets'); ?></b><?php esc_html_e( 'plugin and find it useful, then please consider writing a positive feedback. Your feedback will help us to encourage and support the plugin continued development and better user support.', 'twitter-tweets'); ?>
713
+ </p>
714
  <div class="twt_star">
715
  <a class="acl-rate-us" style="text-align:center; text-decoration: none;font:normal 30px/l;" href="https://wordpress.org/plugins/twitter-tweets/#reviews" target="_blank" >
716
  <span class="dashicons dashicons-star-filled"></span>
724
  </div>
725
  </div>
726
  <!---------------- our product tab------------------------>
727
+ <div class="block ui-tabs-panel deactive" id="option-ourproduct">
728
+ <?php require_once('our_product.php'); ?>
729
+ </div>
twitter-tweets.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  * Plugin Name: Customize Feeds for Twitter
4
- * Version: 1.9.2
5
  * Description: Customize Feeds for Twitter 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/
@@ -36,17 +36,17 @@ function Weblizar_Twitter_Menu() {
36
  }
37
  add_action('admin_menu','Weblizar_Twitter_Menu');
38
  function Twitter_by_weblizar_page_function() {
39
-
40
  wp_enqueue_style( 'wp-color-picker');
41
  wp_enqueue_script( 'wp-color-picker');
42
  /**CSS**/
43
  wp_enqueue_style('weblizar-option-twiiter-style-css', WEBLIZAR_TWITTER_PLUGIN_URL .'css/weblizar-option-twiiter-style.css');
44
  wp_enqueue_style('heroic', WEBLIZAR_TWITTER_PLUGIN_URL .'css/heroic-features.css');
45
-
46
- /**JS**/
47
  wp_enqueue_script('jquery');
48
  wp_enqueue_script('popper', WEBLIZAR_TWITTER_PLUGIN_URL . 'js/popper.min.js', array( 'jquery' ), true, true );
49
- wp_enqueue_script('wl_bootstrap', WEBLIZAR_TWITTER_PLUGIN_URL . 'js/bootstrap.min.js', array( 'jquery' ), true, true );
50
  wp_enqueue_script('weblizar-tab-js',WEBLIZAR_TWITTER_PLUGIN_URL .'js/option-js.js',array('jquery', 'media-upload', 'jquery-ui-sortable'));
51
  require_once("twiiter_help_body.php");
52
  }
@@ -69,4 +69,4 @@ function wl_twitter_settinglinks( $links ) {
69
  }
70
  $plugin_wl_twitter = plugin_basename( __FILE__ );
71
  add_filter( "plugin_action_links_$plugin_wl_twitter", 'wl_twitter_settinglinks' );
72
- ?>
1
  <?php
2
  /*
3
  * Plugin Name: Customize Feeds for Twitter
4
+ * Version: 1.9.3
5
  * Description: Customize Feeds for Twitter 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/
36
  }
37
  add_action('admin_menu','Weblizar_Twitter_Menu');
38
  function Twitter_by_weblizar_page_function() {
39
+
40
  wp_enqueue_style( 'wp-color-picker');
41
  wp_enqueue_script( 'wp-color-picker');
42
  /**CSS**/
43
  wp_enqueue_style('weblizar-option-twiiter-style-css', WEBLIZAR_TWITTER_PLUGIN_URL .'css/weblizar-option-twiiter-style.css');
44
  wp_enqueue_style('heroic', WEBLIZAR_TWITTER_PLUGIN_URL .'css/heroic-features.css');
45
+
46
+ /**JS**/
47
  wp_enqueue_script('jquery');
48
  wp_enqueue_script('popper', WEBLIZAR_TWITTER_PLUGIN_URL . 'js/popper.min.js', array( 'jquery' ), true, true );
49
+ wp_enqueue_script('wl_bootstrap', WEBLIZAR_TWITTER_PLUGIN_URL . 'js/bootstrap.min.js', array( 'jquery' ), true, true );
50
  wp_enqueue_script('weblizar-tab-js',WEBLIZAR_TWITTER_PLUGIN_URL .'js/option-js.js',array('jquery', 'media-upload', 'jquery-ui-sortable'));
51
  require_once("twiiter_help_body.php");
52
  }
69
  }
70
  $plugin_wl_twitter = plugin_basename( __FILE__ );
71
  add_filter( "plugin_action_links_$plugin_wl_twitter", 'wl_twitter_settinglinks' );
72
+ ?>
twitter-tweets_shortcode.php CHANGED
@@ -5,36 +5,36 @@ add_shortcode("TWTR", "twitter_tweet_shortcode");
5
  function twitter_tweet_shortcode() {
6
  ob_start();
7
  $twitterSettings = unserialize(get_option("ali_twitter_shortcode"));
8
-
9
  if( isset($twitterSettings[ 'TwitterUserName' ] ) ) {
10
  $TwitterUserName = $twitterSettings[ 'TwitterUserName' ];
11
  } else $TwitterUserName = "weblizar";
12
-
13
  $Theme = "light";
14
  if (isset($twitterSettings[ 'Theme' ] ) ) {
15
  $Theme = $twitterSettings[ 'Theme' ];
16
  }
17
-
18
  $Height = "450";
19
  if ( isset($twitterSettings[ 'Height' ] ) ) {
20
  $Height = $twitterSettings[ 'Height' ];
21
  }
22
-
23
  $Width = "";
24
  if (isset($twitterSettings[ 'Width' ] ) ) {
25
  $Width = $twitterSettings[ 'Width' ];
26
  }
27
-
28
  $LinkColor = "#CC0000";
29
  if (isset( $twitterSettings[ 'LinkColor' ] ) ) {
30
  $LinkColor = $twitterSettings[ 'LinkColor' ];
31
  }
32
-
33
  $ExcludeReplies = "yes";
34
  if (isset( $twitterSettings[ 'ExcludeReplies' ] ) ) {
35
  $ExcludeReplies = $twitterSettings['ExcludeReplies' ];
36
  }
37
-
38
  $AutoExpandPhotos = "yes";
39
  if (isset( $twitterSettings[ 'AutoExpandPhotos' ] ) ) {
40
  $AutoExpandPhotos = $twitterSettings[ 'AutoExpandPhotos' ];
@@ -43,24 +43,24 @@ function twitter_tweet_shortcode() {
43
  if (isset( $twitterSettings[ 'tw_language' ] ) ) {
44
  $tw_language = $twitterSettings[ 'tw_language' ];
45
  }
46
-
47
  if (isset($twitterSettings[ 'TwitterWidgetId' ] ) ) {
48
  $TwitterWidgetId = $twitterSettings[ 'TwitterWidgetId' ];
49
  } else {
50
  $TwitterWidgetId = "";
51
  }
52
-
53
  $title = esc_html__( 'Widget Title Here', 'twitter-tweets' );
54
  if(isset($twitterSettings[ 'title' ] ) ) {
55
  $title = $twitterSettings[ 'title' ];
56
  }
57
-
58
  ?>
59
  <div style="display:block;width:100%;float:left;overflow:hidden">
60
- <a class="twitter-timeline" data-dnt="true" href="https://twitter.com/<?php echo esc_attr($TwitterUserName); ?>"
61
- min-width="<?php echo esc_attr($Width); ?>"
62
- height="<?php echo esc_attr($Height); ?>"
63
- data-theme="<?php echo esc_attr($Theme); ?>"
64
  data-lang="<?php echo esc_attr($tw_language); ?>"
65
  data-link-color="<?php echo esc_attr($LinkColor); ?>"
66
  data-cards="hidden"></a>
@@ -80,9 +80,9 @@ function wl_twitter_tweets_api() {
80
  ?>
81
  <div class="wl_twt_free">
82
  <div class="container-fluid">
83
- <div class="row">
84
- <div class="col-md-<?php if( isset( $wl_twitter_layout ) ) {echo esc_attr($wl_twitter_layout);} ?>">
85
- <?php if ( isset( $statuses ) && is_array( $statuses ) ) {
86
  foreach ( $statuses as $status ) {
87
  // var_dump($status);
88
  /* user info */
@@ -102,30 +102,30 @@ function wl_twitter_tweets_api() {
102
  $description = $user->description;
103
  }
104
  if( isset( $user->url ) ) {
105
- $url = $user->url;
106
  }
107
  if( isset( $status->id_str ) ) {
108
- $id_str = $status->id_str; /* use it to make link of post */
109
  }
110
  if( isset( $status->created_at ) ) {
111
- $created_at = $status->created_at; /* time when tweet was created */
112
  }
113
  /* profile_image_url */
114
  if( isset( $user->profile_image_url ) ) {
115
- $profile_image_url = $user->profile_image_url;
116
  }
117
  if( isset( $user->profile_image_url_https ) ) {
118
- $profile_image_url_https = $user->profile_image_url_https;
119
  }
120
  ?>
121
- <div class="wl_tweet_box">
122
- <p class="wl_tweet">
123
  <img class="align-self-start mr-3" src="<?php if( isset( $user->profile_image_url_https ) ) { echo esc_url($profile_image_url_https); } ?>" alt="">
124
  <a href="https://twitter.com/<?php if( isset( $user->screen_name ) ) {echo esc_attr($screen_name);} ?>">
125
  <?php if( isset( $user->screen_name ) ) {echo "@" . $screen_name;} ?>
126
  </a>
127
  </p>
128
- <?php
129
  if ( isset( $status->extended_entities ) ) {
130
  $extended_entities_array = $status->extended_entities->media;
131
  $extended_entities = $extended_entities_array[0];
@@ -142,7 +142,7 @@ function wl_twitter_tweets_api() {
142
  $content_type = $video_info->content_type;
143
  $url = $video_info->url;
144
  $new_url = str_replace( "?tag=8", "", $url );
145
-
146
  if ( isset( $enable_extended_entitie ) && $enable_extended_entitie == "enable" ) {
147
  ?>
148
  <a href="#" data-toggle="modal" data-target="#myModal">
@@ -173,7 +173,7 @@ function wl_twitter_tweets_api() {
173
  } ?>
174
  <p class="wl_tweet_desc">
175
  <?php
176
- if( isset( $status->text ) ) {
177
  echo makeLinks( $status->text );
178
  }
179
  ?>
@@ -200,7 +200,7 @@ function wl_twitter_tweets_api() {
200
  </a>
201
  <a href="https://twitter.com/intent/tweet?in_reply_to=<?php echo esc_attr($id_str); ?>&related=<?php echo esc_attr($screen_name); ?>" target="_blank" onclick="window.open('https://twitter.com/intent/tweet?in_reply_to=<?php echo esc_attr($id_str); ?>&related=<?php echo esc_attr($screen_name); ?> retweet', 'newwindow', 'width=600,height=450'); return false;"><?php esc_html_e( 'Reply', 'twitter-tweets' ); ?>
202
  </a>
203
- </p>
204
  <span class="wl-wtp-date-font-size">
205
  <?php if( isset( $status->created_at ) ) {echo tweet_time_calculate( $created_at );} ?>&nbsp;
206
  <?php if( isset( $status->created_at ) ) { esc_html_e( 'ago', 'twitter-tweets' );} ?>
@@ -208,8 +208,8 @@ function wl_twitter_tweets_api() {
208
  </div> <!-- Tweet box -->
209
  <?php }
210
  } ?>
211
- </div>
212
  </div>
213
  </div>
214
  </div>
215
- <?php return ob_get_clean(); } ?>
5
  function twitter_tweet_shortcode() {
6
  ob_start();
7
  $twitterSettings = unserialize(get_option("ali_twitter_shortcode"));
8
+
9
  if( isset($twitterSettings[ 'TwitterUserName' ] ) ) {
10
  $TwitterUserName = $twitterSettings[ 'TwitterUserName' ];
11
  } else $TwitterUserName = "weblizar";
12
+
13
  $Theme = "light";
14
  if (isset($twitterSettings[ 'Theme' ] ) ) {
15
  $Theme = $twitterSettings[ 'Theme' ];
16
  }
17
+
18
  $Height = "450";
19
  if ( isset($twitterSettings[ 'Height' ] ) ) {
20
  $Height = $twitterSettings[ 'Height' ];
21
  }
22
+
23
  $Width = "";
24
  if (isset($twitterSettings[ 'Width' ] ) ) {
25
  $Width = $twitterSettings[ 'Width' ];
26
  }
27
+
28
  $LinkColor = "#CC0000";
29
  if (isset( $twitterSettings[ 'LinkColor' ] ) ) {
30
  $LinkColor = $twitterSettings[ 'LinkColor' ];
31
  }
32
+
33
  $ExcludeReplies = "yes";
34
  if (isset( $twitterSettings[ 'ExcludeReplies' ] ) ) {
35
  $ExcludeReplies = $twitterSettings['ExcludeReplies' ];
36
  }
37
+
38
  $AutoExpandPhotos = "yes";
39
  if (isset( $twitterSettings[ 'AutoExpandPhotos' ] ) ) {
40
  $AutoExpandPhotos = $twitterSettings[ 'AutoExpandPhotos' ];
43
  if (isset( $twitterSettings[ 'tw_language' ] ) ) {
44
  $tw_language = $twitterSettings[ 'tw_language' ];
45
  }
46
+
47
  if (isset($twitterSettings[ 'TwitterWidgetId' ] ) ) {
48
  $TwitterWidgetId = $twitterSettings[ 'TwitterWidgetId' ];
49
  } else {
50
  $TwitterWidgetId = "";
51
  }
52
+
53
  $title = esc_html__( 'Widget Title Here', 'twitter-tweets' );
54
  if(isset($twitterSettings[ 'title' ] ) ) {
55
  $title = $twitterSettings[ 'title' ];
56
  }
57
+
58
  ?>
59
  <div style="display:block;width:100%;float:left;overflow:hidden">
60
+ <a class="twitter-timeline" data-dnt="true" href="https://twitter.com/<?php echo esc_attr($TwitterUserName); ?>"
61
+ min-width="<?php echo esc_attr($Width); ?>"
62
+ height="<?php echo esc_attr($Height); ?>"
63
+ data-theme="<?php echo esc_attr($Theme); ?>"
64
  data-lang="<?php echo esc_attr($tw_language); ?>"
65
  data-link-color="<?php echo esc_attr($LinkColor); ?>"
66
  data-cards="hidden"></a>
80
  ?>
81
  <div class="wl_twt_free">
82
  <div class="container-fluid">
83
+ <div class="row">
84
+ <!-- <div > -->
85
+ <?php if ( isset( $statuses ) && is_array( $statuses ) ) {
86
  foreach ( $statuses as $status ) {
87
  // var_dump($status);
88
  /* user info */
102
  $description = $user->description;
103
  }
104
  if( isset( $user->url ) ) {
105
+ $url = $user->url;
106
  }
107
  if( isset( $status->id_str ) ) {
108
+ $id_str = $status->id_str; /* use it to make link of post */
109
  }
110
  if( isset( $status->created_at ) ) {
111
+ $created_at = $status->created_at; /* time when tweet was created */
112
  }
113
  /* profile_image_url */
114
  if( isset( $user->profile_image_url ) ) {
115
+ $profile_image_url = $user->profile_image_url;
116
  }
117
  if( isset( $user->profile_image_url_https ) ) {
118
+ $profile_image_url_https = $user->profile_image_url_https;
119
  }
120
  ?>
121
+ <div class="wl_tweet_box col-md-<?php if( isset( $wl_twitter_layout ) ) {echo esc_attr($wl_twitter_layout);} ?>">
122
+ <p class="wl_tweet">
123
  <img class="align-self-start mr-3" src="<?php if( isset( $user->profile_image_url_https ) ) { echo esc_url($profile_image_url_https); } ?>" alt="">
124
  <a href="https://twitter.com/<?php if( isset( $user->screen_name ) ) {echo esc_attr($screen_name);} ?>">
125
  <?php if( isset( $user->screen_name ) ) {echo "@" . $screen_name;} ?>
126
  </a>
127
  </p>
128
+ <?php
129
  if ( isset( $status->extended_entities ) ) {
130
  $extended_entities_array = $status->extended_entities->media;
131
  $extended_entities = $extended_entities_array[0];
142
  $content_type = $video_info->content_type;
143
  $url = $video_info->url;
144
  $new_url = str_replace( "?tag=8", "", $url );
145
+
146
  if ( isset( $enable_extended_entitie ) && $enable_extended_entitie == "enable" ) {
147
  ?>
148
  <a href="#" data-toggle="modal" data-target="#myModal">
173
  } ?>
174
  <p class="wl_tweet_desc">
175
  <?php
176
+ if( isset( $status->text ) ) {
177
  echo makeLinks( $status->text );
178
  }
179
  ?>
200
  </a>
201
  <a href="https://twitter.com/intent/tweet?in_reply_to=<?php echo esc_attr($id_str); ?>&related=<?php echo esc_attr($screen_name); ?>" target="_blank" onclick="window.open('https://twitter.com/intent/tweet?in_reply_to=<?php echo esc_attr($id_str); ?>&related=<?php echo esc_attr($screen_name); ?> retweet', 'newwindow', 'width=600,height=450'); return false;"><?php esc_html_e( 'Reply', 'twitter-tweets' ); ?>
202
  </a>
203
+ </p>
204
  <span class="wl-wtp-date-font-size">
205
  <?php if( isset( $status->created_at ) ) {echo tweet_time_calculate( $created_at );} ?>&nbsp;
206
  <?php if( isset( $status->created_at ) ) { esc_html_e( 'ago', 'twitter-tweets' );} ?>
208
  </div> <!-- Tweet box -->
209
  <?php }
210
  } ?>
211
+ <!-- </div> -->
212
  </div>
213
  </div>
214
  </div>
215
+ <?php return ob_get_clean(); } ?>