Function Reference: geodir_package_price_form
Summary
This function has not been documented yet.
Actions
‘geodir_payment_package_extra_fields’ [Line: 529]
Filters
‘geodir_subscription_supported_by’ [Line: 228]
Source Code
function geodir_package_price_form() { global $wpdb, $price_db_table_name; $priceinfo = array(); if(isset($_REQUEST['id']) && $_REQUEST['id']!='') { $pid = (int)$_REQUEST['id']; $pricesql = $wpdb->prepare("select * from ".GEODIR_PRICE_TABLE." where pid=%d",array($pid)); $priceinfo = $wpdb->get_results($pricesql); } $sub_num_trial_units = isset( $priceinfo[0]->sub_num_trial_units ) && !empty( $priceinfo[0]->sub_num_trial_units ) ? $priceinfo[0]->sub_num_trial_units : 'D'; $sub_num_trial_units = in_array( $sub_num_trial_units, array( 'D', 'W', 'M', 'Y' ) ) ? $sub_num_trial_units : 'D'; $sub_num_trial_units_options = geodir_payment_get_sub_num_trial_units( $sub_num_trial_units ); $has_upgrades = isset($priceinfo[0]->has_upgrades) && (int)$priceinfo[0]->has_upgrades == 1 ? 1 : 0; $disable_coupon = isset($priceinfo[0]->disable_coupon) && (int)$priceinfo[0]->disable_coupon == 1 ? 1 : 0; ?>
post_type) ? $post_type = $priceinfo[0]->post_type : $post_type='gd_place'; $request_id = isset($_REQUEST['id']) ? $_REQUEST['id'] : ''; $post_type_array = geodir_fields_list_by_posttype($post_type, $request_id); echo $post_type_array['posttype']; ?>() sub_active) && $priceinfo[0]->sub_active != ''){echo 'checked="checked"';}?>>sub_active) && $priceinfo[0]->sub_active != ''){echo 'style="display:none"';}?> >
sub_active) || $priceinfo[0]->sub_active == ''){echo 'style="display:none"';}?> >
sub_active) || $priceinfo[0]->sub_active == ''){echo 'style="display:none"';}?>> sub_active) || $priceinfo[0]->sub_active = ''){echo 'style="display:none"';}?>> sub_num_trial_days) && $priceinfo[0]->sub_num_trial_days >0){echo 'checked="checked"';}?> >
sub_units)){ echo ' Day(s)';} if(isset($priceinfo[0]->sub_units) && $priceinfo[0]->sub_units=='D'){ echo ''.__("Day(s)", 'geodir_payments').'';} if(isset($priceinfo[0]->sub_units) && $priceinfo[0]->sub_units=='W'){ echo ''.__("Week(s)", 'geodir_payments').'';} if(isset($priceinfo[0]->sub_units) && $priceinfo[0]->sub_units=='M'){ echo ''.__("Month(s)", 'geodir_payments').'';} if(isset($priceinfo[0]->sub_units) && $priceinfo[0]->sub_units=='Y'){ echo ''.__("year(s)", 'geodir_payments').'';} ?> for
post_type) || $priceinfo[0]->post_type=='') { _e('You can only exclude categories once saved.', 'geodir_payments'); } else { /*if($priceinfo[0]->cat) { $catarr = explode(',',$priceinfo[0]->cat); }*/ ?>cat); echo $post_type_array['html_cat']; ?>
(if removing a parent category, you should remove its child categories.', 'geodir_payments');?>
packages as users will not be able to remove that category from the frontend.)', 'geodir_payments');?> downgrade_pkg) ? $priceinfo[0]->downgrade_pkg : ''; $post_type_array = geodir_fields_list_by_posttype($post_type, $request_id, $select_dpkg); echo $post_type_array['downgrade']; ?>
use_desc_limit) && $priceinfo[0]->use_desc_limit==1 ? 1 : 0; $desc_limit = isset($priceinfo[0]->desc_limit) && (int)$priceinfo[0]->desc_limit>0 ? (int)$priceinfo[0]->desc_limit : 0; $use_tag_limit = isset($priceinfo[0]->use_tag_limit) && $priceinfo[0]->use_tag_limit==1 ? 1 : 0; $tag_limit = isset($priceinfo[0]->tag_limit) && (int)$priceinfo[0]->tag_limit>0 ? (int)$priceinfo[0]->tag_limit : 0; ?>
>
>
hide_related_tab ) && (int)$priceinfo[0]->hide_related_tab == 1 ? 1 : 0; ?>