section_identifier = $section_identifier; $section_object = $sec_obj->mpo_section_exists(); if (is_object($section_object)) { $content_type = $section_object->section_meta_key; $section_name = $section_object->section_name; switch ($content_type) { case 'specific_content': $display_specific_content_block = 1; if ( is_serial($section_object->section_meta_value) ) { $combined_value = unserialize($section_object->section_meta_value); $post_ids = $combined_value['post_ids']; $post_type = $combined_value['post_type']; } else { $post_type = 'post'; $post_ids = $section_object->section_meta_value; } break; case 'category_radio': $display_category_radio_block = 1; if ( is_serial($section_object->section_meta_value) ) { $combined_value = unserialize($section_object->section_meta_value); $is_checked = $combined_value['is_checked']; if ($is_checked) { $post_ids = $combined_value['post_ids']; } else { $num_posts = $combined_value['length']; } $category_id = $combined_value['category_id']; } else {//This section of code is for backward compatability $category_id = $section_object->section_meta_value; $num_posts = $section_object->length; } break; case 'xml_feed': $display_xml_feed_block = 1; $feed_url = $section_object->section_meta_value; $num_posts_xml_feed = $section_object->length; break; default: $display_block = 0; } } global $selection_criteria; mpo_display_radio_buttons($selection_criteria, 'content_type', $content_type ); ?>