From a HTML5 Template Kaloyan Petrov Drupal Themer Telerik Web Design Course

Slides:



Advertisements
Similar presentations
Hyper Text Markup Language.  HTML is a language for describing web pages.  HTML stands for Hyper Text Markup Language  HTML is not a programming language,
Advertisements

This presentation can be downloaded at Presented by the Office of Public Affairs Using the Cal State L.A. Web.
Seattle Drupal Clinic Introduction to Drupal and Web Content Management.
Customizing your Theme Information Systems 337 Prof. Harry Plantinga.
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
Content Management, Working with WordPress Pavel Ivanov Telerik Corporation
Content Management, Working with WordPress Svetlin Nakov Telerik Corporation
Content Management, Working with WordPress Svetlin Nakov Telerik Corporation
What is Web Design The term “web design” has come to encompass a number of disciplines, including: Visual (graphic) design User interface and experience.
Jiří Balej, Martin Podborský, Petra Čačková.  Tools, which enables to produce content without source code knowledge  Text document ◦ MS Word/OO Writer.
The Dr ü G Book: An Intro to Drupal The Dr ü G Book: An Intro to Drupal (Dr ü G: Drupal User ’ s Group - users, not developers) This is an introduction.
Drupal Workshop Introduction to Drupal Part 1: Web Content Management, Advantages/Disadvantages of Drupal, Drupal terminology, Drupal technology, directories.
Drupal and the CMS Project. Lesson Learned #1 Keep your modules updated, especially when there are security concerns in the update notes 2010 | The Sky’s.
Linux Operations and Administration
Slide 1 Today you will: think about criteria for judging a website understand that an effective website will match the needs and interests of users use.
 Using Microsoft Expression Web you can: › Create Web pages and Web sites › Set what you site will look like as you design it › Add text, images, multimedia.
TOP 20 MISTAKES YOU WILL MAKE IN YOUR 1ST DRUPAL PROJECT IZTOK SMOLIČ, ZAGREB.
Introduction: Drupal is a free and open-source content management system (CMS). A content management system(CMS) is a computer program that allows publishing,
1/30/11 Hacking your way through the Drupal API, a themers intro Baris Wanschers (BarisW)
Adapting a Site Template Using Drupal Themes and SASS/LESS.
Drupal Training Syllabus Chaitanya Lakshmi
How to extend and configure Drupal without user interaction or database dump By Damien Snoeck for Switzerland Romandy Drupal Group January 27, 2010 Work.
INTRODUCTION TO FRONTPAGE. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features Features  Starting Front Page Starting Front Page  Components.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
>> Introduction to HTML: Tags. Hyper - is the opposite of linear Text – words / sentences / paragraphs Mark-up – Marking the text Language – It is a language.
Editing for the Web TECM 4190 Dr. Lam. What makes a website “good” Write down some characteristics that you consider define a “good” website.
Web Design (2) Brackets - introduction. Brackets Brackets is a web design code editor It is an open-source project initiated by Adobe (creator of Dreamweaver)
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Static HTML to Drupal Theme By Ivan Zugec. Static HTML to Drupal Theme. Setting up a theme. Overriding tpl files. Using the devel module. Q and A.
Drupal Themes The Survival Guide Drupal Camp | Managua 2009.
What you don’t know you don’t know about Drupal 6 Dan Harris daneesia on drupal.org.
Drupal Overview Prepared by : Agustin D. Gumogda Jr. Instructor.
Drupal and you Brainstorm 12 Erik Pederstuen Menomonie Area Schools
Forensic Drupal Debugging Dan Harris daneesia on drupal.org.
HTML Structure & syntax. Introduction This presentation introduces the following: Doctype declaration HTML Tags, Elements and Attributes Sections of a.
Seattle Drupal Clinic Introduction to Drupal Part 1: Web Content Management, Advantages/Disadvantages of Drupal, Drupal terminology.
Louisa Lambregts, Louisa Lambregts
Introduction to Views Stanford Drupal Camp April 6, 2013.
Creating a Web Site Review of Concepts. Templates Templates are special HTML files that are used to quickly create pages on a web site. They contain the.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Drupal Theming Chris Neglia and Lisa Forgan Copyright 2009, Page 1 Solutions.
Louisa Lambregts, Louisa Lambregts
Miguel Lara, PhD. 1:10 – 1:15 Pre-test 1:15 – 1:30 Course overview 1:30 – 2:00 Setting up DW Site 2:00 – 2:05 > 2:05 – 2:55 Hands-on Lecture 2:55 – 3:00.
HTML A brief introduction HTML1. HTML, what is? HTML is a markup language for describing web documents (web pages). HTML stands for Hyper Text Markup.
INTRODUCTION TO HTML5 New HTML5 User Interface and Attributes.
WHY DO YOU NEED IT? What is a wireframe?. A wireframe is… A wireframe is a simple visual guide to show you what a Web page would look like. Wireframes.
Understanding Web-Based Digital Media Production Methods, Software, and Hardware Objective
COMP 143 Web Development with Adobe Dreamweaver CC.
Introduction to HTML Hypertext Mark-up Language. HTML HTML = Hypertext Mark-up Language Is just plain simple text marked up by “tags” You can create a.
 A Javascript library designed to simplify client-side scripting of HTML.
