Selaa lähdekoodia

added new template for industriels newsletter

Bachir Soussi Chiadmi 7 vuotta sitten
vanhempi
commit
aafe1c5460

+ 40 - 0
sites/all/themes/gui/materiobasetheme/templates/simplenews-newsletter-body--7881.tpl.php

@@ -0,0 +1,40 @@
+<?php
+
+/**
+ * @file
+ * Default theme implementation to format the simplenews newsletter body.
+ *
+ * Copy this file in your theme directory to create a custom themed body.
+ * Rename it to override it. Available templates:
+ *   simplenews-newsletter-body--[tid].tpl.php
+ *   simplenews-newsletter-body--[view mode].tpl.php
+ *   simplenews-newsletter-body--[tid]--[view mode].tpl.php
+ * See README.txt for more details.
+ *
+ * Available variables:
+ * - $build: Array as expected by render()
+ * - $build['#node']: The $node object
+ * - $title: Node title
+ * - $language: Language code
+ * - $view_mode: Active view mode
+ * - $simplenews_theme: Contains the path to the configured mail theme.
+ * - $simplenews_subscriber: The subscriber for which the newsletter is built.
+ *   Note that depending on the used caching strategy, the generated body might
+ *   be used for multiple subscribers. If you created personalized newsletters
+ *   and can't use tokens for that, make sure to disable caching or write a
+ *   custom caching strategy implemention.
+ *
+ * @see template_preprocess_simplenews_newsletter_body()
+ */
+?>
+<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
+  <tbody>
+    <tr>
+      <td style="padding: 37px 0; background-color: #ffffff; text-align:center;" align="center" bgcolor="#ffffff">
+
+        <table bgcolor="#ffffff" style="margin: 0 auto; color: #444444; font-family: arial; font-size: 12px; background-color: #ffffff; float:none; position:relative;" width="600" border="0" cellspacing="0" cellpadding="0">
+          <tbody>
+            <tr>
+              <td style="text-align:left;">
+                <!-- node content -->
+                <?php print render($build); ?>

+ 64 - 0
sites/all/themes/gui/materiobasetheme/templates/simplenews-newsletter-footer--7881.tpl.php

@@ -0,0 +1,64 @@
+<?php
+
+/**
+ * @file
+ * Default theme implementation to format the simplenews newsletter footer.
+ *
+ * Copy this file in your theme directory to create a custom themed footer.
+ * Rename it to simplenews-newsletter-footer--[tid].tpl.php to override it for a
+ * newsletter using the newsletter term's id.
+ *
+ * @todo Update the available variables.
+ * Available variables:
+ * - $build: Array as expected by render()
+ * - $build['#node']: The $node object
+ * - $language: language code
+ * - $key: email key [node|test]
+ * - $format: newsletter format [plain|html]
+ * - $unsubscribe_text: unsubscribe text
+ * - $test_message: test message warning message
+ * - $simplenews_theme: path to the configured simplenews theme
+ *
+ * Available tokens:
+ * - [simplenews-subscriber:unsubscribe-url]: unsubscribe url to be used as link
+ *
+ * Other available tokens can be found on the node edit form when token.module
+ * is installed.
+ *
+ * @see template_preprocess_simplenews_newsletter_footer()
+ */
+?>
+
+              </td>
+            </tr>
+          </tbody>
+        </table>
+        <table style="height: 10px; border-collapse: collapse; font-size: 1px;" border="0" cellspacing="0" cellpadding="0">
+          <tbody>
+            <tr>
+              <td style="height: 10px; border-spacing: 0; font-size: 1px;" height="10">
+                &nbsp;
+              </td>
+            </tr>
+          </tbody>
+        </table>
+
+        <?php if (!$opt_out_hidden): ?>
+          <?php if ($format == 'html'): ?>
+            <p style="font-size:11px; margin: 5px 20px 0;"><a style="color:#444444;" href="[simplenews-subscriber:unsubscribe-url]"><?php print $unsubscribe_text ?></a></p>
+          <?php else: ?>
+          -- <?php print $unsubscribe_text ?>: [simplenews-subscriber:unsubscribe-url]
+          <?php endif ?>
+        <?php endif; ?>
+
+        <p id="footer_address" style="color:#444444; text-align: center; margin: 20px 20px 0; line-height:0.7; font-size:10px; ">
+          matériO SAS<br>8, rue Chaptal<br>75009 Paris<br><a href="www.materio.com" style="color:#444444">www.materio.com</a>
+        </p>
+
+        <?php if ($key == 'test'): ?>
+        - - - <?php print $test_message ?> - - -
+        <?php endif ?>
+      </td>
+    </tr>
+  </tbody>
+</table>