From 6dd75b7d9515f0a36a399d4436068d28fbc8088c Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 8 Jan 2016 17:10:12 +0100 Subject: [PATCH] use only 1 download button, ref #3 --- controller/classes/Subtemplate.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/controller/classes/Subtemplate.php b/controller/classes/Subtemplate.php index 95b8bab..f299459 100644 --- a/controller/classes/Subtemplate.php +++ b/controller/classes/Subtemplate.php @@ -782,16 +782,13 @@ class Subtemplate { return $result; } public function download($subtemplateTitle) { - $leftUrl = get_sub_field('left_button_url'); - $leftText = get_sub_field('left_button_text'); - $rightUrl = get_sub_field('right_button_url'); - $rightText = get_sub_field('right_button_text'); + $buttonUrl = get_sub_field('button_url'); + $buttonText = get_sub_field('button_text'); $result = "
";