added custom layout to panles, created thematique anchor links menu

This commit is contained in:
2017-02-07 17:38:51 +01:00
parent e2b8a1ae80
commit 46db2145e5
25 changed files with 495 additions and 67 deletions
@@ -0,0 +1,18 @@
.panel-thematique{
letter-spacing: -0.25em;
}
.panel-thematique>*{
letter-spacing: normal;
}
.panel-thematique .right,.panel-thematique .left{
display: inline-block; vertical-align: top;
}
.panel-thematique .right{
width:75%;
}
.panel-thematique .left{
width: 25%;
}
.panel-thematique .bottom{
}
@@ -0,0 +1,19 @@
<?php
/**
* @file
* Plugin definition.
*/
$plugin = array(
'title' => t('Clameur'),
'category' => t('Clameur'),
'icon' => 'clameur.png',
'theme' => 'panels_clameur',
'css' => 'clameur.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: 193 B

@@ -0,0 +1,15 @@
<section class="panel-thematique" <?php if (!empty($css_id)) {print "id=\"$css_id\"";} ?>>
<header class="top">
<?php print $content['top']; ?>
</header>
<section class="right">
<?php print $content['left']; ?>
</section>
<section class="left">
<?php print $content['right']; ?>
</section>
<section class="bottom">
<?php print $content['bottom']; ?>
</section>
</section>
@@ -0,0 +1,15 @@
<?php
/**
* @file
* Implementation of hook_panels_layouts().
*/
// Plugin definition.
$plugin = array(
'title' => t('Column'),
'category' => t('Columns: 1'),
'icon' => 'column.png',
'theme' => 'panels_column',
'css' => 'column.css',
'regions' => array('middle' => t('Middle column')),
);
Binary file not shown.

After

Width:  |  Height:  |  Size: 122 B

@@ -0,0 +1,15 @@
<?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.
*/
?>
<?php print $content['middle']; ?>