the_opt[$key] ) ) $this->the_opt[$key] = $the_coa[$key]['default']; ?>
' . $the_coa[$key]['description'] . '';
break;
case 'chk':
$this->print_option( $the_coa[$key], $this->the_opt[$key], false, $this->option_name, $key , '
' . $the_coa[$key]['description'] . '', '' );
break;
case 'sel':
$this->print_option( $the_coa[$key], $this->the_opt[$key], false, $this->option_name, $key , '
' . $the_coa[$key]['description'] . '', '' );
break;
case 'opt':
$this->print_option( $the_coa[$key], $this->the_opt[$key], false, $this->option_name, $key , '
' . $the_coa[$key]['description'] . '', '' );
break;
case 'col':
$this->print_option( $the_coa[$key], $this->the_opt[$key], false, $this->option_name, $key , '
' . $the_coa[$key]['description'] . '
', '
' );
break;
case 'url':
if ( $key == 'boozurk_logo' )
$after = '
' . __( 'Choose Image' , 'boozurk' ) . '';
$this->print_option( $the_coa[$key], $this->the_opt[$key], false, $this->option_name, $key , '
' . $the_coa[$key]['description'] . '', $after );
break;
case 'txt':
$this->print_option( $the_coa[$key], $this->the_opt[$key], false, $this->option_name, $key , '
' . $the_coa[$key]['description'] . '', '' );
break;
case 'int':
$this->print_option( $the_coa[$key], $this->the_opt[$key], false, $this->option_name, $key , '
' . $the_coa[$key]['description'] . '', '' );
break;
case 'txtarea':
$this->print_option( $the_coa[$key], $this->the_opt[$key], false, $this->option_name, $key , '
' . $the_coa[$key]['description'] . '', '' );
break;
case 'catcol':
echo '
' . $the_coa[$key]['description'] . '';
$args = array(
'orderby' => 'name',
'order' => 'ASC',
'hide_empty' => 0,
);
$categories = get_categories( $args );
foreach( $categories as $category ) {
$hexnumber = '#';
for ( $i2=1; $i2<=3; $i2++ ) {
$hexnumber .= dechex( rand( 64, 255 ) );
}
$catcolor = isset( $this->the_opt[$key][$category->term_id] ) ? $this->the_opt[$key][$category->term_id] : $hexnumber;
$this->print_option( array( 'type' => 'col', 'default' => $the_coa[$key]['defaultcolor'] ), $catcolor, false, $this->option_name, $key . '][' . $category->term_id, '
' . $category->name . ' (' . $category->count . ')
', '' . __( 'Default' , 'boozurk' ) . ': ' . $the_coa[$key]['defaultcolor'] . '
' );
}
break;
}
?>
'; continue;} ?>
' . $the_coa[$subkey]['info'] . '' : ''; ?>
the_opt[$subkey]) ) $this->the_opt[$subkey] = $the_coa[$subkey]['default']; ?>
print_option( $the_coa[$subkey], $this->the_opt[$subkey], false, $this->option_name, $subkey , '
' . $the_coa[$subkey]['description'] . ' : ', $after );
break;
case 'sel':
$this->print_option( $the_coa[$subkey], $this->the_opt[$subkey], false, $this->option_name, $subkey , '
' . $the_coa[$subkey]['description'] . ' : ', $after );
break;
case 'opt':
$this->print_option( $the_coa[$subkey], $this->the_opt[$subkey], false, $this->option_name, $subkey , '
' . $the_coa[$subkey]['description'] . ' : ', $after );
break;
case 'col':
$this->print_option( $the_coa[$subkey], $this->the_opt[$subkey], false, $this->option_name, $subkey , '
' . $the_coa[$subkey]['description'] . '
', '
' . $after );
break;
case 'url':
if ( $subkey == 'boozurk_logo' )
$after = '
' . __( 'Choose Image' , 'boozurk' ) . '' . $after;
$this->print_option( $the_coa[$subkey], $this->the_opt[$subkey], false, $this->option_name, $subkey , '
' . $the_coa[$subkey]['description'] . ' : ', $after );
break;
case 'txt':
$this->print_option( $the_coa[$subkey], $this->the_opt[$subkey], false, $this->option_name, $subkey , '
' . $the_coa[$subkey]['description'] . ' : ', $after );
break;
case 'int':
$this->print_option( $the_coa[$subkey], $this->the_opt[$subkey], false, $this->option_name, $subkey , '
' . $the_coa[$subkey]['description'] . ' : ', $after );
break;
case 'txtarea':
$this->print_option( $the_coa[$subkey], $this->the_opt[$subkey], false, $this->option_name, $subkey , '
' . $the_coa[$subkey]['description'] . ' : ', $after );
break;
case 'catcol':
echo '
' . $the_coa[$subkey]['description'] . '';
$args = array(
'orderby' => 'name',
'order' => 'ASC',
'hide_empty' => 0,
);
$categories = get_categories( $args );
foreach( $categories as $category ) {
$hexnumber = '#';
for ( $i2=1; $i2<=3; $i2++ ) {
$hexnumber .= dechex( rand( 64, 255 ) );
}
$catcolor = isset( $this->the_opt[$subkey][$category->term_id] ) ? $this->the_opt[$subkey][$category->term_id] : $hexnumber;
$this->print_option( array( 'type' => 'col', 'default' => $the_coa[$subkey]['defaultcolor'] ), $catcolor, false, $this->option_name, $subkey . '][' . $category->term_id, '
' . $category->name . ' (' . $category->count . ')
', '' . __( 'Default' , 'boozurk' ) . ': ' . $the_coa[$subkey]['defaultcolor'] . '
' );
}
break;
}
?>
' . __('requires','boozurk') . ': ' . $the_coa[$the_coa[$key]['req']]['description']; ?>