Revive Old Posts – Auto Post to Social Media - Version 7.4.7

Version Description

Download this release

Release Info

Developer codeinwp
Plugin Icon 128x128 Revive Old Posts – Auto Post to Social Media
Version 7.4.7
Comparing to
See all releases

Code changes from version 7.4.6 to 7.4.7

CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
 
 
 
 
2
- Fixed remote check for pro version.
3
- Added rviv.ly.
4
- Fixed clear setting on uninstall.
5
 
6
 
7
 
8
- Fixed deactivation error
1
 
2
+
3
+
4
+
5
+
6
+
7
+
8
 
9
 
10
 
 
css/style.css CHANGED
@@ -1,5 +1,5 @@
1
  /*
2
- # Version: 7.4.6
3
  */
4
 
5
  /* Clearfix */
1
  /*
2
+ # Version: 7.4.7
3
  */
4
 
5
  /* Clearfix */
inc/config.php CHANGED
@@ -2,6 +2,8 @@
2
  define("CURRENTURL", top_current_page());
3
  define("ROP_ENDPOINT_SLUG__", "rop");
4
  define("ROP_REST_VERSION", "1");
 
 
5
  define("ROP_REMOTE_CHECK_URL", 'http://mirror.themeisle.com');
6
 
7
  if(class_exists("CWP_TOP_Core_PRO")){
@@ -164,6 +166,7 @@ $cwp_format_fields = array(
164
  'option' => 'top_opt_url_shortner',
165
  'description' => __('Shorten the link to your post.', 'tweet-old-post'),
166
  'options' => array(
 
167
  'wp_short_url' => __('wp short url', 'tweet-old-post'),
168
  'is.gd' => __('is.gd', 'tweet-old-post'),
169
  'bit.ly' => __('bit.ly', 'tweet-old-post'),
2
  define("CURRENTURL", top_current_page());
3
  define("ROP_ENDPOINT_SLUG__", "rop");
4
  define("ROP_REST_VERSION", "1");
5
+ define("ROP_YOURLS_SITE", "http://rviv.ly/yourls-api.php");
6
+ define("ROP_YOURLS_SALT", "themeisle");
7
  define("ROP_REMOTE_CHECK_URL", 'http://mirror.themeisle.com');
8
 
9
  if(class_exists("CWP_TOP_Core_PRO")){
166
  'option' => 'top_opt_url_shortner',
167
  'description' => __('Shorten the link to your post.', 'tweet-old-post'),
168
  'options' => array(
169
+ 'rviv.ly' => __('rviv.ly', 'tweet-old-post'),
170
  'wp_short_url' => __('wp short url', 'tweet-old-post'),
171
  'is.gd' => __('is.gd', 'tweet-old-post'),
172
  'bit.ly' => __('bit.ly', 'tweet-old-post'),
inc/core.php CHANGED
@@ -42,6 +42,7 @@ if (!class_exists('CWP_TOP_Core')) {
42
  public static $date_format;
43
  public function __construct() {
44
  if (ROP_IS_DEBUG) @mkdir(ROPPLUGINPATH . "/tmp");
 
45
 
46
  // Get all fields
47
  global $cwp_top_fields;
@@ -1630,7 +1631,7 @@ endif;
1630
  $access_token = $twitter->getAccessToken($_REQUEST['oauth_verifier']);
1631
  $user_details = $twitter->get('account/verify_credentials');
1632
  $user_details->status = array();
1633
-
1634
  $newUser = array(
1635
  'user_id' => $user_details->id,
1636
  'oauth_token' => $access_token['oauth_token'],
@@ -2237,7 +2238,6 @@ endif;
2237
  private function updateAllPostFormat($options)
2238
  {
2239
  $all = $this->getAllNetworks();
2240
-
2241
  foreach($all as $n){
2242
 
2243
  if(!array_key_exists($n.'_top_opt_custom_url_option', $options)) {
@@ -2313,9 +2313,9 @@ endif;
2313
  'top_opt_add_text_at' => 'beginning',
2314
  'top_opt_include_link' => 'true',
2315
  'top_opt_custom_url_option' => 'off',
2316
- 'top_opt_use_url_shortner' => 'off',
2317
  'top_opt_ga_tracking' => 'on',
2318
- 'top_opt_url_shortner' => 'is.gd',
2319
  'top_opt_custom_hashtag_option' => 'nohashtag',
2320
  'top_opt_hashtags' => '',
2321
  'top_opt_hashtag_length' => '0',
@@ -2823,6 +2823,9 @@ endif;
2823
  // Log Out Twitter user ajax action
2824
  add_action('wp_ajax_log_out_user', array($this, 'ajax'));
2825
 
 
 
 
2826
  //
2827
  add_action("rop_stop_posting", array($this,"clear_delete_type"));
2828
 
@@ -2990,11 +2993,25 @@ endif;
2990
  case 'stop_tweet_old_post':
2991
  $this->stopTweetOldPost();
2992
  break;
 
 
 
 
2993
  }
2994
  wp_die();
2995
  }
2996
 
2997
  // Added by Ash/Upwork
 
 
 
 
 
 
 
 
 
 
2998
  private function processServerRequest(){
2999
  if(
3000
  !get_option("cwp_rop_remote_trigger", false)
@@ -3047,13 +3064,12 @@ endif;
3047
 
3048
  // status will be on/off when its being toggled and null when the scheduled JS is calling
3049
  public function remoteTrigger( $status = null ) {
3050
- if ( is_null( $status ) && ! defined( 'ROP_PRO_VERSION' ) && get_option( "cwp_rop_remote_trigger", 'off' ) == "off" ) {
3051
  return;
3052
  }
3053
  if ( ! is_null( $status ) ) {
3054
  update_option( "cwp_rop_remote_trigger", $status );
3055
  wp_send_json_success( array() );
3056
-
3057
  return;
3058
  }
3059
  // when status is "on" we will call the api no matter the time
@@ -3270,6 +3286,19 @@ endif;
3270
  $shortURL = trim($url);
3271
  $url = urlencode($shortURL);
3272
  switch ($service) {
 
 
 
 
 
 
 
 
 
 
 
 
 
3273
  case "bit.ly":
3274
  $key = trim(isset($formats[$network."_"."top_opt_bitly_key"]) ? $formats[$network."_"."top_opt_bitly_key"] : get_option( 'top_opt_bitly_key' ));
3275
  $user = trim(isset($formats[$network."_"."top_opt_bitly_user"]) ? $formats[$network."_"."top_opt_bitly_user"] : get_option( 'top_opt_bitly_user' ));
@@ -3372,8 +3401,8 @@ endif;
3372
  curl_setopt($conn, CURLOPT_HEADER, 0);
3373
  curl_setopt($conn, CURLOPT_NOSIGNAL, 1);
3374
 
 
3375
  if ($headers) {
3376
- $header = array();
3377
  foreach ($headers as $key=>$val) {
3378
  $header[] = "$key: $val";
3379
  }
42
  public static $date_format;
43
  public function __construct() {
44
  if (ROP_IS_DEBUG) @mkdir(ROPPLUGINPATH . "/tmp");
45
+ if (ROP_IS_TEST) add_filter("rop_is_business_user", create_function('', 'return true;'));
46
 
47
  // Get all fields
48
  global $cwp_top_fields;
1631
  $access_token = $twitter->getAccessToken($_REQUEST['oauth_verifier']);
1632
  $user_details = $twitter->get('account/verify_credentials');
1633
  $user_details->status = array();
1634
+ $user_details->description = '';
1635
  $newUser = array(
1636
  'user_id' => $user_details->id,
1637
  'oauth_token' => $access_token['oauth_token'],
2238
  private function updateAllPostFormat($options)
2239
  {
2240
  $all = $this->getAllNetworks();
 
2241
  foreach($all as $n){
2242
 
2243
  if(!array_key_exists($n.'_top_opt_custom_url_option', $options)) {
2313
  'top_opt_add_text_at' => 'beginning',
2314
  'top_opt_include_link' => 'true',
2315
  'top_opt_custom_url_option' => 'off',
2316
+ 'top_opt_use_url_shortner' => 'on',
2317
  'top_opt_ga_tracking' => 'on',
2318
+ 'top_opt_url_shortner' => 'rviv.ly',
2319
  'top_opt_custom_hashtag_option' => 'nohashtag',
2320
  'top_opt_hashtags' => '',
2321
  'top_opt_hashtag_length' => '0',
2823
  // Log Out Twitter user ajax action
2824
  add_action('wp_ajax_log_out_user', array($this, 'ajax'));
2825
 
2826
+ // get message queue
2827
+ add_action('wp_ajax_get_queue', array($this, 'ajax'));
2828
+
2829
  //
2830
  add_action("rop_stop_posting", array($this,"clear_delete_type"));
2831
 
2993
  case 'stop_tweet_old_post':
2994
  $this->stopTweetOldPost();
2995
  break;
2996
+ case 'get_queue':
2997
+ $this->getQueue();
2998
+ break;
2999
+
3000
  }
3001
  wp_die();
3002
  }
3003
 
3004
  // Added by Ash/Upwork
3005
+ private function getQueue() {
3006
+ $available = $this->getAvailableNetworks();
3007
+ if(empty($available)) $available[] = "twitter";
3008
+
3009
+ ob_start();
3010
+ include_once ROPPLUGINPATH . "/inc/scrap-advancedscheduling.php";
3011
+ $html = ob_get_clean();
3012
+ wp_send_json_success( array("html" => $html) );
3013
+ }
3014
+
3015
  private function processServerRequest(){
3016
  if(
3017
  !get_option("cwp_rop_remote_trigger", false)
3064
 
3065
  // status will be on/off when its being toggled and null when the scheduled JS is calling
3066
  public function remoteTrigger( $status = null ) {
3067
+ if ( is_null( $status ) && get_option( "cwp_rop_remote_trigger", 'off' ) == "off" ) {
3068
  return;
3069
  }
3070
  if ( ! is_null( $status ) ) {
3071
  update_option( "cwp_rop_remote_trigger", $status );
3072
  wp_send_json_success( array() );
 
3073
  return;
3074
  }
3075
  // when status is "on" we will call the api no matter the time
3286
  $shortURL = trim($url);
3287
  $url = urlencode($shortURL);
3288
  switch ($service) {
3289
+ case "rviv.ly":
3290
+ $website = get_bloginfo("url");
3291
+ $response = self::callAPI(
3292
+ ROP_YOURLS_SITE,
3293
+ array("method" => "post"),
3294
+ array("action" => "shorturl", "format" => "simple", "signature" => substr(md5($website . md5(ROP_YOURLS_SALT)), 0, 10), "url" => $url, "website" => base64_encode($website)),
3295
+ null
3296
+ );
3297
+
3298
+ if (intval($response["error"]) == 200) {
3299
+ $shortURL = $response["response"];
3300
+ }
3301
+ break;
3302
  case "bit.ly":
3303
  $key = trim(isset($formats[$network."_"."top_opt_bitly_key"]) ? $formats[$network."_"."top_opt_bitly_key"] : get_option( 'top_opt_bitly_key' ));
3304
  $user = trim(isset($formats[$network."_"."top_opt_bitly_user"]) ? $formats[$network."_"."top_opt_bitly_user"] : get_option( 'top_opt_bitly_user' ));
3401
  curl_setopt($conn, CURLOPT_HEADER, 0);
3402
  curl_setopt($conn, CURLOPT_NOSIGNAL, 1);
3403
 
3404
+ $header = array();
3405
  if ($headers) {
 
3406
  foreach ($headers as $key=>$val) {
3407
  $header[] = "$key: $val";
3408
  }
inc/scrap-advancedscheduling.php ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $networks = array();
3
+ $collect = array();
4
+ foreach($available as $network_name) {
5
+ $networks[] = $network_name;
6
+ }
7
+ if(count($networks) > 1){
8
+
9
+ $networks[] = null;
10
+
11
+ }
12
+ $count = 20;
13
+ if(apply_filters('rop_is_business_user', false)){
14
+ $count = 100;
15
+ }
16
+
17
+ foreach($networks as $network){
18
+ $all = null;
19
+ if(get_option("cwp_topnew_active_status", 'no') === 'yes'){
20
+ $all = array();
21
+ if($network){
22
+ $posts = CWP_TOP_Core::getTweetsFromDB($network, false, $count);
23
+ foreach($posts as $post){
24
+ $all[] = array("post" => $post, "network" => $network);
25
+ }
26
+ }else{
27
+ $all = CWP_TOP_Core::sortPosts($collect);
28
+ }
29
+ }
30
+ ?>
31
+
32
+ <div class="tab-vertical <?php if(count($available) == 1 || !$network ){ ?> active <?php } ?>">
33
+ <?php if(!apply_filters('rop_is_business_user', false)): ?>
34
+ <div class="rop-features-available"><p><span>Editing features are available on the <a href="<?php echo ROP_PRO_URL; ?>" target="_blank"><strong>Business version</strong></a></span></p></div>
35
+ <?php endif; ?>
36
+ <?php
37
+ if(is_null($all)){
38
+ echo '<div class="rop-box-with-padding rop-message-tab">';
39
+ _e("Please start the plugin to view the future shares", "tweet-old-post");
40
+ echo '</div>';
41
+ echo "</div>";
42
+ continue;
43
+ }
44
+ if(count($all) == 0){
45
+ echo '<div class="rop-box-with-padding rop-message-tab">';
46
+ _e('There is no suitable post to tweet make sure you excluded correct categories and selected the right dates.','tweet-old-post');
47
+ echo '</div>';
48
+ echo "</div>";
49
+ continue;
50
+ }
51
+
52
+ $time = null;
53
+ $prevDate = "";
54
+ foreach ($all as $array){
55
+ $post = $array["post"];
56
+ $network_name = $array["network"];
57
+ $finalTweet = CWP_TOP_Core::generateTweetFromPost($post, $network_name, true);
58
+ $time = CWP_TOP_Core::getFutureTime($network_name, $time, $array);
59
+ $image = CWP_TOP_Core::getImageForPost($network_name, $post->ID);
60
+ if($network){
61
+ $collect[] = array("post" => $post, "network" => $network_name, "time" => $time);
62
+ }
63
+
64
+ $tweetTime = date("g:i:s A", $time);
65
+ $tweetDate = date("j M Y", $time);
66
+
67
+ $data_postID = $post->ID . $network_name;
68
+
69
+ if($tweetDate != $prevDate){
70
+ if($prevDate != ""){
71
+ ?>
72
+ </div>
73
+ <?php
74
+ }
75
+ ?>
76
+ <div class="rop_date_container">
77
+ <div class="rop_tweet_date"><?php echo $tweetDate;?></div>
78
+ <?php
79
+ }
80
+ ?>
81
+ <fieldset class="option twp<?php echo $key; ?> cwp_restrict_image rop-post-<?php echo $network_name; ?>">
82
+ <div class="rop_left">
83
+ <div class="cwp_post_image" data-post-id="<?php echo $post->ID;?>" data-network="<?php echo $network_name;?>">
84
+ <?php echo $image;?>
85
+ </div>
86
+ </div><!-- end .left -->
87
+ <div class="rop_right <?php echo !$image ? "cwp_extend_post" : ""?>">
88
+ <div class="cwp_post_message">
89
+ <span data-post="<?php echo $data_postID;?>" class="cwp-quick-edit-span">
90
+ <?php echo $finalTweet['message'];?>
91
+ </span>
92
+ <textarea data-post="<?php echo $data_postID;?>" data-network="<?php echo $network_name;?>" class="cwp-quick-edit-text" style="display: none" rows="3"><?php echo $finalTweet['message'];?></textarea>
93
+ </div>
94
+ <div class="cwp_quick_edit clearfix">
95
+ <div class="cwp_quick_edit_actions">
96
+ <span class="cwp_quick_edit_actions_after" style="display: none" data-post="<?php echo $data_postID;?>">
97
+ <?php submit_button(__("Save", "tweet-old-post"), "primary", "cwp-quick-save-button-" . $data_postID, false, array("data-post" => $data_postID, "data-post-id" => $post->ID));?>
98
+ <?php submit_button(__("Cancel", "tweet-old-post"), "secondary", "cwp-quick-cancel-button-" . $data_postID, false, array("data-post" => $data_postID));?>
99
+ </span>
100
+ <span class="cwp_quick_edit_actions_before" data-post="<?php echo $data_postID;?>">
101
+ <a href="#" class="cwp-quick-edit" data-post="<?php echo $data_postID;?>"><?php _e("Edit", "tweet-old-post");?></a>
102
+ <a href="#" class="cwp-quick-delete" data-post="<?php echo $data_postID;?>" data-post-id="<?php echo $post->ID;?>" data-network="<?php echo $network_name;?>"><?php _e("Delete", "tweet-old-post");?></a>
103
+ <a href="#TB_inline?width=400&height=150&inlineId=cwp_delete_thickbox" id="thickbox-<?php echo $data_postID;?>" class="thickbox"></a>
104
+ </span>
105
+ </div>
106
+ <div class="cwp_post_time">
107
+ <?php echo $tweetTime;?>
108
+ </div>
109
+ </div>
110
+ </div><!-- end .right -->
111
+ </fieldset><!-- end .option -->
112
+ <?php
113
+ $prevDate = $tweetDate;
114
+ }
115
+ ?>
116
+ </div>
117
+ </div>
118
+ <?php
119
+ }
120
+ ?>
inc/view-advancedscheduling.php CHANGED
@@ -46,125 +46,5 @@
46
  <input type="hidden" id="rop-delete-type" value="<?php echo get_option("cwp_top_delete_type", -1);?>">
47
  </div>
48
 
49
- <?php
50
- $networks = array();
51
- $collect = array();
52
- foreach($available as $network_name) {
53
- $networks[] = $network_name;
54
- }
55
- if(count($networks) > 1){
56
-
57
- $networks[] = null;
58
-
59
- }
60
- $count = 20;
61
- if(apply_filters('rop_is_business_user', false)){
62
- $count = 100;
63
- }
64
-
65
- foreach($networks as $network){
66
- $all = null;
67
- if(get_option("cwp_topnew_active_status", 'no') === 'yes'){
68
- $all = array();
69
- if($network){
70
- $posts = CWP_TOP_Core::getTweetsFromDB($network, false, $count);
71
- foreach($posts as $post){
72
- $all[] = array("post" => $post, "network" => $network);
73
- }
74
- }else{
75
- $all = CWP_TOP_Core::sortPosts($collect);
76
- }
77
- }
78
- ?>
79
-
80
- <div class="tab-vertical <?php if(count($available) == 1 || !$network ){ ?> active <?php } ?>">
81
- <?php if(!apply_filters('rop_is_business_user', false)): ?>
82
- <div class="rop-features-available"><p><span>Editing features are available on the <a href="<?php echo ROP_PRO_URL; ?>" target="_blank"><strong>Business version</strong></a></span></p></div>
83
- <?php endif; ?>
84
- <?php
85
- if(is_null($all)){
86
- echo '<div class="rop-box-with-padding rop-message-tab">';
87
- _e("Please start the plugin to view the future shares", "tweet-old-post");
88
- echo '</div>';
89
- echo "</div>";
90
- continue;
91
- }
92
- if(count($all) == 0){
93
- echo '<div class="rop-box-with-padding rop-message-tab">';
94
- _e('There is no suitable post to tweet make sure you excluded correct categories and selected the right dates.','tweet-old-post');
95
- echo '</div>';
96
- echo "</div>";
97
- continue;
98
- }
99
-
100
- $time = null;
101
- $prevDate = "";
102
- foreach ($all as $array){
103
- $post = $array["post"];
104
- $network_name = $array["network"];
105
- $finalTweet = CWP_TOP_Core::generateTweetFromPost($post, $network_name, true);
106
- $time = CWP_TOP_Core::getFutureTime($network_name, $time, $array);
107
- $image = CWP_TOP_Core::getImageForPost($network_name, $post->ID);
108
- if($network){
109
- $collect[] = array("post" => $post, "network" => $network_name, "time" => $time);
110
- }
111
-
112
- $tweetTime = date("g:i:s A", $time);
113
- $tweetDate = date("j M Y", $time);
114
-
115
- $data_postID = $post->ID . $network_name;
116
-
117
- if($tweetDate != $prevDate){
118
- if($prevDate != ""){
119
- ?>
120
- </div>
121
- <?php
122
- }
123
- ?>
124
- <div class="rop_date_container">
125
- <div class="rop_tweet_date"><?php echo $tweetDate;?></div>
126
- <?php
127
- }
128
- ?>
129
- <fieldset class="option twp<?php echo $key; ?> cwp_restrict_image rop-post-<?php echo $network_name; ?>">
130
- <div class="rop_left">
131
- <div class="cwp_post_image" data-post-id="<?php echo $post->ID;?>" data-network="<?php echo $network_name;?>">
132
- <?php echo $image;?>
133
- </div>
134
- </div><!-- end .left -->
135
- <div class="rop_right <?php echo !$image ? "cwp_extend_post" : ""?>">
136
- <div class="cwp_post_message">
137
- <span data-post="<?php echo $data_postID;?>" class="cwp-quick-edit-span">
138
- <?php echo $finalTweet['message'];?>
139
- </span>
140
- <textarea data-post="<?php echo $data_postID;?>" data-network="<?php echo $network_name;?>" class="cwp-quick-edit-text" style="display: none" rows="3"><?php echo $finalTweet['message'];?></textarea>
141
- </div>
142
- <div class="cwp_quick_edit clearfix">
143
- <div class="cwp_quick_edit_actions">
144
- <span class="cwp_quick_edit_actions_after" style="display: none" data-post="<?php echo $data_postID;?>">
145
- <?php submit_button(__("Save", "tweet-old-post"), "primary", "cwp-quick-save-button-" . $data_postID, false, array("data-post" => $data_postID, "data-post-id" => $post->ID));?>
146
- <?php submit_button(__("Cancel", "tweet-old-post"), "secondary", "cwp-quick-cancel-button-" . $data_postID, false, array("data-post" => $data_postID));?>
147
- </span>
148
- <span class="cwp_quick_edit_actions_before" data-post="<?php echo $data_postID;?>">
149
- <a href="#" class="cwp-quick-edit" data-post="<?php echo $data_postID;?>"><?php _e("Edit", "tweet-old-post");?></a>
150
- <a href="#" class="cwp-quick-delete" data-post="<?php echo $data_postID;?>" data-post-id="<?php echo $post->ID;?>" data-network="<?php echo $network_name;?>"><?php _e("Delete", "tweet-old-post");?></a>
151
- <a href="#TB_inline?width=400&height=150&inlineId=cwp_delete_thickbox" id="thickbox-<?php echo $data_postID;?>" class="thickbox"></a>
152
- </span>
153
- </div>
154
- <div class="cwp_post_time">
155
- <?php echo $tweetTime;?>
156
- </div>
157
- </div>
158
- </div><!-- end .right -->
159
- </fieldset><!-- end .option -->
160
- <?php
161
- $prevDate = $tweetDate;
162
- }
163
- ?>
164
- </div>
165
- </div>
166
- <?php
167
- }
168
- ?>
169
-
170
  </div>
46
  <input type="hidden" id="rop-delete-type" value="<?php echo get_option("cwp_top_delete_type", -1);?>">
47
  </div>
48
 
49
+ <div id="rop-queue"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  </div>
inc/view.php CHANGED
@@ -142,13 +142,7 @@
142
  <?php } ?>
143
  <?php endif; ?>
144
  <li class="rop-beta-user"><div class="rop-left"><?php _e("Beta user",'tweet-old-post');?> </div><a href="#" id="rop-beta-button" class="rop-right <?php echo $beta_user; ?>"></a><div class="rop-clear" ></div><span class="rop-beta-desc"><?php _e("As a beta user you will have access to the latest stable releases before going to production",'tweet-old-post');?></span></li>
145
- <?php
146
- if (!defined('ROP_PRO_VERSION')) {
147
- ?>
148
  <li class="rop-beta-user"><div class="rop-left"><?php _e("Remote check",'tweet-old-post');?></div><a href="#" id="cwp_remote_check" class="<?php echo $remote_check; ?> rop-right "></a><div class="rop-clear" ></div><span class="rop-beta-desc"><?php _e("We will send you a ping each 15 minutes in order to assure that posts will be sent to social networks on time. ",'tweet-old-post');?> </span> </li>
149
- <?php
150
- }
151
- ?>
152
  <?php echo apply_filters("rop_add_to_sidebar", "");?>
153
  <li class="upgrade"><a target="_blank" href="https://revive.social/plugins/revive-old-post/?utm_source=bannerright&utm_medium=announce&utm_campaign=top&upgrade=true"> <?php _e("Upgrade Tweet Old Post for only $9.99 - Upgrade To Pro Now!", 'tweet-old-post'); ?></a></li>
154
 
142
  <?php } ?>
143
  <?php endif; ?>
144
  <li class="rop-beta-user"><div class="rop-left"><?php _e("Beta user",'tweet-old-post');?> </div><a href="#" id="rop-beta-button" class="rop-right <?php echo $beta_user; ?>"></a><div class="rop-clear" ></div><span class="rop-beta-desc"><?php _e("As a beta user you will have access to the latest stable releases before going to production",'tweet-old-post');?></span></li>
 
 
 
145
  <li class="rop-beta-user"><div class="rop-left"><?php _e("Remote check",'tweet-old-post');?></div><a href="#" id="cwp_remote_check" class="<?php echo $remote_check; ?> rop-right "></a><div class="rop-clear" ></div><span class="rop-beta-desc"><?php _e("We will send you a ping each 15 minutes in order to assure that posts will be sent to social networks on time. ",'tweet-old-post');?> </span> </li>
 
 
 
146
  <?php echo apply_filters("rop_add_to_sidebar", "");?>
147
  <li class="upgrade"><a target="_blank" href="https://revive.social/plugins/revive-old-post/?utm_source=bannerright&utm_medium=announce&utm_campaign=top&upgrade=true"> <?php _e("Upgrade Tweet Old Post for only $9.99 - Upgrade To Pro Now!", 'tweet-old-post'); ?></a></li>
148
 
js/master.js CHANGED
@@ -774,6 +774,12 @@ jQuery(document).ready(function(){
774
 
775
  jQuery("#cwp_top_tabs div.tab").eq(index).addClass("active");
776
 
 
 
 
 
 
 
777
  return false
778
  });
779
  jQuery(".cwp-schedule-days li").click(function(){
@@ -1101,3 +1107,32 @@ function clearNotices(){
1101
 
1102
 
1103
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
774
 
775
  jQuery("#cwp_top_tabs div.tab").eq(index).addClass("active");
776
 
777
+ var tab = "ropOpenTab" + index;
778
+
779
+ if(jQuery.isFunction(eval(tab))){
780
+ eval(tab + "()");
781
+ }
782
+
783
  return false
784
  });
785
  jQuery(".cwp-schedule-days li").click(function(){
1107
 
1108
 
1109
  }
1110
+
1111
+
1112
+ // manage queue
1113
+ function ropOpenTab4(){
1114
+ startAjaxIntro();
1115
+ jQuery.ajax({
1116
+ type: "POST",
1117
+ url: cwp_top_ajaxload.ajaxurl,
1118
+ data: {
1119
+ action: 'get_queue',
1120
+ security: cwp_top_ajaxload.ajaxnonce
1121
+ },
1122
+ success: function(response) {
1123
+ jQuery("#rop-queue").html(response.data.html);
1124
+ if (window.ropOpenTab4Pro) ropOpenTab4Pro();
1125
+ endAjaxIntro();
1126
+ },
1127
+ });
1128
+ }
1129
+
1130
+ // Starting the AJAX intro animation
1131
+ function startAjaxIntro() {
1132
+ jQuery(".cwp_top_wrapper .ajaxAnimation").fadeIn();
1133
+ }
1134
+
1135
+ // Ending the AJAX intro animation
1136
+ function endAjaxIntro() {
1137
+ jQuery(".cwp_top_wrapper .ajaxAnimation").fadeOut();
1138
+ }
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: codeinwp,marius2012,marius_codeinwp,hardeepasrani,Madalin_Themeisle, rsocial, uriahs-victor
3
  Tags:twitter, facebook, linkedin, automatic, tweet, share, wordpress, marketing, sharing, Tweet old post, Tweets,evergreen
4
  Requires at least: 2.7
5
- Tested up to: 4.6.1
6
  Stable tag: trunk
7
 
8
 
@@ -128,6 +128,13 @@ http://revive.social/plugins/revive-old-post
128
 
129
  == Changelog ==
130
 
 
 
 
 
 
 
 
131
  **New in v7.4.5**
132
 
133
  * Improved schedule trigger for posts
2
  Contributors: codeinwp,marius2012,marius_codeinwp,hardeepasrani,Madalin_Themeisle, rsocial, uriahs-victor
3
  Tags:twitter, facebook, linkedin, automatic, tweet, share, wordpress, marketing, sharing, Tweet old post, Tweets,evergreen
4
  Requires at least: 2.7
5
+ Tested up to: 4.7.1
6
  Stable tag: trunk
7
 
8
 
128
 
129
  == Changelog ==
130
 
131
+ **New in v7.4.7**
132
+
133
+ * Fixed issue with settings cleared after update/deactivate
134
+ * Fixed issue with posts queue
135
+ * Added default shortner rviv.ly
136
+
137
+
138
  **New in v7.4.5**
139
 
140
  * Improved schedule trigger for posts
tweet-old-post.php CHANGED
@@ -4,7 +4,7 @@
4
  # Plugin URI: https://revive.social/
5
  # Description: Wordpress plugin that helps you to keeps your old posts alive by sharing them and driving more traffic to them from twitter/facebook or linkedin. It also helps you to promote your content. You can set time and no of posts to share to drive more traffic.For questions, comments, or feature requests, <a href="http://revive.social/support/?utm_source=plugindesc&utm_medium=announce&utm_campaign=top">contact </a> us!
6
  # Author: revive.social
7
- # Version: 7.4.6
8
  # Author URI: https://revive.social/
9
  # Text Domain: tweet-old-post
10
  # Domain Path: /languages
@@ -19,7 +19,7 @@ define("ROPJSFILE", plugins_url('js/master.js',__FILE__ ));
19
  define("ROPJSCOUNTDOWN", plugins_url('js/countdown.js',__FILE__ ));
20
  define("ROPPLUGINBASENAME", plugin_basename(__FILE__));
21
  define('ROP_TOP_FB_API_VERSION','v2.0');
22
- define('ROP_VERSION','7.4.6');
23
  // Added by Ash/Upwork
24
  define("ROP_ROOT", trailingslashit(plugins_url("", __FILE__)));
25
  // Added by Ash/Upwork
4
  # Plugin URI: https://revive.social/
5
  # Description: Wordpress plugin that helps you to keeps your old posts alive by sharing them and driving more traffic to them from twitter/facebook or linkedin. It also helps you to promote your content. You can set time and no of posts to share to drive more traffic.For questions, comments, or feature requests, <a href="http://revive.social/support/?utm_source=plugindesc&utm_medium=announce&utm_campaign=top">contact </a> us!
6
  # Author: revive.social
7
+ # Version: 7.4.7
8
  # Author URI: https://revive.social/
9
  # Text Domain: tweet-old-post
10
  # Domain Path: /languages
19
  define("ROPJSCOUNTDOWN", plugins_url('js/countdown.js',__FILE__ ));
20
  define("ROPPLUGINBASENAME", plugin_basename(__FILE__));
21
  define('ROP_TOP_FB_API_VERSION','v2.0');
22
+ define('ROP_VERSION','7.4.7');
23
  // Added by Ash/Upwork
24
  define("ROP_ROOT", trailingslashit(plugins_url("", __FILE__)));
25
  // Added by Ash/Upwork