4,407 changes: 3 additions & 4,404 deletions assets/css/rop.css

Large diffs are not rendered by default.

435 changes: 434 additions & 1 deletion assets/css/rop_core.css

Large diffs are not rendered by default.

19 changes: 18 additions & 1 deletion assets/js/build/dashboard.js

Large diffs are not rendered by default.

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 composer.json
Expand Up @@ -43,7 +43,7 @@
"require": {
"facebook/graph-sdk": "5.7",
"abraham/twitteroauth": "1.1.0",
"codeinwp/themeisle-sdk": "3.2.15",
"codeinwp/themeisle-sdk": "3.2.26",
"vkcom/vk-php-sdk": "5.101.0"
},
"extra": {
Expand Down
308 changes: 227 additions & 81 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions includes/admin/services/class-rop-facebook-service.php
Expand Up @@ -486,6 +486,8 @@ public function share( $post_details, $args = array() ) {
// **** Instagram Sharing ***** //
if ( $args['account_type'] === 'instagram_account' && class_exists( 'Rop_Pro_Instagram_Service' ) ) {

$args['correct_aspect_ratio'] = $post_format['correct_aspect_ratio'];

$response = Rop_Pro_Instagram_Service::share( $post_details, $hashtags, $args );

return $response;
Expand Down
15 changes: 11 additions & 4 deletions includes/admin/services/class-rop-gmb-service.php
Expand Up @@ -218,15 +218,22 @@ private function gmb_refresh_access_token() {
$rop_data = get_option( 'rop_data' );
$rop_services_data = $rop_data['services'];

foreach ( $rop_services_data as $service => $service_data ) {

$id = '';
$access_token = '';
$created = '';
$expires_in = '';
$gmb_service_id = '';
$refresh_token = '';

foreach ( $rop_services_data as $service => $service_data ) {
if ( $service_data['service'] === 'gmb' ) {
$id = $service_data['id'];
$access_token = $service_data['credentials']['access_token'];
$created = $service_data['credentials']['created'];
$expires_in = $service_data['credentials']['expires_in'];
$access_token = $service_data['credentials']['access_token'];
$refresh_token = $service_data['credentials']['refresh_token'];
$id = $service_data['id'];
$gmb_service_id = $service;
$refresh_token = $service_data['credentials']['refresh_token'];
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/services/class-rop-linkedin-service.php
Expand Up @@ -308,7 +308,7 @@ public function authenticate( $args ) {
* @since 8.0.0
* @access public
*/
private function get_users( $data = null, $api ) {
private function get_users( $data, $api ) {
if ( empty( $data ) ) {
return array();
}
Expand Down
2 changes: 2 additions & 0 deletions includes/class-rop-i18n.php
Expand Up @@ -254,6 +254,8 @@ public static function get_labels( $key = '' ) {
'hashtags_randomize_desc' => __( 'Randomize the list of hashtags on every successful share. You won\'t see this change in the Sharing Queue, the randomization happens at share time.', 'tweet-old-post' ),
'image_title' => __( 'Share As Image Post', 'tweet-old-post' ),
'image_desc' => __( 'Should ROP share your posts as an image post? <a href="https://docs.revive.social/article/958-how-to-share-posts-as-image-posts-to-social-accounts" target="_blank">Learn more</a>.', 'tweet-old-post' ),
'image_aspect_ratio_title' => __( 'Automatically correct aspect ratio', 'tweet-old-post' ),
'image_aspect_ratio_title_desc' => __( 'Should ROP automatically crop images with the wrong aspect ratio? <a href="https://docs.revive.social/article/1661-how-to-fix-invalid-aspect-ratio-when-posting-to-instagram" target="_blank">Learn more</a>.', 'tweet-old-post' ),
'utm_campaign_medium' => __( 'Campaign Medium', 'tweet-old-post' ),
'utm_campaign_medium_desc' => __( 'The marketing medium you want to show in Google Analytics e.g: "social", "website", etc.', 'tweet-old-post' ),
'utm_campaign_name' => __( 'Campaign Name', 'tweet-old-post' ),
Expand Down
2 changes: 1 addition & 1 deletion includes/class-rop.php
Expand Up @@ -68,7 +68,7 @@ class Rop {
public function __construct() {

$this->plugin_name = 'rop';
$this->version = '9.0.8';
$this->version = '9.0.9';

$this->load_dependencies();
$this->set_locale();
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "tweet-old-post",
"version": "9.0.8",
"version": "9.0.9",
"description": "Tweet Old Posts plugin",
"repository": {
"type": "git",
Expand Down
16 changes: 14 additions & 2 deletions readme.txt
Expand Up @@ -2,8 +2,8 @@
Contributors: codeinwp,marius2012,marius_codeinwp,hardeepasrani,Madalin_Themeisle, rsocial, uriahs-victor
Tags: share to social media, auto publish, auto post, social media scheduling, social media auto posting, social media marketing, social media automation, social media sharing
Requires at least: 4.7
Tested up to: 5.9
Requires PHP: 7.1
Tested up to: 6.0
Requires PHP: 7.2
Stable tag: trunk


Expand Down Expand Up @@ -305,6 +305,18 @@ http://revive.social/plugins/revive-old-post

== Changelog ==

##### [Version 9.0.9](https://github.com/Codeinwp/tweet-old-post/compare/v9.0.8...v9.0.9) (2022-07-25)

- [New Pro] Option to automatically crop Instagram Images if they do not meet the Instagram supported aspect ratios
- [Fix] PHP 8 related errors
- [Fix] Long taxonomy names were overflowing their container in multiselect fields
- [Info] Tested on WP 6.0
- [Info] Minimum PHP version has been changed to 7.2 to address composer dependency PHP errors
- [Info] Updated Themeisle SDK




##### [Version 9.0.8](https://github.com/Codeinwp/tweet-old-post/compare/v9.0.7...v9.0.8) (2022-04-22)

### Info
Expand Down
14 changes: 7 additions & 7 deletions tweet-old-post.php
Expand Up @@ -16,16 +16,16 @@
* 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: 9.0.8
* Version: 9.0.9
* Author: revive.social
* Author URI: https://revive.social/
* Requires at least: 3.5
* Tested up to: 5.9
* Requires at least: 4.7
* Tested up to: 6.0
* Stable tag: trunk
* WordPress Available: yes
* Pro Slug: tweet-old-post-pro
* Requires License: no
* Requires PHP: 7.1
* Requires PHP: 7.2
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: tweet-old-post
Expand All @@ -40,15 +40,15 @@

if ( function_exists( 'phpversion' ) ) {

if ( version_compare( phpversion(), '7.1', '<' ) ) {
if ( version_compare( phpversion(), '7.2', '<' ) ) {
add_action( 'admin_notices', 'rop_php_notice' );
add_action( 'admin_init', 'deactivate_rop', 1 );
return;
}
}

if ( defined( 'PHP_VERSION' ) ) {
if ( version_compare( PHP_VERSION, '7.1', '<' ) ) {
if ( version_compare( PHP_VERSION, '7.2', '<' ) ) {
add_action( 'admin_notices', 'rop_php_notice' );
add_action( 'admin_init', 'deactivate_rop', 1 );
return;
Expand Down Expand Up @@ -162,7 +162,7 @@ function run_rop() {
define( 'ROP_CRON_ALTERNATIVE', $use_remote_cron );

define( 'ROP_PRO_URL', 'http://revive.social/plugins/revive-old-post/' );
define( 'ROP_LITE_VERSION', '9.0.8' );
define( 'ROP_LITE_VERSION', '9.0.9' );
define( 'ROP_LITE_BASE_FILE', __FILE__ );
$debug = false;
if ( function_exists( 'wp_get_environment_type' ) ) {
Expand Down
17 changes: 17 additions & 0 deletions vue/src/vue-elements/post-format.vue
Expand Up @@ -309,6 +309,23 @@
</div>
</div>

<span v-if="is_instagram_account" class="divider"></span>

<div v-if="is_instagram_account" class="columns py-2" :class="'rop-control-container-'+isPro">
<div class="column col-6 col-sm-12 vertical-align rop-control">
<b>{{labels.image_aspect_ratio_title}}</b>
<p class="text-gray"><span v-html="labels.image_aspect_ratio_title_desc"></span></p>
</div>
<div class="column col-6 col-sm-12 vertical-align">
<div class="input-group">
<label class="form-checkbox">
<input v-if="is_instagram_account" type="checkbox" v-model="post_format.correct_aspect_ratio"/>
<i class="form-icon"></i> {{labels.yes_text}}
</label>
</div>
</div>
</div>

<div class="columns " v-if="!isPro">
<div class="column text-center">
<p class="upsell"><i class="fa fa-info-circle"></i> {{labels.image_upsell}}</p>
Expand Down