Пример #1
0
 /**
  * Constructor
  *
  * @return mixed| YITH_WCWTL_Admin | YITH_WCWTL_Frontend
  * @since 1.0.0
  */
 public function __construct()
 {
     // Load Plugin Framework
     add_action('plugins_loaded', array($this, 'plugin_fw_loader'), 15);
     // Class admin
     if (is_admin()) {
         YITH_WCWTL_Admin();
         // add meta in product edit page
         YITH_WCWTL_Meta();
     }
     // Class frontend
     YITH_WCWTL_Frontend();
     // Email actions
     add_filter('woocommerce_email_classes', array($this, 'add_woocommerce_emails'));
     add_action('woocommerce_init', array($this, 'load_wc_mailer'));
 }
Пример #2
0
<?php

/**
 * GENERAL ARRAY OPTIONS
 */
$general = array('general' => array('section_general_settings_videobox' => array('name' => __('Upgrade to the PREMIUM VERSION', 'yith-woocommerce-waiting-list'), 'type' => 'videobox', 'default' => array('plugin_name' => __('YITH WooCommerce Waiting List', 'yith-woocommerce-waiting-list'), 'title_first_column' => __('Discover the Advanced Features', 'yith-woocommerce-waiting-list'), 'description_first_column' => __('Upgrade to the PREMIUM VERSION of YITH WooCommerce Waiting List to benefit from all features!', 'yith-woocommerce-waiting-list'), 'video' => array('video_id' => '125580436', 'video_image_url' => YITH_WCWTL_ASSETS_URL . '/images/video-yith-woocommerce-waiting-list.jpg', 'video_description' => __('YITH WooCommerce Waiting List', 'yith-woocommerce-waiting-list')), 'title_second_column' => __('Get Support and Pro Features', 'yith-woocommerce-waiting-list'), 'description_second_column' => __('By purchasing the premium version of the plugin, you will take advantage of the advanced features of the product and you will get one year of free updates and support through our platform available 24h/24.', 'yith-woocommerce-waiting-list'), 'button' => array('href' => YITH_WCWTL_Admin()->get_premium_landing_uri(), 'title' => 'Get Support and Pro Features')), 'id' => 'yith_wcwtl_general_videobox'), 'general-options' => array('title' => __('General Options', 'yith-woocommerce-waiting-list'), 'type' => 'title', 'desc' => '', 'id' => 'yith-wcwtl-general-options'), 'enable-waiting-list' => array('id' => 'yith-wcwtl-enable', 'name' => __('Enable Waiting List', 'yith-woocommerce-waiting-list'), 'type' => 'checkbox', 'default' => 'yes'), 'waiting-list-message' => array('id' => 'yith-wcwtl-form-message', 'name' => __('Notification message', 'yith-woocommerce-waiting-list'), 'desc' => __('A text message to show before the waiting list form in the single product page.', 'yith-woocommerce-waiting-list'), 'type' => 'text', 'default' => __('Notify me when the item is back in stock.', 'yith-woocommerce-waiting-list')), 'waiting-list-button-add' => array('id' => 'yith-wcwtl-button-add-label', 'name' => __('Add button label', 'yith-woocommerce-waiting-list'), 'desc' => __('The label of the button to be added to the waiting list', 'yith-woocommerce-waiting-list'), 'type' => 'text', 'default' => __('Add to waiting list', 'yith-woocommerce-waiting-list')), 'waiting-list-button-leave' => array('id' => 'yith-wcwtl-button-leave-label', 'name' => __('Remove button label', 'yith-woocommerce-waiting-list'), 'desc' => __('The label of the button to be removed from the waiting list', 'yith-woocommerce-waiting-list'), 'type' => 'text', 'default' => __('Leave waiting list', 'yith-woocommerce-waiting-list')), 'waiting-list-success-msg' => array('id' => 'yith-wcwtl-button-success-msg', 'name' => __('Successful registration message', 'yith-woocommerce-waiting-list'), 'desc' => __('The text for the successful registration in the waiting list.', 'yith-woocommerce-waiting-list'), 'type' => 'text', 'default' => __('You have been added to the waiting list for this product', 'yith-woocommerce-waiting-list')), 'general-options-end' => array('type' => 'sectionend', 'id' => 'yith-wcwtl-general-options')));
return apply_filters('yith_wcwt_panel_general_options', $general);
Пример #3
0
                    out-of-stock products. For each of them, you have the following options available: <b>delete list</b>, <b>send
                    email</b> and a <b>button through which you can access to the list with users</b>.
                    Nothing prevents you from adding a new user to the list whenever you want.
                </p>
            </div>
            <div class="col-1">
                <img src="<?php 
echo YITH_WCWTL_URL;
?>
assets/images/08.png" alt="Number" />
            </div>
        </div>
    </div>
    <div class="section section-cta section-odd">
        <div class="landing-container">
            <div class="premium-cta">
                <p>
                    Upgrade to the <span class="highlight">premium version</span>
                    of <span class="highlight">YITH WooCommerce Waiting List</span> to benefit from all features!
                </p>
                <a href="<?php 
echo YITH_WCWTL_Admin()->get_premium_landing_uri();
?>
" target="_blank" class="premium-cta-button button btn">
                    <span class="highlight">UPGRADE</span>
                    <span>to the premium version</span>
                </a>
            </div>
        </div>
    </div>
</div>