Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
wp-shamsi
/
lib
/
Options
/
fields
:
content.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php if (! defined('ABSPATH')) { die; } // Cannot access pages directly. /** * * Field: Content * */ if (! class_exists('Exopite_Simple_Options_Framework_Field_content')) { class Exopite_Simple_Options_Framework_Field_content extends Exopite_Simple_Options_Framework_Fields { public function __construct($field, $value = '', $unique = '', $config = array()) { parent::__construct($field, $value, $unique, $config); } public function output() { $content = (isset($this->field['content'])) ? $this->field['content'] : ''; if (isset($this->field['callback'])) { $callback = $this->field['callback']; if (is_callable($callback['function'])) { $args = (isset($callback['args'])) ? $callback['args'] : ''; $content = call_user_func($callback['function'], $args); } } echo wp_kses($this->element_before(), array_merge(wp_kses_allowed_html('post'), wpsh_custom_html_tags())); echo '<div' . esc_attr($this->element_class()) . esc_attr($this->element_attributes()) . '>' . wp_kses_post($content) . '</div>'; echo wp_kses($this->element_after(), array_merge(wp_kses_allowed_html('post'), wpsh_custom_html_tags())); } } }