summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-04-04 00:24:44 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-04-04 00:24:44 +0000
commit59e216b64ce4c31f117e014422669a7ae3c5a884 (patch)
tree0b21642ed6d968cdd7bac04b94d2b500afff4760
parent01a901009989aa8a514acd9e833caae39b6dbd13 (diff)
downloadalpine_drupal_theme-59e216b64ce4c31f117e014422669a7ae3c5a884.tar.bz2
alpine_drupal_theme-59e216b64ce4c31f117e014422669a7ae3c5a884.tar.xz
add package template file
-rw-r--r--templates/node--apk.tpl.php45
1 files changed, 45 insertions, 0 deletions
diff --git a/templates/node--apk.tpl.php b/templates/node--apk.tpl.php
new file mode 100644
index 0000000..c4cc4ab
--- /dev/null
+++ b/templates/node--apk.tpl.php
@@ -0,0 +1,45 @@
+<style type="text/css">
+ #page-title {display: none}
+</style>
+<h3>Package details:</h3>
+<table style="width: 50%;">
+ <tr class="even">
+ <th>Package</th>
+ <td><?php print $node->title; ?></td>
+ </tr>
+ <tr class="odd">
+ <th>Version</th>
+ <td><?php print $node->apk_version['und'][0]['value']; ?></td>
+ </tr>
+ <tr class="even">
+ <th>Architecture</th>
+ <td><?php print $node->taxonomy_apk_arch['und'][0]['taxonomy_term']->name; ?></td>
+ </tr>
+ <tr class="odd">
+ <th>Repository</th>
+ <td><?php print $node->taxonomy_apk_repo['und'][0]['taxonomy_term']->name; ?></td>
+ </tr>
+ <tr class="even">
+ <th>Project</th>
+ <td><a href="<?php print $node->apk_url['und'][0]['value']; ?>">URL</a></td>
+ </tr>
+ <tr class="odd">
+ <th>Description</th>
+ <td><?php print $node->apk_description['und'][0]['value']; ?></td>
+ </tr>
+ <tr class="even">
+ <th>License</th>
+ <td><?php print $node->apk_license['und'][0]['value']; ?></td>
+ </tr>
+ <tr class="odd">
+ <th>Dependencies</th>
+ <td>
+ <?php
+ foreach ($node->apk_depends['und'] as $key => $depend) {
+ print '<p>' . $depend['value'] . '</p>';
+ }
+ ?>
+ </td>
+ </tr>
+</table>
+