芪ããŒã
ãããã¯ããŒãžã§ã³4.4.1ã§æåã«å°å ¥ãããŸããã
æŠèŠ
manifest.jsonãã¡ã€ã«ã§parent_theme
ã«ããŒãYãæå®ãããŠããå ŽåãããŒãXã¯äŸåããŒãïŒåããŒããšãåŒã°ããŸãïŒã§ãããããŒãYã¯èŠªããŒãã§ãã
åããŒãã«ã¯ã芪ããŒãã®ãã¡ã€ã«ãšã¯ç°ãªããã¡ã€ã«ã®ã¿ãå«ãŸããŸãã
åããŒãã¯ãå¿
èŠã«å¿ããŠèŠªããŒãã®ã³ã³ãã³ãïŒãã³ãã¬ãŒããããŽãªã©ïŒã䜿çšããŸãã
-
芪ããŒãããã³åããŒãã®cssãmediaãããã³templatesãã©ã«ããŒã¯ãå®è¡æã«ããŒãžãããŸãã
-
åããŒãã«ãã¡ã€ã«ããªãå Žåã代ããã«èŠªããŒãã®å¯Ÿå¿ãããã¡ã€ã«ã䜿çšãããŸãã
-
åããŒãã«ã芪ããŒãã«ãªããã¡ã€ã«ãããå ŽåïŒååããã³ååãªã¹ããã³ãã¬ãŒãããããã¯ã®ã©ãããŒãéçãã³ãã¬ãŒããªã©ïŒããããã¯èŠªããŒãã®ãã¡ã€ã«ãšãšãã«ãªã¹ããããŸãã
-
ãã¡ã€ã«ãåããŒããšèŠªããŒãã®äž¡æ¹ã«ååšããå ŽåãåããŒãã®ãã¡ã€ã«ãåªå ãããŸãã
-
ããŒãã®ã¬ã€ã¢ãŠãããã³ã¹ã¿ã€ã«ãã©ã«ããŒã¯ããŒãžãããŸããã
-
åããŒãã«ç¬èªã®ã¬ã€ã¢ãŠããããå Žåã¯ããããã®ã¿ã䜿çšãããŸãããã以å€ã®å Žåã¯ã芪ããŒãã®ã¬ã€ã¢ãŠãã䜿çšãããŸãã
-
åããŒãã¯åžžã«ç¬èªã®ã¹ã¿ã€ã«ã䜿çšããŸãã
-
$images_dir
å€æ°ã䜿çšããŠã芪ããŒãããç»åãããŒãã§ããŸãã -
ããŒãã«èŠªãããå Žåã
$images_dir
ã¯ãSmartyãã³ãã¬ãŒãã§ã®äœ¿çšã¯ã芪ããŒãã®media/imagesãã£ã¬ã¯ããªãæããŸãã -
ããŒãã«èŠªããªãå ŽåãããŒãã¯$images_dirã®ç¬èªã®media/imagesãã£ã¬ã¯ããªãæããŸãã
$self_images_dir
ã¯Smartyãã³ãã¬ãŒãã®å€æ°ã䜿çšããŠãããŒãã®ç¬èªã®media/imagesãã£ã¬ã¯ããªãæãããšãã§ããŸãã
ããŒãã®è€è£œ
-
å ã®ããŒãã«èŠªããªãå Žåããã®ãã¡ã€ã«ã¯è€è£œãããããŒãã®ãã£ã¬ã¯ããªã«ã³ããŒãããŸããã
-
è€è£œãããããŒãã«ã¯ãmanifest.jsonãã¡ã€ã«ãšãããŒãããŽä»ãã®/media/images/ãã£ã¬ã¯ããªã®ã¿ãå«ãŸããŸãã
-
å ã®ããŒãã«èŠªãããå Žåãå ã®ããŒãã®ã³ã³ãã³ãå šäœãè€è£œãããããŒãã®ãã£ã¬ã¯ããªã«ã³ããŒãããŸãã
ããŒãã®ã€ã³ã¹ããŒã«
芪ããŒãã®ãã¡ã€ã«ã¯ãåããŒãã®ã€ã³ã¹ããŒã«äžã«åããŒãã®ãã¡ã€ã«ãšããŒãžãããŸããã
åããŒãã®ãã¡ã€ã«ã®ã¿ãvar/themes_repositoryããdesign/themesã«ã³ããŒãããŸãã
ããŒããã¡ã€ã«ã®ã¢ããã°ã¬ãŒã
ã¢ããã°ã¬ãŒãã»ã³ã¿ãŒã¯ãã«ã¹ã¿ã ããŒãã®ãã¡ã€ã«ãã¢ããã°ã¬ãŒãããŸãããã·ã§ããã®ã¢ããã°ã¬ãŒãæã«ã¯ãã¬ã¹ãã³ã·ãããŒããšåºæ¬ããŒãã®ã¿ã圱é¿ãåããŸãã
ã¢ããªã³ãã¡ã€ã«ã®ã€ã³ã¹ããŒã«
ã¢ããªã³ã®ããŒãé¢é£ãã¡ã€ã«ïŒã¹ã¿ã€ã«ããã³ãã¬ãŒããªã©ïŒã¯ãäœæãããããŒãã®ã¿ã«ã€ã³ã¹ããŒã«ãããåããŒãã«ã¯ã€ã³ã¹ããŒã«ãããŸããã
äŸãã°ãvar/themes_repository/responsive/templates/addons/[addon]ã®ã¿ã«ã³ããŒãããŸããdesign/themes/responsive/templates/addons/[addon]
åºæ¬ããŒãã«ã®ã¿ãã³ãã¬ãŒããã¡ã€ã«ãæäŸããã¢ããªã³ã¯ãåºæ¬ããŒããšããã«äŸåããåããŒãã§ã®ã¿äœ¿çšã§ããŸããå¿ èŠãªãã³ãã¬ãŒããçŸåšã®ããŒãã«ãªãå ŽåãCS-Cartã¯BasicããŒãã®ãã³ãã¬ãŒãã«ãã©ãŒã«ããã¯ããŸããã
ã¬ã¹ãã³ã·ãããŒãããTPLããã¯ã䜿çšãã
ã¬ã¹ãã³ã·ãããŒãã®èŠªã§ã¯ãªãå Žåã§ãããã¹ãŠã®ããŒãã§ã¬ã¹ãã³ã·ãããŒãã®ãã³ãã¬ãŒãããã¯ã®ãã³ãã©ãŒã䜿çšã§ããŸãããã®ããã«ãã¬ã¹ãã³ã·ãããŒãå°çšã®ãã³ãã¬ãŒããæäŸããã¢ããªã³ã¯ãä»ã®ããŒããšããçšåºŠé£æºã§ããŸãã
次ã®ãã¡ã€ã«ãšãã£ã¬ã¯ããªã®æ§é ããããšä»®å®ããŸãã
design
âââ themes
âââ child
â âââ templates
â âââ addons
â âââ styles_fixer
â âââ hooks
â âââ index
â âââ styles.post.tpl
âââ parent
â âââ templates
â âââ addons
â âââ styles_fixer
â âââ hooks
â âââ index
â âââ styles.post.tpl
âââ responsive
âââ templates
âââ addons
âââ styles_fixer
âââ hooks
âââ index
âââ styles.post.tpl
ã¢ã¯ãã£ããªããŒãã¯childã§ããã芪ããŒãã«äŸåããŸãããã®å ŽåãCS-Cartã¯index:styles
ãããŒãã®ãã³ãã©ãŒã次ã®é åºã§æ€çŽ¢ããŸãïŒåâ芪âã¬ã¹ãã³ã·ãã
æåã«èŠã€ãã£ããã³ãã©ãŒã䜿çšãããŸãã
ã¬ã¹ãã³ã·ãããŒããã·ã§ããã«ã€ã³ã¹ããŒã«ãããŠããªãå ŽåãTPLããã¯ãã³ãã©ãŒã®æ€çŽ¢ã¯ã¬ã¹ãã³ã·ãããŒãã§å®è¡ãããŸããã
Updated over 4 years ago