general_post_settings();
}
public function get_defaults()
{
return [
'custom_css' => '',
'custom_js' => ''
];
}
/**
* Post Status Columns
*/
public function custom_css_js_fields(&$fields)
{
$fields[] = array(
'type' => 'subheading',
'content' => Utils::adminfiy_help_urls(
__('Custom CSS/JS Settings', 'adminify'),
'https://wpadminify.com/kb/wp-adminify-options-panel/#custom-css-js',
'https://www.youtube.com/playlist?list=PLqpMw0NsHXV-EKj9Xm1DMGa6FGniHHly8',
'https://www.facebook.com/groups/jeweltheme',
'https://wpadminify.com/support/'
)
);
$fields[] = array(
'id' => 'custom_css',
'type' => 'code_editor',
'title' => __('Custom CSS (Admin Area)', 'adminify'),
'desc' => __('Write your own Custom CSS for WordPress Admin here', 'adminify'),
'settings' => array(
'theme' => 'mbo',
'mode' => 'css',
),
'default' => '
/* Your Custom CSS Code here */'
);
$fields[] = array(
'id' => 'custom_js',
'type' => 'code_editor',
'title' => __('Custom JavaScript (Admin Area)', 'adminify'),
'desc' => 'Write your own Custom Script for WordPress Admin here',
'settings' => array(
'theme' => 'dracula',
'mode' => 'javascript',
)
);
}
public function general_post_settings()
{
if (!class_exists('ADMINIFY')) {
return;
}
$fields = [];
$this->custom_css_js_fields($fields);
// Custom CSS Settings
\ADMINIFY::createSection($this->prefix, array(
'title' => __('Custom CSS/JS', 'adminify'),
'icon' => 'fas fa-code',
'fields' => $fields
));
}
}