summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-04-27 17:14:51 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2011-04-27 17:14:51 +0200
commit0127cc87282a697b81ac03249365d72d0b75800d (patch)
tree79fd22c1f6a2ade03644499ffbd7f967ea645dd7
parent48e73bc0cbc942cc891ec803f6c012b355d8b7f7 (diff)
downloadalpine_drupal_theme-0127cc87282a697b81ac03249365d72d0b75800d.tar.bz2
alpine_drupal_theme-0127cc87282a697b81ac03249365d72d0b75800d.tar.xz
move package table logic to module instead of theme
-rw-r--r--nbproject/project.properties7
-rw-r--r--nbproject/project.xml9
-rw-r--r--templates/node--apk.tpl.php54
3 files changed, 17 insertions, 53 deletions
diff --git a/nbproject/project.properties b/nbproject/project.properties
new file mode 100644
index 0000000..25f05c9
--- /dev/null
+++ b/nbproject/project.properties
@@ -0,0 +1,7 @@
+include.path=${php.global.include.path}
+php.version=PHP_53
+source.encoding=UTF-8
+src.dir=.
+tags.asp=false
+tags.short=true
+web.root=.
diff --git a/nbproject/project.xml b/nbproject/project.xml
new file mode 100644
index 0000000..3448e7b
--- /dev/null
+++ b/nbproject/project.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://www.netbeans.org/ns/project/1">
+ <type>org.netbeans.modules.php.project</type>
+ <configuration>
+ <data xmlns="http://www.netbeans.org/ns/php-project/1">
+ <name>Drupal Alpine theme</name>
+ </data>
+ </configuration>
+</project>
diff --git a/templates/node--apk.tpl.php b/templates/node--apk.tpl.php
index 122c17c..ed135ad 100644
--- a/templates/node--apk.tpl.php
+++ b/templates/node--apk.tpl.php
@@ -3,56 +3,4 @@
#simpleTooltip {padding: 7px; border: 1px solid #A6A7AB; background: #F2F3F5;}
</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>Commit</th>
- <td><?php print (isset($commit_url)) ? $commit_url : '<p>None</p>'; ?></td>
- </tr>
- <tr class="even">
- <th>Dependencies</th>
- <td>
- <?php
- if (isset($node->apk_depends['und'])) {
- foreach ($node->apk_depends['und'] as $key => $depend) {
- $value = trim($depend['value'], '!');
- $value = preg_split("/[<>=]/", $value);
- print '<p>' . l($depend['value'], 'apk/' .
- $node->taxonomy_apk_repo['und']['0']['taxonomy_term']->name . '/' .
- $node->taxonomy_apk_arch['und']['0']['taxonomy_term']->name . '/' .
- $value[0], array()) . '</p>';
- }
- } else {
- print '<p>None</p>';
- }
- ?>
- </td>
- </tr>
-</table>
+<?php print $apk_table ?> \ No newline at end of file