31499 added tips for user
authorJagadedes <jagadees.pillai@zyxware.com>
Fri, 21 Nov 2014 12:09:56 +0000 (17:39 +0530)
committerJagadedes <jagadees.pillai@zyxware.com>
Fri, 21 Nov 2014 12:09:56 +0000 (17:39 +0530)
templates/CRM/Wci/Form/CreateWidget.hlp
templates/CRM/Wci/Form/CreateWidget.tpl
templates/CRM/Wci/Form/NewEmbedCode.tpl
templates/CRM/Wci/Form/ProgressBar.tpl
templates/CRM/Wci/Form/WCISettings.tpl
templates/CRM/Wci/Page/ManageEmbedCode.tpl
templates/CRM/Wci/Page/ProgressBarList.tpl
templates/CRM/Wci/Page/WidgetList.tpl
templates/CRM/Wci/Page/wciwidget.tpl

index bae916b59a292d7810c78a412707e29ad63a24f7..aaac13f07ed39267a0c8de0b1a83b66b244bb965 100644 (file)
@@ -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 <strong>none</strong> in the <i>Background color</i> field{/ts}
 {/htxt}
 {htxt id="image"}
 {ts}Select a smaller image than Size variant{/ts}
 {/htxt}
+
+{htxt id="preview"}
+{ts}To embed widget on a page, <a accesskey="N" href='embed-code/add'>create</a> 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}
index 1296eab71e850b4003aa1c7649c98a7b644445ff..3cccadd398453a65b914596380920760a7dcbf36 100644 (file)
@@ -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 *}
 <div class="crm-block crm-form-block ">
   <div class="crm-submit-buttons">
@@ -5,7 +27,7 @@
   </div>
 
   {if $form.title.value != ""}
-    {php} 
+    {php}
       if(isset($_REQUEST['id'])) {
         $widget_controller_path = getWciWidgetControllerPath();
         $extension_root_path = getExtensionRootPath();
@@ -21,7 +43,7 @@
             Click <strong>Save &amp; Preview</strong> to save any changes to your settings, and preview the widget again on this page.
           </div>
           <script type="text/javascript" src="{php}echo $widget_controller_path;{/php}?id={php}echo $_REQUEST['id'];{/php}&preview=1"></script>
-  <div id='widgetwci'></div>
+  <div id='widgetwci'></div>{help id="preview" file="CRM/Wci/Form/CreateWidget"}
         </div>
     </div>
           <div class="clear"></div>
   <div class="label">{$form.title.label}</div>
   <div class="content">{$form.title.html}</div>
   <div class="clear"></div>
-</div>  
+</div>
 <div class="crm-section">
   <div class="label">{$form.logo_image.label}</div>
   <div class="content">{$form.logo_image.html} {help id="logo_image" file="CRM/Wci/Form/CreateWidget"}</div>
   <div class="clear"></div>
-</div>  
+</div>
 <div class="crm-section">
   <div class="label">{$form.image.label}</div>
   <div class="content">{$form.image.html} {help id="image" file="CRM/Wci/Form/CreateWidget"}</div>
@@ -55,7 +77,7 @@
 </div>
 <div class="crm-section">
   <div class="label">{$form.progress_bar.label}</div>
-  <div class="content">{$form.progress_bar.html}</div>
+  <div class="content">{$form.progress_bar.html}{help id="add-new-pb" file="CRM/Wci/Form/CreateWidget"}</div>
   <div class="clear"></div>
 </div>
 <div class="crm-section">
 <table class="form-layout-compressed">
   <tr>
    <td>{$form.hide_title.html}</td>
-   <td>{$form.hide_title.label}</td> 
+   <td>{$form.hide_title.label}</td>
   </tr>
   <tr>
    <td>{$form.hide_border.html}</td>
    <td>{$form.hide_border.label} {help id="hide-border" file="CRM/Wci/Form/CreateWidget"}</td>
-  </tr>  
+  </tr>
   <tr>
    <td>{$form.hide_pbcap.html}</td>
    <td>{$form.hide_pbcap.label}</td>
-  </tr>  
+  </tr>
 </table>
   </div>
 </div>
index 1269a319af58df40dd91aa0b64cfcb376714a4a1..68172c7e8fb6e2e5bd9d54068d733a9322eeb436 100644 (file)
@@ -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 *}
 <div class="crm-block crm-form-block">
 <div class="crm-submit-buttons">
@@ -14,7 +36,7 @@
   </div>
 {/foreach}
   {if $form.title.value != ""}
