'; // Begin the field table and loop echo ''; foreach ($background_setting_meta_fields as $field) { // get value of this field if it exists for this post $meta = get_post_meta($post->ID, $field['name'], true); //echo $meta; // begin a table row with if($field['name']=='bg_destance_x' || $field['name']=='bg_padding') $class="bg_tr"; echo ''; }// end foreach $color_bg=get_post_meta($post->ID, 'color_bg', true); if($color_bg=='') $color_bg='#ff0000'; echo ''; echo '
'; switch ($field['type']) { case 'text' : Mnbaa_Watermark_small_input($field['name'], $meta); break; case 'select' : echo '
'.__($field['desc'], 'mnbaa_watermark').''; break; case 'hidden' : Mnbaa_Watermark_hidden($field['name'], $meta); break; }//end switch echo '
'; echo ''; echo '
'; // end table ?>