| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template CSS Loader |
| 4 |
* |
| 5 |
* Loads all template-specific CSS files for Easy Invoice |
| 6 |
*/ |
| 7 |
|
| 8 |
// Exit if accessed directly |
| 9 |
if (!defined('ABSPATH')) { |
| 10 |
exit; |
| 11 |
} |
| 12 |
|
| 13 |
/** |
| 14 |
* Get template CSS class |
| 15 |
* |
| 16 |
* @param string $template_id The template ID |
| 17 |
* @return string The CSS class for the template |
| 18 |
*/ |
| 19 |
function easy_invoice_get_template_class($template_id) { |
| 20 |
if (empty($template_id)) { |
| 21 |
$template_id = 'standard'; // Default template |
| 22 |
} |
| 23 |
|
| 24 |
return 'template-' . sanitize_html_class($template_id); |
| 25 |
} |