+{*
+ +--------------------------------------------------------------------+
+ | 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}
+{*
+ +--------------------------------------------------------------------+
+ | 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">
</div>
{if $form.title.value != ""}
- {php}
+ {php}
if(isset($_REQUEST['id'])) {
$widget_controller_path = getWciWidgetControllerPath();
$extension_root_path = getExtensionRootPath();
Click <strong>Save & 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>
</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>
+{*
+ +--------------------------------------------------------------------+
+ | 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">
</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);
<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>
+{*
+ +--------------------------------------------------------------------+
+ | 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 {
+{*
+ +--------------------------------------------------------------------+
+ | 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">
-{*<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>
{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}
-{*<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>
{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}
-{*
-<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>
{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}
+{*
+ +--------------------------------------------------------------------+
+ | 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 {
.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}