From: Manoj K Date: Fri, 10 Oct 2014 06:01:57 +0000 (+0530) Subject: #29759 - Created default widget template file. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e8067c08494f57a6f08270243c349f05b0a95c9a;p=com.zyxware.civiwci.git #29759 - Created default widget template file. --- 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