How to use Drupal Awdhesh Kumar (Team Leader) Presentation Topic.
How to Apply PDF in Flipbook on Website. Description If you are finding solution for applying PDF in flipbook mode on website, and adding multimedia items.
Drupal Basics May 30, 2012 By Sean Fitzpatrick. Sean Fitzpatrick | Welcome We're going to talk about Drupal We're going to keep it pretty.
Week 1: Introduction to HTML and Web Design
Creating a Theme From Scratch in Drupal
Web Basics: HTML/CSS/JavaScript What are they?
Project 1 Introduction to HTML.
Web Development & Design Foundations with HTML5 7th Edition
Creating Websites With WordPress
Introduction to HTML.
Web Development & Design Foundations with HTML5 8th Edition
Content Management Systems
Customizing your Theme
The Way Eryk Budi Pratama
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
Web Development & Design Foundations with HTML5 8th Edition
Web Page Design CIS 300.
Introduction to Web Application Design
Web Programming and Design
Presentation transcript:

From a HTML5 Template Kaloyan Petrov Drupal Themer Telerik Web Design Course

 Drupal activist  Drupal Bulgaria Foundation supporter  Bulgarian Drupal Camps organizer and speaker  Graphic designer 2

1. About Drupal 2. Importance of Drupal Theme Layer 3. Anatomy of a Drupal theme 4. Main Concepts 1.Building with blocks 2.Template files and template suggestions 3.Override and Preprocess output from Core 5. Let’s build a Drupal 7 Theme! 3

 Powerful and modular open-source CMS  Powers 2.1% of all web sites – W3Techs 3% of top 10,000 sites– BuiltWith W3TechsBuiltWithW3TechsBuiltWith  As of June’s Drupal.org statistics:  850+K users on Drupal.org;  from 228 countries;  speaking 181 languages;  16,725 Modules;  1,413 Themes. 4

  Whitehouse.gov, Belgian government, French government, Dutch government Whitehouse.govBelgian government French governmentDutch government   Harvard, Stanford HarvardStanford   United Nations, Greenpeace, Amnesty International United NationsGreenpeaceAmnesty International   Reuters, CNN, Die Zeit, Die Welt ReutersCNNDie ZeitDie Welt   Forbes, Fox, Warner Bros ForbesFoxWarner Bros   Ubuntu, Java.net, SourceForge, dev.twitter.com UbuntuJava.netSourceForgedev.twitter.com   MTV UK, Sony Music, Universal Music, Grammys, Emmy MTV UKSony MusicUniversal MusicGrammysEmmy   Metallica, REM, Pink, Jenniffer Lopez, Beyonce Britney Spears, Ozzy Osbourne … MetallicaREMPinkJenniffer LopezBeyonceBritney SpearsOzzy Osbourne 5

 If a product looks unpleasant or dysfunctional people don’t use it!  The theme of every site is responsible for creating the first impression.  With the key part in forming and presenting content Drupal themes are arguably the most important part of each Drupal installation. 6

 xHTML/HTML5 & CSS  JavaScript, (jQuery & jQuery UI in Drupal core)  Drupal Terminology  PHP  Basic PHP knowledge is enough if no overriding is necessary.  Basic PHP is enough for simple tasks like printing variables.  Advanced PHP is required for tasks like overriding core markup or preprocessing and processing themable output. 7

