/** * Constructor * * @return mixed| YITH_WCQV_Admin | YITH_WCQV_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_WCQV_Admin(); } // Class frontend $enable = get_option('yith-wcqv-enable') == 'yes' ? true : false; $enable_on_mobile = get_option('yith-wcqv-enable-mobile') == 'yes' ? true : false; // Class frontend if (!wp_is_mobile() && $enable || wp_is_mobile() && $enable_on_mobile && $enable) { YITH_WCQV_Frontend(); } }
/image/06-icon.png" alt="Number" /> <h2>Style Options</h2> </div> <p>A rich option panel to change the colors of the "Quick View" button and of everything that is within the modal window generated. </p> </div> <div class="col-1"> <img src="<?php echo YITH_WCQV_ASSETS_URL; ?> /image/06.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 Quick View</span> to benefit from all features! </p> <a href="<?php echo YITH_WCQV_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>
<?php $settings = array('settings' => array('section_general_settings_videobox' => array('name' => __('Upgrade to the PREMIUM VERSION', 'yith-woocommerce-quick-view'), 'type' => 'videobox', 'default' => array('plugin_name' => __('YITH WooCommerce Quick View', 'yith-woocommerce-quick-view'), 'title_first_column' => __('Discover the Advanced Features', 'yith-woocommerce-quick-view'), 'description_first_column' => __('Upgrade to the PREMIUM VERSION of YITH WooCommerce Quick View to benefit from all features!', 'yith-woocommerce-quick-view'), 'video' => array('video_id' => '120573971', 'video_image_url' => YITH_WCQV_ASSETS_URL . '/image/video-yith-woocommerce-quick-view.jpg', 'video_description' => __('YITH WooCommerce Quick View', 'yith-woocommerce-quick-view')), 'title_second_column' => __('Get Support and Pro Features', 'yith-woocommerce-quick-view'), '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-quick-view'), 'button' => array('href' => YITH_WCQV_Admin()->get_premium_landing_uri(), 'title' => 'Get Support and Pro Features')), 'id' => 'yith_wcqv_general_videobox'), 'general-options' => array('title' => __('General Options', 'yith-woocommerce-quick-view'), 'type' => 'title', 'desc' => '', 'id' => 'yith-wcqv-general-options'), 'enable-quick-view' => array('id' => 'yith-wcqv-enable', 'name' => __('Enable Quick View', 'yith-woocommerce-quick-view'), 'type' => 'checkbox', 'default' => 'yes'), 'enable-quick-view-mobile' => array('id' => 'yith-wcqv-enable-mobile', 'name' => __('Enable Quick View on mobile', 'yith-woocommerce-quick-view'), 'desc' => __('Enable quick view features on mobile device too', 'yith-woocommerce-quick-view'), 'type' => 'checkbox', 'default' => 'yes'), 'quick-view-label' => array('id' => 'yith-wcqv-button-label', 'name' => __('Quick View Button Label', 'yith-woocommerce-quick-view'), 'desc' => __('Label for the quick view button in the WooCommerce loop.', 'yith-woocommerce-quick-view'), 'type' => 'text', 'default' => __('Quick View', 'yith-woocommerce-quick-view')), 'enable-lightbox' => array('id' => 'yith-wcqv-enable-lightbox', 'name' => __('Enable Lightbox', 'yith-woocommerce-quick-view'), 'desc' => __('Enable lightbox. Product images will open in a lightbox.', 'yith-woocommerce-quick-view'), 'type' => 'checkbox', 'default' => 'yes'), 'general-options-end' => array('type' => 'sectionend', 'id' => 'yith-wcqv-general-options'), 'style-options' => array('title' => __('Style Options', 'yith-woocommerce-quick-view'), 'desc' => '', 'type' => 'title', 'id' => 'yith-wcqv-style-options'), 'background-color-modal' => array('name' => __('Modal Window Background Color', 'yith-woocommerce-quick-view'), 'type' => 'color', 'desc' => '', 'id' => 'yith-wcqv-background-modal', 'default' => '#ffffff'), 'close-button-color' => array('name' => __('Closing Button Color', 'yith-woocommerce-quick-view'), 'type' => 'color', 'desc' => '', 'id' => 'yith-wcqv-close-color', 'default' => '#cdcdcd'), 'close-button-color-hover' => array('name' => __('Closing Button Hover Color', 'yith-woocommerce-quick-view'), 'type' => 'color', 'desc' => '', 'id' => 'yith-wcqv-close-color-hover', 'default' => '#ff0000'), 'style-options-end' => array('type' => 'sectionend', 'id' => 'yith-wcqv-style-options'))); return apply_filters('yith_wcqv_panel_settings_options', $settings);