1.1 KiB
Executable File
1.1 KiB
Executable File
Base Plumrocket extension for M2
Abstract Classes:
Model\OptionSource\AbstractSource- for creating system config sourcesSetup\AbstractUninstall- for creating uninstall scripts;
Utils
DeviceDetectInterface- provides isMobile and isTabled methodsModel\ConfigUtils- all what you need to read configsModel\Utils\HtmlTag- regex based tool for editing HTML tags
Frontend
Themes
We add classes to <body> and layout handles depend on a current theme.
It simplifies adding support of different themes, add separate styles or event separate layouts for each theme.
Themes support
First, extension adding two layouts handles of current theme, eg:
pl_thm_smartwave_defaultpl_thm_smartwave_porto_default
Second, two classes to body:
pl-thm-smartwavepl-thm-smartwave-porto
Catalog
ViewModel\Catalog\CurrentProductRetriever - alternative of using deprecated registry
System config
Layout handles
Extension adding two handles to each plumrocket configuration.
pr_system_config_editpr_system_config_edit + section_ide.g - pr_system_config_edit_pr_cookie