From 31d6850e6e3c369edb2aa09658cd4cc0b1536ae9 Mon Sep 17 00:00:00 2001 From: hide_d Date: Fri, 20 Apr 2018 02:17:38 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=ED=8C=90=20=EB=A6=AC?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + hwe/func_template.php | 8 +++++++- hwe/templates/allButton.php | 32 ++++++++++++++++---------------- 3 files changed, 24 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index f160c7b6..b11fcef9 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,7 @@ d_pic/*.png d_setting/*.php */d_setting/*.php +*/d_setting/templates/*.php **/old/* test.php diff --git a/hwe/func_template.php b/hwe/func_template.php index 7d3de5b6..e712dfa7 100644 --- a/hwe/func_template.php +++ b/hwe/func_template.php @@ -75,7 +75,13 @@ function allButton() { $call = "설문조사"; } - $templates = new \League\Plates\Engine('templates'); + if(\file_exists("d_setting/templates/allButton.php")){ + $templates = new \League\Plates\Engine('d_setting/templates'); + } + else{ + $templates = new \League\Plates\Engine('templates'); + } + return $templates->render('allButton', [ 'call' => $call, diff --git a/hwe/templates/allButton.php b/hwe/templates/allButton.php index f8e3d0b2..2c21905a 100644 --- a/hwe/templates/allButton.php +++ b/hwe/templates/allButton.php @@ -1,22 +1,22 @@
- - - - - - - - + + + + + + + +
- - - - - - - - + + + + + + + +