
Drupal 7 Themes.
Title:
Drupal 7 Themes.
Author:
Shreves, Ric.
ISBN:
9781849512770
Personal Author:
Edition:
1st ed.
Physical Description:
1 online resource (391 pages)
Contents:
Drupal 7 Themes -- Table of Contents -- Drupal 7 Themes -- Credits -- About the Author -- About the Reviewer -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Errata -- Piracy -- Questions -- 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 -- 2. Working with the Default Configuration and Display Options -- Configuring 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 -- Pages -- Content Types -- Roles -- Users -- Finding additional themes -- Installing an additional theme -- Automatic installation -- Manual installation -- Uninstalling themes -- Summary -- 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 -- Alternative theme engines -- PHPTAL -- Smarty -- Summary.
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 templates -- Overrides 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 -- 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-theme -- Update 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 -- 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 -- Working with the CSS -- Modifying the templates -- Working with the template.php file -- Building a new theme without sub-theming -- Planning the build -- Creating the necessary elements -- Populating the .info file -- Customizing the page.tpl.php file -- The style.css file -- Adding optional elements -- Packaging your theme -- Summary -- 7. Dynamic Theming -- Designating a separate Admin theme.
Using multiple page templates -- Creating a unique home page template -- Using a different template for a group of pages -- Assigning a specific template to a specific page -- Designating a specific template for a specific user -- Dynamically theming page elements -- Associating elements with the front page -- Styling by region -- Dynamically styling blocks -- Creating dynamic CSS styling -- Employing classes for conditional styling -- Adding new variables to classes -- Creating dynamic selectors for nodes -- Creating browser-specific stylesheets -- Summary -- 8. Dealing with Forms -- The Default Forms -- The User Forms -- Login Form -- Login Block Form -- Login Page Form -- User Registration Form -- Request Password Form -- User Profile Editing Form -- Contact Form -- Search Forms -- Block Search Form -- Page Search Form -- Advanced Search Form -- Search results page -- Poll module Forms -- Poll Block Form -- Poll Page Form -- Comment Form -- Administration Forms -- How Forms work in Drupal -- Modifying forms -- Working with the CSS styling -- Modifying the page or block holding the form -- Overriding the templates for pages and nodes containing forms -- Overriding the templates for blocks containing forms -- Overriding the default form templates -- Overriding theme functions to control form elements -- Creating dedicated templates for forms -- Modifying forms with custom modules -- Summary -- 9. Overcoming Common Challenges in Drupal Theming -- Maintaining cross-browser compatibility -- Creating accessible themes -- Validation tools -- Drupal theme accessibility basics -- Avoiding tables -- Creating accessible forms -- Not relying on JavaScript -- Making sure your text resizes -- Ordering elements on the screen logically -- Providing hover states and visited states -- Providing alternatives to applets and plugins.
Supporting a semantic structure -- Using system fonts for your menus -- Using capitalization appropriately -- Using a suitable color scheme -- Using jump links -- Creating template suggestions for fields -- Creating template suggestions for specific nodes -- Suggestions for key modules -- Styling the Comment module -- Styling the Forum module -- Styling the Poll module -- Styling the Profile module -- Styling the Search module -- Theming Views -- Theming Panels -- Theming the maintenance page -- Troubleshooting your theme -- Basic principles -- Troubleshooting common problems -- Summary -- 10. Useful Extensions for Themers -- Drupal modules -- Administration Menu -- Chaos Tool Suite -- Colorbox -- Conditional Stylesheets -- Devel -- @font-your-face -- Frontpage -- HTML5 Tools -- .mobi Loader -- Mobile Theme -- Nice Menus -- Noggin -- Organic Groups -- Panels -- Semantic Views -- Skinr -- Style Guide -- Sweaver -- Taxonomy Theme -- ThemeKey -- Views -- Webform -- Third-party software -- Drush -- Firebug -- Web Developer Extension -- YSlow -- Summary -- A. Identifying Templates, Stylesheets, and Themable Functions -- A guide to Theming Elements -- Common Theme System functions -- Theming the Aggregator module -- Default templates -- aggregator-feed-source.tpl.php -- aggregator-item.tpl.php -- aggregator-summary-item.tpl.php -- aggregator-summary-items.tpl.php -- aggregator-wrapper.tpl.php -- Default stylesheets -- Themable functions -- Theming the Block module -- Default templates -- block.tpl.php -- block-admin-display-form.tpl.php -- Default stylesheets -- Theming the Book functionality -- Default templates -- book-all-books-block.tpl.php -- book-export-html.tpl.php -- book-navigation.tpl.php -- book-node-export-html.tpl.php -- Default stylesheets -- Themable functions -- Theming the Color module -- Default templates -- Default stylesheets.
Themable functions -- Theming the Comment functionality -- Default templates -- comment-wrapper.tpl.php -- comment.tpl.php -- Default stylesheets -- Themable functions -- Theming the Dashboard module -- Default templates -- Default stylesheets -- Themable functions -- Theming the DBLog module -- Default templates -- Default stylesheets -- Themable functions -- Theming the Field module -- Default templates -- field.tpl.php -- Default stylesheets -- Themable functions -- Theming the Field UI module -- Default templates -- Default stylesheets -- Themable functions -- Theming the File module -- Default templates -- Default stylesheets -- Themable functions -- Theming the Filter module -- Default templates -- Default stylesheets -- Themable functions -- Theming the Form functionality -- Default templates -- Default stylesheets -- Themable functions -- Theming the Forum module -- Default templates -- forum-icon.tpl.php -- forum-list.tpl.php -- forum-submitted.tpl.php -- forum-topic-list.tpl.php -- forums.tpl.php -- Default stylesheets -- Themable functions -- Theming the Help module -- Default templates -- Default stylesheets -- Themable functions -- Theming the Image functionality -- Default templates -- Default stylesheets -- Themable functions -- Theming the Locale functionality -- Default templates -- Default stylesheets -- Themable functions -- Theming the Menu functionality -- Default templates -- Default stylesheets -- Themable functions -- Theming the Node functionality -- Default templates -- node.tpl.php -- Default stylesheets -- Themable functions -- Theming the OpenID module -- Default templates -- Default stylesheets -- Themable functions -- Theming the Overlay module -- Default templates -- Default stylesheets -- Themable functions -- Theming the Poll module -- Default templates -- poll-bar--block.tpl.php -- poll-bar.tpl.php.
poll-results.tpl.php.
Abstract:
Create new themes for your Drupal 7 site with a clean layout and powerful CSS styling.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Genre:
Electronic Access:
Click to View