Skip to content

Commit

Permalink
Merge pull request #435 from Codeinwp/v841
Browse files Browse the repository at this point in the history
Fix: Use own keys button was appearing in Twitter modal for old installs
  • Loading branch information
UVLabs authored Aug 19, 2019
2 parents 224f364 + 646266f commit d484dd4
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions assets/js/build/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -33772,18 +33772,18 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
// <button class="btn btn-primary big-btn" @click="openPopupTW()">{{labels.tw_app_signin_btn}}</button>
// <span class="text-center">{{labels.tw_own_app_signin}}</span>
// </div>
// <div id="rop-advanced-config" v-if="isFacebook || isTwitter">
// <div id="rop-advanced-config" v-if="isFacebook || (isTwitter && isAllowedTwitter)">
// <button class="btn btn-primary" v-on:click="showAdvanceConfig = !showAdvanceConfig">{{labels.show_advance_config}}</button>
// </div>
// <div v-if="showAdvanceConfig && (isFacebook || isTwitter)">
// <div v-if="showAdvanceConfig && (isFacebook || (isTwitter && isAllowedTwitter) )">
// <div class="form-group" v-for="( field, id ) in modal.data">
// <label class="form-label" :for="field.id">{{ field.name }}</label>
// <input class="form-input" type="text" :id="field.id" v-model="field.value"
// :placeholder="field.name"/>
// <p class="text-gray">{{ field.description }}</p>
// </div>
// </div>
// <div v-if="!isFacebook && !isTwitter">
// <div v-if="(!isTwitter && !isFacebook) || ( isTwitter && !isAllowedTwitter)">
// <div class="form-group" v-for="( field, id ) in modal.data">
// <label class="form-label" :for="field.id">{{ field.name }}</label>
// <input class="form-input" type="text" :id="field.id" v-model="field.value"
Expand All @@ -33793,14 +33793,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
// </div>
// </div>
// </div>
// <div v-if="isFacebook || isTwitter" class="modal-footer">
// <div v-if="isFacebook || (isTwitter && isAllowedTwitter)" class="modal-footer">
// <p class="text-left pull-left mr-2" v-html="labels.rs_app_info"></p>
// </div>
// <div v-if="showAdvanceConfig && (isFacebook || isTwitter)" class="modal-footer">
// <div class="text-left pull-left mr-2" v-html="modal.description"></div>
// <button class="btn btn-primary" @click="closeModal()">{{labels.sign_in_btn}}</button>
// </div>
// <div v-if="!isFacebook && !isTwitter" class="modal-footer">
// <div v-if="(!isTwitter && !isFacebook) || (isTwitter && !isAllowedTwitter)" class="modal-footer">
// <div class="text-left pull-left mr-2" v-html="modal.description"></div>
// <button class="btn btn-primary" @click="closeModal()">{{labels.sign_in_btn}}</button>
// </div>
Expand Down Expand Up @@ -34122,7 +34122,7 @@ module.exports = {
/* 223 */
/***/ (function(module, exports) {

module.exports = "\n\t<div id=\"rop-sign-in-area\" _v-2f84fb84=\"\">\n\t\t<div class=\"input-group text-right buttons-wrap\" _v-2f84fb84=\"\">\n\t\t\t<button v-for=\"( service, network ) in services\" :disabled=\"checkDisabled( service, network )\" class=\"btn input-group-btn\" :class=\"'btn-' + network\" @click=\"requestAuthorization( network )\" _v-2f84fb84=\"\">\n\t\t\t\t<i v-if=\"network !== 'buffer'\" class=\"fa fa-fw\" :class=\"'fa-' + network\" _v-2f84fb84=\"\"></i>\n\t\t\t\t<i v-if=\"network === 'buffer'\" class=\"fa fa-fw fa-plus-square\" _v-2f84fb84=\"\"></i>\n\t\t\t\t{{service.name}}\n\t\t\t</button>\n\n\t\t</div>\n\n\t\t<div class=\"modal\" :class=\"modalActiveClass\" _v-2f84fb84=\"\">\n\t\t\t<div class=\"modal-overlay\" _v-2f84fb84=\"\"></div>\n\t\t\t<div class=\"modal-container\" _v-2f84fb84=\"\">\n\t\t\t\t<div class=\"modal-header\" _v-2f84fb84=\"\">\n\t\t\t\t\t<button class=\"btn btn-clear float-right\" @click=\"cancelModal()\" _v-2f84fb84=\"\"></button>\n\t\t\t\t\t<div class=\"modal-title h5\" _v-2f84fb84=\"\">{{ modal.serviceName }} {{labels.service_popup_title}}</div>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"modal-body\" _v-2f84fb84=\"\">\n\t\t\t\t\t<div class=\"content\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t<div class=\"auth-app\" v-if=\"isFacebook\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t\t<button class=\"btn btn-primary big-btn\" @click=\"openPopupFB()\" _v-2f84fb84=\"\">{{labels.fb_app_signin_btn}}</button>\n\t\t\t\t\t\t\t<span class=\"text-center\" _v-2f84fb84=\"\">{{labels.fb_own_app_signin}}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"auth-app\" v-if=\"isTwitter &amp;&amp; isAllowedTwitter\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t\t<button class=\"btn btn-primary big-btn\" @click=\"openPopupTW()\" _v-2f84fb84=\"\">{{labels.tw_app_signin_btn}}</button>\n\t\t\t\t\t\t\t<span class=\"text-center\" _v-2f84fb84=\"\">{{labels.tw_own_app_signin}}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div id=\"rop-advanced-config\" v-if=\"isFacebook || isTwitter\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t<button class=\"btn btn-primary\" v-on:click=\"showAdvanceConfig = !showAdvanceConfig\" _v-2f84fb84=\"\">{{labels.show_advance_config}}</button>\n\t\t\t\t\t</div>\n\t\t\t\t\t\t<div v-if=\"showAdvanceConfig &amp;&amp; (isFacebook || isTwitter)\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t<div class=\"form-group\" v-for=\"( field, id ) in modal.data\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t\t<label class=\"form-label\" :for=\"field.id\" _v-2f84fb84=\"\">{{ field.name }}</label>\n\t\t\t\t\t\t\t<input class=\"form-input\" type=\"text\" :id=\"field.id\" v-model=\"field.value\" :placeholder=\"field.name\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t\t<p class=\"text-gray\" _v-2f84fb84=\"\">{{ field.description }}</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\t<div v-if=\"!isFacebook &amp;&amp; !isTwitter\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t<div class=\"form-group\" v-for=\"( field, id ) in modal.data\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t\t<label class=\"form-label\" :for=\"field.id\" _v-2f84fb84=\"\">{{ field.name }}</label>\n\t\t\t\t\t\t\t<input class=\"form-input\" type=\"text\" :id=\"field.id\" v-model=\"field.value\" :placeholder=\"field.name\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t\t<p class=\"text-gray\" _v-2f84fb84=\"\">{{ field.description }}</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div v-if=\"isFacebook || isTwitter\" class=\"modal-footer\" _v-2f84fb84=\"\">\n\t\t\t\t\t<p class=\"text-left pull-left mr-2\" v-html=\"labels.rs_app_info\" _v-2f84fb84=\"\"></p>\n\t\t\t\t</div>\n\t\t\t\t<div v-if=\"showAdvanceConfig &amp;&amp; (isFacebook || isTwitter)\" class=\"modal-footer\" _v-2f84fb84=\"\">\n\t\t\t\t\t<div class=\"text-left pull-left mr-2\" v-html=\"modal.description\" _v-2f84fb84=\"\"></div>\n\t\t\t\t\t<button class=\"btn btn-primary\" @click=\"closeModal()\" _v-2f84fb84=\"\">{{labels.sign_in_btn}}</button>\n\t\t\t\t</div>\n\t\t\t\t<div v-if=\"!isFacebook &amp;&amp; !isTwitter\" class=\"modal-footer\" _v-2f84fb84=\"\">\n\t\t\t\t\t<div class=\"text-left pull-left mr-2\" v-html=\"modal.description\" _v-2f84fb84=\"\"></div>\n\t\t\t\t\t<button class=\"btn btn-primary\" @click=\"closeModal()\" _v-2f84fb84=\"\">{{labels.sign_in_btn}}</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n";
module.exports = "\n\t<div id=\"rop-sign-in-area\" _v-2f84fb84=\"\">\n\t\t<div class=\"input-group text-right buttons-wrap\" _v-2f84fb84=\"\">\n\t\t\t<button v-for=\"( service, network ) in services\" :disabled=\"checkDisabled( service, network )\" class=\"btn input-group-btn\" :class=\"'btn-' + network\" @click=\"requestAuthorization( network )\" _v-2f84fb84=\"\">\n\t\t\t\t<i v-if=\"network !== 'buffer'\" class=\"fa fa-fw\" :class=\"'fa-' + network\" _v-2f84fb84=\"\"></i>\n\t\t\t\t<i v-if=\"network === 'buffer'\" class=\"fa fa-fw fa-plus-square\" _v-2f84fb84=\"\"></i>\n\t\t\t\t{{service.name}}\n\t\t\t</button>\n\n\t\t</div>\n\n\t\t<div class=\"modal\" :class=\"modalActiveClass\" _v-2f84fb84=\"\">\n\t\t\t<div class=\"modal-overlay\" _v-2f84fb84=\"\"></div>\n\t\t\t<div class=\"modal-container\" _v-2f84fb84=\"\">\n\t\t\t\t<div class=\"modal-header\" _v-2f84fb84=\"\">\n\t\t\t\t\t<button class=\"btn btn-clear float-right\" @click=\"cancelModal()\" _v-2f84fb84=\"\"></button>\n\t\t\t\t\t<div class=\"modal-title h5\" _v-2f84fb84=\"\">{{ modal.serviceName }} {{labels.service_popup_title}}</div>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"modal-body\" _v-2f84fb84=\"\">\n\t\t\t\t\t<div class=\"content\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t<div class=\"auth-app\" v-if=\"isFacebook\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t\t<button class=\"btn btn-primary big-btn\" @click=\"openPopupFB()\" _v-2f84fb84=\"\">{{labels.fb_app_signin_btn}}</button>\n\t\t\t\t\t\t\t<span class=\"text-center\" _v-2f84fb84=\"\">{{labels.fb_own_app_signin}}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"auth-app\" v-if=\"isTwitter &amp;&amp; isAllowedTwitter\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t\t<button class=\"btn btn-primary big-btn\" @click=\"openPopupTW()\" _v-2f84fb84=\"\">{{labels.tw_app_signin_btn}}</button>\n\t\t\t\t\t\t\t<span class=\"text-center\" _v-2f84fb84=\"\">{{labels.tw_own_app_signin}}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div id=\"rop-advanced-config\" v-if=\"isFacebook || (isTwitter &amp;&amp; isAllowedTwitter)\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t<button class=\"btn btn-primary\" v-on:click=\"showAdvanceConfig = !showAdvanceConfig\" _v-2f84fb84=\"\">{{labels.show_advance_config}}</button>\n\t\t\t\t\t</div>\n\t\t\t\t\t\t<div v-if=\"showAdvanceConfig &amp;&amp; (isFacebook || (isTwitter &amp;&amp; isAllowedTwitter) )\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t<div class=\"form-group\" v-for=\"( field, id ) in modal.data\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t\t<label class=\"form-label\" :for=\"field.id\" _v-2f84fb84=\"\">{{ field.name }}</label>\n\t\t\t\t\t\t\t<input class=\"form-input\" type=\"text\" :id=\"field.id\" v-model=\"field.value\" :placeholder=\"field.name\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t\t<p class=\"text-gray\" _v-2f84fb84=\"\">{{ field.description }}</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\t<div v-if=\"(!isTwitter &amp;&amp; !isFacebook) || ( isTwitter &amp;&amp; !isAllowedTwitter)\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t<div class=\"form-group\" v-for=\"( field, id ) in modal.data\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t\t<label class=\"form-label\" :for=\"field.id\" _v-2f84fb84=\"\">{{ field.name }}</label>\n\t\t\t\t\t\t\t<input class=\"form-input\" type=\"text\" :id=\"field.id\" v-model=\"field.value\" :placeholder=\"field.name\" _v-2f84fb84=\"\">\n\t\t\t\t\t\t\t<p class=\"text-gray\" _v-2f84fb84=\"\">{{ field.description }}</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div v-if=\"isFacebook || (isTwitter &amp;&amp; isAllowedTwitter)\" class=\"modal-footer\" _v-2f84fb84=\"\">\n\t\t\t\t\t<p class=\"text-left pull-left mr-2\" v-html=\"labels.rs_app_info\" _v-2f84fb84=\"\"></p>\n\t\t\t\t</div>\n\t\t\t\t<div v-if=\"showAdvanceConfig &amp;&amp; (isFacebook || isTwitter)\" class=\"modal-footer\" _v-2f84fb84=\"\">\n\t\t\t\t\t<div class=\"text-left pull-left mr-2\" v-html=\"modal.description\" _v-2f84fb84=\"\"></div>\n\t\t\t\t\t<button class=\"btn btn-primary\" @click=\"closeModal()\" _v-2f84fb84=\"\">{{labels.sign_in_btn}}</button>\n\t\t\t\t</div>\n\t\t\t\t<div v-if=\"(!isTwitter &amp;&amp; !isFacebook) || (isTwitter &amp;&amp; !isAllowedTwitter)\" class=\"modal-footer\" _v-2f84fb84=\"\">\n\t\t\t\t\t<div class=\"text-left pull-left mr-2\" v-html=\"modal.description\" _v-2f84fb84=\"\"></div>\n\t\t\t\t\t<button class=\"btn btn-primary\" @click=\"closeModal()\" _v-2f84fb84=\"\">{{labels.sign_in_btn}}</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n";

/***/ }),
/* 224 */
Expand Down
2 changes: 1 addition & 1 deletion assets/js/build/dashboard.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion includes/class-rop.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Rop {
public function __construct() {

$this->plugin_name = 'rop';
$this->version = '8.4.0';
$this->version = '8.4.1';

$this->load_dependencies();
$this->set_locale();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tweet-old-post",
"version": "8.4.0",
"version": "8.4.1",
"description": "Tweet Old Posts plugin",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion themeisle-hash.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"class-rop-autoloader.php":"7bfbb1554230d0ace777adb2e42bebeb","index.php":"39ab8276fb0e4bd3fcab3270822c5977","tweet-old-post.php":"604b9074d08d3596eb7de20bed21f7ed","uninstall.php":"51b090f608decf6f4ad5190ce1f9ab6f"}
{"class-rop-autoloader.php":"7bfbb1554230d0ace777adb2e42bebeb","index.php":"39ab8276fb0e4bd3fcab3270822c5977","tweet-old-post.php":"586af7864cbc2f45c0105cc927eeb428","uninstall.php":"51b090f608decf6f4ad5190ce1f9ab6f"}
4 changes: 2 additions & 2 deletions tweet-old-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Plugin Name: Revive Old Posts
* Plugin URI: https://revive.social/
* 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!
* Version: 8.4.0
* Version: 8.4.1
* Author: revive.social
* Author URI: https://revive.social/
* Requires at least: 3.5
Expand Down Expand Up @@ -98,7 +98,7 @@ function run_rop() {
}

define( 'ROP_PRO_URL', 'http://revive.social/plugins/revive-old-post/' );
define( 'ROP_LITE_VERSION', '8.4.0' );
define( 'ROP_LITE_VERSION', '8.4.1' );
define( 'ROP_LITE_BASE_FILE', __FILE__ );
define( 'ROP_DEBUG', false );
define( 'ROP_LITE_PATH', plugin_dir_path( __FILE__ ) );
Expand Down
10 changes: 5 additions & 5 deletions vue/src/vue-elements/sign-in-btn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@
<button class="btn btn-primary big-btn" @click="openPopupTW()">{{labels.tw_app_signin_btn}}</button>
<span class="text-center">{{labels.tw_own_app_signin}}</span>
</div>
<div id="rop-advanced-config" v-if="isFacebook || isTwitter">
<div id="rop-advanced-config" v-if="isFacebook || (isTwitter && isAllowedTwitter)">
<button class="btn btn-primary" v-on:click="showAdvanceConfig = !showAdvanceConfig">{{labels.show_advance_config}}</button>
</div>
<div v-if="showAdvanceConfig && (isFacebook || isTwitter)">
<div v-if="showAdvanceConfig && (isFacebook || (isTwitter && isAllowedTwitter) )">
<div class="form-group" v-for="( field, id ) in modal.data">
<label class="form-label" :for="field.id">{{ field.name }}</label>
<input class="form-input" type="text" :id="field.id" v-model="field.value"
:placeholder="field.name"/>
<p class="text-gray">{{ field.description }}</p>
</div>
</div>
<div v-if="!isFacebook && !isTwitter">
<div v-if="(!isTwitter && !isFacebook) || ( isTwitter && !isAllowedTwitter)">
<div class="form-group" v-for="( field, id ) in modal.data">
<label class="form-label" :for="field.id">{{ field.name }}</label>
<input class="form-input" type="text" :id="field.id" v-model="field.value"
Expand All @@ -51,14 +51,14 @@
</div>
</div>
</div>
<div v-if="isFacebook || isTwitter" class="modal-footer">
<div v-if="isFacebook || (isTwitter && isAllowedTwitter)" class="modal-footer">
<p class="text-left pull-left mr-2" v-html="labels.rs_app_info"></p>
</div>
<div v-if="showAdvanceConfig && (isFacebook || isTwitter)" class="modal-footer">
<div class="text-left pull-left mr-2" v-html="modal.description"></div>
<button class="btn btn-primary" @click="closeModal()">{{labels.sign_in_btn}}</button>
</div>
<div v-if="!isFacebook && !isTwitter" class="modal-footer">
<div v-if="(!isTwitter && !isFacebook) || (isTwitter && !isAllowedTwitter)" class="modal-footer">
<div class="text-left pull-left mr-2" v-html="modal.description"></div>
<button class="btn btn-primary" @click="closeModal()">{{labels.sign_in_btn}}</button>
</div>
Expand Down

0 comments on commit d484dd4

Please sign in to comment.