-    {php} 
+    {php}
       if(isset($_REQUEST['id'])) {
         $emb_id = $_REQUEST['id'];
         $wid_id = CRM_Wci_BAO_EmbedCode::getWidgetId($emb_id);
@@ -39,7 +61,7 @@
           <div class="description">
             Add this widget to any web page by copying and pasting the code below.
           </div>
-          <textarea rows="8" cols="40" name="widget_code" id="widget_code"><script type="text/javascript" src="{php}echo $widget_controller_path;{/php}?id={php}echo $emb_id;{/php}&referal_id=2442"> </script> 
+          <textarea rows="8" cols="40" name="widget_code" id="widget_code"><script type="text/javascript" src="{php}echo $widget_controller_path;{/php}?id={php}echo $emb_id;{/php}&referal_id=2442"> </script>
 <div id='widgetwci'></div></textarea>
           <br>
           <strong>
index ae6889d7ad5c5272ccb67e1f6408d3fa9e52d29b..e61315857640cd2b02c7222b251803e9661b290e 100644 (file)
@@ -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.                           |
+ +--------------------------------------------------------------------+
+*}
 {literal}
 <style>
     .crm-wci-pb hr {
index e1b89cf2855cd7d904813da5935b8c12172ea5e9..bff09d2355b39e5bdc96a4a36c0576487d42b921 100644 (file)
@@ -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 *}
 <div class="crm-block crm-form-block">
 <div class="crm-submit-buttons">
index ef934540d965e1222fa1e8944c873088f65d1646..4326d85a9067c0338ce8bb7e76c8196ceeef877c 100644 (file)
@@ -1,11 +1,25 @@
-{*<h3>This new page is generated by CRM/Wci/Page/ManageEmbedCode.php</h3>
-
- Example: Display a variable directly 
-<p>The current time is {$currentTime}</p>*}
-
-{* Example: Display a translated string -- which happens to include a variable 
-<p>{ts 1=$currentTime}(In your native language) The current time is %1.{/ts}</p>*}
-
+{*
+ +--------------------------------------------------------------------+
+ | 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.                           |
+ +--------------------------------------------------------------------+
+*}
     {if $rows}
       <div id="configure_contribution_page">
              {strip}
         {/strip}
       </div>
     {else}
-  {if $isSearch eq 1}
-      <div class="status messages">
-                <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
-                {capture assign=browseURL}{crmURL p='civicrm/contribute/manage' q="reset=1"}{/capture}
-                    {ts}No available Contribution Pages match your search criteria. Suggestions:{/ts}
-                    <div class="spacer"></div>
-                    <ul>
-                    <li>{ts}Check your spelling.{/ts}</li>
-                    <li>{ts}Try a different spelling or use fewer letters.{/ts}</li>
-                    <li>{ts}Make sure you have enough privileges in the access control system.{/ts}</li>
-                    </ul>
-                    {ts 1=$browseURL}Or you can <a href='%1'>browse all available Contribution Pages</a>.{/ts}
-      </div>
-      {else}
       <div class="messages status no-popup">
              <div class="icon inform-icon"></div> &nbsp;
              {ts 1=$newPageURL}No embeded code have been selected yet. Click <a accesskey="N" href='embed-code/add'>here</a> to select a wci widget for the embeded code.{/ts}
       </div>
-        {/if}
     {/if}
index 0b3d0ed5c00195cbe49d813ea87cd2ea53813fa5..5527a5f9bf538e575ae0b264ae72340964043046 100644 (file)
@@ -1,27 +1,24 @@
-{*<h3>This new page is generated by CRM/Wci/Page/ProgressBarList.php</h3> *}
-
-{* Example: Display a variable directly 
-<p>The current time is {$currentTime}</p>
-*}
-{* Example: Display a translated string -- which happens to include a variable 
-<p>{ts 1=$currentTime}(In your native language) The current time is %1.{/ts}</p>
-*}
-
 {*
-    {capture assign=newPageURL}{crmURL p='civicrm/admin/contribute/add' q='action=add&reset=1'}{/capture}
-    <div id="help">
-       {ts}CiviContribute allows you to create and maintain any number of Online Contribution Pages. You can create different pages for different programs or campaigns - and customize text, amounts, types of information collected from contributors, etc.{/ts} {help id="id-intro"}
-    </div>
-
-    {include file="CRM/Contribute/Form/SearchContribution.tpl"}
-    {if NOT ($action eq 1 or $action eq 2) }
-      <table class="form-layout-compressed">
-      <tr>
-      <td><a href="{$newPageURL}" class="button"><span><div class="icon add-icon"></div>{ts}Add Contribution Page{/ts}</span></a></td>
-            <td style="vertical-align: top"><a class="button" href="{crmURL p="civicrm/admin/pcp" q="reset=1"}"><span>{ts}Manage Personal Campaign Pages{/ts}</span></a> {help id="id-pcp-intro" file="CRM/PCP/Page/PCP.hlp"}</td>
-      </tr>
-      </table>
-    {/if}
+ +--------------------------------------------------------------------+
+ | 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.                           |
+ +--------------------------------------------------------------------+
 *}
     {if $rows}
       <div id="configure_contribution_page">
 
         <div class="crm-contribution-page-more">
                     {$row.action|replace:'xx':$row.id}
-            </div>
-
+        </div>
       </td>
-
          </tr>
          {/foreach}
       </table>
 
         {/strip}
       </div>
+       <div class="description">
+         To use a progress bar, <a accesskey="N" href='widget/add'>create</a> a widget and associate it with the progressbar.
+       </div>
     {else}
