Exemplo n.º 1
0
            if ($_POST) {
                foreach ($_POST as $key => $val) {
                    if (is_array($val)) {
                        foreach ($val as $key1 => $val1) {
                            if (is_array($val1)) {
                                $val12 = implode(',', $val1);
                            } else {
                                $val12 = $val1;
                            }
                            if ($key1) {
                                update_option($key1, $val12);
                            }
                        }
                    } else {
                        if ($key) {
                            update_option($key, $val);
                        }
                    }
                }
            }
            exit;
        } elseif ($_REQUEST['ajaxact'] == 'reset_options') {
            $option_tree_info = temp_get_option_tree_informations();
            foreach ($option_tree_info as $option_tree_info_obj) {
                if ($option_tree_info_obj->item_id) {
                    update_option($option_tree_info_obj->item_id, '');
                }
            }
        }
    }
}
Exemplo n.º 2
0
<?php

$ot_array = temp_get_option_tree_informations();
?>
<div id="framework_wrap" class="wrap">
	
	<div id="header">
    <h1>Templatic</h1>
    
    
    <div class="button_bar">
    	 <input type="button" value="<?php 
_e('Theme Guide', 'templatic');
?>
" class="button-framework  theme_guide"  onclick="window.location.href='<?php 
echo apply_filters('templ_theme_guide_link_filter', 'http://templatic.com/theme-support/');
?>
'" />
        
        <input type="button" value="<?php 
_e('Support Forum', 'templatic');
?>
" class="button-framework support_forum"  onclick="window.location.href='<?php 
echo apply_filters('templ_theme_forum_link_filter', 'http://templatic.com/forums/');
?>
'" />
    </div>
  
 	</div>
  
  <div id="content_wrap">