StyleEdit3ToStyleEdit4Converter
in package
implements
StyleEdit3ToStyleEdit4ConverterInterface
Class StyleEdit3ToStyleEdit4Converter
Interfaces, Classes and Traits
- StyleEdit3ToStyleEdit4ConverterInterface
- Interface StyleEdit3ToStyleEdit4ConverterInterface
Table of Contents
- CHANGED_GROUPS = ['navbar-default-link-hover-bg-color' => 'template', 'navbar-default-link-active-bg-color' => 'template', 'gx-custom-bg-color-hover' => 'template', 'gx-custom-bg-color-active' => 'template', 'gx-cat-navbar-bg-color' => 'template']
- CHANGED_TYPES = ['switch' => 'checkbox', 'text' => 'textbox', 'color' => 'colorpicker', 'select' => 'dropdownselect', 'image' => 'imageupload']
- CHANGED_VARIABLE_NAMES = ['body-bg' => 'gx-body-bg-color', 'gx-wrapper-bg' => 'gx-wrapper-bg-color', 'gx-table-bg' => 'gx-table-bg-color', 'navbar-default-bg' => 'gx-cat-navbar-bg-color', 'gx-megadropdown-bg' => 'gx-megadropdown-bg-color', 'gx-enter-category-bg' => 'gx-enter-category-bg-color', 'gx-cat-left-bg' => 'gx-cat-left-bg-color', 'gx-cat-left-bg-hover' => 'gx-cat-left-bg-hover-color', 'gx-cat-left-bg-active' => 'gx-cat-left-bg-active-color', 'gx-cat-left-bg-open' => 'gx-cat-left-bg-open-color', 'gx-navbar-topbar-bg' => 'gx-navbar-topbar-bg-color', 'gx-navbar-topbar-link-bg' => 'gx-navbar-topbar-link-bg-color', 'gx-navbar-topbar-link-hover-bg' => 'gx-navbar-topbar-link-hover-bg-color', 'gx-navbar-topbar-link-active-bg' => 'gx-navbar-topbar-link-active-bg-color', 'gx-dropdown-bg' => 'gx-dropdown-bg-color', 'gx-dropdown-footer-bg' => 'gx-dropdown-footer-bg-color', 'gx-dropdown-hover-bg' => 'gx-dropdown-hover-bg-color', 'gx-footer-header-bg' => 'gx-footer-header-bg-color', 'gx-footer-bg' => 'gx-footer-bg-color', 'gx-product-info-img-bg' => 'gx-product-info-img-bg-color', 'gx-product-bg' => 'gx-product-bg-color', 'gx-gallery-bg' => 'gx-gallery-bg-color', 'gx-product-info-details-bg' => 'gx-product-info-details-bg-color', 'gx-tab-bg' => 'gx-tab-bg-color', 'gx-tab-bg-active' => 'gx-tab-bg-active-color', 'gx-total-box-top-bg' => 'gx-total-box-top-bg-color', 'gx-total-box-bottom-bg' => 'gx-total-box-bottom-bg-color', 'gx-checkout-table-bg' => 'gx-checkout-table-bg-color', 'gx-list-group-item-bg' => 'gx-list-group-item-bg-color', 'gx-list-group-item-bg-active' => 'gx-list-group-item-bg-active-color', 'gx-checkout-form-bg' => 'gx-checkout-form-bg-color', 'gx-checkbox-bg' => 'gx-checkbox-bg-color', 'gx-checkbox-active-bg' => 'gx-checkbox-active-bg-color', 'gx-panel-header-bg' => 'gx-panel-header-bg-color', 'gx-panel-bg' => 'gx-panel-bg-color', 'gx-header-bg' => 'gx-header-bg-color', 'gx-header-bg-mobile' => 'gx-header-bg-mobile-color', 'gx-header-bg-sticky' => 'gx-header-bg-sticky-color', 'gx-modal-bg' => 'gx-modal-bg-color', 'gx-alert-danger-bg' => 'gx-alert-danger-bg-color', 'gx-alert-success-bg' => 'gx-alert-success-bg-color', 'gx-alert-warning-bg' => 'gx-alert-warning-bg-color', 'gx-alert-info-bg' => 'gx-alert-info-bg-color', 'gx-btn-primary-bg' => 'gx-btn-primary-bg-color', 'gx-btn-default-bg' => 'gx-btn-default-bg-color', 'gx-btn-calltoaction-bg' => 'gx-btn-calltoaction-bg-color', 'gx-cart-basket-sticky-color' => 'gx-cart-sticky-icon-color', 'gx-cart-basket-mobile-color' => 'gx-cart-mobile-icon-color', 'grey' => 'gray', 'gx-googleplus' => ['#DD4B39'], 'gx-cart-basket-color' => 'gx-cart-icon-color']
- convert() : ConfigurationInterface
- createBoxesOptions() : array<string|int, OptionInterface>
- createCustomCssOption() : OptionInterface
- createOption() : OptionInterface
- createOptions() : array<string|int, OptionInterface>
- optionIsValid() : bool
- renameOptionValues() : array<string|int, stdClass>
- Some variable names where changed for StyleEdit4 the configuration names from StyleEdit3 are renamed here.
Constants
CHANGED_GROUPS
protected
mixed
CHANGED_GROUPS
= ['navbar-default-link-hover-bg-color' => 'template', 'navbar-default-link-active-bg-color' => 'template', 'gx-custom-bg-color-hover' => 'template', 'gx-custom-bg-color-active' => 'template', 'gx-cat-navbar-bg-color' => 'template']
CHANGED_TYPES
protected
mixed
CHANGED_TYPES
= ['switch' => 'checkbox', 'text' => 'textbox', 'color' => 'colorpicker', 'select' => 'dropdownselect', 'image' => 'imageupload']
CHANGED_VARIABLE_NAMES
protected
mixed
CHANGED_VARIABLE_NAMES
= ['body-bg' => 'gx-body-bg-color', 'gx-wrapper-bg' => 'gx-wrapper-bg-color', 'gx-table-bg' => 'gx-table-bg-color', 'navbar-default-bg' => 'gx-cat-navbar-bg-color', 'gx-megadropdown-bg' => 'gx-megadropdown-bg-color', 'gx-enter-category-bg' => 'gx-enter-category-bg-color', 'gx-cat-left-bg' => 'gx-cat-left-bg-color', 'gx-cat-left-bg-hover' => 'gx-cat-left-bg-hover-color', 'gx-cat-left-bg-active' => 'gx-cat-left-bg-active-color', 'gx-cat-left-bg-open' => 'gx-cat-left-bg-open-color', 'gx-navbar-topbar-bg' => 'gx-navbar-topbar-bg-color', 'gx-navbar-topbar-link-bg' => 'gx-navbar-topbar-link-bg-color', 'gx-navbar-topbar-link-hover-bg' => 'gx-navbar-topbar-link-hover-bg-color', 'gx-navbar-topbar-link-active-bg' => 'gx-navbar-topbar-link-active-bg-color', 'gx-dropdown-bg' => 'gx-dropdown-bg-color', 'gx-dropdown-footer-bg' => 'gx-dropdown-footer-bg-color', 'gx-dropdown-hover-bg' => 'gx-dropdown-hover-bg-color', 'gx-footer-header-bg' => 'gx-footer-header-bg-color', 'gx-footer-bg' => 'gx-footer-bg-color', 'gx-product-info-img-bg' => 'gx-product-info-img-bg-color', 'gx-product-bg' => 'gx-product-bg-color', 'gx-gallery-bg' => 'gx-gallery-bg-color', 'gx-product-info-details-bg' => 'gx-product-info-details-bg-color', 'gx-tab-bg' => 'gx-tab-bg-color', 'gx-tab-bg-active' => 'gx-tab-bg-active-color', 'gx-total-box-top-bg' => 'gx-total-box-top-bg-color', 'gx-total-box-bottom-bg' => 'gx-total-box-bottom-bg-color', 'gx-checkout-table-bg' => 'gx-checkout-table-bg-color', 'gx-list-group-item-bg' => 'gx-list-group-item-bg-color', 'gx-list-group-item-bg-active' => 'gx-list-group-item-bg-active-color', 'gx-checkout-form-bg' => 'gx-checkout-form-bg-color', 'gx-checkbox-bg' => 'gx-checkbox-bg-color', 'gx-checkbox-active-bg' => 'gx-checkbox-active-bg-color', 'gx-panel-header-bg' => 'gx-panel-header-bg-color', 'gx-panel-bg' => 'gx-panel-bg-color', 'gx-header-bg' => 'gx-header-bg-color', 'gx-header-bg-mobile' => 'gx-header-bg-mobile-color', 'gx-header-bg-sticky' => 'gx-header-bg-sticky-color', 'gx-modal-bg' => 'gx-modal-bg-color', 'gx-alert-danger-bg' => 'gx-alert-danger-bg-color', 'gx-alert-success-bg' => 'gx-alert-success-bg-color', 'gx-alert-warning-bg' => 'gx-alert-warning-bg-color', 'gx-alert-info-bg' => 'gx-alert-info-bg-color', 'gx-btn-primary-bg' => 'gx-btn-primary-bg-color', 'gx-btn-default-bg' => 'gx-btn-default-bg-color', 'gx-btn-calltoaction-bg' => 'gx-btn-calltoaction-bg-color', 'gx-cart-basket-sticky-color' => 'gx-cart-sticky-icon-color', 'gx-cart-basket-mobile-color' => 'gx-cart-mobile-icon-color', 'grey' => 'gray', 'gx-googleplus' => ['#DD4B39'], 'gx-cart-basket-color' => 'gx-cart-icon-color']
Methods
convert()
public
convert(StyleEdit3ConfigurationInterface $styleEdit3Configuration) : ConfigurationInterface
Parameters
- $styleEdit3Configuration : StyleEdit3ConfigurationInterface
Return values
ConfigurationInterface —createBoxesOptions()
protected
createBoxesOptions(stdClass $setting) : array<string|int, OptionInterface>
Parameters
- $setting : stdClass
Return values
array<string|int, OptionInterface> —createCustomCssOption()
protected
createCustomCssOption(string $customCss) : OptionInterface
Parameters
- $customCss : string
Return values
OptionInterface —createOption()
protected
createOption(stdClass $option) : OptionInterface
Parameters
- $option : stdClass
Return values
OptionInterface —createOptions()
protected
createOptions(stdClass $setting) : array<string|int, OptionInterface>
Parameters
- $setting : stdClass
Return values
array<string|int, OptionInterface> —optionIsValid()
protected
optionIsValid(stdClass $option) : bool
Parameters
- $option : stdClass
Return values
bool —renameOptionValues()
Some variable names where changed for StyleEdit4 the configuration names from StyleEdit3 are renamed here.
protected
renameOptionValues(stdClass $option) : array<string|int, stdClass>
Parameters
- $option : stdClass