| 1 |
<?php |
| 2 |
|
| 3 |
if (! defined('ABSPATH')) { |
| 4 |
die; |
| 5 |
|
| 6 |
} // Cannot access directly. |
| 7 |
if (! class_exists('DarkifyField_ta_help')) { |
| 8 |
/** |
| 9 |
* |
| 10 |
* Field: help |
| 11 |
* |
| 12 |
* @since 1.0.0 |
| 13 |
* @version 1.0.0 |
| 14 |
*/ |
| 15 |
class DarkifyField_ta_help extends DarkifyFields |
| 16 |
{ |
| 17 |
|
| 18 |
/** |
| 19 |
* Help field constructor. |
| 20 |
* |
| 21 |
* @param array $field The field type. |
| 22 |
* @param string $value The values of the field. |
| 23 |
* @param string $unique The unique ID for the field. |
| 24 |
* @param string $where To where show the output CSS. |
| 25 |
* @param string $parent The parent args. |
| 26 |
*/ |
| 27 |
public function __construct($field, $value = '', $unique = '', $where = '', $parent = '') |
| 28 |
{ |
| 29 |
|
| 30 |
parent::__construct($field, $value, $unique, $where, $parent); |
| 31 |
} |
| 32 |
|
| 33 |
/** |
| 34 |
* Render |
| 35 |
* |
| 36 |
* @return void |
| 37 |
*/ |
| 38 |
public function render() |
| 39 |
{ |
| 40 |
echo wp_kses_post($this->field_before()); |
| 41 |
|
| 42 |
require_once DARKIFY_PATH . 'src/Admin/HelpPage/Help.php'; |
| 43 |
$help = new \ThemeAtelier\Darkify\Admin\HelpPage\Help(); |
| 44 |
$help->help_page_callback(); |
| 45 |
|
| 46 |
echo wp_kses_post($this->field_after()); |
| 47 |
} |
| 48 |
} |
| 49 |
} |
| 50 |
|