<?php
    
    // prevent direct file access
	if( !defined( 'ABSPATH' ) ) exit;
    
    // template script
    function pixe_plugin_settings_template_script(){
        pixe_enqueue_admin_styles(array('utility', 'preset', 'settings'));
        pixe_enqueue_admin_scripts(array('wp-media', 'jquery', 'utility', 'template-settings'));
        wp_localize_script('pixe-template-settings', 'pixeData', pixe_plugin_settings_script_data(array('template', 'post-type', 'taxonomy')));
    }

    // content area
    function pixe_print_plugin_settings_template_script(){
?>
(function($){
    "use strict";
    $(document).ready(function(){
        $('#pixe-plugin-settings-content').each(function(){
            $.pixeTemplateSettings.init({
                container: $(this),
                hasEditor: false
            });
        });
    });
})(jQuery);
<?php
    }
    function pixe_plugin_settings_template(){
        pixe_plugin_settings_head('template');

        echo '<div class="pixe-plugin-settings-content pixe-style-tab-head" id="pixe-plugin-settings-content" ></div>';
        ob_start();
        pixe_print_plugin_settings_template_script();
        wp_add_inline_script('pixe-inline', ob_get_clean());
    }