'Microdata type', 'desc' => 'Select which type of microdata you want to include.', 'id' => $prefix.'microdata_type', 'type' => 'select', 'options' => array ( 'one' => array ( 'label' => 'None', 'value' => 'none' ), 'two' => array ( 'label' => 'Review', 'value' => 'review' ), 'three' => array ( 'label' => 'Event', 'value' => 'event' ), 'four' => array ( 'label' => 'Music', 'value' => 'music' ) )) ); $aptmicrodata_microdata_review_form_fields = array( array( 'label'=> 'Item being reviewed', 'desc' => 'The title of the item being reviews', 'id' => $prefix.'review_itemreviewed', 'type' => 'text' ), array( 'label'=> 'Rating', 'desc' => 'Give the item a rating 5 being the higest, 1 the lowest', 'id' => $prefix.'review_rating', 'type' => 'select', 'options' => array ( '1' => array ( 'label' => '1', 'value' => '1' ), '1.5' => array ( 'label' => '1.5', 'value' => '1.5' ), '2' => array ( 'label' => '2', 'value' => '2' ), '2.5' => array ( 'label' => '2.5', 'value' => '2.5' ), '3' => array ( 'label' => '3', 'value' => '3' ), '3.5' => array ( 'label' => '3.5', 'value' => '3.5' ), '4' => array ( 'label' => '4', 'value' => '4' ), '4.5' => array ( 'label' => '4.5', 'value' => '4.5' ), '5' => array ( 'label' => '5', 'value' => '5' ) )), array( 'label'=> 'Summary', 'desc' => 'A summary of the item being reviewed', 'id' => $prefix.'review_summary', 'type' => 'textarea' ), ); $aptmicrodata_microdata_event_form_fields = array( array( 'label'=> 'Location', 'desc' => 'The location of the event', 'id' => $prefix.'event_location', 'type' => 'text' ), array( 'label'=> 'Summary', 'desc' => 'A summary of the event', 'id' => $prefix.'event_summary', 'type' => 'textarea' ), array( 'label'=> 'Start date', 'desc' => 'YYYY-MM-DD', 'id' => $prefix.'event_start_date', 'type' => 'text' ), array( 'label'=> 'End date', 'desc' => 'YYYY-MM-DD', 'id' => $prefix.'event_end_date', 'type' => 'text' ), array( 'label'=> 'Type', 'desc' => 'E.g. "Festival", "Concert", "Lecture"', 'id' => $prefix.'event_type', 'type' => 'text' ) ); $aptmicrodata_microdata_music_form_fields = array( array( 'label'=> 'Name', 'desc' => 'Artist name', 'id' => $prefix.'music_name', 'type' => 'text' ), array( 'label'=> 'Album', 'desc' => 'Album name', 'id' => $prefix.'music_album', 'type' => 'text' ), array( 'label'=> 'Tracks', 'desc' => 'Track 1 name', 'id' => $prefix.'music_track_1_name', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Link to track 1', 'id' => $prefix.'music_track_1', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Duration', 'id' => $prefix.'duration_1', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Track 2 name', 'id' => $prefix.'music_track_2_name', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Link to track 2', 'id' => $prefix.'music_track_2', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Duration', 'id' => $prefix.'duration_2', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Track 3 name', 'id' => $prefix.'music_track_3_name', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Link to track 3', 'id' => $prefix.'music_track_3', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Duration', 'id' => $prefix.'duration_3', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Track 4 name', 'id' => $prefix.'music_track_4_name', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Link to track 4', 'id' => $prefix.'music_track_4', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Duration', 'id' => $prefix.'duration_4', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Track 5 name', 'id' => $prefix.'music_track_5_name', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Link to track 5', 'id' => $prefix.'music_track_5', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Duration', 'id' => $prefix.'duration_5', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Track 6 name', 'id' => $prefix.'music_track_6_name', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Duration', 'id' => $prefix.'duration_6', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Link to track 6', 'id' => $prefix.'music_track_6', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Duration', 'id' => $prefix.'duration_6', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Track 7 name', 'id' => $prefix.'music_track_7_name', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Link to track 7', 'id' => $prefix.'music_track_7', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Duration', 'id' => $prefix.'duration_7', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Track 8 name', 'id' => $prefix.'music_track_8_name', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Link to track 8', 'id' => $prefix.'music_track_8', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Duration', 'id' => $prefix.'duration_8', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Track 9 name', 'id' => $prefix.'music_track_9_name', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Link to track 9', 'id' => $prefix.'music_track_9', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Duration', 'id' => $prefix.'duration_9', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Track 10 name', 'id' => $prefix.'music_track_10_name', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Link to track 10', 'id' => $prefix.'music_track_10', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Duration', 'id' => $prefix.'duration_10', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Track 11 name', 'id' => $prefix.'music_track_11_name', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Link to track 11', 'id' => $prefix.'music_track_11', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Duration', 'id' => $prefix.'duration_11', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Track 12 name', 'id' => $prefix.'music_track_12_name', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Link to track 12', 'id' => $prefix.'music_track_12', 'type' => 'text' ), array( 'label'=> '', 'desc' => 'Duration', 'id' => $prefix.'duration_12', 'type' => 'text' ), ); $aptmicrodata_box_top = '
| ';
switch($field['type']) {
//select
case 'select':
echo ' '.$field['desc'].''; break; // text case 'text': echo ' '.$field['desc'].''; break; // textarea case 'textarea': echo ' '.$field['desc'].''; break; } //end switch echo ' |