Ticket #720: patch_720_meta.diff
File patch_720_meta.diff, 3.1 KB (added by , 10 years ago) |
---|
-
wcpt/wcpt-wordcamp/wordcamp-admin.php
119 119 case 'textarea' : 120 120 update_post_meta( $post_id, $key, $values[$key] ); 121 121 break; 122 123 case 'checkbox' : 124 if ( !empty( $values[$key] ) && $values[$key] == 'on' ) 125 update_post_meta( $post_id, $key, 'Yes' ); 126 else 127 update_post_meta( $post_id, $key, 'No' ); 128 break; 122 129 123 130 case 'date' : 124 131 if ( !empty( $values[$key] ) ) … … 172 179 'Maximum Capacity' => 'text', 173 180 'Available Rooms' => 'text', 174 181 'Website URL' => 'text', 175 'Contact Information' => 'textarea' 182 'Contact Information' => 'textarea', 183 'Is Exhibition Space Available ?' => 'checkbox', 176 184 ); 177 185 break; 178 186 … … 218 226 'Maximum Capacity' => 'text', 219 227 'Available Rooms' => 'text', 220 228 'Website URL' => 'text', 221 'Contact Information' => 'textarea' 229 'Contact Information' => 'textarea', 230 'Is Exhibition Space Available ?' => 'checkbox' 222 231 ); 223 232 break; 224 233 … … 720 729 721 730 <?php break; 722 731 732 case 'checkbox' : ?> 733 <span>Space is available :  </span> 734 <input type="checkbox" name="<?php echo $object_name; ?>" id="<?php echo $object_name; ?>" <?php if ( !empty( get_post_meta( $post_id, $key, true ) ) && get_post_meta( $post_id, $key, true ) == 'Yes' ) echo "checked"; ?>/> 735 736 <?php break; 737 723 738 default: 724 739 do_action( 'wcpt_metabox_value', $key, $value, $object_name ); 725 740 break; -
wordcamp-organizer-reminders/wcor-mailer.php
188 188 '[venue_available_rooms]', 189 189 '[venue_url]', 190 190 '[venue_contact_info]', 191 '[venue_has_exihibition_space]', 191 192 ); 192 193 193 194 $replace = array( … … 221 222 empty( $wordcamp_meta['Available Rooms'][0] ) ? 'N/A' : $wordcamp_meta['Available Rooms'][0], 222 223 empty( $wordcamp_meta['Website URL'][0] ) ? 'N/A' : $wordcamp_meta['Website URL'][0], 223 224 empty( $wordcamp_meta['Contact Information'][0] ) ? 'N/A' : $wordcamp_meta['Contact Information'][0], 225 empty( $wordcamp_meta['Is Exhibition Space Available ?'][0] ) ? 'N/A' : $wordcamp_meta['Is Exhibition Space Available?'][0], 224 226 ); 225 227 226 228 return str_replace( $search, $replace, $content ); -
wordcamp-organizer-reminders/wcor-reminder.php
207 207 <li>[venue_available_rooms]</li> 208 208 <li>[venue_url]</li> 209 209 <li>[venue_contact_info]</li> 210 <li>[venue_has_exihibition_space]</li> 210 211 </ul> 211 212 212 213 <?php