first import

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-08 11:40:19 +02:00
commit 1bc61b12ad
8435 changed files with 1582817 additions and 0 deletions

View File

@@ -0,0 +1,87 @@
#panels-dnd-main .panel-flexible-edit-layout div.panels-display .pane-add-link,
.panel-flexible-edit-layout .panel-pane {
display: none;
}
.panel-flexible-edit-layout div.panels-display h2.label {
padding-right: 0;
}
.panel-flexible-edit-layout .panels-flexible-column-inside {
/* margin: 5px; */
border: 1px dotted green;
}
.panels-flexible-column-inside {
/* overflow: hidden; */
}
.panel-flexible-edit-layout .panels-flexible-column > .flexible-title {
color: green;
}
.panel-flexible-edit-layout .panels-flexible-row-inside {
margin: 5px;
border: 1px dotted blue;
}
.panel-flexible-edit-layout .panels-flexible-row > .flexible-title {
color: blue;
}
.panel-flexible-no-edit-layout .flexible-layout-only {
display: none;
}
.panel-flexible-edit-layout .flexible-title {
text-align: center;
width: 5em;
margin-left: auto;
margin-right: auto;
}
.panel-flexible-no-edit-layout .panels-flexible-splitter {
display: none;
}
.panels-flexible-splitter span {
display: none;
}
.panels-flexible-splitter {
width: 11px;
float: left;
margin-left: -7px;
margin-right: -6px;
cursor: e-resize; /* in case col-resize isn't supported */
cursor: col-resize;
height: 30px;
position: relative;
z-index: 1;
background: url(grippie-vertical.png) center center no-repeat #eee;
border: 1px solid #ccc;
}
.flexible-splitting {
border: 2px dotted yellow !important;
margin: -2px !important;
}
.flexible-splitter-hover-box {
position: absolute;
z-index: 1000;
background: white;
color: black;
border: 1px solid black;
width: 60px;
height: 2em;
text-align: center;
line-height: 2em;
}
#panels-edit-display .panel-pane,
#panels-edit-display .helperclass {
margin: .5em;
}

View File

