Drupal 7 themes : create new themes for your Drupal 7 site with a clean layout and powerful CSS styling /
Filled with practical examples, this book helps you to understand the logic behind the theming system employed in Drupal, and how to make it work for you. You will learn key concepts and work through examples with careful, step-by-step instructions. The main requirements to make use of this book are...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Pub.,
2011.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Learning the Basics of Drupal Theming; The importance of themes in Drupal; One template or many? It's up to you; Get creative with configuration; Intercept and override; Sub-themes are your friends; What is a theme?; Official Drupal online resources; What is a theme engine?; The range and flexibility of Drupal themes; The output of a Drupal theme; The site administrator's view; The default Drupal themes; Bartik; Garland; Stark; Theme files; Summary
- Chapter 2: Working with the Default Configuration and Display OptionsConfiguring a theme; Global Theme Configuration; Toggle Display; Logo Image Settings; Shortcut Icon Settings; Theme-Specific Configuration; Controlling module and block visibility; Introducing the Module Manager; Introducing the Blocks Manager; Configuring individual blocks; Region Settings; Visibility Settings; Finding additional themes; Installing an additional theme; Automatic installation; Manual installation; Uninstalling themes; Summary; Chapter 3: Understanding PHPTemplate Themes; What is PHPTemplate?
- How does it all work?Key PHPTemplate theme files; The role of the .info file; The role of the page.tpl.php file; Two contrasting examples; A simple PHPTemplate theme-Seven; A more complex PHPTemplate theme-Bartik; Summary; Chapter 4: Using Intercepts and Overrides; Putting together the pieces; Default templates; Default stylesheets; The themable functions; Overriding the default CSS; CSS overrides in action; Overriding core stylesheets; Overriding templates and themable functions; Various approaches to overriding the Default Styling; Overriding templates; Overriding functions
- Converting themable functions into dedicated templatesOverrides in Action: A look at overrides in Bartik; Overriding the default template files; Overriding themable functions; Working with template variables; Intercepting and overriding variables; Making new variables available; Summary; Chapter 5: Customizing an Existing Theme; Setting up the workspace; Planning the modifications; Selecting a base theme; Creating a new sub-theme; Create a copy of the base theme; Create the sub-theme in a new directory; Delete the files you don't need; Update the theme name throughout the sub-theme
- Create a stylesheet for your sub-themeUpdate the sub-theme's .info file; Customizing the sub-theme; Configuring the theme; Adapting the CSS; Modifying a default template; Overriding a themable function; Summary; Chapter 6: Creating a New Theme; Planning the build; Creating a new theme through sub-theming; Selecting a base theme; Creating the sub-theme; Configuring the site; Styling the new theme; Fusion's theming resources; Customizing the styling; Building a new theme without sub-theming; Planning the build; Creating the necessary elements; Populating the .info file