| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Framework license field file. |
| 5 |
* |
| 6 |
* @link https://themeatelier.net |
| 7 |
* @since 2.0.0 |
| 8 |
* |
| 9 |
* @package darkify_pro |
| 10 |
* @subpackage darkify_pro/Admin |
| 11 |
*/ |
| 12 |
|
| 13 |
if (! defined('ABSPATH')) { |
| 14 |
die; |
| 15 |
} // Cannot access directly. |
| 16 |
|
| 17 |
if (! class_exists('DarkifyField_license')) { |
| 18 |
/** |
| 19 |
* |
| 20 |
* Field: license |
| 21 |
* |
| 22 |
* @since 2.2.4 |
| 23 |
* @version 2.2.4 |
| 24 |
*/ |
| 25 |
class DarkifyField_license extends DarkifyFields |
| 26 |
{ |
| 27 |
/** |
| 28 |
* Field constructor. |
| 29 |
* |
| 30 |
* @param array $field The field type. |
| 31 |
* @param string $value The values of the field. |
| 32 |
* @param string $unique The unique ID for the field. |
| 33 |
* @param string $where To where show the output CSS. |
| 34 |
* @param string $parent The parent args. |
| 35 |
*/ |
| 36 |
public function __construct($field, $value = '', $unique = '', $where = '', $parent = '') |
| 37 |
{ |
| 38 |
parent::__construct($field, $value, $unique, $where, $parent); |
| 39 |
} |
| 40 |
|
| 41 |
/** |
| 42 |
* Render |
| 43 |
* |
| 44 |
* @return void |
| 45 |
*/ |
| 46 |
public function render() |
| 47 |
{ |
| 48 |
echo wp_kses_post($this->field_before()); |
| 49 |
|
| 50 |
echo '<div class="darkify-license text-center">'; |
| 51 |
echo '<h3>' . esc_html__('You\'re using Darkify Lite - No License Needed. Enjoy! 🙂', 'darkify') . '</h3>'; |
| 52 |
|
| 53 |
echo '<p>'. esc_html__('Upgrade to Darkify Pro and unlock all the features.', 'darkify') . '</p>'; |
| 54 |
echo '<a href="http://darkifywp.com/" target="_blank" class="button-secondary">'. esc_html__('Upgrade To Pro Now', 'darkify') . '</a>'; |
| 55 |
|
| 56 |
echo '</div>'; |
| 57 |
echo wp_kses_post($this->field_after()); |
| 58 |
} |
| 59 |
} |
| 60 |
} |
| 61 |
|