Esempio n. 1
0
    function axiom_options_page_start($args = array())
    {
        $to_flags = array_merge(array('data' => null, 'nesting' => array(), 'radio_as_select' => false, 'add_inherit' => false, 'show_page_layout' => true, 'override' => ''), is_array($args) ? $args : array('add_inherit' => $args));
        global $AXIOM_GLOBALS;
        $AXIOM_GLOBALS['to_flags'] = $to_flags;
        $AXIOM_GLOBALS['to_data'] = empty($args['data']) ? $AXIOM_GLOBALS['options'] : $args['data'];
        // Load required styles and scripts for Options Page
        axiom_options_load_scripts();
        // Prepare javascripts global variables
        axiom_options_prepare_scripts($to_flags['override']);
        ?>
		<div class="axiom_options">
		<?php 
        if ($to_flags['show_page_layout']) {
            ?>
			<form class="axiom_options_form">
		<?php 
        }
        ?>
				<div class="axiom_options_header">
					<div id="axiom_options_logo" class="axiom_options_logo">
						<span class="iconadmin-cog"></span>
						<h2><?php 
        _e('Theme Options', 'axiom');
        ?>
</h2>
					</div>
					<div class="axiom_options_button_import"><span class="iconadmin-download"></span><?php 
        _e('Import', 'axiom');
        ?>
</div>
					<div class="axiom_options_button_export"><span class="iconadmin-upload"></span><?php 
        _e('Export', 'axiom');
        ?>
</div>
		<?php 
        if ($to_flags['show_page_layout']) {
            ?>
					<div class="axiom_options_button_reset"><span class="iconadmin-spin3"></span><?php 
            _e('Reset', 'axiom');
            ?>
</div>
					<div class="axiom_options_button_save"><span class="iconadmin-check"></span><?php 
            _e('Save', 'axiom');
            ?>
</div>
		<?php 
        }
        ?>
				</div>
				<div class="axiom_options_body">
		<?php 
    }
Esempio n. 2
0
<?php

//====================================== Editor area ========================================
if ($post_data['post_edit_enable']) {
    wp_register_script('wp-color-picker', get_site_url() . '/wp-admin/js/color-picker.min.js', array('jquery'), '1.0', true);
    axiom_enqueue_style('fontello-admin', axiom_get_file_url('css/fontello-admin/css/fontello-admin.css'), array(), null);
    axiom_enqueue_style('frontend-editor-style', axiom_get_file_url('js/core.editor/core.editor.css'), array(), null);
    axiom_enqueue_script('frontend-editor', axiom_get_file_url('js/core.editor/core.editor.js'), array(), null, true);
    axiom_enqueue_messages();
    axiom_options_load_scripts();
    axiom_options_prepare_scripts($post_data['post_type']);
    axiom_sc_load_scripts();
    axiom_sc_prepare_scripts();
    ?>
	<div id="frontend_editor">
		<div id="frontend_editor_inner">
			<form method="post">
				<label id="frontend_editor_post_title_label" for="frontend_editor_post_title"><?php 
    _e('Title', 'axiom');
    ?>
</label>
				<input type="text" name="frontend_editor_post_title" id="frontend_editor_post_title" value="<?php 
    echo esc_attr($post_data['post_title']);
    ?>
" />
				<?php 
    wp_editor($post_data['post_content_original'], 'frontend_editor_post_content', array('wpautop' => true, 'textarea_rows' => 16));
    ?>
				<label id="frontend_editor_post_excerpt_label" for="frontend_editor_post_excerpt"><?php 
    _e('Excerpt', 'axiom');
    ?>