function widget($args, $instance) { extract($args); global $imic_options; $search_widget_blocks = $imic_options['search-widget-blocks']['Enabled']; if (count($search_widget_blocks) > 1) { // these are the widget options $post_title = apply_filters('widget_title', $instance['title']); echo $args['before_widget']; if (!empty($instance['title'])) { echo $args['before_title']; echo apply_filters('widget_title', $post_title, $instance, $this->id_base); echo $args['after_title']; } echo '<div class="full-search-form"> <form method="get" action="' . home_url() . '/">'; echo '<input type="hidden" class="form-control" name="s" id="s" value="' . __('Search1', 'framework') . '" />'; foreach ($search_widget_blocks as $key => $value) { switch ($key) { case 'property_type': $args_terms = array('orderby' => 'count', 'hide_empty' => true); $propertyterms = get_terms('property-type', $args_terms); if (!empty($propertyterms)) { $output = '<select name="propery_type" class="form-control selectpicker">'; $output .= '<option selected>' . __('Property Type', 'framework') . '</option>'; foreach ($propertyterms as $term) { $term_name = $term->name; $term_slug = $term->slug; $output .= "<option value='" . $term_slug . "'>" . $term_name . "</option>"; } $output .= "</select>"; echo $output; } break; case 'contract': $args_contract = array('orderby' => 'count', 'hide_empty' => true); $property_contract_type_terms = get_terms('property-contract-type', $args_contract); if (!empty($property_contract_type_terms)) { $output = '<select name="propery_contract_type" class="form-control selectpicker">'; $output .= '<option selected>' . __('Contract', 'framework') . '</option>'; foreach ($property_contract_type_terms as $term) { $term_name = $term->name; $term_slug = $term->slug; $output .= "<option value='" . $term_slug . "'>" . $term_name . "</option>"; } $output .= "</select>"; echo $output; } break; case 'location': $imic_country_wise_city = imic_get_multiple_city(); if (!empty($imic_country_wise_city)) { echo '<select name="propery_location" class="form-control selectpicker"> <option selected>' . __('State', 'framework') . '</option>'; foreach ($imic_country_wise_city as $key => $value) { echo "<option value='" . $key . "'>" . $value . "</option>"; } echo '</select>'; } break; case 'baths': echo '<div><label>' . __('Min Baths', 'framework') . '</label> <select name="baths" class="form-control selectpicker">'; echo '<option selected>' . __('Any', 'framework') . '</option>'; $baths_options = $imic_options['properties_baths']; foreach ($baths_options as $baths) { echo "<option value='" . $baths . "'>" . $baths . "</option>"; } echo '</select></div>'; break; case 'city': $args_c = array('orderby' => 'count', 'hide_empty' => true); $terms = get_terms(array('city-type'), $args_c); if (!empty($terms)) { echo '<select name="property_city" class="form-control selectpicker"> <option selected>' . __('City', 'framework') . '</option>'; foreach ($terms as $term_data) { echo "<option value='" . $term_data->slug . "'>" . $term_data->name . "</option>"; } echo '</select>'; } break; case 'beds': echo '<label>' . __('Min Beds', 'framework') . '</label> <select name="beds" class="form-control selectpicker">'; echo '<option selected>' . __('Any', 'framework') . '</option>'; $beds_options = $imic_options['properties_beds']; foreach ($beds_options as $beds) { echo "<option value='" . $beds . "'>" . $beds . "</option>"; } echo '</select>'; break; case 'price': echo '<div><label>' . __('Min Price', 'framework') . '</label> <select name="min_price" class="form-control selectpicker">'; echo '<option selected>' . __('Any', 'framework') . '</option>'; $m_price_value = $imic_options['properties_price_range']; foreach ($m_price_value as $price_value) { echo "<option value='" . $price_value . "'>" . $currency_symbol . " " . $price_value . "</option>"; } echo '</select></div>'; echo '<div> <label>' . __('Max Price', 'framework') . '</label> <select name="max_price" class="form-control selectpicker">'; echo '<option selected>' . __('Any', 'framework') . '</option>'; $max_price_value = $imic_options['properties_price_range']; foreach ($max_price_value as $price_value) { echo "<option value='" . $price_value . "'>" . $currency_symbol . " " . $price_value . "</option>"; } echo '</select> </div>'; break; case 'area': echo '<div> <label>' . __('Min Area (Sq Ft)', 'framework') . '</label> <input type="text" name="min_area" class="form-control" placeholder="' . __('Any', 'framework') . '"> </div> <div> <label>' . __('Max Area (Sq Ft)', 'framework') . '</label> <input type="text" name="max_area" class="form-control" placeholder="' . __('Any', 'framework') . '"> </div>'; break; case 'search_by': echo '<div class="search_by"> <div> <label>' . __('Search By', 'framework') . '</label> <select name="search_by" class="form-control selectpicker">'; echo '<option selected>' . __('Search By', 'framework') . '</option>'; echo "<option value='Id'>" . __('Id', 'framework') . "</option>"; echo "<option value='Address'>" . __('Address', 'framework') . "</option>"; echo "<option value='Pincode'>" . __('Pincode', 'framework') . "</option>"; echo '</select> </div> <div>'; echo '<label>' . __('keyword', 'framework') . '</label> <input type="text" name="search_by_keyword" class="form-control search_by_keyword" placeholder="' . _e('Please enter ', 'framework') . '"> </div> </div>'; break; } } echo '<button type="submit" class="btn btn-primary btn-block"><i class="fa fa-search"></i> ' . __('Search', 'framework') . '</button> </form> </div>'; echo $args['after_widget']; } }
/* Our Agent Page Become an Agent Details (Our Agent Meta Box 1) ========================================================= */ $meta_boxes[] = array('id' => 'template-our-agents1', 'title' => __('Become an Agent Options', 'framework'), 'pages' => array('page'), 'show_names' => true, 'fields' => array(array('name' => __('Become an Agent Button Text', 'framework'), 'id' => $prefix . 'agent_become_agent_text', 'desc' => __("Enter Become an Agent text to display on button.", 'framework'), 'type' => 'text', 'std' => 'Become an agent'), array('name' => __('Become an Agent Button URL', 'framework'), 'id' => $prefix . 'agent_become_agent_url', 'desc' => __("Enter Become an Agent url to redirect.", 'framework'), 'type' => 'url'))); /* Property Submit Template ========================================================= */ $meta_boxes[] = array('id' => 'template-blog1', 'title' => __('Blog Type', 'framework'), 'pages' => array('page'), 'show_names' => true, 'fields' => array(array('name' => __('Blog Type', 'framework'), 'id' => $prefix . 'blog_type', 'desc' => __("Select type of blog.", 'framework'), 'type' => 'select', 'options' => array('masonry' => __('Masonry', 'framework'), 'timeline' => __('Timeline', 'framework')), 'std' => 'masonry'))); /* Property Submit Template ========================================================= */ $meta_boxes[] = array('id' => 'template-submit-property1', 'title' => __('Property Status', 'framework'), 'pages' => array('page'), 'show_names' => true, 'fields' => array(array('name' => __('Property Status', 'framework'), 'id' => $prefix . 'property_status', 'desc' => __("Select Status for Property.", 'framework'), 'type' => 'select', 'options' => array('draft' => __('Pending Review', 'framework'), 'publish' => __('Publish', 'framework')), 'std' => 'draft'))); /* Slide Meta Box ================================================== */ $meta_boxes[] = array('id' => 'slide_meta_box', 'title' => __('Properties', 'framework'), 'pages' => array('slide'), 'fields' => array(array('name' => __('Property list', 'framework'), 'id' => $prefix . "property_listing", 'type' => 'post', 'post_type' => 'property', 'field_type' => 'select_advanced', 'query_args' => array('post_status' => 'publish', 'posts_per_page' => '-1')))); $meta_boxes[] = array('id' => 'property_banner_meta_box', 'title' => __('Property Banner Meta Box', 'framework'), 'pages' => array('property'), 'fields' => array(array('name' => __('Property Banner Type', 'framework'), 'id' => $prefix . 'property_banner_type', 'desc' => __('Select Banner Type.', 'framework'), 'type' => 'select', 'options' => array('featured_image' => __('Featured Image', 'framework'), 'map' => __('Map', 'framework'), 'default_image' => __('Default Image', 'framework'))))); /* Property Meta Box ================================================== */ $meta_boxes[] = array('id' => 'slide_meta_box', 'title' => __('Property Details', 'framework'), 'pages' => array('property'), 'fields' => array(array('name' => __('Property ID', 'framework'), 'id' => $prefix . 'property_site_id', 'desc' => __("This field will automatically fill, do not edit until required.", 'framework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Property Address', 'framework'), 'id' => $prefix . 'property_site_address', 'desc' => __("Enter the Property Address.", 'framework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('id' => $prefix . 'lat_long', 'name' => __('Location', 'meta-box'), 'type' => 'map', 'std' => '-6.233406,-35.049906,15', 'style' => 'width: 500px; height: 400px', 'address_field' => 'imic_property_site_address'), array('name' => __('Province', 'framework'), 'id' => $prefix . 'property_site_city', 'desc' => __('Select State/City for property.', 'framework'), 'type' => 'select', 'options' => imic_get_multiple_city()), array('name' => __('Property Value', 'framework'), 'id' => $prefix . 'property_price', 'desc' => __("Enter the Property Value.", 'framework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Property Area', 'framework'), 'id' => $prefix . 'property_area', 'desc' => __("Enter the Property Area.", 'framework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Baths', 'framework'), 'id' => $prefix . 'property_baths', 'desc' => __("Enter the Number of Baths.", 'framework'), 'type' => 'text', 'std' => ''), array('name' => __('Beds', 'framework'), 'id' => $prefix . 'property_beds', 'desc' => __("Enter the Number of Bedrooms.", 'framework'), 'type' => 'text', 'std' => ''), array('name' => __('Parking', 'framework'), 'id' => $prefix . 'property_parking', 'desc' => __("Enter the Number of Parkings.", 'framework'), 'type' => 'text', 'std' => ''), array('name' => __('Property Sights', 'framework'), 'id' => $prefix . 'property_sights', 'desc' => __("Upload Property sights.", 'framework'), 'type' => 'image_advanced', 'max_file_uploads' => 30), array('name' => __('Amenities', 'framework'), 'id' => $prefix . 'property_amenities', 'desc' => __("Enter the Amenities of Parkings.", 'framework'), 'type' => 'text', 'clone' => true, 'std' => ''), array('name' => __('Featured Property', 'framework'), 'id' => $prefix . 'featured_property', 'desc' => __('Select Yes to make this property featured.', 'framework'), 'type' => 'select', 'options' => array('0' => __('No', 'framework'), '1' => __('Yes', 'framework')), 'std' => 0), array('name' => __('Property Slide', 'framework'), 'id' => $prefix . 'slide_property', 'desc' => __('Select Yes to display this property in homepage slider.', 'framework'), 'type' => 'select', 'options' => array('0' => __('No', 'framework'), '1' => __('Yes', 'framework')), 'std' => 0), array('name' => __('Property Pincode', 'framework'), 'id' => $prefix . 'property_pincode', 'desc' => __('Enter the Pincode of Property', 'framework'), 'type' => 'text'), array('name' => __('Property Custom City', 'framework'), 'id' => $prefix . 'property_custom_city', 'desc' => __('Do not Delete this field', 'framework'), 'type' => 'hidden'), array('name' => __('Property Email Status', 'framework'), 'id' => $prefix . 'property_email_status', 'desc' => __('Do not Delete this field', 'framework'), 'type' => 'hidden'), array('name' => __('Property Zoom Option', 'framework'), 'id' => $prefix . 'property_zoom_option', 'desc' => __('Enter the Zoom level for Property Map', 'framework'), 'type' => 'text'), array('name' => __('Contact email', 'framework'), 'id' => $prefix . 'project_email', 'desc' => __('Contact email for this project', 'framework'), 'type' => 'text'), array('name' => __('Hacker?', 'framework'), 'id' => 'avnt_hacker', 'desc' => __('Looking for a Hacker?', 'framework'), 'type' => 'checkbox'), array('name' => __('Hacker skills', 'framework'), 'id' => 'avnt_hacker_text', 'type' => 'text'), array('name' => __('Hustler?', 'framework'), 'id' => 'avnt_hustler', 'desc' => __('Looking for a Hustler?', 'framework'), 'type' => 'checkbox'), array('name' => __('Hustler skills', 'framework'), 'id' => 'avnt_hustler_text', 'type' => 'text'), array('name' => __('Hacker?', 'framework'), 'id' => 'avnt_creative', 'desc' => __('Looking for a Creative?', 'framework'), 'type' => 'checkbox'), array('name' => __('Creative skills', 'framework'), 'id' => 'avnt_creative_text', 'type' => 'text'))); /* Testimonial Meta Box ===================================================*/ $meta_boxes[] = array('id' => 'testimonial_meta_box', 'title' => __('Testimonial Meta Box', 'framework'), 'pages' => array('testimonials'), 'fields' => array(array('name' => __('Company Name', 'framework'), 'id' => $prefix . 'client_company', 'desc' => __("Enter the Company for Client.", 'framework'), 'type' => 'text', 'clone' => false, 'std' => ''), array('name' => __('Client Url', 'framework'), 'id' => $prefix . 'client_co_url', 'desc' => __("Enter the Client URL.", 'framework'), 'type' => 'url'))); /* * ** Gallery Pagination Meta Box 1 *** */ $meta_boxes[] = array('id' => 'template-gallery1', 'title' => __('Gallery to show', 'framework'), 'pages' => array('page'), 'show_names' => true, 'fields' => array(array('name' => __('Gallery Image', 'framework'), 'id' => $prefix . 'gallery_images', 'desc' => __("Enter Gallery Image.", 'framework'), 'type' => 'image_advanced'), array('name' => __('Gallery Type', 'framework'), 'id' => $prefix . 'gallery_type', 'desc' => __('Select gallery type.', 'framework'), 'type' => 'select', 'options' => array('0' => __('Grid', 'framework'), '1' => __('Masonry', 'framework')), 'std' => 0), array('name' => __('Number of Gallery to show.', 'framework'), 'id' => $prefix . 'gallery_pagination_to_show_on', 'desc' => __("Enter number of images to show on a page.", 'framework'), 'type' => 'text', 'std' => ''), array('name' => __('Design Layout', 'framework'), 'id' => $prefix . 'gallery_pagination_columns_layout', 'desc' => __("Choose column layout.", 'framework'), 'type' => 'select', 'options' => array('2' => __('2 Column', 'framework'), '3' => __('3 Column', 'framework'), '4' => __('4 Column', 'framework')), 'std' => '3'))); /* Gallery Meta Box ================================================== */ $meta_boxes[] = array('id' => 'gallery_meta_box', 'title' => __('Post Meta Box', 'framework'), 'pages' => array('post'), 'fields' => array(array('name' => __('Link Url', 'framework'), 'id' => $prefix . 'gallery_link_url', 'desc' => __("Enter the Link URL.", 'framework'), 'type' => 'url'), array('name' => __('Gallery Image', 'framework'), 'id' => $prefix . 'gallery_images', 'desc' => __("Enter Gallery Image.", 'framework'), 'type' => 'image_advanced'), array('name' => __('Slider Pagination', 'framework'), 'id' => $prefix . 'gallery_slider_pagination', 'desc' => __("Enable to show pagination for slider.", 'framework'), 'type' => 'select', 'options' => array('yes' => __('Enable', 'framework'), 'no' => __('Disable', 'framework'))), array('name' => __('Slider Auto Slide', 'framework'), 'id' => $prefix . 'gallery_slider_auto_slide', 'desc' => __("Select Yes to slide automatically.", 'framework'), 'type' => 'select', 'options' => array('yes' => __('Yes', 'framework'), 'no' => __('No', 'framework'))), array('name' => __('Slider Direction Arrows', 'framework'), 'id' => $prefix . 'gallery_slider_direction_arrows', 'desc' => __("Select Yes to show slider direction arrows.", 'framework'), 'type' => 'select', 'options' => array('yes' => __('Yes', 'framework'), 'no' => __('No', 'framework'))), array('name' => __('Slider Effects', 'framework'), 'id' => $prefix . 'gallery_slider_effects', 'desc' => __("Select effects for slider.", 'framework'), 'type' => 'select', 'options' => array('fade' => __('Fade', 'framework'), 'slide' => __('Slide', 'framework'))))); /* * ******************* META BOX REGISTERING ********************** */ /** * Register meta boxes * * @return void */ function imic_register_meta_boxes()
_e('Area', 'framework'); ?> "> </div> <?php } ?> <?php if ($div_class_check == 4) { echo '</div><div class="row">'; } ?> <?php ?> <?php $imic_country_wise_city = imic_get_multiple_city(); if (!empty($imic_country_wise_city)) { if (!empty($property_details_option_enable['4']) == 1) { $div_class_check++; if ($div_class_check == 4) { echo '</div><div class="row">'; } echo '<div class="col-md-4 col-sm-4">'; echo '<select name="city" class="form-control margin-0 selectpicker">'; echo '<option>' . __('Province', 'framework') . '</option>'; foreach ($imic_country_wise_city as $key => $value) { if (is_int($key)) { echo '<optgroup label="' . $value . '">'; } else { echo "<option value='" . $key . "' " . selected($property_city_value, $key) . ">" . $value . "</option>"; }
$meta_boxes[] = array('id' => 'template-contact2', 'title' => __('Contact Details Meta Box', 'framework'), 'pages' => array('page'), 'show_names' => true, 'fields' => array(array('name' => __('Our Location Address', 'framework'), 'id' => $prefix . 'our_location_address', 'desc' => __("Enter the Our Location Address to display on cotact page.", 'framework'), 'type' => 'text', 'std' => ''), array('name' => __('Email Us', 'framework'), 'id' => $prefix . 'contact_email_us', 'desc' => __("Enter Email to display under contact address for email us.", 'framework'), 'type' => 'text', 'std' => get_option('admin_email')), array('name' => __('Call Us', 'framework'), 'id' => $prefix . 'contact_call_us', 'desc' => __("Enter number to display under contact address for call us.", 'framework'), 'type' => 'text', 'std' => '080 378678 90'))); /* Our Agent Page Become an Agent Details (Our Agent Meta Box 1) ========================================================= */ $meta_boxes[] = array('id' => 'template-our-agents1', 'title' => __('Become an Agent Options', 'framework'), 'pages' => array('page'), 'show_names' => true, 'fields' => array(array('name' => __('Become an Agent Button Text', 'framework'), 'id' => $prefix . 'agent_become_agent_text', 'desc' => __("Enter Become an Agent text to display on button.", 'framework'), 'type' => 'text', 'std' => 'Become an agent'), array('name' => __('Become an Agent Button URL', 'framework'), 'id' => $prefix . 'agent_become_agent_url', 'desc' => __("Enter Become an Agent url to redirect.", 'framework'), 'type' => 'url'))); /* Property Submit Template ========================================================= */ $meta_boxes[] = array('id' => 'template-blog1', 'title' => __('Blog Type', 'framework'), 'pages' => array('page'), 'show_names' => true, 'fields' => array(array('name' => __('Blog Type', 'framework'), 'id' => $prefix . 'blog_type', 'desc' => __("Select type of blog.", 'framework'), 'type' => 'select', 'options' => array('masonry' => __('Masonry', 'framework'), 'timeline' => __('Timeline', 'framework')), 'std' => 'masonry'))); /* Property Submit Template ========================================================= */ $meta_boxes[] = array('id' => 'template-submit-property1', 'title' => __('Property Status', 'framework'), 'pages' => array('page'), 'show_names' => true, 'fields' => array(array('name' => __('Property Status', 'framework'), 'id' => $prefix . 'property_status', 'desc' => __("Select Status for Property.", 'framework'), 'type' => 'select', 'options' => array('draft' => __('Pending Review', 'framework'), 'publish' => __('Publish', 'framework')), 'std' => 'draft'))); /* Slide Meta Box ================================================== */ $meta_boxes[] = array('id' => 'slide_meta_box', 'title' => __('Properties', 'framework'), 'pages' => array('slide'), 'fields' => array(array('name' => __('Property list', 'framework'), 'id' => $prefix . "property_listing", 'type' => 'post', 'post_type' => 'property', 'field_type' => 'select_advanced', 'query_args' => array('post_status' => 'publish', 'posts_per_page' => '-1')))); /* Property Meta Box ================================================== */ $meta_boxes[] = array('id' => 'slide_meta_box', 'title' => __('Property Details', 'framework'), 'pages' => array('property'), 'fields' => array(array('name' => __('Property Address', 'framework'), 'id' => $prefix . 'property_site_address', 'desc' => __("Enter the Property Address.", 'framework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Province', 'framework'), 'id' => $prefix . 'property_site_city', 'desc' => __('Select State/City for property.', 'framework'), 'type' => 'select', 'options' => imic_get_multiple_city()), array('name' => __('Property Value', 'framework'), 'id' => $prefix . 'property_price', 'desc' => __("Enter the Property Value.", 'framework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Property Area', 'framework'), 'id' => $prefix . 'property_area', 'desc' => __("Enter the Property Area.", 'framework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Baths', 'framework'), 'id' => $prefix . 'property_baths', 'desc' => __("Enter the Number of Baths.", 'framework'), 'type' => 'text', 'std' => ''), array('name' => __('Beds', 'framework'), 'id' => $prefix . 'property_beds', 'desc' => __("Enter the Number of Bedrooms.", 'framework'), 'type' => 'text', 'std' => ''), array('name' => __('Parking', 'framework'), 'id' => $prefix . 'property_parking', 'desc' => __("Enter the Number of Parkings.", 'framework'), 'type' => 'text', 'std' => ''), array('name' => __('Property Sights', 'framework'), 'id' => $prefix . 'property_sights', 'desc' => __("Upload Property sights.", 'framework'), 'type' => 'image_advanced', 'max_file_uploads' => 30), array('name' => __('Amenities', 'framework'), 'id' => $prefix . 'property_amenities', 'desc' => __("Enter the Amenities of Parkings.", 'framework'), 'type' => 'text', 'clone' => true, 'std' => ''), array('name' => __('Featured Property', 'framework'), 'id' => $prefix . 'featured_property', 'desc' => __('Select Yes to make this property featured.', 'framework'), 'type' => 'select', 'options' => array('0' => __('No', 'framework'), '1' => __('Yes', 'framework')), 'std' => 0), array('name' => __('Property Slide', 'framework'), 'id' => $prefix . 'slide_property', 'desc' => __('Select Yes to display this property in homepage slider.', 'framework'), 'type' => 'select', 'options' => array('0' => __('No', 'framework'), '1' => __('Yes', 'framework')), 'std' => 0), array('name' => __('Property Pincode', 'framework'), 'id' => $prefix . 'property_pincode', 'desc' => __('Enter the Pincode of Property', 'framework'), 'type' => 'text'), array('name' => __('Property Custom City', 'framework'), 'id' => $prefix . 'property_custom_city', 'desc' => __('Do not Delete this field', 'framework'), 'type' => 'hidden'), array('name' => __('Property Email Status', 'framework'), 'id' => $prefix . 'property_email_status', 'desc' => __('Do not Delete this field', 'framework'), 'type' => 'hidden'), array('name' => __('Property Zoom Option', 'framework'), 'id' => $prefix . 'property_zoom_option', 'desc' => __('Enter the Zoom level for Property Map', 'framework'), 'type' => 'text'))); /* Testimonial Meta Box ===================================================*/ $meta_boxes[] = array('id' => 'testimonial_meta_box', 'title' => __('Testimonial Meta Box', 'framework'), 'pages' => array('testimonials'), 'fields' => array(array('name' => __('Company Name', 'framework'), 'id' => $prefix . 'client_company', 'desc' => __("Enter the Company for Client.", 'framework'), 'type' => 'text', 'clone' => false, 'std' => ''), array('name' => __('Client Url', 'framework'), 'id' => $prefix . 'client_co_url', 'desc' => __("Enter the Client URL.", 'framework'), 'type' => 'url'))); /* * ** Gallery Pagination Meta Box 1 *** */ $meta_boxes[] = array('id' => 'template-gallery1', 'title' => __('Gallery to show', 'framework'), 'pages' => array('page'), 'show_names' => true, 'fields' => array(array('name' => __('Gallery Image', 'framework'), 'id' => $prefix . 'gallery_images', 'desc' => __("Enter Gallery Image.", 'framework'), 'type' => 'image_advanced'), array('name' => __('Gallery Type', 'framework'), 'id' => $prefix . 'gallery_type', 'desc' => __('Select gallery type.', 'framework'), 'type' => 'select', 'options' => array('0' => __('Grid', 'framework'), '1' => __('Masonry', 'framework')), 'std' => 0), array('name' => __('Number of Gallery to show.', 'framework'), 'id' => $prefix . 'gallery_pagination_to_show_on', 'desc' => __("Enter number of images to show on a page.", 'framework'), 'type' => 'text', 'std' => ''), array('name' => __('Design Layout', 'framework'), 'id' => $prefix . 'gallery_pagination_columns_layout', 'desc' => __("Choose column layout.", 'framework'), 'type' => 'select', 'options' => array('2' => __('2 Column', 'framework'), '3' => __('3 Column', 'framework'), '4' => __('4 Column', 'framework')), 'std' => '3'))); /* Gallery Meta Box ================================================== */ $meta_boxes[] = array('id' => 'gallery_meta_box', 'title' => __('Post Meta Box', 'framework'), 'pages' => array('post'), 'fields' => array(array('name' => __('Link Url', 'framework'), 'id' => $prefix . 'gallery_link_url', 'desc' => __("Enter the Link URL.", 'framework'), 'type' => 'url'), array('name' => __('Gallery Image', 'framework'), 'id' => $prefix . 'gallery_images', 'desc' => __("Enter Gallery Image.", 'framework'), 'type' => 'image_advanced'), array('name' => __('Slider Pagination', 'framework'), 'id' => $prefix . 'gallery_slider_pagination', 'desc' => __("Enable to show pagination for slider.", 'framework'), 'type' => 'select', 'options' => array('yes' => __('Enable', 'framework'), 'no' => __('Disable', 'framework'))), array('name' => __('Slider Auto Slide', 'framework'), 'id' => $prefix . 'gallery_slider_auto_slide', 'desc' => __("Select Yes to slide automatically.", 'framework'), 'type' => 'select', 'options' => array('yes' => __('Yes', 'framework'), 'no' => __('No', 'framework'))), array('name' => __('Slider Direction Arrows', 'framework'), 'id' => $prefix . 'gallery_slider_direction_arrows', 'desc' => __("Select Yes to show slider direction arrows.", 'framework'), 'type' => 'select', 'options' => array('yes' => __('Yes', 'framework'), 'no' => __('No', 'framework'))), array('name' => __('Slider Effects', 'framework'), 'id' => $prefix . 'gallery_slider_effects', 'desc' => __("Select effects for slider.", 'framework'), 'type' => 'select', 'options' => array('fade' => __('Fade', 'framework'), 'slide' => __('Slide', 'framework'))))); /* * ******************* META BOX REGISTERING ********************** */ /** * Register meta boxes * * @return void */ function imic_register_meta_boxes()