{* HEADER *}
{include file="CRM/common/formButtons.tpl" location="top"}
{* FIELD EXAMPLE: OPTION 1 (AUTOMATIC LAYOUT) *} {foreach from=$elementNames item=elementName}
{$form.$elementName.label}
{$form.$elementName.html}
{/foreach} {* {if $form.title.value != ""} *} {php} if(isset($_REQUEST['id'])) { $wid_id = $_REQUEST['id']; $data = CRM_Wci_BAO_Widget::getWidgetData($wid_id); $template = CRM_Core_Smarty::singleton(); $template->assign('wciform', $data); if($data["override"] == 0) { $template->template_dir[] = getWciWidgetTemplatePath(); $wcidata = $template->fetch('wciwidget.tpl'); } else { $wcidata = $template->fetch('string:' . base64_decode($wid_page[$dao->id]['custom_template'])); } $widget_controller_path = getWciWidgetControllerPath(); $extension_root_path = getExtensionRootPath(); } {/php}
{literal} {/literal}
{* {include file="CRM/Wci/Page/wciwidget.tpl"} *}
{* {/if} *} {* FIELD EXAMPLE: OPTION 2 (MANUAL LAYOUT)
{$form.favorite_color.label} {$form.favorite_color.html}
{* FOOTER *}
{include file="CRM/common/formButtons.tpl" location="bottom"}