</tr> <tr valign="top"> <th scope="row"> <label for="orbis_subscription_type"><?php _e('Type', 'orbis_subscriptions'); ?> </label> </th> <td> <select id="orbis_subscription_type" name="_orbis_subscription_type_id"> <option value=""></option> <?php foreach ($subscription_products as $subscription_product) { $text = sprintf('%s (%s)', $subscription_product->name, orbis_price($subscription_product->price)); printf('<option value="%s" %s>%s</option>', esc_attr($subscription_product->id), selected($subscription_product->id, $product_id, false), $text); } ?> </select> </td> </tr> <tr valign="top"> <th scope="row"> <label for="orbis_subscription_name"><?php _e('Name', 'orbis_subscriptions'); ?> </label> </th> <td> <input id="orbis_subscription_name" name="_orbis_subscription_name" value="<?php
$price = get_post_meta(get_the_ID(), '_orbis_subscription_product_price', true); if (empty($price)) { echo '—'; } else { echo orbis_price($price); } ?> </td> <td> <div class="actions"> <?php $price = get_post_meta(get_the_ID(), '_orbis_subscription_product_cost_price', true); if (empty($price)) { echo '—'; } else { echo orbis_price($price); } ?> <div class="nubbin"> <?php orbis_edit_post_link(); ?> </div> </div> </td> </tr> <?php } ?>
echo $subscription->subscription_name; ?> </a> </td> <td> <a href="<?php echo get_permalink($subscription->post_id); ?> " target="_blank"> <?php echo $subscription->name; ?> </a> </td> <td> <?php echo orbis_price($subscription->price); ?> </td> </tr> <?php } ?> </tbody> </table> </div> <?php }
_e('Unbillabale hours', 'orbis'); ?> </p> <h1><?php echo round($unbillable_hours, 2); ?> </h1> </div> <div class="span3"> <p><?php _e('Billable Amount', 'orbis'); ?> </p> <h1><?php echo orbis_price($amount); ?> </h1> </div> </div> <hr /> <table class="table table-striped table-bordered panel"> <thead> <tr> <th><?php _e('User', 'orbis'); ?> </th> <th><?php
/** * Echo the price. */ function orbis_deal_the_price() { echo orbis_price(orbis_deal_get_the_price()); }
echo $result->company_name; ?> </td> <td> <a href="<?php echo get_permalink($result->post_id); ?> "> <?php echo $result->subscription_name; ?> </a> </td> <td> <?php echo orbis_price($result->price); ?> </td> <td> <?php echo $result->name; ?> </td> <td> <?php echo $date_start; ?> </td> <td> <?php echo $date_end;
/** * Echo the price. */ function orbis_product_the_price() { echo orbis_price(orbis_product_get_the_price()); }
function orbis_subscription_the_price() { echo orbis_price(orbis_subscription_get_the_price()); }
/** * Project column * * @param string $column * @param int $post_id */ function orbis_subscription_product_column($column, $post_id) { switch ($column) { case 'orbis_subscription_product_id': $id = get_post_meta($post_id, '_orbis_subscription_product_id', true); if (empty($id)) { echo '—'; } else { $url = sprintf('http://orbis.pronamic.nl/projecten/details/%s/', $id); printf('<a href="%s" target="_blank">%s</a>', $url, $id); } break; case 'orbis_subscription_product_price': $price = get_post_meta($post_id, '_orbis_subscription_product_price', true); if (empty($price)) { echo '—'; } else { echo orbis_price($price); } break; case 'orbis_subscription_product_cost_price': $price = get_post_meta($post_id, '_orbis_subscription_product_cost_price', true); if (empty($price)) { echo '—'; } else { echo orbis_price($price); } break; case 'orbis_subscription_product_deprecated': $deprecated = get_post_meta($post_id, '_orbis_subscription_product_deprecated', true); if ($deprecated == '') { echo '—'; } else { echo $deprecated ? __('Yes', 'orbis_subscriptions') : __('No', 'orbis_subscriptions'); } break; } }