Repository navigation
#90 [Front] feat: thème partagé de Saturne sur les écrans DoliWPShop - #91
Open
evarisk-kilyan wants to merge 1 commit into
Open
evarisk-kilyan wants to merge 1 commit into
evarisk-kilyan wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Résumé
DoliWPShop ne dépend pas de Saturne. Quand Saturne est actif, ses pages prennent maintenant le thème moderne partagé (Evarisk/Saturne#1761). Sans Saturne, elles gardent leur rendu actuel.
Changements
lib/doliwpshop.lib.phpDeux helpers sont utilisés par tous les
llxHeader()du module :doliwpshop_header_css()ajoutesaturne.min.cssseulement si Saturne est actif, puis toujoursdoliwpshop.css;doliwpshop_body_classes()ajoutemod-doliwpshop, etsaturne-themesi Saturne est actif.Ils sont branchés sur les pages suivantes :
admin/doliwpshop*.php;stockmanagement.php;product_lang_extrafields.php;index.php;product/list.php;categorie_list.php;traduction_doliwpshop.php.Le
require_oncede la lib manquait sur trois de ces pages, il est ajouté.css/doliwpshop.css(nouveau)Il n'est pas déclaré dans
module_parts, donc il n'est jamais chargé hors des pages du module. Il a deux parties.Partie de base, sans portée :
<style>decategorie_list.php;Partie thème, scopée
body#mainbody.saturne-theme.mod-doliwpshop:Dans
product/list.php, le picto de titretitle_productsn'existe plus en Dolibarr 24 : il est remplacé parproduct.Dépendance
Pour voir le thème : Evarisk/Saturne#1761 et Saturne actif.
Pour tester
Aucune synchronisation WordPress n'a été lancée pendant les tests. Contrôle : 15 écrans, à 1600 et 1280 px, sans erreur.
Close #90