';
echo'';
echo'';
echo'';
echo'';
}
function itx_radios($options,$name,$checked,$showa=true) {
$i='A';
foreach ($options as $v=>$type){
if ($showa) echo "$i.";
echo ' '.$type.'
';
$i++;
}
}
function itx_options($options,$selected) {
foreach ( $options as $id => $val ) {
$ret.= '';
}
echo $ret;
}
$vars=get_option('itx_vars');
if (!$vars->time||(time()-$vars->time>3600)){
$getv = wp_remote_get('http://itx.web.id/version.php?what=calotropis&version='.THEME_VERSION);
if ($getv) {
$ver=@json_decode($ver['body']);
if($ver) update_option('itx_vars', $ver);
}
}
if ($reset=get_option('itx_reset')){
if ($reset==1){
delete_option('itx_layout');
delete_option('itx_front');
delete_option('itx_header');
delete_option('itx_bg');
delete_option('itx_menu');
delete_option('itx_links');
} else {
delete_option('itx_'.$reset);
}
delete_option('itx_reset');
}
?>