responsive templates in joomla!

13
Responsive Templates Created for Joomla! JoomlaDay Guatemala 2013

Upload: david-hurley

Post on 27-Jan-2015

116 views

Category:

Technology


3 download

DESCRIPTION

Responsive web templates in Joomla 3.x using Bootstrap

TRANSCRIPT

Page 1: Responsive Templates in Joomla!

Responsive TemplatesCreated for Joomla!

JoomlaDay Guatemala 2013

Page 2: Responsive Templates in Joomla!

Necessary Files

index.phptemplateDetails.xml

Page 3: Responsive Templates in Joomla!

Extra Files & Folders

LESS/CSSImagesHTMLJavascript

Page 4: Responsive Templates in Joomla!

Getting Started: Template Details

templateDetails.xml

<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE install PUBLIC "-//Joomla! 3.1//DTD template

1.0//EN" "http://www.joomla.org/xml/dtd/1.6/template-install.

dtd">

<install version="3.0" type="template" method="upgrade">

Page 5: Responsive Templates in Joomla!

templateDetails.xml - Basic Details

<name>Sample Template</name>

<creationDate>2013-04-24</creationDate>

<author>David Hurley</author>

<authorEmail>[email protected]</authorEmail>

<authorUrl>http://mydomain.com</authorUrl>

<copyright>Copyright (C) 2012 My Site</copyright>

<version>1.0</version>

<description><![CDATA[

<p>Creating a sample template for JD13GT<p>

]]></description>

Page 6: Responsive Templates in Joomla!

templateDetails.xml - Files

<files>

<filename>index.php</filename>

<filename>templateDetails.xml</filename>

<folder>css</folder>

<folder>images</folder>

<folder>html</folder>

</files>

Page 7: Responsive Templates in Joomla!

templateDetails.xml - Positions

<positions>

<position>top</position>

<position>breadcrumbs</position>

<position>footer</position>

<position>left</position>

<position>right</position>

<position>footer</position>

</positions>

Page 8: Responsive Templates in Joomla!

Index.php - Basic Structure - Head

<?php defined('_JEXEC') or die; ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0

Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-

transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php

echo $this->language; ?>" lang="<?php echo $this->language; ?

>" >

<head>

<jdoc:include type="head" />

</head>

Page 9: Responsive Templates in Joomla!

Index.php - Basic Structure - Body

<body><jdoc:include type="modules" name="top" style="xhtml" /> <jdoc:include type="modules" name="breadcrumbs" style="xhtml" /><jdoc:include type="modules" name="left" style="xhtml" /><jdoc:include type="component" /><jdoc:include type="modules" name="right" style="xhtml" /><jdoc:include type="modules" name="footer" style="none" /> </body></html>

Page 10: Responsive Templates in Joomla!

JHtmlBootstrap::loadCss($includeMaincss = true);

That's all

Add Bootstrap Style from JUI

Page 11: Responsive Templates in Joomla!

Resources

Template Examplehttp://github.com/davidhurley/jdaygt

Twitter Bootstraphttp://twitter.github.io/bootstrap

Page 12: Responsive Templates in Joomla!

Contact

David Hurley

twitter: @dbhurleyfacebook: /dbhurleyskype: davidbhurley

email: [email protected]

Page 13: Responsive Templates in Joomla!

Live Preview

Let's get started...