Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Drupal themes

339 views

Published on

  • Be the first to comment

  • Be the first to like this

Drupal themes

  1. 1. Mai 2014 Drupal themes Construiește o tema sau folosește o temă părinte
  2. 2. 01 Gabriel Ungureanu CEO @ AG Prime# Drupal developer for 6 years# https://drupal.org/user/279352/# ! Modules: Exclude Node Title, Path redirect import, User history, User Status Color, IP Block
  3. 3. Cum se randează o pagină in Drupal?
  4. 4. 01 Anatomia unei teme ✤ .info (definește regiuni, fișiere incluse, informații generale)# ✤ .tpl.php (fișiere template)# ✤ template.php (poate conține Drupal hooks)# ✤ Sub-temele moștenesc stilurile temei parinte si le pot altera sau completa
  5. 5. Ce este un HOOK? ✤ Un hook se poate „agăța„ oriunde pe parcursul ciclului de viață Drupal.# ✤ Se prefixează cu numele modulului care îl implementează si transportă cu referință valorile alterate.# Ex. HOOK_node_view# function my_module_node_view($node, $view_mode, $langcode) {! ! $node->was_here = TRUE;! }
  6. 6. Metode de a procesa o pagină în Drupal
  7. 7. Clasic ✤ Noduri# ✤ Views# ✤ Blocks# ✤ Menus
  8. 8. Clasic + Extra ✤ Noduri# ✤ Views# ✤ Blocks# ✤ Menus# ✤ Context
  9. 9. Panels ✤ Noduri# ✤ Views# ✤ Blocks / Panes# ✤ Menus# ✤ Panels
  10. 10. Get Responsive with Panels ✤ https://drupal.org/project/panopoly# # Supported by Pantheon# ! ! ✤ https://drupal.org/project/kalatheme
  11. 11. SASS Support ✤ Majoritatea temelor suporta Compass / SASS# Avantaje:# ✤ Variabile# ✤ Nesting# ✤ Imports# ✤ Mixins# ✤ Inheritance / Extends# ✤ Operators
  12. 12. Teme populare ✤ Zen https://drupal.org/project/zen ! ✤ Adaptive https://drupal.org/project/adaptivetheme # ✤ Omega https://drupal.org/project/omega # ✤ Fusion https://drupal.org/project/fusion # ✤ Bootstrap https://drupal.org/project/bootstrap
  13. 13. Links ✤ https://drupal.org/documentation/theme# ✤ https://drupal.org/project/project_theme# ✤ http://sass-lang.com/
  14. 14. Questions?

×