$data["logo_image"] = $dao->logo_image;
$data["image"] = $dao->image;
$data["button_title"] = $dao->button_title;
- $data["progress_bar_id"] = $dao->button_link_to;
+ $data["button_link_to"] = $dao->button_link_to;
+ $data["progress_bar_id"] = $dao->progress_bar_id;
$data["description"] = strip_tags(base64_decode($dao->description));
$data["size_variant"] = $dao->size_variant;
$data["color_title"] = $dao->color_title;
} else {
$data = CRM_Wci_BAO_Widget::getWidgetData($widgetId);
$template->assign('wciform', $data);
+ $template->assign('cpageId', $data['button_link_to']);
$template->template_dir[] = getWciWidgetTemplatePath();
$wcidata = $template->fetch('wciwidget.tpl');
<div id="crm_wid_{$widgetId}_campaign" class="crm-campaign">
</div>
<div class="crm-wci-button-wrapper" id="crm_wid_{$widgetId}_button">
- <a href='{crmURL p="civicrm/contribute/transact" q="reset=1&id=$wciform.button_link_to" h=0 a=1 fe=1}' class="crm-wci-button"><span class="crm-wci-button-inner" id="crm_wid_{$widgetId}_btn_txt">{$wciform.button_title}</span></a>
+ <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_{$widgetId}_btn_txt">{$wciform.button_title}</span></a>
</div>
</div>