From e8067c08494f57a6f08270243c349f05b0a95c9a Mon Sep 17 00:00:00 2001 From: Manoj K Date: Fri, 10 Oct 2014 11:31:57 +0530 Subject: [PATCH] #29759 - Created default widget template file. --- CRM/Wci/Form/CreateWidget.php | 2 +- templates/CRM/Wci/Page/Widget.tpl | 164 ++++++++++++++++++++++++++++++ 2 files changed, 165 insertions(+), 1 deletion(-) create mode 100644 templates/CRM/Wci/Page/Widget.tpl diff --git a/CRM/Wci/Form/CreateWidget.php b/CRM/Wci/Form/CreateWidget.php index ccc5b7e..50743b7 100644 --- a/CRM/Wci/Form/CreateWidget.php +++ b/CRM/Wci/Form/CreateWidget.php @@ -197,7 +197,7 @@ where w.id=" . $this->_id; } else { /** Keep template in civicrm-wci/templates folder*/ - $output = file_get_contents('sites/all/modules/civicrm/extensions/civicrm-wci/templates/Widget.tpl'); + $output = file_get_contents('templates/CRM/Wci/Page/Widget.tpl',FILE_USE_INCLUDE_PATH); $elem = $this->getElement('custom_template'); $elem->setValue($output); } diff --git a/templates/CRM/Wci/Page/Widget.tpl b/templates/CRM/Wci/Page/Widget.tpl new file mode 100644 index 0000000..a2e57ef --- /dev/null +++ b/templates/CRM/Wci/Page/Widget.tpl @@ -0,0 +1,164 @@ +{literal} + + +{/literal} + +
+
+
+
+
+
+
+
+
+
+
+ -- placeholder -- +
+ {if $form.url_logo.value} + + {/if} +
+
+
+ +
\ No newline at end of file -- 2.25.1