Submit Search
Upload
Improve theming with (Twitter) Bootstrap
•
1 like
•
739 views
Andrey Yurtaev
Follow
Session about using Bootstrap in Drupal theming
Read less
Read more
Technology
Report
Share
Report
Share
1 of 43
Download now
Download to read offline
Recommended
Андрей Юртаев - Improve theming with (Twitter) Bootstrap
Андрей Юртаев - Improve theming with (Twitter) Bootstrap
DrupalSPB
Dress Your WordPress with Child Themes
Dress Your WordPress with Child Themes
Laurie M. Rauch
Drupal Development (Part 2)
Drupal Development (Part 2)
Jeff Eaton
Drupal Development
Drupal Development
Jeff Eaton
Django Vs Rails
Django Vs Rails
Sérgio Santos
Drupal Step-by-Step: How We Built Our Training Site, Part 1
Drupal Step-by-Step: How We Built Our Training Site, Part 1
Acquia
Keeping It Simple
Keeping It Simple
Stephanie Leary
Panels: how to fire Front-end developer
Panels: how to fire Front-end developer
Kirill Borzov
Recommended
Андрей Юртаев - Improve theming with (Twitter) Bootstrap
Андрей Юртаев - Improve theming with (Twitter) Bootstrap
DrupalSPB
Dress Your WordPress with Child Themes
Dress Your WordPress with Child Themes
Laurie M. Rauch
Drupal Development (Part 2)
Drupal Development (Part 2)
Jeff Eaton
Drupal Development
Drupal Development
Jeff Eaton
Django Vs Rails
Django Vs Rails
Sérgio Santos
Drupal Step-by-Step: How We Built Our Training Site, Part 1
Drupal Step-by-Step: How We Built Our Training Site, Part 1
Acquia
Keeping It Simple
Keeping It Simple
Stephanie Leary
Panels: how to fire Front-end developer
Panels: how to fire Front-end developer
Kirill Borzov
Make your own wp cli command in 10min
Make your own wp cli command in 10min
Ivelina Dimova
Advanced theming
Advanced theming
drupalcampest
18. images in symfony 4
18. images in symfony 4
Razvan Raducanu, PhD
7 reasons why developers should love Joomla!
7 reasons why developers should love Joomla!
Bartłomiej Krztuk
WordPress 15th Meetup - Build a Theme
WordPress 15th Meetup - Build a Theme
Fadi Nicolas Zahhar
Goodbye hook_menu() - Routing and Menus in Drupal 8
Goodbye hook_menu() - Routing and Menus in Drupal 8
Exove
You're Doing it Wrong - WordCamp Orlando
You're Doing it Wrong - WordCamp Orlando
Chris Scott
Vancouver League of Drupallers - Remembering the User (August 2008)
Vancouver League of Drupallers - Remembering the User (August 2008)
baronmunchowsen
Image manipulation in WordPress 3.5
Image manipulation in WordPress 3.5
Marko Heijnen
Apostrophe
Apostrophe
tompunk
WordPress 3.4 Theme Customizer
WordPress 3.4 Theme Customizer
Chandra Maharzan
20110820 header new style
20110820 header new style
AgentiadeturismInvenio
An Introduction to Drupal
An Introduction to Drupal
Compare Infobase Limited
Mojolicious
Mojolicious
Marcos Rebelo
Shortcodes In-Depth
Shortcodes In-Depth
Micah Wood
Modular and Event-Driven JavaScript
Modular and Event-Driven JavaScript
Eduardo Shiota Yasuda
Intro To jQuery In Drupal
Intro To jQuery In Drupal
Matthew Farina
那些年,我用 Django Admin 接的案子
那些年,我用 Django Admin 接的案子
flywindy
Oop php 5
Oop php 5
phpubl
WordPress Theme Design and Development Workshop - Day 3
WordPress Theme Design and Development Workshop - Day 3
Mizanur Rahaman Mizan
8 things to know about theming in drupal 8
8 things to know about theming in drupal 8
Logan Farr
D7 theming what's new - London
D7 theming what's new - London
Marek Sotak
More Related Content
What's hot
Make your own wp cli command in 10min
Make your own wp cli command in 10min
Ivelina Dimova
Advanced theming
Advanced theming
drupalcampest
18. images in symfony 4
18. images in symfony 4
Razvan Raducanu, PhD
7 reasons why developers should love Joomla!
7 reasons why developers should love Joomla!
Bartłomiej Krztuk
WordPress 15th Meetup - Build a Theme
WordPress 15th Meetup - Build a Theme
Fadi Nicolas Zahhar
Goodbye hook_menu() - Routing and Menus in Drupal 8
Goodbye hook_menu() - Routing and Menus in Drupal 8
Exove
You're Doing it Wrong - WordCamp Orlando
You're Doing it Wrong - WordCamp Orlando
Chris Scott
Vancouver League of Drupallers - Remembering the User (August 2008)
Vancouver League of Drupallers - Remembering the User (August 2008)
baronmunchowsen
Image manipulation in WordPress 3.5
Image manipulation in WordPress 3.5
Marko Heijnen
Apostrophe
Apostrophe
tompunk
WordPress 3.4 Theme Customizer
WordPress 3.4 Theme Customizer
Chandra Maharzan
20110820 header new style
20110820 header new style
AgentiadeturismInvenio
An Introduction to Drupal
An Introduction to Drupal
Compare Infobase Limited
Mojolicious
Mojolicious
Marcos Rebelo
Shortcodes In-Depth
Shortcodes In-Depth
Micah Wood
Modular and Event-Driven JavaScript
Modular and Event-Driven JavaScript
Eduardo Shiota Yasuda
Intro To jQuery In Drupal
Intro To jQuery In Drupal
Matthew Farina
那些年,我用 Django Admin 接的案子
那些年,我用 Django Admin 接的案子
flywindy
Oop php 5
Oop php 5
phpubl
WordPress Theme Design and Development Workshop - Day 3
WordPress Theme Design and Development Workshop - Day 3
Mizanur Rahaman Mizan
What's hot
(20)
Make your own wp cli command in 10min
Make your own wp cli command in 10min
Advanced theming
Advanced theming
18. images in symfony 4
18. images in symfony 4
7 reasons why developers should love Joomla!
7 reasons why developers should love Joomla!
WordPress 15th Meetup - Build a Theme
WordPress 15th Meetup - Build a Theme
Goodbye hook_menu() - Routing and Menus in Drupal 8
Goodbye hook_menu() - Routing and Menus in Drupal 8
You're Doing it Wrong - WordCamp Orlando
You're Doing it Wrong - WordCamp Orlando
Vancouver League of Drupallers - Remembering the User (August 2008)
Vancouver League of Drupallers - Remembering the User (August 2008)
Image manipulation in WordPress 3.5
Image manipulation in WordPress 3.5
Apostrophe
Apostrophe
WordPress 3.4 Theme Customizer
WordPress 3.4 Theme Customizer
20110820 header new style
20110820 header new style
An Introduction to Drupal
An Introduction to Drupal
Mojolicious
Mojolicious
Shortcodes In-Depth
Shortcodes In-Depth
Modular and Event-Driven JavaScript
Modular and Event-Driven JavaScript
Intro To jQuery In Drupal
Intro To jQuery In Drupal
那些年,我用 Django Admin 接的案子
那些年,我用 Django Admin 接的案子
Oop php 5
Oop php 5
WordPress Theme Design and Development Workshop - Day 3
WordPress Theme Design and Development Workshop - Day 3
Similar to Improve theming with (Twitter) Bootstrap
8 things to know about theming in drupal 8
8 things to know about theming in drupal 8
Logan Farr
D7 theming what's new - London
D7 theming what's new - London
Marek Sotak
Drupal 8 Theme System: The Backend of Frontend
Drupal 8 Theme System: The Backend of Frontend
Acquia
Debugging in drupal 8
Debugging in drupal 8
Allie Jones
Drupal vs WordPress
Drupal vs WordPress
Walter Ebert
Drupal 8: Theming
Drupal 8: Theming
drubb
Drupal 7 Theming - Behind the scenes
Drupal 7 Theming - Behind the scenes
ramakesavan
Twitter bootstrap on rails
Twitter bootstrap on rails
Masakuni Kato
Drupal Theme Development - DrupalCon Chicago 2011
Drupal Theme Development - DrupalCon Chicago 2011
Ryan Price
Headless Drupal
Headless Drupal
drubb
Learning the basics of the Drupal API
Learning the basics of the Drupal API
Alexandru Badiu
WordPress plugin #3
WordPress plugin #3
giwoolee
Intro to Theming Drupal, FOSSLC Summer Camp 2010
Intro to Theming Drupal, FOSSLC Summer Camp 2010
Emma Jane Hogbin Westby
Grok Drupal (7) Theming
Grok Drupal (7) Theming
PINGV
Django crush course
Django crush course
Mohammed El Rafie Tarabay
Rails Antipatterns | Open Session with Chad Pytel
Rails Antipatterns | Open Session with Chad Pytel
Engine Yard
What's new in the Drupal 7 API?
What's new in the Drupal 7 API?
Alexandru Badiu
Building a Custom Theme in Drupal 8
Building a Custom Theme in Drupal 8
Anne Tomasevich
Advanced Drupal Views: Theming your View
Advanced Drupal Views: Theming your View
Ryan Cross
WordPress Developers Israel Meetup #1
WordPress Developers Israel Meetup #1
Yoav Farhi
Similar to Improve theming with (Twitter) Bootstrap
(20)
8 things to know about theming in drupal 8
8 things to know about theming in drupal 8
D7 theming what's new - London
D7 theming what's new - London
Drupal 8 Theme System: The Backend of Frontend
Drupal 8 Theme System: The Backend of Frontend
Debugging in drupal 8
Debugging in drupal 8
Drupal vs WordPress
Drupal vs WordPress
Drupal 8: Theming
Drupal 8: Theming
Drupal 7 Theming - Behind the scenes
Drupal 7 Theming - Behind the scenes
Twitter bootstrap on rails
Twitter bootstrap on rails
Drupal Theme Development - DrupalCon Chicago 2011
Drupal Theme Development - DrupalCon Chicago 2011
Headless Drupal
Headless Drupal
Learning the basics of the Drupal API
Learning the basics of the Drupal API
WordPress plugin #3
WordPress plugin #3
Intro to Theming Drupal, FOSSLC Summer Camp 2010
Intro to Theming Drupal, FOSSLC Summer Camp 2010
Grok Drupal (7) Theming
Grok Drupal (7) Theming
Django crush course
Django crush course
Rails Antipatterns | Open Session with Chad Pytel
Rails Antipatterns | Open Session with Chad Pytel
What's new in the Drupal 7 API?
What's new in the Drupal 7 API?
Building a Custom Theme in Drupal 8
Building a Custom Theme in Drupal 8
Advanced Drupal Views: Theming your View
Advanced Drupal Views: Theming your View
WordPress Developers Israel Meetup #1
WordPress Developers Israel Meetup #1
Recently uploaded
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
Alex Barbosa Coqueiro
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Slibray Presentation
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
BookNet Canada
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Padma Pradeep
Key Features Of Token Development (1).pptx
Key Features Of Token Development (1).pptx
LBM Solutions
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
Kalema Edgar
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
null - The Open Security Community
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
Scott Keck-Warren
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Sinan KOZAK
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
Fwdays
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
carlostorres15106
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Patryk Bandurski
costume and set research powerpoint presentation
costume and set research powerpoint presentation
phoebematthew05
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
Deakin University
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
ngoud9212
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
Enterprise Knowledge
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
Pixlogix Infotech
Recently uploaded
(20)
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Key Features Of Token Development (1).pptx
Key Features Of Token Development (1).pptx
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
costume and set research powerpoint presentation
costume and set research powerpoint presentation
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
Improve theming with (Twitter) Bootstrap
1.
Improve theming with
(Twitter) Bootstrap Yurtaev Andrey @i_amdroid
2.
What is bootstrap?
“The most popular front-end framework for developing responsive, mobile first projects on the web.” getbootstrap.com
3.
4.
Benefits ● standardization
of markup ● popularity ● extensibility
5.
d.o themes Bootstrap
3 ● Bootstrap dgo.to/bootstrap ● Bootstrap Barrio dgo.to/bootstrap_barrio ● Bootstrap Business dgo.to/bootstrap-business ● Radix dgo.to/radix ● Circle dgo.to/circle Bootstrap 2 ● Tweme dgo.to/tweme ● Elimai dgo.to/elimai
6.
Examples
7.
Bootstrap basic theme,
navbar, wells, tooltips, many settings
8.
9.
Bootstrap Barrio bootstrap
subtheme, basic theme
10.
Bootstrap Business colors,
looks great
11.
Radix basic theme,
for panopoly, bootswatch compatible
12.
bootswatch.com - choose
theme, for example, flatly drush radix "Flatly" --bootswatch=flatly easy, but requires compass and other gems
13.
Circle for panels,
very basic, many settings, no bs classes for standart elements
14.
Tweme ready to
use
15.
16.
Elimai
17.
More Drupal themes
themeforest.net more than 100 professional drupal themes based on bootstrap price 40-50$
18.
Examples
19.
Consilium d7.to/consilium
20.
Dawn d7.to/dawn
21.
Realia d7.to/realia
22.
Make own Bootstrap
theme MYTHEME.info: name = MYTHEME core = 7.x description = Bootstrap start theme. dependencies[] = jquery_update base theme = html5
23.
template.php: function MYTHEME_preprocess_html(&$variables)
{ drupal_add_css('//netdna.bootstrapcdn.com/ bootstrap/3.1.1/css/bootstrap.min.css', array('type' => 'external')); drupal_add_js('//netdna.bootstrapcdn.com/ bootstrap/3.1.1/js/bootstrap.min.js', array('type' => 'external')); }
24.
page.tpl.php: <!-- mark
up from http://getbootstrap.com/components/#navbar --> <nav role="navigation" class="navbar navbar-default"> <div class="container-fluid"><div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#"><?php print $site_name; ?></a> </div> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <?php print theme('links__system_main_menu', array('links' => $main_menu, 'attributes' => array( 'id' => 'main-menu', 'class' => array('nav', 'navbar-nav')))); ?> </div></div> </nav>
25.
Result
26.
27.
Preprocess template.php: /**
* Override theme_menu_local_tasks(). * Add Bootstrap class to menu */ function MYTHEME_menu_tree($variables) { return '<ul class="menu nav">' . $variables['tree'] . '</ul>'; }
28.
function MYTHEME_menu_local_tasks(&$variables) {
$output = ''; if (!empty($variables['primary'])) { $variables['primary']['#prefix'] = '<h2 class="element-invisible">' . t('Primary tabs') . '</h2>'; $variables['primary']['#prefix'] .= '<ul class="nav nav-tabs">'; $variables['primary']['#suffix'] = '</ul>'; $output .= drupal_render($variables['primary']); } if (!empty($variables['secondary'])) { $variables['secondary']['#prefix'] = '<h2 class="element-invisible">' . t('Secondary tabs') . '</h2>'; $variables['secondary']['#prefix'] .= '<ul class="nav nav-tabs">'; $variables['secondary']['#suffix'] = '</ul>'; $output .= drupal_render($variables['secondary']); } return $output; }
29.
So, we will
get... Bootstrap (d.o theme)
30.
Or... Glook d7.to/glook-sb
31.
Glook ready to
use, flexbox
32.
Approaches Classic way
● a lot of css ● little bit preprocess ● different look BS subtheme or own theme ● little bit css ● a lot of preprocess ● close to default look Another way ● little bit of Sass (or Less) ● no preprocess ● different look
33.
Bootstrap SASS github.com/twbs/bootstrap-sass
gem install bootstrap-sass compass create MYTHEME -r bootstrap-sass --using bootstrap
34.
Theme files template.php:
/* disable cdn function MYTHEME_preprocess_html(&$variables) { ... } */
35.
MYTHEME.info: stylesheets[all][] =
css/styles.css scripts[] = js/bootstrap/collapse.js ...
36.
styles.scss: // customize
bootstrap variables here: @import "variables"; @import "bootstrap"; .links, .links li { list-style: none; padding: 0; } .links li a { @extend .btn; @extend .btn-info; }
37.
Result
38.
39.
In sum
40.
41.
Actually only on
themeforest, but there are: ● templatemonster.com ● templateshop.be ● dreamtemplate.com ● and many others
42.
Bootstrap tools ●
bootsnipp.com/resources ● d7.to/bs-tools ● d7.to/bs-tools4d
43.
Thank You Questions?
Download now