From: Manoj K Date: Tue, 21 Oct 2014 11:23:47 +0000 (+0530) Subject: Resolved merge conflict. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2a3888e3802f0737017d50ba4eec497adfbb4aef;p=com.zyxware.civiwci.git Resolved merge conflict. --- 2a3888e3802f0737017d50ba4eec497adfbb4aef diff --cc extern/wciwidget.php index 3f89330,bf5500e..d868228 --- a/extern/wciwidget.php +++ b/extern/wciwidget.php @@@ -51,17 -51,27 +51,22 @@@ $embed = CRM_Utils_Request::retrieve('e if (isset($format)) { $jsonvar .= $cpageId; --} - -$data = ""; -if (isset($embed) && (true == $embed)) { - + } else { + $data = CRM_Wci_BAO_Widget::getWidgetData($widgetId); + + $template->assign('wciform', $data); + $template->assign('cpageId', $data['button_link_to']); - $data = ""; - $data = CRM_Wci_BAO_Widget::getWidgetData($widgetId); - $template->assign('wciform', $data); - $template->assign('cpageId', $data['button_link_to']); - $template->assign('embed', $embed); + if ($data["override"] == '0') { + $template->template_dir[] = getWciWidgetTemplatePath(); + $wcidata = $template->fetch('wciwidget.tpl'); + } else { - $template->template_dir[] = getWciWidgetTemplatePath(); - $wcidata = $template->fetch('wciwidget.tpl'); - $output = 'var wciwidgetcode = ' . json_encode($wcidata) . ';'; - echo $output; + $wcidata = $template->fetch('string:' . base64_decode($data['custom_template'])); + } + $output = 'var wciwidgetcode = ' . json_encode($wcidata) . ';'; + echo $output; + + } CRM_Utils_System::civiExit(); diff --cc templates/CRM/Wci/Page/wciwidget.tpl index 6dad7da,7c3afeb..6609555 --- a/templates/CRM/Wci/Page/wciwidget.tpl +++ b/templates/CRM/Wci/Page/wciwidget.tpl @@@ -168,36 -150,21 +150,36 @@@ {$wciform.title}
-
-
-
+
+
+
-
+
-
+
-
+
{$wciform.description}
-
+
-
- {$wciform.button_title} + + {$wciform.embed} + {if $wciform.email_signup_group_id} + {if $wciform.embed == 1} +
+ +

+

+ +

+ {if $wciform.embed == 1} +
+ {/if} + {/if}