Răsfoiți Sursa

Theme for Tripal Bulk Loader

ccheng 14 ani în urmă
părinte
comite
b9a06c925a

+ 8 - 0
theme_tripal/css/tripal_bulk_loader.css

@@ -0,0 +1,8 @@
+#tripal-bulk-loader-template-from-field {
+	float:left;
+	width:400px;
+}
+
+#tripal-bulk-loader-template-to-field {
+   width:600px;
+}

+ 46 - 0
theme_tripal/node-tripal_bulk_loader.tpl.php

@@ -0,0 +1,46 @@
+<?php
+//
+// Copyright 2009 Clemson University
+//
+?>
+
+   <?php if ($picture) {
+      print $picture;
+   }?>
+    
+   <div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
+
+   <?php if ($page == 0) { ?><h2 class="nodeTitle"><a href="<?php print $node_url?>"><?php print $title?></a>
+	<?php global $base_url;
+	if ($sticky) { print '<img src="'.base_path(). drupal_get_path('theme','sanqreal').'/img/sticky.gif" alt="sticky icon" class="sticky" />'; } ?>
+	</h2><?php }; ?>
+    
+	<?php if (!$teaser): ?>
+	<?php if ($submitted): ?>
+      <div class="metanode"><p><?php print t('') .'<span class="author">'. theme('username', $node).'</span>' . t(' - Posted on ') . '<span class="date">'.format_date($node->created, 'custom', "d F Y").'</span>'; ?></p></div>
+      <div>
+      <!-- tripal_analysis theme -->
+         <table>
+            <tr><th>Loader Name</th><td><?php print $node->loader_name;?></td></tr>
+            <tr><th>Template</th><td><?php $t = db_result(db_query("SELECT name FROM {tripal_bulk_loader_template} WHERE template_id = %d", $node->template_id)); print $t;?></td></tr>
+            <tr><th>Data File</th><td><?php print $node->file;?></td></tr>
+         </table>
+      <!-- End of tripal_analysis theme-->
+	  </div> 
+    <?php endif; ?>
+    <?php endif; ?>
+    
+    <div class="content"><?php print $content?></div>
+    
+    <?php if (!$teaser): ?>
+    <?php if ($links) { ?><div class="links"><?php print $links?></div><?php }; ?>
+    <?php endif; ?>
+    
+    <?php if ($teaser): ?>
+    <?php if ($links) { ?><div class="linksteaser"><div class="links"><?php print $links?></div></div><?php }; ?>
+    <?php endif; ?>
+    
+    <?php if (!$teaser): ?>
+    <?php if ($terms) { ?><div class="taxonomy"><span><?php print t('tags') ?></span> <?php print $terms?></div><?php } ?>
+    <?php endif; ?>
+  </div>