Advertisement
Juc1

Panels layout

Mar 3rd, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. $/layouts/panels/ju_23# ls
  2. ju_23.inc ju_23.png ju_23.tpl.php
  3. $/layouts/panels/ju_23# cat ju_23.inc
  4. <?php
  5. /**
  6. * @file ju_23.inc
  7. * @date 02/03/14
  8. * @brief The panels layout plugin for the ju_23 panels layout.
  9. *
  10. *
  11. */
  12.  
  13. // Plugin definition
  14. $plugin = array(
  15. 'title' => t('Ju 23'),
  16. 'icon' => 'ju_23.png',
  17. 'category' => t('Columns: 3'),
  18. 'theme' => 'ju_23',
  19. 'css' => '../../../css/mytheme.styles.css',
  20. 'regions' => array(
  21. 'row1left' => t('Row 1: Left'),
  22. 'row1right' => t('Row 1: Right'),
  23. 'row2left' => t('Row 2: Left'),
  24. 'row2centre' => t('Row 2: Centre'),
  25. 'row2right' => t('Row 2: Right'),
  26. ),
  27. );
  28.  
  29. $/layouts/panels/ju_23# cat ju_23.tpl.php
  30. <div class="panel-display">
  31.  
  32. <div class="ju-23-wrapper panel-display">
  33.  
  34. <div class="ju-23-row-1-wrapper panel-panel">
  35.  
  36. <div class="ju-23-row-1 panel-panel">
  37.  
  38. <div class="ju-23-row-1-left panel-panel">
  39.  
  40. <?php print $content['row1left']; ?>
  41.  
  42. </div> <!--end ju-23-row-1-left -->
  43.  
  44. <div class="ju-23-row-1-right">
  45.  
  46. <?php print $content['row1right']; ?>
  47.  
  48. </div> <!--end ju-23-row-1-right-->
  49.  
  50. </div> <!--end ju-23-row-1-->
  51.  
  52. </div> <!--end ju-23-row-1-wrapper -->
  53.  
  54.  
  55.  
  56. <div class="ju-23-row-2-wrapper">
  57.  
  58. <div class="ju-23-row-2">
  59.  
  60. <div class="ju-23-row-2-left">
  61.  
  62. <?php print $content['row2left']; ?>
  63.  
  64. </div> <!--end ju-23-row-2-left -->
  65.  
  66.  
  67. <div class="ju-23-row-2-centre">
  68.  
  69. <?php print $content['row2centre']; ?>
  70.  
  71. </div> <!--end ju-23-row-2-centre -->
  72.  
  73.  
  74. <div class="ju-23-row-2-right">
  75.  
  76. <?php print $content['row2right']; ?>
  77.  
  78. </div> <!--end ju-23-row-2-right-->
  79.  
  80. </div> <!--end ju-23-row-2-->
  81.  
  82. </div> <!--end ju-23-row-2-wrapper -->
  83.  
  84. </div> <!--end ju-23-wrapper-->
  85.  
  86. </div> <!--end panel-display-->
  87.  
  88. $/layouts/panels/ju_23#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement