function cp_get_price($postid, $meta_field)
 {
     global $cp_options;
     if (get_post_meta($postid, $meta_field, true)) {
         $price_out = get_post_meta($postid, $meta_field, true);
         $price_out = cp_price_format($price_out);
         $price_out = cp_pos_currency($price_out, 'ad');
     } else {
         if ($cp_options->force_zeroprice) {
             $price_out = cp_pos_currency(0, 'ad');
         } else {
             $price_out = ' ';
         }
     }
     echo $price_out;
 }
Пример #2
0
 function cp_get_price($postid, $meta_field)
 {
     global $app_abbr;
     if (get_post_meta($postid, $meta_field, true)) {
         $price_out = get_post_meta($postid, $meta_field, true);
         $price_out = cp_price_format($price_out);
         $price_out = cp_pos_currency($price_out, 'ad');
     } else {
         if (get_option($app_abbr . '_force_zeroprice') == 'yes') {
             $price_out = cp_pos_currency(0, 'ad');
         } else {
             $price_out = ' ';
         }
     }
     echo $price_out;
 }