Merge pull request #22449 from mattwire/phpnotices
[civicrm-core.git] / templates / CRM / common / showHide.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 {* This included tpl hides and displays the appropriate blocks as directed by the php code which assigns showBlocks and hideBlocks arrays. *}
11 <script type="text/javascript">
12 var showBlocks = new Array({$showBlocks|smarty:nodefaults});
13 var hideBlocks = new Array({$hideBlocks|smarty:nodefaults});
14
15 on_load_init_blocks( showBlocks, hideBlocks{if $elemType and $elemType EQ 'table-row'}, 'table-row'{/if} );
16 </script>