Function Reference: geodir_package_price_list

Summary

This function has not been documented yet.

Source Code

function geodir_package_price_list()
{
?>

 

prepare(“select * from “.GEODIR_PRICE_TABLE.” WHERE post_type IN ($format)”, $post_types);
$priceinfo = $wpdb->get_results($pricesql);

if( $priceinfo ) {
foreach( $priceinfo as $priceinfoObj ) {
$number_of_days = $priceinfoObj->days;
if ( $priceinfoObj->sub_active ) {
$sub_num_trial_days = $priceinfoObj->sub_num_trial_days;
$sub_num_trial_units = isset( $priceinfoObj->sub_num_trial_units ) && in_array( $priceinfoObj->sub_num_trial_units, array( ‘D’, ‘W’, ‘M’, ‘Y’ ) ) ? $priceinfoObj->sub_num_trial_units : ‘D’;

$number_of_days = $sub_num_trial_days > 0 ? $sub_num_trial_days .’ ‘. $sub_num_trial_units . ‘(r)’ : $priceinfoObj->sub_units_num .’ ‘. $priceinfoObj->sub_units . ‘(r)’;
}
?>

pid;?> title), ‘geodirectory’);?> post_type;?> amount > 0 ? geodir_payment_price($priceinfoObj->amount) : __(‘Free’, ‘geodir_payments’));?> status==1) _e(“Active”, ‘geodir_payments’); else _e(“Inactive”, ‘geodir_payments’);?> display_order) ? (int)$priceinfoObj->display_order : 0);?> is_featured==1) _e(“Yes”, ‘geodir_payments’);?> pid ); ?>
/images/edit.png” alt=”” title=”“/>   
is_default ) { ?>
/images/delete.png” alt=”” title=”” />