Files
CHIEFSOFT\ameye df3a033196 first commit
2024-06-08 17:09:23 -04:00

31 lines
1.1 KiB
Smarty

{**
* controllers/notification/notificationOptions.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Notification options.
*}
{if $refreshOn}
refreshOn: {$refreshOn|json_encode},
{/if}
fetchNotificationUrl: {url|json_encode router=\PKP\core\PKPApplication::ROUTE_PAGE page='notification' op='fetchNotification' escape=false},
hasSystemNotifications: {$hasSystemNotifications|json_encode}
{if $requestOptions}
,
requestOptions: {ldelim}
{foreach name=levels from=$requestOptions key=level item=levelOptions}
{$level|json_encode}: {if $levelOptions} {ldelim}
{foreach name=types from=$levelOptions key=type item=typeOptions}
{$type|json_encode}: {if $typeOptions} {ldelim}
assocType: {$typeOptions[0]|json_encode},
assocId: {$typeOptions[1]|json_encode}
{rdelim}{else}0{/if}{if !$smarty.foreach.types.last},{/if}
{/foreach}
{rdelim}{else}0{/if}{if !$smarty.foreach.levels.last},{/if}
{/foreach}
{rdelim}
{/if}