@@ -0,0 +1,424 @@
(function ($) {
Drupal.flexible = Drupal.flexible || {};
Drupal.flexible.splitters = [];
/**
* Fix the height of all splitters to be the same as the items they are
* splitting.
*/
Drupal.flexible.fixHeight = function() {
for (i in Drupal.flexible.splitters) {
Drupal.flexible.splitters[i].fixHeight();
}
}
Drupal.behaviors.flexibleAdmin = {
attach: function(context) {
// Show/hide layout manager button
$('input#panels-flexible-toggle-layout:not(.panels-flexible-processed)', context)
.addClass('panels-flexible-processed')
.click(function() {
$('.panel-flexible-admin')
.toggleClass('panel-flexible-no-edit-layout')
.toggleClass('panel-flexible-edit-layout');
if ($('.panel-flexible-admin').hasClass('panel-flexible-edit-layout')) {
$(this).val(Drupal.t('Hide layout designer'));
Drupal.flexible.fixHeight();
}
else {
$(this).val(Drupal.t('Show layout designer'));
}
return false;
});
// Window splitter behavior.
$('div.panels-flexible-splitter:not(.panels-splitter-processed)')
.addClass('panels-splitter-processed')
.each(function() {
Drupal.flexible.splitters.push(new Drupal.flexible.splitter($(this)));
});
Drupal.flexible.fixHeight();
}
};
Drupal.flexible.splitter = function($splitter) {
var splitter = this;
this.fixHeight = function() {
// Set the splitter height to the shorter of the two:
$splitter.height(Math.max(this.left.outerHeight(), this.right.outerHeight()));
}
function splitterStart(event) {
// Bind motion events.
$(document)
.bind("mousemove", splitterMove)
.bind("mouseup", splitterEnd);
// Calculate some data about our split regions:
splitter.getSizes();
// The X coordinate where we clicked.
splitter.startX = event.pageX;
// The current sizes of the left/right panes.
splitter.currentLeft = parseFloat(splitter.left_width) * parseFloat(splitter.left_scale);
splitter.currentRight = parseFloat(splitter.right_width) * parseFloat(splitter.right_scale);
// The starting sizes of the left right panes.
splitter.startLeft = splitter.currentLeft;
splitter.startRight = splitter.currentRight;
if (splitter.left_width_type == splitter.right_width_type) {
// If they're the same type, add the two together so we know how
// much space we have for splitting.
splitter.max = splitter.startLeft + splitter.startRight;
// calculate unit size and min/max width.
if (splitter.left_width_type == '%') {
splitter.left_total = splitter.left.width() / (splitter.left_width / 100);
// One pixel is equivalent to what percentage of the total?
splitter.left_unit = (1 / splitter.left_total) * 100;
splitter.left_min = 5; // minimum % we'll use.
}
else {
splitter.left_unit = 1;
splitter.left_min = 25; // minimum pixels we'll use.
}
if (splitter.right_width_type == '%') {
splitter.right_total = splitter.right.width() / (splitter.right_width / 100);
// One pixel is equivalent to what percentage of the total?
splitter.right_unit = (1 / splitter.right_total) * 100;
splitter.right_min = 5; // minimum % we'll use.
}
else {
splitter.right_unit = 1;
splitter.right_min = 25; // minimum pixels we'll use.
}
}
else {
// Figure out the parent blob's width and set the max to that
splitter.parent = $splitter.parent().parent();
if (splitter.left_width_type != 'px') {
// Only the 'px' side can resize.
splitter.left_unit = 0;
splitter.right_unit = 1;
splitter.right_min = 25;
splitter.right_padding = parseInt(splitter.parent.css('padding-right'));
splitter.right_parent = parseInt(splitter.right.parent().css('margin-right'));
splitter.max = splitter.right.width() + splitter.left.parent().width() -
(splitter.left.siblings(':not(.panels-flexible-splitter)').length * 25) - 25;
}
else {
splitter.right_unit = 0;
splitter.left_unit = 1;
splitter.left_min = 25;
splitter.left_padding = parseInt(splitter.parent.css('padding-left'));
splitter.left_parent = parseInt(splitter.left.parent().css('margin-left'));
if (splitter.right_id) {
splitter.max = splitter.left.width() + splitter.right.parent().width() -
(splitter.right.siblings(':not(.panels-flexible-splitter)').length * 25) - 25;
}
else {
var subtract = 0;
splitter.left.siblings(':not(.panels-flexible-splitter)').each(function() { subtract += $(this).width()});
splitter.max = splitter.left.parent().width() - subtract;
}
}
}
var offset = $(splitter.splitter).offset();
// Create boxes to display widths left and right of the mouse pointer.
// Create left box only if left box is mobile.
if (splitter.left_unit) {
splitter.left_box = $('<div class="flexible-splitter-hover-box">&nbsp;</div>');
$('body').append(splitter.left_box);
splitter.left_box.css('top', offset.top);
splitter.left_box.css('left', event.pageX - 65);
if (splitter.left_width_type == '%') {
var left = splitter.currentLeft / splitter.left_scale;
splitter.left_box.html(left.toFixed(2) + splitter.left_width_type);
}
else {
// make sure pixel values are always whole integers.
splitter.currentLeft = parseInt(splitter.currentLeft);
splitter.left_box.html(splitter.currentLeft + splitter.left_width_type);
}
}
// Create the right box if the right side is mobile.
if (splitter.right_unit) {
splitter.right_box = $('<div class="flexible-splitter-hover-box"></div>');
$('body').append(splitter.right_box);
splitter.right_box.css('top', offset.top);
splitter.right_box.css('left', event.pageX + 5);
if (splitter.right_width_type == '%') {
var right = splitter.currentRight / splitter.right_scale;
splitter.right_box.html(right.toFixed(2) + splitter.right_width_type);
}
else {
// make sure pixel values are always whole integers.
splitter.currentRight = parseInt(splitter.currentRight);
splitter.right_box.html(splitter.currentRight + splitter.right_width_type);
}
}
return false;
};
function splitterMove(event) {
var diff = splitter.startX - event.pageX;
var moved = 0;
if (event.keyCode == 37) diff = 10;
if (event.keyCode == 39) diff = -10;
// Bah, javascript has no logical xor operator
if ((splitter.left_unit && !splitter.right_unit) ||
(!splitter.left_unit && splitter.right_unit)) {
// This happens when one side is fixed and the other side is fluid. The
// fixed side actually adjusts while the fluid side does not. However,
// in order to move the fluid side we have to adjust the padding
// on our parent object.
if (splitter.left_unit) {
// Only the left box is allowed to move.
splitter.currentLeft = splitter.startLeft - diff;
if (splitter.currentLeft < splitter.left_min) {
splitter.currentLeft = splitter.left_min;
}
if (splitter.currentLeft > splitter.max) {
splitter.currentLeft = splitter.max;
}
// If the shift key is pressed, go with 1% or 10px boundaries.
if (event.shiftKey) {
splitter.currentLeft = parseInt(splitter.currentLeft / 10) * 10;
}
moved = (splitter.startLeft - splitter.currentLeft);
}
else {
// Only the left box is allowed to move.
splitter.currentRight = splitter.startRight + diff;
if (splitter.currentRight < splitter.right_min) {
splitter.currentRight = splitter.right_min;
}
if (splitter.currentRight > splitter.max) {
splitter.currentRight = splitter.max;
}
// If the shift key is pressed, go with 1% or 10px boundaries.
if (event.shiftKey) {
splitter.currentRight = parseInt(splitter.currentRight / 10) * 10;
}
moved = (splitter.currentRight - splitter.startRight);
}
}
else {
// If they are both the same type, do this..
// Adjust the left side by the amount we moved.
var left = -1 * diff * splitter.left_unit;
splitter.currentLeft = splitter.startLeft + left;
if (splitter.currentLeft < splitter.left_min) {
splitter.currentLeft = splitter.left_min;
}
if (splitter.currentLeft > splitter.max - splitter.right_min) {
splitter.currentLeft = splitter.max - splitter.right_min;
}
// If the shift key is pressed, go with 1% or 10px boundaries.
if (event.shiftKey) {
if (splitter.left_width_type == '%') {
splitter.currentLeft = parseInt(splitter.currentLeft / splitter.left_scale) * splitter.left_scale;
}
else {
splitter.currentLeft = parseInt(splitter.currentLeft / 10) * 10;
}
}
// Now automatically make the right side to be the other half.
splitter.currentRight = splitter.max - splitter.currentLeft;
// recalculate how far we've moved into pixels so we can adjust our visible
// boxes.
moved = (splitter.startLeft - splitter.currentLeft) / splitter.left_unit;
}
if (splitter.left_unit) {
splitter.left_box.css('left', splitter.startX - 65 - moved);
if (splitter.left_width_type == '%') {
var left = splitter.currentLeft / splitter.left_scale;
splitter.left_box.html(left.toFixed(2) + splitter.left_width_type);
}
else {
splitter.left_box.html(parseInt(splitter.currentLeft) + splitter.left_width_type);
}
// Finally actually move the left side
splitter.left.css('width', splitter.currentLeft + splitter.left_width_type);
}
else {
// if not moving the left side, adjust the parent padding instead.
splitter.parent.css('padding-right', (splitter.right_padding + moved) + 'px');
splitter.right.parent().css('margin-right', (splitter.right_parent - moved) + 'px');
}
if (splitter.right_unit) {
splitter.right_box.css('left', splitter.startX + 5 - moved);
if (splitter.right_width_type == '%') {
var right = splitter.currentRight / splitter.right_scale;
splitter.right_box.html(right.toFixed(2) + splitter.right_width_type);
}
else {
splitter.right_box.html(parseInt(splitter.currentRight) + splitter.right_width_type);
}
// Finally actually move the right side
splitter.right.css('width', splitter.currentRight + splitter.right_width_type);
}
else {
// if not moving the right side, adjust the parent padding instead.
splitter.parent.css('padding-left', (splitter.left_padding - moved) + 'px');
splitter.left.parent().css('margin-left', (splitter.left_parent + moved) + 'px');
if (jQuery.browser.msie) {
splitter.left.parent().css('left', splitter.currentLeft);
}
}
return false;
};
function splitterKeyPress(event) {
splitterStart(event);
splitterMove(event);
splitterEnd(event);
};
function splitterEnd(event) {
if (splitter.left_unit) {
splitter.left_box.remove();
}
if (splitter.right_unit) {
splitter.right_box.remove();
}
splitter.left.css("-webkit-user-select", "text"); // let Safari select text again
splitter.right.css("-webkit-user-select", "text"); // let Safari select text again
if (splitter.left_unit) {
splitter.left_width = splitter.currentLeft / parseFloat(splitter.left_scale);
}
if (splitter.right_unit) {
splitter.right_width = splitter.currentRight / parseFloat(splitter.right_scale);
}
splitter.putSizes();
Drupal.flexible.fixHeight();
$(document)
.unbind("mousemove", splitterMove)
.unbind("mouseup", splitterEnd);
// Store the data on the server.
Drupal.ajax['flexible-splitter-ajax'].options.data = {
'left': splitter.left_id,
'left_width': splitter.left_width,
'right': splitter.right_id,
'right_width': splitter.right_width
};
$('.panel-flexible-edit-layout').trigger('UpdateFlexibleSplitter');
};
this.getSizes = function() {
splitter.left_width = $splitter.children('.panels-flexible-splitter-left-width').html();
splitter.left_scale = $splitter.children('.panels-flexible-splitter-left-scale').html();
splitter.left_width_type = $splitter.children('.panels-flexible-splitter-left-width-type').html();
splitter.right_width = $splitter.children('.panels-flexible-splitter-right-width').html();
splitter.right_scale = $splitter.children('.panels-flexible-splitter-right-scale').html();
splitter.right_width_type = $splitter.children('.panels-flexible-splitter-right-width-type').html();
};
this.putSizes = function() {
$(splitter.left_class + '-width').html(splitter.left_width);
if (splitter.left_class != splitter.right_class) {
$(splitter.right_class + '-width').html(splitter.right_width);
}
}
splitter.splitter = $splitter;
splitter.left_class = $splitter.children('.panels-flexible-splitter-left').html();
splitter.left_id = $splitter.children('.panels-flexible-splitter-left-id').html();
splitter.left = $(splitter.left_class);
splitter.right_class = $splitter.children('.panels-flexible-splitter-right').html();
splitter.right_id = $splitter.children('.panels-flexible-splitter-right-id').html();
splitter.right = $(splitter.right_class);
$splitter
.bind("mousedown", splitterStart)
.bind("keydown", splitterKeyPress);
};
$(function() {
/**
* Provide an AJAX response command to allow the server to request
* height fixing.
*/
Drupal.ajax.prototype.commands.flexible_fix_height = function(ajax, command, status) {
Drupal.flexible.fixHeight();
};
/**
* Provide an AJAX response command to allow the server to change width on existing splitters.
*/
Drupal.ajax.prototype.commands.flexible_set_width = function(ajax, command, status) {
$(command.selector).html(command.width);
};
/**
* Provide an AJAX response command to fix the first/last bits of a
* group.
*/
Drupal.ajax.prototype.commands.flexible_fix_firstlast = function(ajax, data, status) {
$(data.selector + ' > div > .' + data.base)
.removeClass(data.base + '-first')
.removeClass(data.base + '-last');
$(data.selector + ' > div > .' + data.base + ':first')
.addClass(data.base + '-first');
$(data.selector + ' > div > .' + data.base + ':last')
.addClass(data.base + '-last');
};
// Create a generic ajax callback for use with the splitters which
// background AJAX to store their data.
var element_settings = {
url: Drupal.settings.flexible.resize,
event: 'UpdateFlexibleSplitter',
keypress: false,
// No throbber at all.
progress: { 'type': 'none' }
};
Drupal.ajax['flexible-splitter-ajax'] = new Drupal.ajax('flexible-splitter-ajax', $('.panel-flexible-admin').get(0), element_settings);
// Prevent ajax goo from doing odd things to our layout.
Drupal.ajax['flexible-splitter-ajax'].beforeSend = function() { };
Drupal.ajax['flexible-splitter-ajax'].beforeSerialize = function() { };
});
})(jQuery);

