function ecwid_apply_theme($theme_name = null) { $themes = array('Bretheon' => 'bretheon', 'Responsive' => 'responsive', 'Twenty Fourteen' => '2014', 'PageLines' => 'pagelines'); if (empty($theme_name)) { $theme_name = ecwid_get_theme_name(); } $theme_file = ''; if (array_key_exists($theme_name, $themes)) { $theme_file = ECWID_THEMES_DIR . '/class-ecwid-theme-' . $themes[$theme_name] . '.php'; } $theme_file = apply_filters('ecwid_get_theme_file', $theme_file); if (!empty($theme_file) && is_file($theme_file) && is_readable($theme_file)) { require_once $theme_file; } }
</h2> <div class="ecwid-features-top"> <div class="ecwid-features-top-item"> <div class="ecwid-features-top-item-image"> <img src="<?php echo ECWID_PLUGIN_URL; ?> images/landing/wordpress.svg"> </div> <div class="ecwid-features-top-item-text"> <h3><?php _e('Compatible with your theme', 'ecwid-shopping-cart'); ?> </h3> <p><?php echo sprintf(__('Ecwid is compatible with your<br>“%s” WordPress theme<br>out of the box.', 'ecwid-shopping-cart'), ecwid_get_theme_name()); ?> </p> </div> </div> <div class="ecwid-features-top-item"> <div class="ecwid-features-top-item-image"> <img src="<?php echo ECWID_PLUGIN_URL; ?> images/landing/gift.svg" class="gift"> </div> <div class="ecwid-features-top-item-text"> <h3><?php _e('Free and always up to date', 'ecwid-shopping-cart'); ?>