Joomla 3 bootstrap index.php sample

<?php defined('_JEXEC') or die('Restricted access');?> <!DOCTYPE html> <html xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" > <head> <jdoc:include type="head" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/bootstrap.min.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/bootstrap.theme.min.css" type="text/css" /> <script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/bootstrap.min.css" /> </head> <body> <div class=”container”> <div class=”row”> <div class=”col-sm-8 blog-main”> <div class=”blog-post”> <jdoc:include type="component" /> </div> <div class=”col-sm-3 col-sm-offset-1 blog-sidebar”> <jdoc:include type="modules" name=”right” /> </div> </div> </div> </body> </html>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.