# darkify/1.5.1/src/Admin/Framework/fields/license/license.php

Darkify – Dark Mode &amp; Night Mode for Website &amp; Admin (Dark Theme Included), version 1.5.1. 61 lines.

- Page: https://pluginprobe.com/plugins/darkify/1.5.1/code/src/Admin/Framework/fields/license/license.php
- Raw: https://pluginprobe.com/plugins/darkify/1.5.1/raw/src/Admin/Framework/fields/license/license.php
- Modified: 2026-05-04T09:54:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/darkify/1.5.1/code/src/Admin/Framework/fields/license/license.php#L10-L20`.

```php
<?php

/**
 * Framework license field file.
 *
 * @link https://themeatelier.net
 * @since 2.0.0
 *
 * @package darkify_pro
 * @subpackage darkify_pro/Admin
 */

if (! defined('ABSPATH')) {
	die;
} // Cannot access directly.

if (! class_exists('DarkifyField_license')) {
	/**
	 *
	 * Field: license
	 *
	 * @since 2.2.4
	 * @version 2.2.4
	 */
	class DarkifyField_license extends DarkifyFields
	{
		/**
		 * Field constructor.
		 *
		 * @param array  $field The field type.
		 * @param string $value The values of the field.
		 * @param string $unique The unique ID for the field.
		 * @param string $where To where show the output CSS.
		 * @param string $parent The parent args.
		 */
		public function __construct($field, $value = '', $unique = '', $where = '', $parent = '')
		{
			parent::__construct($field, $value, $unique, $where, $parent);
		}

		/**
		 * Render
		 *
		 * @return void
		 */
		public function render()
		{
			echo wp_kses_post($this->field_before());

			echo '<div class="darkify-license text-center">';
			echo '<h2>' . esc_html__('You\'re using Darkify Lite — no license required. Enjoy! 😊', 'darkify') . '</h2>';
			// 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>';
			echo '<h3>' . wp_kses_post('Upgrade to Darkify Pro to unlock advanced features and full control.', 'darkify') . '</h3>';
			echo '<a href="' . esc_url(DARKIFY_DEMO_URL . 'pricing/?ref=1') . '" target="_blank" class="button-secondary">' . esc_html__('Upgrade To Pro', 'darkify') . '</a>';

			echo '</div>';
			echo wp_kses_post($this->field_after());
		}
	}
}

```
