<?php /** * Customer Trusted Shops Review Notification * * @author Vendidero * @version 1.0.0 */ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly echo "= " . $email_heading . " =\n\n"; echo sprintf(_x('Dear %s %s,', 'trusted-shops', 'woocommerce-germanized'), $order->billing_first_name, $order->billing_last_name) . "\n\n"; echo sprintf(_x('You have recently shopped at %s. Thank you! We would be glad if you spent some time to write a review about your order. To do so please follow follow the link.', 'trusted-shops', 'woocommerce-germanized'), get_bloginfo('name')) . "\n\n"; echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; echo WC_Germanized()->trusted_shops->get_new_review_link($order->billing_email, $order->id) . "\n\n"; echo apply_filters('woocommerce_email_footer_text', get_option('woocommerce_email_footer_text'));
<div class="wc-gzd-premium"> <div class="wc-gzd-premium-overlay-wrapper"> <div class="wc-gzd-premium-overlay notice notice-warning inline"> <h3><?php _e('Get WooCommerce Germanized Pro to unlock', 'woocommerce-germanized'); ?> </h3> <p><?php _e('Enjoy even more professional features such as invoices, legal text generators, B2B VAT settings and premium support!', 'woocommerce-germanized'); ?> </p> <p><a class="button button-primary" href="https://vendidero.de/woocommerce-germanized" target="_blank"><?php _e('Upgrade now', 'woocommerce-germanized'); ?> </a></p> </div> <a href="https://vendidero.de/woocommerce-germanized" target="_blank"> <img src="<?php echo WC_Germanized()->plugin_url(); ?> /assets/images/pro/settings-<?php echo $current_section; ?> .png?v=<?php echo WC_germanized()->version; ?> " /> </a> </div> </div>
<?php do_action('woocommerce_email_header', $email_heading); ?> <p><?php echo sprintf(_x('Dear %s %s,', 'trusted-shops', 'woocommerce-germanized'), $order->billing_first_name, $order->billing_last_name); ?> </p> <p><?php echo sprintf(_x('You have recently shopped at %s. Thank you! We would be glad if you spent some time to write a review about your order. To do so please follow follow the link.', 'trusted-shops', 'woocommerce-germanized'), get_bloginfo('name')); ?> </p> <table cellspacing="0" cellpadding="0" style="width: 100%; border: none;" border="0"> <tr align="center"> <td align="center"><a class="email_btn" href="<?php echo esc_url(WC_Germanized()->trusted_shops->get_new_review_link($order->billing_email, $order->id)); ?> " target="_blank" style="text-decoration: none; background-color: <?php echo esc_attr($base); ?> ; color: <?php echo $base_text; ?> ; border-radius: 3px !important; padding: font-family:Arial; font-weight:bold; line-height:100%; padding: 0.5rem;"><?php echo _x('Rate Order now', 'trusted-shops', 'woocommerce-germanized'); ?> </a></td> </tr> </table> <?php
public function output_premium_section() { global $current_section; if (!isset($this->premium_sections[$current_section])) { return; } $GLOBALS['hide_save_button'] = true; $section_title = $this->premium_sections[$current_section]; include_once WC_Germanized()->plugin_path() . '/includes/admin/views/html-settings-pro.php'; }
private function create_units() { $units = (include_once WC_Germanized()->plugin_path() . '/i18n/units.php'); if (!empty($units)) { foreach ($units as $slug => $unit) { wp_insert_term($unit, 'product_unit', array('slug' => $slug)); } } }