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 @@
- - - - - - - - + + + + + + + +
- - - - - - - - + + + + + + + +