View File

@@ -0,0 +1,4 @@
.panel-flexible .panel-separator {
margin: 0 0 1em 0;
}

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

View File

@@ -0,0 +1,22 @@
.panel-1col {
/* overflow: hidden; */
}
.panel-2col .panel-col-first .inside {
margin: 0;
}
.panel-1col .panel-col {
width: 100%;
}
#panels-edit-display .panel-pane,
#panels-edit-display .helperclass {
margin: .5em;
}
.panel-2col .panel-separator {
margin: 0 0 1em 0;
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* implementation of hook_panels_layouts()
*/
// Plugin definition
$plugin = array(
'title' => t('Single column'),
'category' => t('Columns: 1'),
'icon' => 'onecol.png',
'theme' => 'panels_onecol',
'css' => 'onecol.css',
'regions' => array('middle' => t('Middle column')),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

View File

@@ -0,0 +1,19 @@
<?php
/**
* @file
* Template for a 3 column panel layout.
*
* This template provides a very simple "one column" panel display layout.
*
* Variables:
* - $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:
* $content['middle']: The only panel in the layout.
*/
?>
<div class="panel-display panel-1col clearfix" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
<div class="panel-panel panel-col">
<div><?php print $content['middle']; ?></div>
</div>
</div>

View File

@@ -0,0 +1,29 @@
<?php
/**
* @file
* Template for the 1 column panel layout.
*
* This template provides a three column 25%-50%-25% panel display layout.
*
* Variables:
* - $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:
* - $content['left']: Content in the left column.
* - $content['middle']: Content in the middle column.
* - $content['right']: Content in the right column.
*/
?>
<div class="panel-display panel-3col clearfix" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
<div class="panel-panel panel-col-first">
<div class="inside"><?php print $content['left']; ?></div>
</div>
<div class="panel-panel panel-col">
<div class="inside"><?php print $content['middle']; ?></div>
</div>
<div class="panel-panel panel-col-last">
<div class="inside"><?php print $content['right']; ?></div>
</div>
</div>

View File

@@ -0,0 +1,35 @@
.panel-3col {
/* overflow: hidden; */
}
.panel-3col .panel-col-first {
float: left;
width: 25%;
}
.panel-3col .panel-col-first .inside {
margin: 0 .5em 1em 0;
}
.panel-3col .panel-col {
float: left;
width: 50%;
}
.panel-3col .panel-col .inside {
margin: 0 .5em 1em .5em;
}
.panel-3col .panel-col-last {
float: left;
width: 25%;
}
.panel-3col .panel-col-last .inside {
margin: 0 0 1em .5em;
}
.panel-3col .panel-separator {
margin: 0 0 1em 0;
}

View File

@@ -0,0 +1,20 @@
<?php
/**
* implementation of hook_panels_layouts
*/
// Plugin definition
$plugin = array(
'title' => t('Three column 25/50/25'),
'category' => t('Columns: 3'),
'icon' => 'threecol_25_50_25.png',
'theme' => 'panels_threecol_25_50_25',
'theme arguments' => array('id', 'content'),
'css' => 'threecol_25_50_25.css',
'regions' => array(
'left' => t('Left side'),
'middle' => t('Middle column'),
'right' => t('Right side')
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

View File

@@ -0,0 +1,46 @@
<?php
/**
* @file
* Template for a 3 column panel layout.
*
* This template provides a three column 25%-50%-25% panel display layout, with
* additional areas for the top and the bottom.
*
* Variables:
* - $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:
* - $content['top']: Content in the top row.
* - $content['left']: Content in the left column.
* - $content['middle']: Content in the middle column.
* - $content['right']: Content in the right column.
* - $content['bottom']: Content in the bottom row.
*/
?>
<div class="panel-display panel-3col-stacked clearfix" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
<?php if ($content['top']): ?>
<div class="panel-panel panel-col-top">
<div class="inside"><?php print $content['top']; ?></div>
</div>
<?php endif ?>
<div class="center-wrapper">
<div class="panel-panel panel-col-first">
<div class="inside"><?php print $content['left']; ?></div>
</div>
<div class="panel-panel panel-col">
<div class="inside"><?php print $content['middle']; ?></div>
</div>
<div class="panel-panel panel-col-last">
<div class="inside"><?php print $content['right']; ?></div>
</div>
</div>
<?php if ($content['bottom']): ?>
<div class="panel-panel panel-col-bottom">
<div class="inside"><?php print $content['bottom']; ?></div>
</div>
<?php endif ?>
</div>

View File

@@ -0,0 +1,45 @@
.panel-3col-stacked {
/* overflow: hidden; */
}
.panel-3col-stacked .panel-col-top,
.panel-3col-stacked .panel-col-bottom {
width: 100%;
clear: both;
}
.panel-3col-stacked .panel-col-top .inside {
margin-bottom: .5em;
}
.panel-3col-stacked .panel-col-first {
float: left;
width: 25%;
}
.panel-3col-stacked .panel-col .inside {
margin: 0 .5em 1em .5em;
}
.panel-3col-stacked .panel-col {
float: left;
width: 50%;
}
.panel-3col-stacked .panel-col .inside {
margin: 0 .5em 1em .5em;
}
.panel-3col-stacked .panel-col-last {
float: left;
width: 25%;
}
.panel-3col-stacked .panel-col-last .inside {
margin: 0 0 1em .5em;
}
.panel-3col-stacked .panel-separator {
margin: 0 0 1em 0;
}

View File

@@ -0,0 +1,17 @@
<?php
// Plugin definition
$plugin = array(
'title' => t('Three column 25/50/25 stacked'),
'category' => t('Columns: 3'),
'icon' => 'threecol_25_50_25_stacked.png',
'theme' => 'panels_threecol_25_50_25_stacked',
'css' => 'threecol_25_50_25_stacked.css',
'regions' => array(
'top' => t('Top'),
'left' => t('Left side'),
'middle' => t('Middle column'),
'right' => t('Right side'),
'bottom' => t('Bottom'),
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

View File

@@ -0,0 +1,31 @@
<?php
/**
* @file
* Template for a 3 column panel layout.
*
* This template provides a three column panel display layout, with
* each column roughly equal in width.
*
* Variables:
* - $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:
* - $content['left']: Content in the left column.
* - $content['middle']: Content in the middle column.
* - $content['right']: Content in the right column.
*/
?>
<div class="panel-display panel-3col-33 clearfix" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
<div class="panel-panel panel-col-first">
<div class="inside"><?php print $content['left']; ?></div>
</div>
<div class="panel-panel panel-col">
<div class="inside"><?php print $content['middle']; ?></div>
</div>
<div class="panel-panel panel-col-last">
<div class="inside"><?php print $content['right']; ?></div>
</div>
</div>

View File

@@ -0,0 +1,35 @@
.panel-3col-33 {
/* overflow: hidden; */
}
.panel-3col-33 .panel-col-first {
float: left;
width: 33%;
}
.panel-3col-33 .panel-col-first .inside {
margin: 0 .5em 1em 0;
}
.panel-3col-33 .panel-col {
float: left;
width: 33%;
}
.panel-3col-33 .panel-col .inside {
margin: 0 .5em 1em .5em;
}
.panel-3col-33 .panel-col-last {
float: left;
width: 33%;
}
.panel-3col-33 .panel-col-last .inside {
margin: 0 0 1em .5em;
}
.panel-3col-33 .panel-separator {
margin: 0 0 1em 0;
}

View File

@@ -0,0 +1,15 @@
<?php
// Plugin definition
$plugin = array(
'title' => t('Three column 33/34/33'),
'category' => t('Columns: 3'),
'icon' => 'threecol_33_34_33.png',
'theme' => 'panels_threecol_33_34_33',
'css' => 'threecol_33_34_33.css',
'regions' => array(
'left' => t('Left side'),
'middle' => t('Middle column'),
'right' => t('Right side')
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

View File

@@ -0,0 +1,46 @@
<?php
/**
* @file
* Template for a 3 column panel layout.
*
* This template provides a three column 25%-50%-25% panel display layout, with
* additional areas for the top and the bottom.
*
* Variables:
* - $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:
* - $content['top']: Content in the top row.
* - $content['left']: Content in the left column.
* - $content['middle']: Content in the middle column.
* - $content['right']: Content in the right column.
* - $content['bottom']: Content in the bottom row.
*/
?>
<div class="panel-display panel-3col-33-stacked clearfix" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
<?php if ($content['top']): ?>
<div class="panel-panel panel-col-top">
<div class="inside"><?php print $content['top']; ?></div>
</div>
<?php endif ?>
<div class="center-wrapper">
<div class="panel-panel panel-col-first">
<div class="inside"><?php print $content['left']; ?></div>
</div>
<div class="panel-panel panel-col">
<div class="inside"><?php print $content['middle']; ?></div>
</div>
<div class="panel-panel panel-col-last">
<div class="inside"><?php print $content['right']; ?></div>
</div>
</div>
<?php if ($content['bottom']): ?>
<div class="panel-panel panel-col-bottom">
<div class="inside"><?php print $content['bottom']; ?></div>
</div>
<?php endif ?>
</div>

View File

@@ -0,0 +1,45 @@
.panel-3col-33-stacked {
/* overflow: hidden; */
}
.panel-3col-33-stacked .panel-col-top,
.panel-3col-33-stacked .panel-col-bottom {
width: 100%;
clear: both;
}
.panel-3col-33-stacked .panel-col-top .inside {
margin-bottom: 1em;
}
.panel-3col-33-stacked .panel-col-first {
float: left;
width: 33%;
}
.panel-3col-33-stacked .panel-col-first .inside {
margin: 0 .5em 1em 0;
}
.panel-3col-33-stacked .panel-col {
float: left;
width: 33%;
}
.panel-3col-33-stacked .panel-col .inside {
margin: 0 .5em 1em .5em;
}
.panel-3col-33-stacked .panel-col-last {
float: left;
width: 33%;
}
.panel-3col-33-stacked .panel-col-last .inside {
margin: 0 0 1em .5em;
}
.panel-3col-33-stacked .panel-separator {
margin: 0 0 1em 0;
}

View File

@@ -0,0 +1,17 @@
<?php
// Plugin definition
$plugin = array(
'title' => t('Three column 33/34/33 stacked'),
'category' => t('Columns: 3'),
'icon' => 'threecol_33_34_33_stacked.png',
'theme' => 'panels_threecol_33_34_33_stacked',
'css' => 'threecol_33_34_33_stacked.css',
'regions' => array(
'top' => t('Top'),
'left' => t('Left side'),
'middle' => t('Middle column'),
'right' => t('Right side'),
'bottom' => t('Bottom')
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

View File

@@ -0,0 +1,25 @@
<?php
/**
* @file
* Template for a 2 column panel layout.
*
* This template provides a two column panel display layout, with
* each column roughly equal in width.
*
* Variables:
* - $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:
* - $content['left']: Content in the left column.
* - $content['right']: Content in the right column.
*/
?>
<div class="panel-display panel-2col clearfix" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
<div class="panel-panel panel-col-first">
<div class="inside"><?php print $content['left']; ?></div>
</div>
<div class="panel-panel panel-col-last">
<div class="inside"><?php print $content['right']; ?></div>
</div>
</div>

View File

@@ -0,0 +1,37 @@
.panel-2col {
/* overflow: hidden; */
}
.panel-2col .panel-col-first {
float: left;
width: 50%;
}
* html .panel-2col .panel-col-first {
width: 49.9%;
}
.panel-2col .panel-col-first .inside {
margin: 0 .5em 1em 0;
}
.panel-2col .panel-col-last {
float: left;
width: 50%;
}
* html .panel-2col .panel-col-last {
width: 49.9%;
}
.panel-2col .panel-col-last .inside {
margin: 0 0 1em .5em;
}
#panels-edit-display .panel-pane,
#panels-edit-display .helperclass {
margin: .5em;
}
.panel-2col .panel-separator {
margin: 0 0 1em 0;
}

View File

@@ -0,0 +1,14 @@
<?php
// Plugin definition
$plugin = array(
'title' => t('Two column'),
'category' => t('Columns: 2'),
'icon' => 'twocol.png',
'theme' => 'panels_twocol',
'css' => 'twocol.css',
'regions' => array(
'left' => t('Left side'),
'right' => t('Right side')
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B

View File

@@ -0,0 +1,53 @@
<?php
/**
* @file
* Template for a 2 column panel layout.
*
* This template provides a two column panel display layout, with
* each column roughly equal in width. It is 5 rows high; the top
* middle and bottom rows contain 1 column, while the second
* and fourth rows contain 2 columns.
*
* Variables:
* - $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:
* - $content['top']: Content in the top row.
* - $content['left_above']: Content in the left column in row 2.
* - $content['right_above']: Content in the right column in row 2.
* - $content['middle']: Content in the middle row.
* - $content['left_below']: Content in the left column in row 4.
* - $content['right_below']: Content in the right column in row 4.
* - $content['right']: Content in the right column.
* - $content['bottom']: Content in the bottom row.
*/
?>
<div class="panel-display panel-2col-bricks clearfix" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
<div class="panel-panel panel-col-top">
<div class="inside"><?php print $content['top']; ?></div>
</div>
<div class="center-wrapper">
<div class="panel-panel panel-col-first">
<div class="inside"><?php print $content['left_above']; ?></div>
</div>
<div class="panel-panel panel-col-last">
<div class="inside"><?php print $content['right_above']; ?></div>
</div>
</div>
<div class="panel-panel panel-col-middle">
<div class="inside"><?php print $content['middle']; ?></div>
</div>
<div class="center-wrapper">
<div class="panel-panel panel-col-first">
<div class="inside"><?php print $content['left_below']; ?></div>
</div>
<div class="panel-panel panel-col-last">
<div class="inside"><?php print $content['right_below']; ?></div>
</div>
</div>
<div class="panel-panel panel-col-bottom">
<div class="inside"><?php print $content['bottom']; ?></div>
</div>
</div>

View File

@@ -0,0 +1,46 @@
.panel-2col-bricks {
/* overflow: hidden; */
margin-top: 0;
padding-top: 0;
}
.panel-2col-bricks .panel-col-top,
.panel-2col-bricks .panel-col-middle,
.panel-2col-bricks .panel-col-bottom {
width: 99.9%;
clear: both;
}
.panel-2col-bricks .panel-col-top .inside,
.panel-2col-bricks .panel-col-middle .inside {
margin-bottom: .5em;
}
.panel-2col-bricks .panel-col-first {
float: left;
width: 50%;
}
* html .panel-2col-bricks .panel-col-first {
width: 49.9%;
}
.panel-2col-bricks .panel-col-first .inside {
margin: 0 .5em .5em 0;
}
.panel-2col-bricks .panel-col-last {
float: left;
width: 50%;
}
* html .panel-2col-bricks .panel-col-last {
width: 49.9%;
}
.panel-2col-bricks .panel-col-last .inside {
margin: 0 0 .5em .5em;
}
.panel-2col-bricks .panel-separator {
margin: 0 0 1em 0;
}

View File

@@ -0,0 +1,25 @@
<?php
/**
* @file
* Implementation for the two column bricked layout
*/
// Plugin definition
$plugin = array(
'title' => t('Two column bricks'),
'category' => t('Columns: 2'),
'icon' => 'twocol_bricks.png',
'theme' => 'panels_twocol_bricks',
'css' => 'twocol_bricks.css',
'regions' => array(
'top' => t('Top'),
'left_above' => t('Left above'),
'right_above' => t('Right above'),
'middle' => t('Middle'),
'left_below' => t('Left below'),
'right_below' => t('Right below'),
'bottom' => t('Bottom'),
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 B

View File

@@ -0,0 +1,40 @@
<?php
/**
* @file
* Template for a 2 column panel layout.
*
* This template provides a two column panel display layout, with
* additional areas for the top and the bottom.
*
* Variables:
* - $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:
* - $content['top']: Content in the top row.
* - $content['left']: Content in the left column.
* - $content['right']: Content in the right column.
* - $content['bottom']: Content in the bottom row.
*/
?>
<div class="panel-2col-stacked clearfix panel-display" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>>
<?php if ($content['top']): ?>
<div class="panel-col-top panel-panel">
<div class="inside"><?php print $content['top']; ?></div>
</div>
<?php endif; ?>
<div class="center-wrapper">
<div class="panel-col-first panel-panel">
<div class="inside"><?php print $content['left']; ?></div>
</div>
<div class="panel-col-last panel-panel">
<div class="inside"><?php print $content['right']; ?></div>
</div>
</div>
<?php if ($content['bottom']): ?>
<div class="panel-col-bottom panel-panel">
<div class="inside"><?php print $content['bottom']; ?></div>
</div>
<?php endif; ?>
</div>

View File

@@ -0,0 +1,41 @@
.panel-2col-stacked {
/* overflow: hidden; */
margin-top: 0;
padding-top: 0;
}
.panel-2col-stacked .panel-col-top,
.panel-2col-stacked .panel-col-bottom {
width: 99.9%;
clear: both;
}
.panel-2col-stacked .panel-col-top .inside {
margin-bottom: .5em;
}
.panel-2col-stacked .panel-col-first {
float: left;
width: 50%;
}
* html .panel-2col-stacked .panel-col-first {
width: 49.9%;
}
.panel-2col-stacked .panel-col-first .inside {
margin: 0 .5em 1em 0;
}
.panel-2col-stacked .panel-col-last {
float: left;
width: 49.9%;
}
.panel-2col-stacked .panel-col-last .inside {
margin: 0 0 1em .5em;
}
.panel-2col-stacked .panel-separator {
margin: 0 0 1em 0;
}

View File

@@ -0,0 +1,16 @@
<?php
// Plugin definition
$plugin = array(
'title' => t('Two column stacked'),
'category' => t('Columns: 2'),
'icon' => 'twocol_stacked.png',
'theme' => 'panels_twocol_stacked',
'css' => 'twocol_stacked.css',
'regions' => array(
'top' => t('Top'),
'left' => t('Left side'),
'right' => t('Right side'),
'bottom' => t('Bottom')
),
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 B