Viewing File: /home/fshjisk/asian-store.fr/wp-contenta43/plugins/flexible-shipping/src/WPDesk/FS/Info/FSPro.php
<?php
/**
* Class FSPro.
*
* @package WPDesk\FS\Info
*/
namespace WPDesk\FS\Info;
/**
* FS Pro metabox.
*/
class FSPro extends Metabox {
/**
* WooCommerceABC constructor.
*/
public function __construct() {
$title = __( 'Get Flexible Shipping PRO!', 'flexible-shipping' );
parent::__construct( 'fs-pro', $title, $this->get_body_content(), $this->get_footer_content() );
}
/**
* @return string
*/
private function get_body_content() {
ob_start();
include 'views/fs-pro.php';
return ob_get_clean();
}
/**
* @return string
*/
private function get_footer_content() {
$url = get_user_locale() === 'pl_PL' ? 'https://wpde.sk/fs-info-pro-pl' : 'https://wpde.sk/fs-info-pro';
return '<a class="button button-primary" href="' . esc_url( $url ) . '" target="_blank">' . __( 'Upgrade now to PRO version →', 'flexible-shipping' ) . '</a>';
}
}
Back to Directory
File Manager