Exemplo n.º 1
0
function tom_admin_page()
{
    $config = TOMOption::tom_configs();
    add_menu_page($config['page_title'], $config['menu_title'], $config['capability'], $config['menu_slug'], 'tom_options_page', $config['icon_url'], $config['position']);
    if ($config['mode'] == 'full') {
        add_submenu_page($config['menu_slug'], $config['sub_page_title'], $config['sub_menu_title'], $config['sub_capability'], $config['sub_menu_slug'], 'tom_create_options_page');
    }
}
Exemplo n.º 2
0
		        <label for="tom-desc-new-data">
		          Desription :
		        </label>
		        <div class="input">
			        <textarea name="desc" id="tom-desc-new-data" class="input-width"></textarea>
			        <p>
			          Short description of option.
			        </p>
		        </div>
		        <label for="tom-type">
		          Type :
		        </label>
		        <div class="input">
		        <?php 
$config = TOMOption::tom_configs();
?>
			        <select name="type" id="tom-type-new-data" id="tom-type-new-data" class="tom-type" data-container="new-data">
		        	<?php 
foreach ($config['type-options'] as $value => $name) {
    echo '<option value="' . $value . '">' . $name . '</option>';
}
?>
			        </select>
			        <p>
			          Type of option.
			        </p>
			        <div id="new-data-options" class="options-container" style="display:none;" data-default="new-data">
			        	<div class="tom-label-options">Options : </div>
				        <div id="add-opt-new-data" class="input-options">
					        <div data-order="1" class="input-options-group">