diff --git a/CRM/Wci/Form/CreateWidget.php b/CRM/Wci/Form/CreateWidget.php index c2c3c84..47044be 100644 --- a/CRM/Wci/Form/CreateWidget.php +++ b/CRM/Wci/Form/CreateWidget.php @@ -247,7 +247,7 @@ function buildQuickForm() { $this->setDefaults(array( 'custom_template' => $cust_templ)); } else { - $output = file_get_contents('templates/CRM/Wci/Page/wciwidget.tpl',FILE_USE_INCLUDE_PATH); + $output = file_get_contents('templates/CRM/Wci/Page/WCIWidget.tpl', FILE_USE_INCLUDE_PATH); $elem = $this->getElement('custom_template'); $elem->setValue($output); } @@ -256,7 +256,7 @@ function buildQuickForm() { } else { CRM_Utils_System::setTitle(ts('Create Widget')); - $output = file_get_contents('templates/CRM/Wci/Page/wciwidget.tpl',FILE_USE_INCLUDE_PATH); + $output = file_get_contents('templates/CRM/Wci/Page/WCIWidget.tpl', FILE_USE_INCLUDE_PATH); $elem = $this->getElement('custom_template'); $elem->setValue($output); } diff --git a/CRM/Wci/WidgetCode.php b/CRM/Wci/WidgetCode.php index a5145ee..a1c7f36 100644 --- a/CRM/Wci/WidgetCode.php +++ b/CRM/Wci/WidgetCode.php @@ -37,7 +37,7 @@ static function generate_widget_code($widgetId, $preview = 0) { if ($data["override"] == '0') { $template->template_dir[] = getWciWidgetTemplatePath(); - $wcidata = $template->fetch('wciwidget.tpl'); + $wcidata = $template->fetch('WCIWidget.tpl'); } else { $wcidata = $template->fetch('string:' . html_entity_decode($data['custom_template'])); } diff --git a/templates/CRM/Wci/Form/CreateWidget.hlp b/templates/CRM/Wci/Form/CreateWidget.hlp index bae916b..aaac13f 100644 --- a/templates/CRM/Wci/Form/CreateWidget.hlp +++ b/templates/CRM/Wci/Form/CreateWidget.hlp @@ -1,3 +1,25 @@ +{* + +--------------------------------------------------------------------+ + | CiviCRM Widget Creation Interface (WCI) Version 1.0 | + +--------------------------------------------------------------------+ + | Copyright Zyxware Technologies (c) 2014 | + +--------------------------------------------------------------------+ + | This file is a part of CiviCRM WCI. | + | | + | CiviCRM WCI is free software; you can copy, modify, and distribute | + | it under the terms of the GNU Affero General Public License | + | Version 3, 19 November 2007. | + | | + | CiviCRM WCI is distributed in the hope that it will be useful, | + | but WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | + | See the GNU Affero General Public License for more details. | + | | + | You should have received a copy of the GNU Affero General Public | + | License along with this program; if not, contact Zyxware | + | Technologies at info[AT]zyxware[DOT]com. | + +--------------------------------------------------------------------+ +*} {htxt id="hide-border"} {ts}To get transparent background give none in the Background color field{/ts} {/htxt} @@ -17,3 +39,11 @@ {htxt id="image"} {ts}Select a smaller image than Size variant{/ts} {/htxt} + +{htxt id="preview"} +{ts}To embed widget on a page, create an embed code and associate it with the widget.{/ts} +{/htxt} + +{htxt id="add-new-pb"} +{ts}If no progressbars availavle, create one.{/ts} +{/htxt} diff --git a/templates/CRM/Wci/Form/CreateWidget.tpl b/templates/CRM/Wci/Form/CreateWidget.tpl index 1296eab..3cccadd 100644 --- a/templates/CRM/Wci/Form/CreateWidget.tpl +++ b/templates/CRM/Wci/Form/CreateWidget.tpl @@ -1,3 +1,25 @@ +{* + +--------------------------------------------------------------------+ + | CiviCRM Widget Creation Interface (WCI) Version 1.0 | + +--------------------------------------------------------------------+ + | Copyright Zyxware Technologies (c) 2014 | + +--------------------------------------------------------------------+ + | This file is a part of CiviCRM WCI. | + | | + | CiviCRM WCI is free software; you can copy, modify, and distribute | + | it under the terms of the GNU Affero General Public License | + | Version 3, 19 November 2007. | + | | + | CiviCRM WCI is distributed in the hope that it will be useful, | + | but WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | + | See the GNU Affero General Public License for more details. | + | | + | You should have received a copy of the GNU Affero General Public | + | License along with this program; if not, contact Zyxware | + | Technologies at info[AT]zyxware[DOT]com. | + +--------------------------------------------------------------------+ +*} {* HEADER *}
{$form.hide_title.html} | -{$form.hide_title.label} | +{$form.hide_title.label} |
{$form.hide_border.html} | {$form.hide_border.label} {help id="hide-border" file="CRM/Wci/Form/CreateWidget"} | -|
{$form.hide_pbcap.html} | {$form.hide_pbcap.label} | -