{*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
*}
{* template for custom data *}
{if $action eq 0 or $action eq 1 or $action eq 2 or $recordActivity}
- {include file="CRM/Contact/Form/CustomData.tpl" mainEdit=$mainEditForm}
+ {include file="CRM/Contact/Form/CustomData.tpl" mainEdit=$mainEditForm}
{/if}
{strip}
- {if $action eq 16 or $action eq 4} {* Browse or View actions *}
- <div class="form-item">
- {include file="CRM/Custom/Page/CustomDataView.tpl"}
- </div>
- {/if}
+ {if $action eq 16 or $action eq 4} {* Browse or View actions *}
+ <div class="form-item">
+ {include file="CRM/Custom/Page/CustomDataView.tpl"}
+ </div>
+ {/if}
{/strip}
-
+
{if $mainEditForm}
-<script type="text/javascript">
- var showBlocks1 = new Array({$showBlocks1});
- var hideBlocks1 = new Array({$hideBlocks1});
-
- on_load_init_blocks( showBlocks1, hideBlocks1 );
-</script>
+ <script type="text/javascript">
+ var showBlocks1 = new Array({$showBlocks1});
+ var hideBlocks1 = new Array({$hideBlocks1});
+
+ on_load_init_blocks(showBlocks1, hideBlocks1);
+ </script>
{else}
-<script type="text/javascript">
+ <script type="text/javascript">
var showBlocks = new Array({$showBlocks});
var hideBlocks = new Array({$hideBlocks});
{* hide and display the appropriate blocks as directed by the php code *}
- on_load_init_blocks( showBlocks, hideBlocks );
+ on_load_init_blocks(showBlocks, hideBlocks);
</script>
{/if}