Issue: Automatically load CSS and JS files from the assets folder based on theme hierarchy and plugin activation
Description:
All CSS and JS files located in the assets folder must be automatically loaded for both parent and child themes. The logic should handle the following cases: plugin-specific assets, RTL styles, and ensure proper handling based on theme hierarchy.
Requirements:
Expected Outcome:
- All CSS and JS files located in the
assets folder are automatically loaded according to the specified logic, with correct RTL or straight versions, plugin activation, and respect to theme hierarchy.
Issue: Automatically load CSS and JS files from the
assetsfolder based on theme hierarchy and plugin activationDescription:
All CSS and JS files located in the
assetsfolder must be automatically loaded for both parent and child themes. The logic should handle the following cases: plugin-specific assets, RTL styles, and ensure proper handling based on theme hierarchy.Requirements:
Automatic Loading of Assets:
assetsfolder must be automatically loaded without manual inclusion.Plugin-Specific Assets:
assets/plugins/folder, they should be loaded only if the corresponding plugin is active.assets/plugins/plugin-name/).CSS RTL Logic:
is_rtl()), automatically load only CSS files ending in-rtl.css.-rtl.css).Parent and Child Theme Hierarchy:
filename.asset.phpwhen available.asset.phpfor loading. Ifasset.phpis not available, automatically fallback to loadingfilename.cssdirectly.Expected Outcome:
assetsfolder are automatically loaded according to the specified logic, with correct RTL or straight versions, plugin activation, and respect to theme hierarchy.