//hidden field //to assign the slider to antenna $slider->addHidden('slide_antenna', array('name' => 'antenna', 'std' => get_cat_if_user($current_user->ID)), false); /* * Don't Forget to Close up the meta box deceleration */ //Finish Meta Box Deceleration $slider->Finish(); /** * PARTNERS */ $c_partner = array('id' => 'upload_img_partner', 'title' => __('Partners logos', 'iftheme'), 'pages' => array('if_partner'), 'context' => 'normal', 'priority' => 'high', 'fields' => array(), 'local_images' => true, 'use_with_theme' => true); $partner = new AT_Meta_Box($c_partner); $repeater_fields_p[] = $partner->addText('partner_title', array('name' => __('Name of the partner', 'iftheme')), true); $repeater_fields_p[] = $partner->addText('link_to_partner', array('name' => __('Link', 'iftheme')), true); $repeater_fields_p[] = $partner->addImage('image_logo', array('name' => __('Logo', 'iftheme')), true); //repeater block $partner->addRepeaterBlock('re_', array('inline' => true, 'name' => __('Partners logos', 'iftheme'), 'fields' => $repeater_fields_p)); //hidden field //to assign the slider to antenna $partner->addHidden('partner_antenna', array('name' => 'antenna', 'std' => get_cat_if_user($current_user->ID)), false); //Finish Meta Box Deceleration $partner->Finish(); //DATA for INSCRIPTION FORM $inscription = array('id' => 'form_infos', 'title' => __('Booking informations', 'iftheme'), 'pages' => array('post'), 'context' => 'advanced', 'priority' => 'low', 'fields' => array(), 'local_images' => true, 'use_with_theme' => true); $booking = new AT_Meta_Box($inscription); $booking->addCheckbox('if_book_enable', array('name' => __('Open booking', 'iftheme'), 'desc' => __("By checking this box, you enable the booking for this event.", 'iftheme'))); $booking->addText('if_book_mail', array('name' => __('Email', 'iftheme'), 'desc' => __("Email to whom send the booking", 'iftheme'))); $booking->addWysiwyg('if_book_desc', array('name' => __('Details', 'iftheme'), 'desc' => __("Some information you want to add at the top of the booking form", 'iftheme'), 'style' => 'height:150px')); $booking->Finish(); //end INSCRIPTION