.info file (required)  template.php .tpl.php files  images  CSS  JavaScript  Other files 8 A collection of files that allow us to change the look and feel of a website. Other CMS refer to them as skins or templates.

Building with Blocks Template Files and Template Suggestions Override, Preprocess, Process 9

 Containers called Regions  Those are areas of the web page that have content.  Building units of the Regions are Blocks  Blocks are created by modules programmatically or by content creators in administration section. 10

11 $header $highlighted $help $content_top - hidden $sidebar_first $sidebar_second $content $content_bottom - hidden $footer

 Template files for sections, pages, content types, regions, blocks, etc.  Template files and template suggestions for repeatable parts like comments or blocks in different parts of the website. 12

13 html.tpl.php !Doctype CSS и JavaScript html.tpl.php !Doctype CSS и JavaScript page.tpl.php Logo Site Name Regions - Header - Content - Sidebars - Footer page.tpl.php Logo Site Name Regions - Header - Content - Sidebars - Footer node.tpl.php Node title Author Date Node Content Terms Links node.tpl.php Node title Author Date Node Content Terms Links comment-wrapper.tpl.php Comment Area Title Comment Templates comment-wrapper.tpl.php Comment Area Title Comment Templates comment.tpl.php region--sidebar.tpl.php region--sidebar.tpl.php block.tpl.php Block Title Block Contents block.tpl.php Block Title Block Contents block.tpl.php

1. Find the module that generates the code. 2. Two possible cases:  If the module provides.tpl.php file – copy it to theme folder.  In the source of the module we search for theme(), preprocess() or preprocess() function then copy it to your theme’s template.php and rename it accordingly. 3. Make changes in copied file or function. 4. Clear cache! Administer » Site configuration » Performance 14

 Local Development Environment XAMPP, LAMP, WAMP, MAMP…  Any Text editor with code highlighting is fine Eclipse, NetBeans, Komodo Edit, Notepad++…  VirtualBox advanced Use virtual web server if you prefer it over AMP stacks. For testing different browser and OS versions.  Drush advanced Command line shell and scripting interface for Drupal. 15

 Firefox and Firebug are the best tools! If you really, REALLY, dislike Firefox try Opera with Dragonfly –  Devel Module  Theme Developer Module

 Content is king! Design for the content!  Check if HTML is valid and CSS is documented!  Use what works for you  Start from scratch  Or start from starter theme: Omega, Zen, Basic, Framework 17

 Create a data model  Create wireframes that describe page elements  Identify modules, templates and configurations responsible for every element in your wireframes. 18

21

Showtime 22

Create Data Base Check File Permissions 23

Download and Install Drupal Download and Install Devel and Theme Developer Modules

Create Theme folder /sites/all/themes/telerikdemo Create required.info file - telerikdemo.info Copy sliced template files in theme folder

Define theme name, description, preview image, regions, features, styles and scripts.

html.tpl.phppage.tpl.phpregion.tpl.phpnode.tpl.phpblock.tpl.php…

src=" /…" 28

Output Primary Menu from Drupal <?php print theme('links__system_main_menu',array( 'links' => $main_menu, 'attributes' => array( 'id' => 'main-menu', 'class' => array('links', 'clearfix'), ), 'heading' => array( 'text' => t('Main menu'), 'level' => 'h3', 'class' => array('element-invisible'), ) )); ?>

Output Regions in Drupal 33 page.tpl.php regions[slider] = Frontpage Slide theme.info

From a HTML5 Template Kaloyan Petrov