Merged in feature/Plugin-updates (pull request #19)
Updated plugins * Updated plugins
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Yoast\WP\SEO\Integrations\Alerts;
|
||||
|
||||
/**
|
||||
* Trustpilot_Review_Notification class.
|
||||
*/
|
||||
class Trustpilot_Review_Notification extends Abstract_Dismissable_Alert {
|
||||
|
||||
/**
|
||||
* Holds the alert identifier.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $alert_identifier = 'trustpilot-review-notification';
|
||||
}
|
||||
@@ -613,9 +613,25 @@ class Elementor implements Integration_Interface {
|
||||
$values['cornerstoneActive'] = false;
|
||||
}
|
||||
|
||||
$values['elementorMarkerStatus'] = $this->is_highlighting_available() ? 'enabled' : 'hidden';
|
||||
|
||||
return $values;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether the highlighting functionality is available for Elementor:
|
||||
* - in Free it's always available (as an upsell).
|
||||
* - in Premium it's available as long as the version is 21.8-RC0 or above.
|
||||
*
|
||||
* @return bool Whether the highlighting functionality is available.
|
||||
*/
|
||||
private function is_highlighting_available() {
|
||||
$is_premium = \YoastSEO()->helpers->product->is_premium();
|
||||
$premium_version = \YoastSEO()->helpers->product->get_premium_version();
|
||||
|
||||
return ! $is_premium || \version_compare( $premium_version, '21.8-RC0', '>=' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepares the replace vars for localization.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user