PluginProbe
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) / 1.5.1
Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) v1.5.1
2.1.3 2.1.2 2.1.1 2.1.0 2.0.4 2.0.3 2.0.2 2.0.1 2.0.0 1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 trunk 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 All 57 releases
darkify / src / Admin / Framework / fields / license / license.php

license.php in Darkify – Dark Mode & Night Mode for Website & Admin (Dark Theme Included) 1.5.1, at src/Admin/Framework/fields/license/license.php

61 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 '<h2>' . esc_html__('You\'re using Darkify Lite — no license required. Enjoy! 😊', 'darkify') . '</h2>';
52 // echo '<h3>' . wp_kses_post('Unlock all Darkify Pro features – now with up to 80% Black Friday OFF!<br>Click the button below to redeem your exclusive discount.', 'darkify') . '</h3>';
53 echo '<h3>' . wp_kses_post('Upgrade to Darkify Pro to unlock advanced features and full control.', 'darkify') . '</h3>';
54 echo '<a href="' . esc_url(DARKIFY_DEMO_URL . 'pricing/?ref=1') . '" target="_blank" class="button-secondary">' . esc_html__('Upgrade To Pro', 'darkify') . '</a>';
55
56 echo '</div>';
57 echo wp_kses_post($this->field_after());
58 }
59 }
60 }
61