ã¯ããã«
æçµæ´æ°æ¥ï¼2019å¹´5æ19æ¥
ãã¼ãã¯ããã¬ã¼ã³ãã¼ã·ã§ã³å±¤ãå®ç¾©ãããã¡ã¤ã«ç¾¤ã§ããã¾ããä¸ã¤ã®ãã¼ãããã¨ã«è¤æ°ã®ããªã¨ã¼ã·ã§ã³ãä½æå¯è½ã§ããããã¯ããµããã¼ããã¨ãå¼ã°ãã¾ãããã¼ãã¨ãµããã¼ãã«ã¯ã .info.yml ãã¡ã¤ã«ã®ã¿ãå¿ é ã§ããããããã»ã¨ãã©ã®å ´åããã®ä»ã®ãã¡ã¤ã«ã使ç¨ãã¾ãããã®ãã¼ã¸ã§ã¯ãä¸è¬çãªãã¼ãã¾ãã¯ãµããã¼ãã«å«ã¾ãããã¡ã¤ã«ã¨ãã©ã«ãã«ã¤ãã¦èª¬æãã¾ãã
ãã¼ãã®é ç½®
ãã¼ãã¯ãå¿ ãã¤ã³ã¹ãã¼ã«ããDrupalå ã®ãthemesããã©ã«ãã«é ç½®ããå¿ è¦ãããã¾ããBartikãSevenãªã©ã®Drupalã®ã³ã¢ãã¼ãã¯ãcore/themes ãã©ã«ãå ã«ããã¾ãã
ãthemes/contribããã©ã«ãå ã«ãå¯ä¸ãã¼ããé ç½®ãããthemes/customããã©ã«ãå ã«èªä½ã®ãã¼ãããµããã¼ããé ç½®ãããã¨ãæ¨å¥¨ããã¦ãã¾ãã
åå¥ã®ãã¼ãã¯ããã¼ãåãä»ãããã©ã«ãã«æ ¼ç´ãã¾ãï¼ä¾ï¼fluffiness/ ï¼ããã©ã«ãåã¯ãã¹ã¦å°æåã§ãè±åã§å§ã¾ããã¹ãã¼ã¹ã®ãããã«ã¢ã³ãã¼ã¹ã³ã¢ï¼_ï¼ã使ç¨ãã¾ãã
以ä¸ã¯ã¤ã³ã¹ãã¼ã«ãã Drupal ã®ãã©ã«ãæ§é ï¼ä¸é¨ï¼ã®ä¾ã§ãï¼
|-core
| |-modules
| |-themes
| | |-bartik
| | |-seven
..
|-modules
|-themes
| |-contrib
| | |-zen
| | |-basic
| | |-bluemarine
| |-custom
| | |-fluffiness
ãã¼ããã©ã«ãæ§é
以ä¸ã¯ä¸è¬çãªãã¼ããã©ã«ãã®æ§é ï¼ãã¡ã¤ã«ã¨ãã©ã«ãï¼ã®ä¾ã§ãã
|-fluffiness.breakpoints.yml
|-fluffiness.info.yml
|-fluffiness.libraries.yml
|-fluffiness.theme
|-config
| |-install
| | |-fluffiness.settings.yml
| |-schema
| | |-fluffiness.schema.yml
|-css
| |-style.css
|-js
| |-fluffiness.js
|-images
| |-buttons.png
|-logo.svg
|-screenshot.png
|-templates
| |-maintenance-page.html.twig
| |-node.html.twig
以ä¸ããã¼ããã©ã«ãå ã®ä¸è¬çãªãã¡ã¤ã«ã®èª¬æã§ãã
* .info.yml
ãã¼ãã¯ããã¼ããå®ç¾©ãã.info.ymlãã¡ã¤ã«ãå¿ è¦ã§ãã.info.ymlãã¡ã¤ã«ã§ã¯ã主ã«ã¡ã¿ãã¼ã¿ãã©ã¤ãã©ãªããããã¯ãªã¼ã¸ã§ã³ãè¨å®ãã¾ãããã¼ãã§å¿ é ã«ãªããã¡ã¤ã«ã¯ .info.ymlãã¡ã¤ã«ã®ã¿ã§ãã
* .libraries.yml
.libraries.ymlãã¡ã¤ã«ã¯ãã¼ãã«èªã¿è¾¼ãJavaScriptãCSSã®ã©ã¤ãã©ãªãå®ç¾©ããã®ã«ä½¿ç¨ããã¾ãã
* .breakpoints.yml
ãã¬ã¤ã¯ãã¤ã³ãã¯ãµã¤ãºã®ç°ãªããã¾ãã¾ãªããã¤ã¹ã«ããã¦ãã¬ã¹ãã³ã·ããã¶ã¤ã³ãå¤æ´ããããµã¤ãºãå®ç¾©ãã¾ãããã¬ã¼ã¯ãã¤ã³ãã¯ã.breakpoints.ymlãã¡ã¤ã«ã§è¨å®ãã¾ãã
*.theme
.themeãã¡ã¤ã«ã¯ããã¹ã¦ã®æ¡ä»¶ä»ããã¸ãã¯ãåºåããããã¼ã¿ã®(å)å¦çãå«ãã PHPãã¡ã¤ã«ã§ããåºæ¬çãªãã¼ãè¨å®ã®æ¡å¼µããããã¨ãå¯è½ã§ããé«åº¦ãªãã¼ãè¨å®ã«é¢ãã¦ã¯ãã¡ããåç §ãã¦ãã ããã
CSS/
.cssãã¡ã¤ã«ã¯ã 'css'ãµããã©ã«ãå ã«ä¿åãããã¨ãæ¨å¥¨ããã¦ãã¾ããDrupal 9 ã®ã³ã¢ãã¼ãã¯ãSMACCSã¹ã¿ã¤ã«ã¬ã¤ãã«å¾ã£ã¦CSSãã¡ã¤ã«ãæ´çãã¦ãã¾ãããã¼ãã«CSSãã¡ã¤ã«ãèªã¿è¾¼ãã«ã¯ã.libraries.ymlãã¡ã¤ã«ã§å®ç¾©ãã.info.ymlãã¡ã¤ã«ã§ãè¨å®ï¼ãªã¼ãã¼ã©ã¤ããåé¤ï¼ããå¿ è¦ãããã¾ãã
js/
ãã¼ãã§ä½¿ãJavaScriptãã¡ã¤ã«ã¯ã 'js'ãµããã©ã«ãã«ä¿åãã¾ãããã¼ãã«JavaScriptãã¡ã¤ã«ãèªã¿è¾¼ãã«ã¯ã.libraries.ymlãã¡ã¤ã«ã§å®ç¾©ããå¿ è¦ãããã¾ãã
images/
ç»åãã¡ã¤ã«ã¯ã 'images'ãµããã©ã«ãã«ä¿åãããã¨ãæ¨å¥¨ããã¦ãã¾ãã
screenshot.png
ãã¼ããã©ã«ãå ã«screenshot.pngãã¡ã¤ã«ãããå ´åããã®ãã¡ã¤ã«ãããã¼ãããã¼ã¸ã§è¡¨ç¤ºããã¾ããã¾ãã.info.ymlãã¡ã¤ã«ã§ãã¹ã¯ãªã¼ã³ã·ã§ããç¨ã®ãã¡ã¤ã«ãè¨å®å¯è½ã§ãã
logo.svg
ãã¼ããã©ã«ãå ã«ãã´SVGãã¡ã¤ã«ï¼logo.svgï¼ãããå ´åãwebãµã¤ãã®ãããã¼ã§ä½¿ç¨ãããã¨ãå¯è½ã§ããã¾ãããã´ãã¡ã¤ã«ã¯ããã¼ããã®ãè¨å®ããã¼ã¸ã§ã¢ãããã¼ãå¯è½ã§ãã
templates/
ãã³ãã¬ã¼ãã¯ãHTMLãã¼ã¯ã¢ããã¨å¹¾ã¤ãã®ãã¬ã¼ã³ãã¼ã·ã§ã³ãã¸ãã¯ãè¨å®ãã¾ããDrupal 7ã¨ã¯å¯¾ç §çã«ãDrupal 9 ã®ãã³ãã¬ã¼ããã¡ã¤ã«ï¼*.html.twigãã¡ã¤ã«ï¼ã¯ã 'templates'ãµããã©ã«ãã«ä¿åããå¿ è¦ãããã¾ãããã³ãã¬ã¼ããã¡ã¤ã«ã®å½åè¦åã«å¾ããã¨ã§ãããã©ã«ãã®ã³ã¢ãã³ãã¬ã¼ããæå®ãããã³ãã¬ã¼ãã«ç½®ãæããããã©ã«ãã®ãã¼ã¯ã¢ãããä¸æ¸ããããã¨ãã§ãã¾ããã¾ãããµããã©ã«ãã¼ãå©ç¨ãã¦ãã³ãã¬ã¼ããã¡ã¤ã«ãæ´çãããã¨ãå¯è½ã§ããä¾ãã°ãå ¨ã¦ã®ãããã¯ç¨ãã³ãã¬ã¼ãã templates/block ã«æ ¼ç´ãããã¥ã¼ãºã®ãã³ãã¬ã¼ãã templates/views ã«æ ¼ç´ãããªã©ã§ãã
ã³ã¢ãã¼ãBartikã®ãã©ã«ãæ§é
ä¾ã¨ãã¦ãcore/themes/bartikã«ããBartikãã©ã«ãã®æ§é ã確èªãã¾ãããã
|-bartik.breakpoints.yml
|-bartik.info.yml
|-bartik.libraries.yml
|-bartik.theme
|-color
| |-color.inc
| |-preview.css
| |-preview.html
| |-preview.js
|-config
| |-schema
| | |-bartik.schema.yml
|-css
| |-colors.css
| |-layout.css
| |-maintenance-page.css
| |-print.css
|-images
| |-add.png
| |-required.svg
| |-tabs-border.png
|-logo.svg
|-screenshot.png
|-templates
| |-block--search-form-block.html.twig
| |-block--system-branding-block.html.twig
| |-block--system-menu-block.html.twig
| |-block.html.twig
| |-comment.html.twig
| |-field--taxonomy-term-reference.html.twig
| |-maintenance-page.html.twig
| |-node.html.twig
| |-page.html.twig
| |-status-messages.html.twig