Exemple #1
0
echo sprintf(__('All users registered in your store can see all quote requests they have sent from %s"My Account"%s page and check details, included the current status for them.', 'ywraq'), '<b>', '</b>');
?>
                </p>
            </div>
        </div>
    </div>
    <div class="section section-cta section-odd">
        <div class="landing-container">
            <div class="premium-cta">
                <p>
                    <?php 
echo sprintf(__('Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Request a Quote%2$s to benefit from all features!', 'ywraq'), '<span class="highlight">', '</span>');
?>
                </p>
                <a href="<?php 
echo YITH_YWRAQ_Admin()->get_premium_landing_uri();
?>
" target="_blank" class="premium-cta-button button btn">
                    <span class="highlight"><?php 
_e('UPGRADE', 'ywraq');
?>
</span>
                    <span><?php 
_e('to the premium version', 'ywraq');
?>
</span>
                </a>
            </div>
        </div>
    </div>
</div>
        public function plugin_row_meta($plugin_meta, $plugin_file, $plugin_data, $status)
        {
            if (defined('YITH_YWRAQ_INIT') && YITH_YWRAQ_INIT == $plugin_file) {
                $plugin_meta[] = '<a href="' . $this->doc_url . '" target="_blank">' . __('Plugin Documentation', 'ywraq') . '</a>';
            }
            return $plugin_meta;
        }
        /**
         * Get the premium landing uri
         *
         * @since   1.0.0
         * @author  Andrea Grillo <*****@*****.**>
         * @return  string The premium landing link
         */
        public function get_premium_landing_uri()
        {
            return defined('YITH_REFER_ID') ? $this->_premium_landing . '?refer_id=' . YITH_REFER_ID : $this->_premium_landing . '?refer_id=1030585';
        }
    }
}
/**
 * Unique access to instance of YITH_YWRAQ_Admin class
 *
 * @return \YITH_YWRAQ_Admin
 */
function YITH_YWRAQ_Admin()
{
    return YITH_YWRAQ_Admin::get_instance();
}
YITH_YWRAQ_Admin();
<?php

/**
 * This file belongs to the YIT Plugin Framework.
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
return array('settings' => array('section_general_settings_videobox' => array('name' => __('Upgrade to the PREMIUM VERSION', 'ywraq'), 'type' => 'videobox', 'default' => array('plugin_name' => __('YITH Woocommerce Request A Quote', 'ywraq'), 'title_first_column' => __('Discover the Advanced Features', 'ywraq'), 'description_first_column' => __('Upgrade to the PREMIUM VERSION
of YITH Woocommerce Request A Quote to benefit from all features!', 'ywraq'), 'video' => array('video_id' => '123722478', 'video_image_url' => YITH_YWRAQ_ASSETS_URL . '/images/request-a-quote.jpg', 'video_description' => __('YITH WooCommerce Request A Quote', 'yit')), 'title_second_column' => __('Get Support and Pro Features', 'ywraq'), 'description_second_column' => __('By purchasing the premium version of the plugin, you will benefit from the advanced features of the product and you will get one year of free update and support through our platform available 24h/24.', 'ywraq'), 'button' => array('href' => YITH_YWRAQ_Admin()->get_premium_landing_uri(), 'title' => 'Get Support and Pro Features')), 'id' => 'yith_wraq_general_videobox'), 'section_general_settings' => array('name' => __('Request a Quote - General settings', 'ywraq'), 'type' => 'title', 'id' => 'ywraq_section_general'), 'page_id' => array('name' => __('Request Quote Page', 'yit'), 'desc' => __('Page contents: [yith_ywraq_request_quote]', 'ywraq'), 'id' => 'ywraq_page_id', 'type' => 'single_select_page', 'class' => 'yith-ywraq-chosen', 'css' => 'min-width:300px', 'desc_tip' => false), 'show_btn_link' => array('name' => __('Button type', 'ywraq'), 'desc' => '', 'id' => 'ywraq_show_btn_link', 'type' => 'select', 'options' => array('link' => __('Link', 'ywraq'), 'button' => __('Button', 'ywraq')), 'default' => 'button'), 'show_btn_link_text' => array('name' => __('Button/Link text', 'ywraq'), 'desc' => '', 'id' => 'ywraq_show_btn_link_text', 'type' => 'text', 'default' => __('Add to quote', 'ywraq')), 'hide_add_to_cart' => array('name' => __('Hide "Add to cart" button', 'ywraq'), 'desc' => '', 'id' => 'ywraq_hide_add_to_cart', 'type' => 'checkbox', 'default' => 'no'), 'section_general_settings_end' => array('type' => 'sectionend', 'id' => 'ywraq_section_general_end')));