array( 'name' => THEME_SLUG . '_f_checkbox1', 'description' => __('', 'geocraft'), 'label' => META_LBL1, 'type' => 'checkbox' ), 'F_checkbox2' => array( 'name' => THEME_SLUG . '_f_checkbox2', 'description' => __('', 'geocraft'), 'label' => META_LBL2, 'type' => 'checkbox' ), ); return $checkbox_meta; } function gc_get_listing_type_meta() { $listing_type_meta = array( 'free_listing' => array( 'name' => THEME_SLUG . '_listing_type', 'description' => __('', THEME_SLUG), 'label' => META_LBL3, 'value' => 'free', 'type' => 'radio' ), 'pro_listing' => array( 'name' => THEME_SLUG . '_listing_type', 'description' => __('', THEME_SLUG), 'label' => META_LBL4, 'value' => 'pro', 'type' => 'radio' ), ); return $listing_type_meta; } function gc_get_listing_expiry_meta() { $listing_expiry = array( 'expired_listing' => array('name' => THEME_SLUG . '_listing_expiry', 'label' => '(Optional) Format: mm/dd/yy hh:mm:ss', 'type' => 'text', 'description' => 'You can set any custom expiry date here. Leave blank if you want the expiry date to be calculated automatically depending upon the listing active period setting inside payment settings under theme options panel.' )); return $listing_expiry; } /** * Function for creating * Checkbox meta box * @global type $post * @global array $checkbox_meta * @global string $key */ function geocraft_checkbox_meta() { $checkbox_meta = gc_get_checkbox_meta(); global $post, $key; ?>
ID, $check_box['name'], true); ?>
/>
ID, $listing['name'], true); ?>
/>
ID, 'gc_listing_duration', true); ?>