Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
John Ouellet committed Aug 5, 2014
1 parent 8026813 commit 69dd15b
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
product_jumbo
=============

full width panel
full width template for kalatheme

Tweak the css as needed
41 changes: 41 additions & 0 deletions product-jumbo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/** Product Jumbo CSS if needed **/

#product-nav {
margin-top: 0;
}

#product-nav .container {
width: 100%;
}

#product-nav .product-jumbo-navbar {
padding: 0;
}

#product-jumbo .container {
width:100%;
}

#product-jumbo .product-jumbo-strech {
padding: 0;
}

@-moz-document url-prefix() {
#product-jumbo .product-jumbo-strech {
margin-top: -10px;
}
}

.not-front.not-logged-in #product-jumbo {
margin-top: -10px;
}

.page-support.not-logged-in #product-jumbo,
#product-jumbo {
margin-top: 30px;
margin-bottom: 2em;
}

.logged-in.dealer.navbar-tray-open #product-jumbo {
margin-top: -10px;
}
Binary file added product-jumbo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions product-jumbo.tpl.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php
/**
* @file
* Template for Panopoly product-jumbo.
*
* Variables:
* - $css_id: An optional CSS id to use for the layout.
* - $content: An array of content, each item in the array is keyed to one
* panel of the layout. This layout supports the following sections:
*/
?>

<div class="panel-display products product-jumbo clearfix <?php if (!empty($class)) { print $class; } ?>" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
<section class="section" id="product-nav">
<div class="container">
<div class="row">
<div class="col-md-<?php print kalatheme_grid_size(KALATHEME_GRID_FULL); ?> product-jumbo-navbar">
<?php print $content['navbar']; ?>
</div>
</div>
</div>
</section>

<section class="section" id="product-jumbo">
<div class="container">
<div class="row">
<div class="col-md-<?php print kalatheme_grid_size(KALATHEME_GRID_FULL); ?> product-jumbo-strech">
<?php print $content['pjumbo']; ?>
</div>
</div>
</div>
</section>

<section class="section" id="product-content">
<div class="container">
<div class="row">
<div class="col-md-<?php print kalatheme_grid_size(KALATHEME_GRID_FULL); ?> product-jumbo-content">
<?php print $content['contentmain']; ?>
</div>
</div>
</div>
</section>
</div><!-- /.product-jumbo -->
14 changes: 14 additions & 0 deletions product_jumbo.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
// Plugin definition
$plugin = array(
'title' => t('Product Jumbo'),
'icon' => 'product-jumbo.png',
'category' => t('CSi'),
'css' => 'product-jumbo.css',
'theme' => 'product_jumbo',
'regions' => array(
'navbar' => t('Top Nav'),
'pjumbo' => t('Product Jumbotron'),
'contentmain' => t('Content'),
),
);

0 comments on commit 69dd15b

Please sign in to comment.