first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-06-08 17:09:23 -04:00
commit df3a033196
17887 changed files with 8637778 additions and 0 deletions
@@ -0,0 +1,14 @@
{**
* controllers/notification/errorNotificationContent.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.
*
* Display error notification content.
*}
{foreach item=message from=$errors}
<ul>
<li>{$message|escape}</li>
</ul>
{/foreach}
@@ -0,0 +1,20 @@
{**
* controllers/notification/inPlaceNotification.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.
*
* Display in place notifications.
*}
<script>
$(function() {ldelim}
// Attach the form handler.
$('#{$notificationId|escape:javascript}').pkpHandler('$.pkp.controllers.NotificationHandler',
{ldelim}
{include file="controllers/notification/notificationOptions.tpl"}
{rdelim});
{rdelim});
</script>
<div id="{$notificationId|escape}" class="pkp_notification {$notificationStyleClass}"></div>
@@ -0,0 +1,21 @@
{**
* controllers/notification/inPlaceNotificationContent.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.
*
* Display a single notification for in place notifications data.
*}
<div id="pkp_notification_{$notificationId|escape}"{if $notificationStyleClass} class="{$notificationStyleClass}"{/if}>
{if $notificationTitle}
<span class="title">
{$notificationTitle}
</span>
{/if}
{if $notificationContents}
<span class="description">
{$notificationContents}
</span>
{/if}
</div>
@@ -0,0 +1,13 @@
{**
* controllers/notification/linkActionNotificationContent.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.
*
* Content for notifications with link actions.
*
*}
<span id="{$linkAction->getId()}" class="pkp_linkActions">
{include file="linkAction/linkAction.tpl" action=$linkAction}
</span>
@@ -0,0 +1,30 @@
{**
* 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}