Suche senden
Hochladen
Szépségszalon a Vertikális Végtelenhez – Drupal 8 sminkelés
•
0 gefällt mir
•
541 views
Hajas Tamás
Folgen
Durpal Hétvége 2014 előadásom diái http://drupal.hu/konferencia/2014/program#d8smink
Weniger lesen
Mehr lesen
Internet
Melden
Teilen
Melden
Teilen
1 von 56
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
Hogyan írjunk fenntartható CSS-t?
Hogyan írjunk fenntartható CSS-t?
Hajas Tamás
What's new in D7 Theming?
What's new in D7 Theming?
John Albin Wilkins
DrupalSouth 2014: Managing Complex Projects with Design Components
DrupalSouth 2014: Managing Complex Projects with Design Components
John Albin Wilkins
Styleguide-Driven Development: The New Web Development
Styleguide-Driven Development: The New Web Development
John Albin Wilkins
New Adventures in Drupal Theming
New Adventures in Drupal Theming
John Albin Wilkins
Your next library website in drupal 8 - DrupalCamp Michigan 2016
Your next library website in drupal 8 - DrupalCamp Michigan 2016
Commercial Progression
Managing Complex Projects with Design Components - Drupalcon Austin 2014
Managing Complex Projects with Design Components - Drupalcon Austin 2014
John Albin Wilkins
Responsive Webdesign Drupallal
Responsive Webdesign Drupallal
Hajas Tamás
Empfohlen
Hogyan írjunk fenntartható CSS-t?
Hogyan írjunk fenntartható CSS-t?
Hajas Tamás
What's new in D7 Theming?
What's new in D7 Theming?
John Albin Wilkins
DrupalSouth 2014: Managing Complex Projects with Design Components
DrupalSouth 2014: Managing Complex Projects with Design Components
John Albin Wilkins
Styleguide-Driven Development: The New Web Development
Styleguide-Driven Development: The New Web Development
John Albin Wilkins
New Adventures in Drupal Theming
New Adventures in Drupal Theming
John Albin Wilkins
Your next library website in drupal 8 - DrupalCamp Michigan 2016
Your next library website in drupal 8 - DrupalCamp Michigan 2016
Commercial Progression
Managing Complex Projects with Design Components - Drupalcon Austin 2014
Managing Complex Projects with Design Components - Drupalcon Austin 2014
John Albin Wilkins
Responsive Webdesign Drupallal
Responsive Webdesign Drupallal
Hajas Tamás
BP DUG6 aboros Így készült a drupal6themes.com
BP DUG6 aboros Így készült a drupal6themes.com
guest9656fd
Hogy kerül a csizma az asztalra?
Hogy kerül a csizma az asztalra?
Open Academy
Mi a baj a Drupaloddal
Mi a baj a Drupaloddal
thesnufkin
HTML5 esettanulmányok
HTML5 esettanulmányok
Zoltán Dávid
Dreamweaver használata
Dreamweaver használata
Anna Benkő
Mágikus Magento - Bevezetés a Magento világába
Mágikus Magento - Bevezetés a Magento világába
János Ács
[Hungarian] HTML Course - Sapientia University
[Hungarian] HTML Course - Sapientia University
Zoltan Iszlai
A következő lépés
A következő lépés
Anikó Fejes
Magento
Magento
eRise
Weitere ähnliche Inhalte
Ähnlich wie Szépségszalon a Vertikális Végtelenhez – Drupal 8 sminkelés
BP DUG6 aboros Így készült a drupal6themes.com
BP DUG6 aboros Így készült a drupal6themes.com
guest9656fd
Hogy kerül a csizma az asztalra?
Hogy kerül a csizma az asztalra?
Open Academy
Mi a baj a Drupaloddal
Mi a baj a Drupaloddal
thesnufkin
HTML5 esettanulmányok
HTML5 esettanulmányok
Zoltán Dávid
Dreamweaver használata
Dreamweaver használata
Anna Benkő
Mágikus Magento - Bevezetés a Magento világába
Mágikus Magento - Bevezetés a Magento világába
János Ács
[Hungarian] HTML Course - Sapientia University
[Hungarian] HTML Course - Sapientia University
Zoltan Iszlai
A következő lépés
A következő lépés
Anikó Fejes
Magento
Magento
eRise
Ähnlich wie Szépségszalon a Vertikális Végtelenhez – Drupal 8 sminkelés
(9)
BP DUG6 aboros Így készült a drupal6themes.com
BP DUG6 aboros Így készült a drupal6themes.com
Hogy kerül a csizma az asztalra?
Hogy kerül a csizma az asztalra?
Mi a baj a Drupaloddal
Mi a baj a Drupaloddal
HTML5 esettanulmányok
HTML5 esettanulmányok
Dreamweaver használata
Dreamweaver használata
Mágikus Magento - Bevezetés a Magento világába
Mágikus Magento - Bevezetés a Magento világába
[Hungarian] HTML Course - Sapientia University
[Hungarian] HTML Course - Sapientia University
A következő lépés
A következő lépés
Magento
Magento
Szépségszalon a Vertikális Végtelenhez – Drupal 8 sminkelés
1.
Szépségszalon a Vertikális
Végtelenhez Drupal 8 sminkelés
2.
Hajas Tamás Drupal
tanácsadó Integral Vision Kft
3.
Drupal 7 sites/all/themes/bitangjo/
bitangjo.info
4.
Drupal 7 sites/all/themes/bitangjo/
bitangjo.info Drupal 8 themes/bitangjo/ bitangjo.info.yml
5.
YAML szintaktika kulcs_neve:
érték kettőspont ':' (nem egyenlőségjel) # komment: kettőskereszt '#' (nem pontossvessző) struktúra: behúzással jelezve Change record: https://drupal.org/node/1935708
6.
bitangjo.info.yml name: Bitangjó
smink ! ! description: Ez egy bitang jó smink! :) version: 1.0 ! ! core: 8.x type: theme ! # engine: twig ! base theme: classy ! package: custom screenshot: bitangjo.png Creating a D8 sub-theme: https://drupal.org/node/2165673
7.
A „Banán egyezség”
https://www.drupal.org/node/2289511
8.
Forrás: https://github.com/sqndr/d8-theming-guide/blob/master/img/theme-overview.png
9.
Forrás: https://github.com/sqndr/d8-theming-guide/blob/master/img/custom-theme.png
10.
bitangjo.info.yml stylesheets: all:
- css/base.css screen: - css/components.css print: - css/print.css
11.
bitangjo.info.yml # Stíluslap
felülbírálása ! stylesheets-override: - normalize.css ! # Stíluslap „etávolítása” ! stylesheets-remove: - jquery.ui.dialog.css Change record: https://drupal.org/node/1876600
12.
Drupal 8 SMACSS
+ BEM CSS coding standards: https://drupal.org/node/1886770
13.
• Base •
Layout • Module • State • Theme SMACSS CSS fájl-struktúra
14.
• Base •
Layout • Module • State • Theme SMACSS-szerű CSS fájl-struktúra
15.
SMACSS-szerű CSS fájl-struktúra
• Base • Layout • Component Module • State • Theme
16.
SMACSS-szerű CSS fájl-struktúra
• Base • Layout • Component Module • State • Theme
17.
SMACSS-szerű CSS fájl-struktúra
(smink) base • elements.css • typography.css layout • layout.css • node-add.css • … components • buttons.css • buttons.theme.css • … theme • install-page.css • appearance-page. css Forrás: seven theme
18.
SMACSS-szerű CSS fájl-struktúra
(modul) • module_name.module.css (layout, component, state) • module_name.theme.css • module_name.admin.css (layout, component, state) • module_name.admin.theme.css • module_name.base.css
19.
<div class="flower__bed"> <div
class="flower flower--tulip is-pollinating"> <div class="flower__petals"> <div class="flower__face"></div> </div> <div class="flower__stem"> <div class="flower__leaves"></div> </div> </div> </div> BEM John Albin: Managing complex projects with design components
20.
# Smink régiók
bitangjo.info.yml regions: content: Content help: Help page_top: 'Page top' page_bottom: 'Page bottom' sidebar_first: 'First sidebar' regions_hidden: - sidebar_first Forrás: seven.info.yml
21.
Drupal 7 hook_library_info()
22.
Drupal 7 hook_library_info()
Drupal 8 bitangjo.libraries.yml Change record: https://drupal.org/node/2201089
23.
base: version: 1.x
js: bitangjo.libraries.yml js/bitangjo.js: {} dependencies: - core/drupal - core/jquery - core/jquery.once Forrás: https://github.com/sqndr/d8-theming-guide
24.
bitangjo.libraries.yml picker: version:
3.1.0 remote: http://formstone.it/components/picker js: lib/picker/js/jquery.fs.picker.js: {} css: theme: lib/picker/css/jquery.fs.picker.css: {} dependencies: - core/jquery Forrás: https://github.com/sqndr/d8-theming-guide
25.
bitangjo.info.yml* libraries: -
bitangjo/base *Hol a picker? Nemsokára kiderül… ;)
26.
Drupal 8 Breakpoints
27.
bartik.mobile: label: mobile
mediaQuery: '(min-width: 0px)' weight: 0 multipliers: - 1x bartik.narrow: label: narrow mediaQuery: 'all and (min-width: 560px) and (max-width: 850px)' weight: 1 multipliers: - 1x bartik.wide: label: wide mediaQuery: 'all and (min-width: 851px)' weight: 2 multipliers: - 1x bartik.breakpoints.yml
28.
Breakpoints » Responsive
images • Responsive images modul • Mapping beállítása • Breakpoint group • Breakpoint – Image style
29.
30.
Breakpoints » Responsive
images • Responsive images modul • Mapping beállítása • Breakpoint group • Breakpoint – Image style • RI image formatter • Mapping választása
31.
Drupal 8 Képstílusok
a sminkben
32.
Képstílusok a sminkben
• Képstílus létrehozása (admin felület) /admin/config/media/image-styles/add • Képstílus exportja admin felületről /admin/config/development/ configuration/single/export • Exportált YAML a sminkbe bitangjo/config/install/ image.style.style_name.yml
33.
uuid: 311e7c58-c64a-4c9e-b544-68b12b560e36 langcode:
en status: true dependencies: { } name: thumbnail label: 'Thumbnail (100×100)' effects: 1cfec298-8620-4749-b100-ccb6c4500779: uuid: 1cfec298-8620-4749-b100-ccb6c4500779 id: image_scale weight: 0 data: width: 100 height: 100 upscale: false third_party_settings: { } image.style.thumbnail.yml
34.
Drupal 7 *.tpl.php
35.
Drupal 7 *.tpl.php
Drupal 8 *.html.twig
36.
*.html.twig Biztonságos Gyors
Érthető PHPTemplate & Twig comparison: https://drupal.org/node/1918824
37.
*.html.twig változó {{
page.primary_menu }} Twig coding standards: https://drupal.org/node/1823416
38.
*.html.twig filter {{
content|without('links') }} Twig coding standards: https://drupal.org/node/1823416
39.
*.html.twig filter {{
'Home'|t }} Twig coding standards: https://drupal.org/node/1823416
40.
*.html.twig fordítás {%
trans %} Submitted by {{ author_name|passthrough }} on {{ date|passthrough }} {% endtrans %} Twig coding standards: https://drupal.org/node/1823416
41.
*.html.twig komment {#
Kód komment #} Twig coding standards: https://drupal.org/node/1823416
42.
*.html.twig if funkció
{% if site_slogan %} <div class="site-slogan"> {{ site_slogan }} </div> {% endif %} Twig coding standards: https://drupal.org/node/1823416
43.
*.html.twig for loop
<ul> {% for user in users %} <li> {{ user.username }} </li> {% endfor %} </ul> Twig coding standards: https://drupal.org/node/1823416
44.
*.html.twig Twig változó
definiálása {% set foo="bar" %} … {{ foo }} Twig coding standards: https://drupal.org/node/1823416
45.
*.html.twig Twig változó
definiálása {% set classes = [ 'admin-list', compact ? 'compact', ] %} ! … ! <ul{{ attributes.addClass(classes) }}> Twig coding standards: https://drupal.org/node/1823416
46.
Twig debug sites/default/services.yml
parameters: twig.config: debug: true auto_reload: true cache: false
47.
Twig debug
48.
Twig debug $
cp example.settings.local.php default/settings.local.php …és a settings.php-ben: if (file_exists(__DIR__ . '/settings.local.php')) { include __DIR__ . '/settings.local.php'; }
49.
Drupal 7 template.php
50.
Drupal 7 template.php
Drupal 8 bitangjo.theme
51.
bitangjo.theme /** *
Implements hook_form_FORM_ID_alter(). */ function bitangjo_form_recipe_alter(&$form, &$form_state) { ! // Use Picker to replace default checkboxes and radios. $form['#attached']['library'][] = 'bitangjo/picker'; } Change record-ok: https://www.drupal.org/node/2352319, https://drupal.org/node/2169605
52.
Drupal 8 Headless
Drupal
53.
Headless Drupal Adatbázis
⬇ PHP „adatszolgáltatás” ! ⬍ JS adatfeldolgozás, HTML render !⬇ Böngésző Weboldal megjelnítése
54.
55.
további infók •
https://drupal.org/theme-guide/8 • Change records (theme): http://j.mp/1qFSKXq • http://d8.sqndr.com • https://amsterdam2014.drupal.org/session/twig-and- new-drupal-8-theme-system • Twig Coding Standards: https://drupal.org/node/ 1823416 • CSS CS: https://drupal.org/node/1886770 • JS CS: https://drupal.org/node/172169
56.
Tamás Hajas Drupal
consultant Integral Vision Ltd integralvision.hu about.me/tamashajas
Jetzt herunterladen