From 41b72b88b6c183c4ca913b5fd2de888a8f48c2e6 Mon Sep 17 00:00:00 2001 From: LouisGac Date: Tue, 21 Nov 2017 17:12:45 +0100 Subject: [PATCH] Dev: templateoptions => themeoptions, for url, functions, and strings --- application/controllers/admin/templates.php | 10 +++++----- application/helpers/admin/template_helper.php | 2 +- application/models/TemplateConfiguration.php | 2 +- application/models/TemplateManifest.php | 2 +- application/views/admin/super/_configuration_menu.php | 2 +- application/views/admin/survey/surveySummary_view.php | 2 +- application/views/admin/surveysgroups/update.php | 4 ++-- .../views/admin/templates/templateeditorbar_view.php | 4 ++-- application/views/admin/themeoptions/index.php | 8 ++++---- application/views/admin/themeoptions/update.php | 4 ++-- themes/survey/default/options/options.twig | 4 ++-- 11 files changed, 22 insertions(+), 22 deletions(-) diff --git a/application/controllers/admin/templates.php b/application/controllers/admin/templates.php index addf3e5d0eb..e0677bc72b7 100644 --- a/application/controllers/admin/templates.php +++ b/application/controllers/admin/templates.php @@ -30,7 +30,7 @@ public function runWithParams($params) parent::runWithParams($params); }else{ Yii::app()->setFlashMessage(gT("We are sorry but you don't have permissions to do this."),'error'); - $this->getController()->redirect(array("admin/templateoptions")); + $this->getController()->redirect(array("admin/themeoptions")); } } @@ -70,7 +70,7 @@ public function templatezip($templatename) } }else{ Yii::app()->setFlashMessage(gT("We are sorry but you don't have permissions to do this."),'error'); - $this->getController()->redirect(array("admin/templateoptions")); + $this->getController()->redirect(array("admin/themeoptions")); } } @@ -241,7 +241,7 @@ public function upload() $this->_renderWrappedTemplate('templates', $aViewUrls, $aData); }else{ Yii::app()->setFlashMessage(gT("We are sorry but you don't have permissions to do this."),'error'); - $this->getController()->redirect(array("admin/templateoptions")); + $this->getController()->redirect(array("admin/themeoptions")); } @@ -468,7 +468,7 @@ public function templaterename() Yii::app()->user->setFlash('error',sprintf(gT("Template '%s' could not be found."), $sOldName)); } - $this->getController()->redirect(array('admin/templateoptions')); + $this->getController()->redirect(array('admin/themeoptions')); } } }else{ @@ -571,7 +571,7 @@ public function delete($templatename) Yii::app()->setFlashMessage(gT("We are sorry but you don't have permissions to do this."),'error'); } // Redirect with default templatename, editfile and screenname - $this->getController()->redirect(array("admin/templateoptions")); + $this->getController()->redirect(array("admin/themeoptions")); } /** diff --git a/application/helpers/admin/template_helper.php b/application/helpers/admin/template_helper.php index 5cee685255a..4e1f7c7ca58 100644 --- a/application/helpers/admin/template_helper.php +++ b/application/helpers/admin/template_helper.php @@ -65,7 +65,7 @@ function mkdir_p($target){ } } -function templateoptions($optionarray, $selectedvalue) { +function themeoptions($optionarray, $selectedvalue) { $return=''; foreach ($optionarray as $arkey=>$arvalue) { $return .= "