# easy-invoice/2.2.0/assets/templates/template-loader.php

Easy Invoice – Invoice Generator, PDF Quotes &amp; Payments, version 2.2.0. 25 lines.

- Page: https://pluginprobe.com/plugins/easy-invoice/2.2.0/code/assets/templates/template-loader.php
- Raw: https://pluginprobe.com/plugins/easy-invoice/2.2.0/raw/assets/templates/template-loader.php
- Modified: 2025-08-14T09:51:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/easy-invoice/2.2.0/code/assets/templates/template-loader.php#L10-L20`.

```php
<?php
/**
 * Template CSS Loader
 * 
 * Loads all template-specific CSS files for Easy Invoice
 */

// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}

/**
 * Get template CSS class
 * 
 * @param string $template_id The template ID
 * @return string The CSS class for the template
 */
function easy_invoice_get_template_class($template_id) {
    if (empty($template_id)) {
        $template_id = 'standard'; // Default template
    }
    
    return 'template-' . sanitize_html_class($template_id);
} 
```
