Factorize a little all fancybox stuff. re #73
This commit is contained in:
parent
07a891377d
commit
c8595a567b
2 changed files with 16 additions and 13 deletions
15
index.php
15
index.php
|
@ -81,20 +81,9 @@
|
|||
});
|
||||
|
||||
<?php if (getCurrentOption ('use_fancyapps') == 1) { ?>
|
||||
$(".fancycover").fancybox({
|
||||
'type' : 'image',
|
||||
prevEffect : 'none',
|
||||
nextEffect : 'none'
|
||||
<?php if ($isEink) echo ", openEffect : 'none', closeEffect : 'none', helpers : {overlay : null}"; ?>
|
||||
});
|
||||
$(".fancycover").fancybox(fancyBoxObject (null, 'image'));
|
||||
|
||||
$(".fancyabout").fancybox({
|
||||
'type' : 'ajax',
|
||||
title : 'COPS <?php echo VERSION ?>',
|
||||
prevEffect : 'none',
|
||||
nextEffect : 'none'
|
||||
<?php if ($isEink) echo ", openEffect : 'none', closeEffect : 'none', helpers : {overlay : null}"; ?>
|
||||
});
|
||||
$(".fancyabout").fancybox(fancyBoxObject ('COPS <?php echo VERSION ?>', 'ajax'));
|
||||
<?php } ?>
|
||||
|
||||
$(".headright").click(function(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue