$val[2]
);
}
- $this->add('textarea', 'style_rules', ts('Additional Style Rules'));
+ $this->add('textarea', 'style_rules', ts('Additional Style Rules'))->setRows(5);
$this->add('checkbox', 'override', ts('Override default template'));
- $this->add('textarea', 'custom_template', ts('Custom template:<br><SMALL><font color="red">Please customize the smarty v2 template only if you know what you are doing</font></SMALL>'));
+ $this->add('textarea', 'custom_template', ts('Custom template:<br><SMALL><font color="red">Please customize the smarty v2 template only if you know what you are doing</font></SMALL>'))->setRows(10);
$this->addElement('submit','preview','name="Save and Preview" id="preview"');
$this->addButtons(array(
$template->assign('wciform', $data);
$template->assign('cpageId', $data['button_link_to']);
+ $template->assign('embed', $embed);
if ($data["override"] == '0') {
$template->template_dir[] = getWciWidgetTemplatePath();
<div class="content">
<div class="resizable-textarea">
<span>{literal}
- <textarea name="embd_code" id="embd_code" class="form-textarea textarea-processed">
-<script type="text/javascript" src="{/literal}{php}echo $widget_controller_path;{/php}{literal}?widgetId={/literal}{php}echo $wid_id;{/php}{literal}"></script>
+ <textarea rows="5" name="embd_code" id="embd_code" class="form-textarea textarea-processed">
+<script type="text/javascript" src="{/literal}{php}echo $widget_controller_path;{/php}{literal}?widgetId={/literal}{php}echo $wid_id;{/php}{literal}&embed=1"></script>
<script type="text/javascript">
// Cleanup functions for the document ready method
if ( document.addEventListener ) {
{* {include file="CRM/Wci/Page/wciwidget.tpl"} *}
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
-<script type="text/javascript" src="{php}echo $widget_controller_path;{/php}?widgetId={php}echo $wid_id;{/php}"></script>
+<script type="text/javascript" src="{php}echo $widget_controller_path;{/php}?widgetId={php}echo $wid_id;{/php}&embed=0"></script>
<script>
$( document ).ready(function() {ldelim}
$('#widgetwci').html(wciwidgetcode);
background-color:#2786C2;
height:1em;
display:block;
- -moz-border-radius: 4px 0px 0px 4px;
- -webkit-border-radius: 4px 0px 0px 4px;
- -khtml-border-radius: 4px 0px 0px 4px;
- border-radius: 4px 0px 0px 4px;
+ -moz-border-radius: 4px;
+ -webkit-border-radius: 4px;
+ -khtml-border-radius: 4px;
+ border-radius: 4px;
text-align:left;
width: {/literal}{$wciform.pb_percentage}{literal}%; /* progress bar percentage */
}
<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"><span class="crm-wci-button-inner" id="crm_wid_{$wciform.widgetId}_btn_txt">{$wciform.button_title}</span></a>
</div>
- {$wciform.embed}
+
{if $wciform.email_signup_group_id}
+ {if $embed eq 1 }
<form method="get" action="{$wciform.emailSignupGroupFormURL}" name="Subscribe">
+ {/if}
<p style="text-align:center;">
<input type="text" id="frmEmail" name="email" size="10">
</p>
- <input id="mark_x_2" name="mark_x_2" type="hidden" value="1">
<p style="text-align: center; margin-top: 10px;">
- <input type="submit" name="_qf_Subscribe_next" value="Subscribe Me">
+ {if $embed eq 1 }
+ <input type="submit" name="_qf_Subscribe_next" value="Subscribe Me">
+ {else}
+ <input type="button" name="_qf_Subscribe_next" value="Subscribe Me">
+ {/if}
</p>
+ {if $embed eq 1 }
</form>
+ {/if}
{/if}
</div>