summaryrefslogtreecommitdiff
path: root/modules/digibug/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'modules/digibug/helpers')
-rw-r--r--modules/digibug/helpers/digibug_theme.php15
1 files changed, 5 insertions, 10 deletions
diff --git a/modules/digibug/helpers/digibug_theme.php b/modules/digibug/helpers/digibug_theme.php
index 2e44b115..0fe2ce2e 100644
--- a/modules/digibug/helpers/digibug_theme.php
+++ b/modules/digibug/helpers/digibug_theme.php
@@ -32,16 +32,11 @@ class digibug_theme_Core {
static function thumb_bottom($theme, $child) {
if ($theme->page_type() == "album" && $child->type == "photo") {
- $csrf = access::csrf_token();
- $return = "album/{$child->parent()->id}";
- $href = url::site("digibug/print_photo/$child->id?csrf={$csrf}&return=$return");
- $title = t("Print photo with Digibug");
- return "<div class=\"gDigibugPrintButton\">
- <a class=\"gButtonLink ui-corner-all ui-state-default ui-icon-left\" href=\"$href\"
- title=\"$title\">
- <span class=\"ui-icon ui-icon-print\">$title</span>
- </a>
- </div>";
+ $v = new View("digibug_album.html");
+ $v->id = $child->id;
+ $v->return = "album/{$child->parent()->id}";
+ $v->title = t("Print photo with Digibug");
+ return $v->render();
}
return "";
}