File manager - Edit - /home/verseaumee/middletvnew26/wp-content/plugins/shopbuild/invoice-templates/elementor.php
Back
<?php /** * The template for displaying invoice content */ defined('ABSPATH') || exit; $storebuild_invoice_template = storebuild_get_option('_storebuild_invoice_settings', 'invoice_template'); // Load Elementor styles and scripts add_action('wp_enqueue_scripts', function () use ($storebuild_invoice_template) { if (class_exists('\Elementor\Plugin')) { // Enqueue global styles \Elementor\Plugin::instance()->frontend->enqueue_styles(); // Enqueue global dynamic CSS $storebuild_global_css_file = wp_get_upload_dir()['baseurl'] . '/elementor/css/global.css'; if (file_exists(wp_get_upload_dir()['basedir'] . '/elementor/css/global.css')) { wp_enqueue_style('elementor-global', $storebuild_global_css_file, [], null); } } if (class_exists('\Elementor\Plugin')) { // Enqueue Elementor frontend styles and scripts \Elementor\Plugin::instance()->frontend->enqueue_styles(); \Elementor\Plugin::instance()->frontend->enqueue_scripts(); // Enqueue the specific post's stylesheet if ($storebuild_invoice_template) { $storebuild_css_file = sprintf('%s/elementor/css/post-%s.css', wp_get_upload_dir()['baseurl'], $storebuild_invoice_template); wp_enqueue_style("elementor-post-$storebuild_invoice_template", $storebuild_css_file, [], null); } } wp_enqueue_style('elementor-frontend', ELEMENTOR_ASSETS_URL . 'css/frontend.min.css', [], ELEMENTOR_VERSION); wp_enqueue_style('elementor-icons', ELEMENTOR_ASSETS_URL . 'lib/eicons/css/elementor-icons.min.css', [], ELEMENTOR_VERSION); wp_enqueue_script('elementor-frontend', ELEMENTOR_ASSETS_URL . 'js/frontend.min.js', ['jquery'], ELEMENTOR_VERSION, true); wp_enqueue_style('strb-main', STOREBUILD_URL . 'public/css/sb-main.min.css', [], STOREBUILD_VERSION); // wp_enqueue_style( 'shopbuild', STOREBUILD_URL . 'public/css/pure-wc-shopbuild.css', [], STOREBUILD_VERSION ); }); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Invoice | Order ID <?php echo isset($order) ? esc_html($order->get_order_number()) : '1'; ?></title> <?php wp_head(); ?> </head> <body> <div class="elementor-invoice invoice-wrapper"> <?php if ($invoice_template) { storebuild_render_elementor_template_by_id($invoice_template); } ?> </div> <div class="invoice-actions"> <button id="download-pdf" class="button button-primary"><?php esc_html_e('Download PDF', 'shopbuild'); ?></button> </div> <?php wp_footer(); ?> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings