if ($with_icon) {
    ?>
                    <img src="<?php 
    echo yith_wcms_checkout_timeline_get_icon($style, 'payment');
    ?>
" alt="<?php 
    echo $labels['payment'];
    ?>
" class="<?php 
    echo $image_class;
    ?>
" width="<?php 
    echo YITH_Multistep_Checkout()->sizes['yith_wcms_timeline_' . $style]['width'];
    ?>
" height="<?php 
    echo YITH_Multistep_Checkout()->sizes['yith_wcms_timeline_' . $style]['width'];
    ?>
" />
                <?php 
} else {
    ?>
                    <?php 
    echo $i = $i + 1;
    ?>
                <?php 
}
?>
            </span>
            <span class="timeline-label"><?php 
echo $labels['payment'];
?>
Beispiel #2
0
!defined('YITH_WCMS_PATH') && define('YITH_WCMS_PATH', plugin_dir_path(__FILE__));
!defined('YITH_WCMS_URL') && define('YITH_WCMS_URL', plugins_url('/', __FILE__));
!defined('YITH_WCMS_ASSETS_URL') && define('YITH_WCMS_ASSETS_URL', YITH_WCMS_URL . 'assets/');
!defined('YITH_WCMS_TEMPLATE_PATH') && define('YITH_WCMS_TEMPLATE_PATH', YITH_WCMS_PATH . 'templates/');
!defined('YITH_WCMS_WC_TEMPLATE_PATH') && define('YITH_WCMS_WC_TEMPLATE_PATH', YITH_WCMS_PATH . 'templates/woocommerce/');
!defined('YITH_WCMS_OPTIONS_PATH') && define('YITH_WCMS_OPTIONS_PATH', YITH_WCMS_PATH . 'panel');
/* Load YWCM text domain */
load_plugin_textdomain('yith_wcms', false, dirname(plugin_basename(__FILE__)) . '/languages/');
if (!function_exists('YITH_Multistep_Checkout')) {
    /**
     * Unique access to instance of YITH_Vendors class
     *
     * @return YITH_Multistep_Checkout|YITH_Multistep_Checkout_Premium
     * @since 1.0.0
     */
    function YITH_Multistep_Checkout()
    {
        // Load required classes and functions
        require_once YITH_WCMS_PATH . 'includes/class.yith-multistep-checkout.php';
        if (defined('YITH_WCMS_PREMIUM') && file_exists(YITH_WCMS_PATH . 'includes/class.yith-multistep-checkout-premium.php')) {
            require_once YITH_WCMS_PATH . 'includes/class.yith-multistep-checkout-premium.php';
            return YITH_Multistep_Checkout_Premium::instance();
        }
        return YITH_Multistep_Checkout::instance();
    }
}
/**
 * Instance main plugin class
 */
YITH_Multistep_Checkout();