Browse Source

added contact footer on home V2

Bachir Soussi Chiadmi 8 years ago
parent
commit
54f496acad

+ 1 - 0
.gitignore

@@ -20,3 +20,4 @@ _base_d7.tmproj
 node_modules
 
 .sass-cache
+typescript

+ 32 - 0
sites/all/modules/features/materio_home_v2/materio_home_v2.pages_default.inc

@@ -325,6 +325,38 @@ function materio_home_v2_default_page_manager_pages() {
     $pane->uuid = '639eb2c7-bf5d-4920-b1bb-c33d8f72a650';
     $display->content['new-639eb2c7-bf5d-4920-b1bb-c33d8f72a650'] = $pane;
     $display->panels['middle'][8] = 'new-639eb2c7-bf5d-4920-b1bb-c33d8f72a650';
+    $pane = new stdClass();
+    $pane->pid = 'new-ab2ebbf2-7338-4db9-8df4-8b825058f98d';
+    $pane->panel = 'middle';
+    $pane->type = 'node';
+    $pane->subtype = 'node';
+    $pane->shown = TRUE;
+    $pane->access = array();
+    $pane->configuration = array(
+      'nid' => '11175',
+      'links' => 0,
+      'leave_node_title' => 0,
+      'identifier' => '',
+      'build_mode' => 'full',
+      'link_node_title' => 0,
+      'override_title' => 1,
+      'override_title_text' => '<none>',
+      'override_title_heading' => 'h2',
+    );
+    $pane->cache = array();
+    $pane->style = array(
+      'settings' => NULL,
+    );
+    $pane->css = array(
+      'css_id' => 'contact-pane',
+      'css_class' => '',
+    );
+    $pane->extras = array();
+    $pane->position = 9;
+    $pane->locks = array();
+    $pane->uuid = 'ab2ebbf2-7338-4db9-8df4-8b825058f98d';
+    $display->content['new-ab2ebbf2-7338-4db9-8df4-8b825058f98d'] = $pane;
+    $display->panels['middle'][9] = 'new-ab2ebbf2-7338-4db9-8df4-8b825058f98d';
   $display->hide_title = PANELS_TITLE_NONE;
   $display->title_pane = '0';
   $handler->conf['display'] = $display;

+ 20 - 1
sites/all/themes/gui/materiobasetheme/css/styles.css

@@ -11888,6 +11888,25 @@ body.not-logged-in #home-v2 .field-name-field-liens a.member {
     opacity: 0.4;
   }
 }
+/* line 3360, ../scss/styles.scss */
+#home-v2 #contact-pane {
+  margin: 2em 0;
+  padding: 1em;
+  background-color: #e6e6e6;
+}
+/* line 3363, ../scss/styles.scss */
+#home-v2 #contact-pane .field-name-body {
+  text-align: center;
+}
+/* line 3365, ../scss/styles.scss */
+#home-v2 #contact-pane .field-name-body p {
+  display: moz-inline-stack;
+  display: inline-block;
+  vertical-align: top;
+  zoom: 1;
+  *display: inline;
+  min-width: 20%;
+}
 
 /*
          _                 __
@@ -11897,7 +11916,7 @@ body.not-logged-in #home-v2 .field-name-field-liens a.member {
 /____/_/_/ /_/ /_/ .___/_/\___/_/ /_/\___/|__/|__/____/
                 /_/
 */
-/* line 3370, ../scss/styles.scss */
+/* line 3383, ../scss/styles.scss */
 .node-type-simplenews img {
   max-width: none !important;
 }

+ 14 - 1
sites/all/themes/gui/materiobasetheme/scss/styles.scss

@@ -3356,6 +3356,19 @@ body.home-v2{
       &:after{z-index: -1; opacity:0.4;}
     }
   }
+
+  #contact-pane{
+    margin:2em 0; padding:1em;
+    background-color: #e6e6e6;
+    .field-name-body{
+      text-align: center;
+      p{
+        @include inlineblock();
+        min-width: 20%;
+      }
+    }
+  }
+
 } // homeV2
 
 /*
@@ -3374,4 +3387,4 @@ body.home-v2{
 
 
 @import "misc.scss";
-// end
+// end

+ 4 - 4
sites/all/themes/gui/materiobasetheme/templates/node.tpl.php

@@ -1,10 +1,10 @@
 <!-- start article.node -->
 <article class="<?php print $classes; ?>">
 
-  <?php if ($page == 0): ?>
+  <?php if ($page == 0 && $title !== ""): ?>
   <a href="<?php print $node_url?>"><h1 class="nodetitle"><?php print $title?></h1></a>
   <?php endif; ?>
-  
+
   <section class="content">
 	  <?php
 	    hide($content['comments']);
@@ -12,7 +12,7 @@
 	    print render($content);
 	  ?>
   </section>
-  
+
   <?php //if ($submitted): ?>
   <!-- <aside class="submitted"> -->
   <?php //print $submitted?>
@@ -24,6 +24,6 @@
 	   <?php print $links; ?>
     </nav>
 	<?php endif; ?>
-  
+
 </article>
 <!-- end article.node -->