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

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

- Page: https://pluginprobe.com/plugins/darkify/1.4.4/code/src/Admin/Framework/fields/license/license.php
- Raw: https://pluginprobe.com/plugins/darkify/1.4.4/raw/src/Admin/Framework/fields/license/license.php
- Modified: 2025-06-23T10:08:10+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.4.4/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 '<h3>' . esc_html__('You\'re using Darkify Lite - No License Needed. Enjoy! 🙂', 'darkify') . '</h3>';

			echo '<p>'. esc_html__('Upgrade to Darkify Pro and unlock all the features.', 'darkify') . '</p>';
			echo '<a href="http://darkifywp.com/" target="_blank" class="button-secondary">'. esc_html__('Upgrade To Pro Now', 'darkify') . '</a>';

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

```
