Browse Source

Node theme: i18n, layout

- new clear-block class on whole-node <div>
- margin/padding applied to "submitted info
- taxonomy wrapper not translatable
root 14 years ago
parent
commit
77eb1b688f
2 changed files with 27 additions and 0 deletions
  1. 11 0
      node.tpl.php
  2. 16 0
      template.php

+ 11 - 0
node.tpl.php

@@ -0,0 +1,11 @@
+<div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?> clear-block">
+  <?php if ($picture) { print $picture; }?>
+  <?php if ($page == 0) { ?><h2 class="title"><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2><?php }; ?>
+  <div class="node2">
+    <?php if ($submitted) { ?><span class="submitted"><?php print $submitted?></span><?php } ?>
+    <div class="taxonomy"><?php if ($terms) {print $terms_wrapped; }?></div>
+    </div>
+  <span class="clear"></span>
+    <div class="content"><?php print $content?></div>
+    <?php if ($links) { ?><div class="links-node"><?php print $links?></div><?php }; ?>
+  </div>

+ 16 - 0
template.php

@@ -0,0 +1,16 @@
+<?php
+// $Id$
+/**
+ * @file
+ * Preprocess for sub-theme
+ */
+
+/**
+ * Preprocess for theme_node().
+ *
+ * @param array $variables
+ * @return void
+ */
+function fg_lemontwist_preprocess_node($variables) {
+  $variables['terms_wrapped'] = t('Published in:!terms', array('!terms' => $variables['terms']));
+}