Skip to content

Commit

Permalink
add separate instagram account
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed Jul 9, 2024
1 parent ade288c commit 66fe71a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
15 changes: 11 additions & 4 deletions assets/js/build/dashboard.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion includes/admin/class-rop-global-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,9 @@ function ( $value ) {
$available_services[ $key ] = $service;
}
}

$available_services['instagram'] = $available_services['facebook'];
$available_services['instagram']['name'] = 'Instagram';
$available_services['instagram']['active'] = false;
return $available_services;
}

Expand Down
10 changes: 8 additions & 2 deletions vue/src/vue-elements/sign-in-btn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
class="dashicons dashicons-lock"
/>
</button>

</div>

<div
Expand Down Expand Up @@ -391,7 +392,7 @@ export default {
return 'service-' + this.modal.serviceName.toLowerCase()
},
isFacebook() {
return this.modal.serviceName === 'Facebook';
return this.modal.serviceName === 'Facebook' || this.modal.serviceName === 'Instagram';
},
// will return true if the current service actions are for Twitter.
isTwitter() {
Expand Down Expand Up @@ -736,7 +737,7 @@ export default {
if ('Twitter' === this.modal.serviceName) {
this.addAccountTW( accountData );
} else if ('Facebook' === this.modal.serviceName) {
} else if ('Facebook' === this.modal.serviceName || 'Instagram' === this.modal.serviceName) {
this.addAccountFB( accountData );
} else if ('LinkedIn' === this.modal.serviceName) {
this.addAccountLI( accountData );
Expand Down Expand Up @@ -851,9 +852,14 @@ export default {
.btn-gmb {
text-transform: uppercase;
}
.btn-instagram{
background-color:#c13584 !important;
color:#fff!important;
}
.rop-disabled{
opacity: 0.6
}
#rop-sign-in-area .btn {border:none;}
#rop_core .rop-upsell-modal .modal-container{
max-width: 500px;
padding: 25px;
Expand Down

0 comments on commit 66fe71a

Please sign in to comment.