$data["widgetId"] = $widgetId;
$data["override"] = $dao->override;
$data["color_bar"] = $dao->color_progress_bar;
+ $data["emailSignupGroupFormURL"] = CRM_Utils_System::baseCMSURL() . 'civicrm/mailing/subscribe';
}
return $data;
}
$template->assign('wciform', $data);
$template->assign('cpageId', $data['button_link_to']);
- if(!empty($data['email_signup_group_id'])) {
- $template->assign('emailSignupGroupFormURL', getEmailSignupFormUrl());
- }
if ($data["override"] == '0') {
$template->template_dir[] = getWciWidgetTemplatePath();
$wcidata = $template->fetch('wciwidget.tpl');
} else {
-
- $wcidata = $template->fetch('string:' . base64_decode($data['custom_template']));
+ $wcidata = $template->fetch('string:' . base64_decode($data['custom_template']));
}
$output = 'var wciwidgetcode = ' . json_encode($wcidata) . ';';
echo $output;
-
}
CRM_Utils_System::civiExit();
</div>
{$wciform.embed}
{if $wciform.email_signup_group_id}
- <form method="post" action="{$emailSignupGroupFormURL}" name="Subscribe">
+ <form method="get" action="{$wciform.emailSignupGroupFormURL}" name="Subscribe">
<p style="text-align:center;">
<input type="text" id="frmEmail" name="email" size="10">
</p>
return $widget_tpl_path;
}
-
- function getEmailSignupFormUrl() {
- return 'http://' . $_SERVER['SERVER_NAME'] . str_replace($_SERVER['PHP_SELF'], '', str_replace($_SERVER['DOCUMENT_ROOT'], '', $_SERVER['SCRIPT_FILENAME'])) . '/civicrm/mailing/subscribe';
- }
\ No newline at end of file