From de0c91f6ff8ec4ba7244569e371ea941c2999e04 Mon Sep 17 00:00:00 2001 From: Miguel Molina Date: Tue, 3 Mar 2015 12:54:28 +1100 Subject: [PATCH] Replace Feedback Tab with Web Widget * ApiController.php won't parse the Feedback Tab paramenters coming from the Provisioning install script, but will parse the Web Widget parameters. * Update system.xml to reflect the changes on the settings page. * Drop the Supporttab layout and add the Web Widget one. --- .../Block/{Supporttab.php => webWidget.php} | 8 ++-- .../Zendesk/controllers/ApiController.php | 8 ++-- .../community/Zendesk/Zendesk/etc/system.xml | 43 +++++++------------ .../frontend/base/default/layout/zendesk.xml | 2 +- 4 files changed, 24 insertions(+), 37 deletions(-) rename src/app/code/community/Zendesk/Zendesk/Block/{Supporttab.php => webWidget.php} (70%) diff --git a/src/app/code/community/Zendesk/Zendesk/Block/Supporttab.php b/src/app/code/community/Zendesk/Zendesk/Block/webWidget.php similarity index 70% rename from src/app/code/community/Zendesk/Zendesk/Block/Supporttab.php rename to src/app/code/community/Zendesk/Zendesk/Block/webWidget.php index 20d93972..ea2ea4bb 100644 --- a/src/app/code/community/Zendesk/Zendesk/Block/Supporttab.php +++ b/src/app/code/community/Zendesk/Zendesk/Block/webWidget.php @@ -1,6 +1,6 @@ 1 1 1 - + select @@ -189,38 +189,25 @@ 1 1 - - + + select adminhtml/system_config_source_yesno 6 1 1 1 - - - textarea - 7 - 1 - 1 - 1 - - 1 - - - + + zendesk/adminhtml_config_link - - Customize Feedback Tab - 8 + + Customize Web Widget + 7 1 1 1 - - 1 - - + select @@ -269,7 +256,7 @@ 1 1 0 - + select @@ -287,7 +274,7 @@ 1 1 0 - + select @@ -442,16 +429,16 @@ 1 1 - - + + zendesk/adminhtml_config_link - + Configure 1 1 1 1 - + zendesk/adminhtml_config_link diff --git a/src/app/design/frontend/base/default/layout/zendesk.xml b/src/app/design/frontend/base/default/layout/zendesk.xml index 2718945a..0d293213 100644 --- a/src/app/design/frontend/base/default/layout/zendesk.xml +++ b/src/app/design/frontend/base/default/layout/zendesk.xml @@ -27,7 +27,7 @@ - +