| Current Path : /home/antonen/chenglong.lt/modules/mod_flippingbook/tmpl/ |
| Current File : /home/antonen/chenglong.lt/modules/mod_flippingbook/tmpl/linkview.php |
<?php
/**
* @package mod_flippingbook - Flipping Book
* @version 2.0.3
* @created Oct 2020
* @author PluginJar.com
* @email support@pluginjar.com
* @website https://www.pluginjar.com
* @support https://www.pluginjar.com/premium-support-board.html
* @copyright Copyright (C) 2020 - 2021 PluginJar.com. All rights reserved.
* @license GNU General Public License version 2 and above
*/
defined('_JEXEC') or die;
$hidecontrols = "";
if($hidecontrolbuttons):
foreach($hidecontrolbuttons as $hck=>$hcv){
$hidecontrols.=$hcv.",";
}
endif;
$text_cannotaccessfiletext="Cannot access file";
$pdf = base64_encode($pdf);
$soundFile = $module_uri.'/assets/sound/'.$soundFile;
$soundFile = base64_encode($soundFile);
/*
$images_only_array = array();
$images_exculded_array = array();
$all_files = glob("".$imagefolder."/*.*");
$excludedimagesarr = explode(',',$excludedimages);
foreach($excludedimagesarr as $imgkey => $imgval ){
array_push($images_exculded_array,''.$imagefolder.'/'.$imgval.'');
}
for ($i=0; $i<count($all_files); $i++)
{
$image_name = $all_files[$i];
$supported_format = array('gif','jpg','jpeg','png');
$ext = strtolower(pathinfo($image_name, PATHINFO_EXTENSION));
if (in_array($ext, $supported_format))
{
if(!in_array($image_name,$images_exculded_array)){
array_push($images_only_array,$image_name);
}
} else {
continue;
}
}
$images_only = $images_only_array;
*/
?>
<link href="<?php echo $module_uri;?>assets/css/flippingbook.latest.min.css" rel="stylesheet" type="text/css">
<div id="bookid_<?php echo $module->id;?>"></div>
<?php if($loadjquery):?>
<script src="<?php echo $module_uri;?>assets/js/libs/jquery.min.js" type="text/javascript"></script>
<?php endif; ?>
<?php if($stop_reload):?>
<script src="<?php echo $module_uri;?>assets/js/flippingbook.lightbox.latest.V203.js" type="text/javascript"></script>
<?php endif; ?>
<script>
//var pdf = '<?php echo $pdf;?>';
var soundf = '<?php echo $soundFile;?>';
jQuery(document).ready(function () {
<?php echo $customjs;?>
});
var option_fbpj_manual_thumb = {
webgl: <?php echo $webgl;?>,
webglShadow: <?php echo $webglShadow;?>,
soundEnable: <?php echo $soundEnable;?>,
soundFile: ''+Base64.decode(soundf)+'',
height: '<?php echo $height;?>',
autoEnableOutline: <?php echo $autoEnableOutline;?>,
autoEnableThumbnail: <?php echo $autoEnableThumbnail;?>,
overwritePDFOutline: <?php echo $overwritePDFOutline;?>,
enableDownload: <?php echo $enableDownload;?>,
duration: <?php echo $pduration;?>,
direction: FBPJAR.DIRECTION.<?php echo $direction;?>,
pageMode: FBPJAR.PAGE_MODE.<?php echo $pageMode;?>,
singlePageMode: FBPJAR.SINGLE_PAGE_MODE.<?php echo $spbooklet;?>,
backgroundColor: "<?php echo $backgroundColor;?>",
autoPlay: <?php echo $enable_autoplay;?>,
autoPlayDuration: <?php echo $autoPlayDuration;?>,
autoPlayStart: <?php echo $enable_autoplay;?>,
scrollWheel: <?php echo $scrollWheel;?>,
text: {
toggleSound: "<?php echo $text_toggleSound;?>",
toggleThumbnails: "<?php echo $text_toggleThumbnails;?>",
toggleOutline: "<?php echo $text_toggleOutline;?>",
previousPage: "<?php echo $text_previousPage;?>",
nextPage: "<?php echo $text_nextPage;?>",
toggleFullscreen: "<?php echo $text_toggleFullscreen;?>",
zoomIn: "<?php echo $text_zoomIn;?>",
zoomOut: "<?php echo $text_zoomOut;?>",
singlePageMode: "<?php echo $text_singlePageMode;?>",
doublePageMode: "<?php echo $text_doublePageMode;?>",
downloadPDFFile: "<?php echo $text_downloadPDFFile;?>",
gotoFirstPage: "<?php echo $text_gotoFirstPage;?>",
gotoLastPage: "<?php echo $text_gotoLastPage;?>",
play: "<?php echo $text_play;?>",
pause: "<?php echo $text_pause;?>",
share: "<?php echo $text_share;?>",
emailsubj:"<?php echo $text_emailsubj;?>",
emailbodylink:"<?php echo $text_emailbodylink;?>",
loadingtext:"<?php echo $text_loading;?>",
nopdffileaccess:"<?php echo $text_cannotaccessfiletext;?>"
},
controlsPosition: FBPJAR.CONTROLSPOSITION.<?php echo $controlsPosition;?>,
allControls: "altPrev,pageNumber,altNext,play,outline,thumbnail,zoomIn,zoomOut,fullScreen,share,download,more,pageMode,startPage,endPage,sound",
moreControls: "download,pageMode,startPage,endPage,sound",
hideControls: "<?php echo $hidecontrols;?>",
<?php if($selectbg!=='color'):?>backgroundImage: "<?php echo $backgroundImage;?> ",<?php endif;?>
};
<?php if($enableOutlines && !empty($outlines)):?>
option_fbpj_manual_thumb.outline = [
<?php foreach ($outlines as $okey=>$oval){ ?>
<?php echo '{title: "'.$oval->title.'", dest: '.$oval->destination.'},'; ?>
<?php } ?>
];
<?php endif; ?>
// next one
var option_fbpj_second_thumb = {
webgl: <?php echo $webgl;?>,
webglShadow: <?php echo $webglShadow;?>,
soundEnable: <?php echo $soundEnable;?>,
soundFile: ''+Base64.decode(soundf)+'',
height: 'auto',
autoEnableOutline: <?php echo $autoEnableOutline;?>,
autoEnableThumbnail: <?php echo $autoEnableThumbnail;?>,
overwritePDFOutline: <?php echo $overwritePDFOutline;?>,
enableDownload: <?php echo $enableDownload;?>,
duration: <?php echo $pduration;?>,
direction: FBPJAR.DIRECTION.RTL,
pageMode: FBPJAR.PAGE_MODE.<?php echo $pageMode;?>,
singlePageMode: FBPJAR.SINGLE_PAGE_MODE.<?php echo $spbooklet;?>,
backgroundColor: "<?php echo $backgroundColor;?>",
autoPlay: <?php echo $enable_autoplay;?>,
autoPlayDuration: <?php echo $autoPlayDuration;?>,
autoPlayStart: <?php echo $enable_autoplay;?>,
scrollWheel: <?php echo $scrollWheel;?>,
text: {
toggleSound: "<?php echo $text_toggleSound;?>",
toggleThumbnails: "<?php echo $text_toggleThumbnails;?>",
toggleOutline: "<?php echo $text_toggleOutline;?>",
previousPage: "<?php echo $text_previousPage;?>",
nextPage: "<?php echo $text_nextPage;?>",
toggleFullscreen: "<?php echo $text_toggleFullscreen;?>",
zoomIn: "<?php echo $text_zoomIn;?>",
zoomOut: "<?php echo $text_zoomOut;?>",
singlePageMode: "<?php echo $text_singlePageMode;?>",
doublePageMode: "<?php echo $text_doublePageMode;?>",
downloadPDFFile: "<?php echo $text_downloadPDFFile;?>",
gotoFirstPage: "<?php echo $text_gotoFirstPage;?>",
gotoLastPage: "<?php echo $text_gotoLastPage;?>",
play: "<?php echo $text_play;?>",
pause: "<?php echo $text_pause;?>",
share: "<?php echo $text_share;?>",
emailsubj:"<?php echo $text_emailsubj;?>",
emailbodylink:"<?php echo $text_emailbodylink;?>",
loadingtext:"<?php echo $text_loading;?>",
nopdffileaccess:"<?php echo $text_cannotaccessfiletext;?>"
},
controlsPosition: FBPJAR.CONTROLSPOSITION.<?php echo $controlsPosition;?>,
allControls: "altPrev,pageNumber,altNext,play,outline,thumbnail,zoomIn,zoomOut,fullScreen,share,download,more,pageMode,startPage,endPage,sound",
moreControls: "download,pageMode,startPage,endPage,sound",
hideControls: "<?php echo $hidecontrols;?>",
<?php if($selectbg!=='color'):?>backgroundImage: "<?php echo $backgroundImage;?> ",<?php endif;?>
};
</script>
<style>
<?php echo $customcss;?>
</style>
<div
class="_fbpj_button"
source="modules/mod_flippingbook/assets/samples/demo.pdf"
id="fbpj_intro_button">
Intro Book 3D PDF
</div>
<div
class="_fbpj_button"
source="modules/mod_flippingbook/assets/samples/demo.pdf"
id="fbpj_intro_button">
Intro Book 3D PDF 2
</div>
<a class="_fbpj_custom"
backgroundcolor = "#019292"
source="modules/mod_flippingbook/assets/samples/demo.pdf"
id="fbpj_book_custom">
Custom element Click here
</a>
<a class="_fbpj_custom"
backgroundcolor = "#019292"
source="modules/mod_flippingbook/assets/samples/demo.pdf"
id="fbpj_book_custom">
Another Custom element Click here
</a>