-  {if $isSearch eq 1}
-      <div class="status messages">
-                <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
-                {capture assign=browseURL}{crmURL p='civicrm/contribute/manage' q="reset=1"}{/capture}
-                    {ts}No available Contribution Pages match your search criteria. Suggestions:{/ts}
-                    <div class="spacer"></div>
-                    <ul>
-                    <li>{ts}Check your spelling.{/ts}</li>
-                    <li>{ts}Try a different spelling or use fewer letters.{/ts}</li>
-                    <li>{ts}Make sure you have enough privileges in the access control system.{/ts}</li>
-                    </ul>
-                    {ts 1=$browseURL}Or you can <a href='%1'>browse all available Contribution Pages</a>.{/ts}
-      </div>
-      {else}
       <div class="messages status no-popup">
              <div class="icon inform-icon"></div> &nbsp;
              {ts 1=$newPageURL}No Progressbars have been created yet. Click <a accesskey="N" href='progress-bar/add'>here</a> to create a new Progressbar.{/ts}
       </div>
-        {/if}
+
     {/if}
index de19ae060971eaf08b00415482f196cbc1a01197..b64c284111dbcbbfe46a7b8368c9bb7fa6268e1b 100644 (file)
@@ -1,13 +1,25 @@
-{* 
-<h3>This new page is generated by CRM/Wci/Page/WidgetList.php</h3>
+{*
+ +--------------------------------------------------------------------+
+ | 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.                           |
+ +--------------------------------------------------------------------+
 *}
-{* Example: Display a variable directly 
-<p>The current time is {$currentTime}</p>
-*}
-{* Example: Display a translated string -- which happens to include a variable 
-<p>{ts 1=$currentTime}(In your native language) The current time is %1.{/ts}</p>
-*}
-
     {if $rows}
       <div id="configure_contribution_page">
              {strip}
         {/strip}
       </div>
     {else}
-  {if $isSearch eq 1}
-      <div class="status messages">
-                <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
-                {capture assign=browseURL}{crmURL p='civicrm/contribute/manage' q="reset=1"}{/capture}
-                    {ts}No available Contribution Pages match your search criteria. Suggestions:{/ts}
-                    <div class="spacer"></div>
-                    <ul>
-                    <li>{ts}Check your spelling.{/ts}</li>
-                    <li>{ts}Try a different spelling or use fewer letters.{/ts}</li>
-                    <li>{ts}Make sure you have enough privileges in the access control system.{/ts}</li>
-                    </ul>
-                    {ts 1=$browseURL}Or you can <a href='%1'>browse all available Contribution Pages</a>.{/ts}
-      </div>
-      {else}
       <div class="messages status no-popup">
              <div class="icon inform-icon"></div> &nbsp;
              {ts 1=$newPageURL}No wci widgets have been created yet. Click <a accesskey="N" href='widget/add'>here</a> to create a new wci widget.{/ts}
       </div>
-        {/if}
     {/if}
index 8d5b657a172c96b54f060261aff1c004b6fc3eca..3bca68079037043a9281feb8ed7677fb5ea34509 100644 (file)
@@ -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.                           |
+ +--------------------------------------------------------------------+
+*}
 {literal}
 <style>
     .crm-wci-widget {
@@ -13,7 +35,7 @@
     .crm-wci-widget-border {
         border: 4px solid {/literal}{$wciform.color_border}{literal};
     }
-    
+
     .crm-wci-widget hr {
       text-align:center;
       display: block; height: 1px;
     .crm-wci-widget.thin {
       width: 150px;
     }
-    
+
     .crm-wci-widget.normal {
       width: 200px;
     }
-    
+
     .crm-wci-widget.wide {
       width: 250px;
     }
-    
+
     .crm-wci-widget-title {
         font-size:14px;
         padding:3px;
 {literal}
 </style>
 {/literal}
-{/if} 
+{/if}
 
 {if (1 == $wciform.hide_border)}
 <div id="crm_wid_{$wciform.widgetId}" class="crm-wci-widget {$wciform.size_variant}">
     {/if}
     <div id="crm_wid_{$wciform.widgetId}_comments" class="crm-comments">
       {$wciform.description}
-    </div> 
+    </div>
     <div id="crm_wid_{$wciform.widgetId}_campaign" class="crm-campaign">
     </div>
     {if $wciform.button_title && $cpageId}
-    <div class="crm-wci-button-wrapper" id="crm_wid_{$wciform.widgetId}_button"> 
+    <div class="crm-wci-button-wrapper" id="crm_wid_{$wciform.widgetId}_button">
         <a href='{crmURL p="civicrm/contribute/transact" q="reset=1&id=$cpageId" h=0 a=1 fe=1}' class="crm-wci-button pointer"><span class="crm-wci-button-inner" id="crm_wid_{$wciform.widgetId}_btn_txt">{$wciform.button_title}</span></a>
     </div>
         {if $wciform.email_signup_group_id}