/**
 * function wpminv_body_class()
 *
 * adds a body class to those pages which handle invoices
 */
function wpminv_body_class($classes)
{
    /* if this is an invoice template view */
    if (wpminv_is_invoice_template_view()) {
        /* add to the body class */
        $classes[] = 'invoice-template';
    }
    return $classes;
}
/**
 * function wpminv_add_front_end_styles()
 *
 * enqueues the front end stylesheet for the plugin.
 */
function wpminv_add_front_end_styles()
{
    /* is this a template view which uses our invoices post type */
    if (wpminv_is_invoice_template_view()) {
        /* enqueue front-end styles */
        wp_enqueue_style('wpminv_styles', plugins_url('/assets/css/simvoicing-style.css', __FILE__));
    }
}