[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
ojs
/
248
/
lib
/
pkp
/
templates
/
linkAction
/
[
Home
]
File: legacyLinkAction.tpl
{** * templates/linkAction/legacyLinkAction.tpl * * Copyright (c) 2013-2019 Simon Fraser University * Copyright (c) 2000-2019 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Deprecated template to render link actions. *} {** if the actOnId has not been specified, assume the id plays the role *} {if !$actOnId} {assign var=actOnId value=$id} {/if} {* If we have no button id set then let's build our own button. *} {if !$buttonId} {assign var=buttonId value=$id|concat:"-":$action->getId():"-button"|uniqid} {if $action->getImage()} <a href="{if $action->getMode() eq $smarty.const.LINK_ACTION_MODE_LINK}{$action->getUrl()}{/if}" id="{$buttonId|escape}" class="{if $actionCss}{$actionCss|escape} {/if}{if $action->getImage()}sprite {$action->getImage()|escape}{/if}" {if $hoverTitle}title="{$action->getLocalizedTitle()|escape}"> {else}>{$action->getLocalizedTitle()|escape}{/if}</a> {else} <a href="{if $action->getMode() eq $smarty.const.LINK_ACTION_MODE_LINK}{$action->getUrl()}{/if}" id="{$buttonId|escape}" {if $actionCss}class="{$actionCss|escape}"{/if} {if $hoverTitle} title="{$action->getLocalizedTitle()}">{else}>{$action->getLocalizedTitle()|escape}{/if}</a> {/if} {/if} {if $action->getMode() eq $smarty.const.LINK_ACTION_MODE_MODAL} {modal url=$action->getUrl() actOnType=$action->getType() actOnId="#"|concat:$actOnId button="#"|concat:$buttonId} {elseif $action->getMode() eq $smarty.const.LINK_ACTION_MODE_CONFIRM} {if $action->getLocalizedConfirmMessage()} {assign var="dialogText" value=$action->getLocalizedConfirmMessage()} {else} {assign var="dialogText" value=$action->getLocalizedTitle()} {/if} {confirm url=$action->getUrl() dialogText=$dialogText actOnType=$action->getType() actOnId="#"|concat:$actOnId button="#"|concat:$buttonId translate=false} {elseif $action->getMode() eq $smarty.const.LINK_ACTION_MODE_AJAX} <script type="text/javascript"> <!-- $(function() {ldelim} ajaxAction( '{$action->getType()|escape:"javascript"}', '#{$actOnId|escape:"javascript"}', '#{$buttonId|escape:"javascript"}', '{$action->getUrl()|escape:"javascript"}' ); {rdelim}); // --> </script> {/if}