esc_html__( 'Expired', 'elementor-pro' ),
API::STATUS_SITE_INACTIVE => esc_html__( 'Mismatch', 'elementor-pro' ),
API::STATUS_CANCELLED => esc_html__( 'Cancelled', 'elementor-pro' ),
API::STATUS_HTTP_ERROR => esc_html__( 'HTTP Error', 'elementor-pro' ),
API::STATUS_MISSING => esc_html__( 'Missing', 'elementor-pro' ),
API::STATUS_REQUEST_LOCKED => esc_html__( 'Request Locked', 'elementor-pro' ),
];
echo esc_html__( 'Status', 'elementor-pro' ); ?>:
30,
'body' => [
'api_version' => ELEMENTOR_PRO_VERSION,
'site_lang' => get_bloginfo( 'language' ),
],
] );
}
private function is_connected() {
return $this->get_app()->is_connected();
}
public function get_connect_url( $params = [] ) {
$action = $this->is_connected() ? 'activate_pro' : 'authorize';
return $this->get_app()->get_admin_url( $action, $params );
}
private function get_switch_license_url( $params = [] ) {
return $this->get_app()->get_admin_url( 'switch_license', $params );
}
private function get_connected_account() {
$user = $this->get_app()->get( 'user' );
$email = '';
if ( $user ) {
$email = $user->email;
}
return $email;
}
private function get_deactivate_url() {
return $this->get_app()->get_admin_url( 'deactivate' );
}
private function get_activate_message() {
return esc_html__( 'Please activate your license to get feature updates, premium support and unlimited access to the template library.', 'elementor-pro' );
}
/**
* @return Activate
*/
private function get_app() {
return Plugin::elementor()->common->get_component( 'connect' )->get_app( 'activate' );
}
private function redirect_to_document( $document_id ) {
$document = Plugin::elementor()->documents->get( (int) $document_id );
if ( $document ) {
// Triggers after the headers were sent, so a regular redirect won't work.
?>