?> </th> <th><?php esc_html_e('Activity', 'sprout-invoices'); ?> </th> <th><?php esc_html_e('Note', 'sprout-invoices'); ?> </th> <th><?php esc_html_e('Time', 'sprout-invoices'); ?> </th> <th><?php echo sa_get_currency_symbol(); ?> </th> </tr> </thead> <tbody> <?php $shown_item = 0; krsort($unbilled_time); foreach ($unbilled_time as $time_id => $data) { $shown_item++; // only show 5 if ($shown_item > 5) { break; } $time = SI_Time::get_time_entry($time_id);
public static function add_currency_options($js_object = array()) { $js_object['currency_symbol'] = sa_get_currency_symbol(); $js_object['localeconv'] = si_localeconv(); return $js_object; }
/** * Is the currency symbol before or after amount. * @return bool */ function sa_currency_format_before() { $bool = true; $symbol = sa_get_currency_symbol(false); if (strstr($symbol, '%')) { $bool = false; } return apply_filters('sa_currency_format_before', $bool); }