Hello, I'm Interested how can I add carousel in T3 blank template? Like this one..
http://twitter.github.io/bootstrap/examples/carousel.html
PS: It is about Jomla! 3.1, I forgot to mention
Please post all new support queries in our New Forum.
<div id="myCarousel" class="carousel slide">
<div class="carousel-inner">
<!--Slide 1-->
<div class="item active">
<div class="jumbotron masthead">
<div class="container">
<h1>Welcome to T3</h1>
<p>The all new, modern and flexible framework from JoomlArt.</p>
<a class="btn btn-primary btn-large icon-download-alt" href="https://github.com/t3framework/t3/tags"> Download <span class="hidden-phone">T3 </span> </a></div>
</div>
</div>
<!--Slide 2-->
<div class="item">
<div class="jumbotron masthead">
<div class="container">
<h1>Explore T3</h1>
<p>The all new, modern and flexible framework from JoomlArt.</p>
<a class="btn btn-success btn-large icon-search" href="https://github.com/t3framework/t3/tags"> Learn <span class="hidden-phone">T3 </span> </a></div>
</div>
</div>
<!--Slide 3-->
<div class="item">
<div class="jumbotron masthead">
<div class="container">
<h1>Discuss T3</h1>
<p>The all new, modern and flexible framework from JoomlArt.</p>
<a class="btn btn-warning btn-large icon-user" href="https://github.com/t3framework/t3/tags"> Talk about <span class="hidden-phone">T3 </span> </a>
</div>
</div>
</div>
</div>
<a class="left carousel-control" href="#myCarousel" data-slide="prev">‹</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">›</a>
</div>
<script>
!function ($) {
$(function(){
// carousel demo
$('#myCarousel').carousel()
})
}(window.jQuery)
</script>
<?php
/**
* @package T3 Blank
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
?>
<!-- MAIN NAVIGATION -->
<div class="navbar-wrapper">
<div class="container">
<div class="navbar navbar-inverse">
<div class="navbar-inner">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<i class="icon-reorder"></i>
</button>
<div class="nav-collapse collapse<?php echo $this->getParam('navigation_collapse_showsub', 1) ? ' always-show' : '' ?>">
<?php if ($this->getParam('navigation_type') == 'megamenu') : ?>
<?php $this->megamenu($this->getParam('mm_type', 'mainmenu')) ?>
<?php else : ?>
<jdoc:include type="modules" name="<?php $this->_p('mainnav') ?>" style="raw" />
<?php endif ?>
</div>
</div>
</div>
</div>
</div>
<!-- //MAIN NAVIGATION -->
<!-- Carousel -->
<div id="myCarousel" class="carousel slide">
<div class="carousel-inner">
<div class="item active">
<img src="/images/slide/slide-01.jpg" alt="">
<div class="container">
<div class="carousel-caption">
<h1>Example headline.</h1>
<p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
<a class="btn btn-large btn-primary" href="#">Sign up today</a>
</div>
</div>
</div>
<div class="item">
<img src="/images/slide/slide-02.jpg" alt="">
<div class="container">
<div class="carousel-caption">
<h1>Another example headline.</h1>
<p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
<a class="btn btn-large btn-primary" href="#">Learn more</a>
</div>
</div>
</div>
<div class="item">
<img src="/images/slide/slide-03.jpg" alt="">
<div class="container">
<div class="carousel-caption">
<h1>One more for good measure.</h1>
<p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
<a class="btn btn-large btn-primary" href="#">Browse gallery</a>
</div>
</div>
</div>
</div>
<a class="left carousel-control" href="#myCarousel" data-slide="prev">‹</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">›</a>
</div><!-- /.carousel -->
<style>
/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */
/* Carousel base class */
.carousel {
margin-bottom: 60px;
}
.carousel .container {
position: relative;
z-index: 9;
}
.carousel-control {
height: 80px;
margin-top: 0;
font-size: 120px;
text-shadow: 0 1px 1px rgba(0,0,0,.4);
background-color: transparent;
border: 0;
z-index: 10;
}
.carousel .item {
height: 500px;
}
.carousel img {
position: absolute;
top: 0;
left: 0;
min-width: 100%;
height: 500px;
}
.carousel-caption {
background-color: transparent;
position: static;
max-width: 550px;
padding: 0 20px;
margin-top: 200px;
}
.carousel-caption h1,
.carousel-caption .lead {
margin: 0;
line-height: 1.25;
color: #fff;
text-shadow: 0 1px 1px rgba(0,0,0,.4);
}
.carousel-caption .btn {
margin-top: 10px;
}
/* CUSTOMIZE THE NAVBAR
-------------------------------------------------- */
/* Special class on .container surrounding .navbar, used for positioning it into place. */
.navbar-wrapper {
position: absolute;
top: 0;
left: 0;
right: 0;
z-index: 10;
margin-top: 20px;
margin-bottom: -90px; /* Negative margin to pull up carousel. 90px is roughly margins and height of navbar. */
}
.navbar-wrapper .navbar {
}
/* Remove border and change up box shadow for more contrast */
.navbar .navbar-inner {
border: 0;
-webkit-box-shadow: 0 2px 10px rgba(0,0,0,.25);
-moz-box-shadow: 0 2px 10px rgba(0,0,0,.25);
box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
/* Downsize the brand/project name a bit */
.navbar .brand {
padding: 14px 20px 16px; /* Increase vertical padding to match navbar links */
font-size: 16px;
font-weight: bold;
text-shadow: 0 -1px 0 rgba(0,0,0,.5);
}
/* Navbar links: increase padding for taller navbar */
.navbar .nav > li > a {
padding: 15px 20px;
}
/* Offset the responsive button for proper vertical alignment */
.navbar .btn-navbar {
margin-top: 10px;
}
</style>
<script>
jQuery(document).ready(function(){
jQuery('#myCarousel').each(function(index, element) {
jQuery(this)[index].slide = null;
});
jQuery('#myCarousel').carousel('cycle');
});
</script>
<script>
!function ($) {
$(function(){
// carousel demo
$('#myCarousel').carousel()
})
}(window.jQuery)
</script>
<script>
jQuery(document).ready(function(){
jQuery('#myCarousel').each(function(index, element) {
jQuery(this)[index].slide = null;
});
jQuery('#myCarousel').carousel('cycle');
});
</script>
<div class="span2 offset2 hidden-phone" style="text-align: center">
<a class="hasTooltip" id="myPopover"><img src="/images/teacher.gif"></a></div>
</div>
<script>
!function ($) {
$(function(){
// tooltip demo
$("#myPopover").popover({title: 'Hello', content: "Testing popover!", trigger: "hover", placement: "left" });
})
}(window.jQuery)
</script>