mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
@@ -160,7 +160,7 @@ function print_attachment($dlkey, $enableimage = true, $imageresizer = true)
|
||||
}
|
||||
do_log(sprintf("driver: %s, location: %s, url: %s", $driver, $row['location'], $url));
|
||||
if($imageresizer == true)
|
||||
$onclick = " onclick=\"Previewurl('".$url."')\"";
|
||||
$onclick = " data-zoomable data-zoom-src=\"".$url."\"";
|
||||
else $onclick = "";
|
||||
$return = "<img id=\"attach".$id."\" style=\"max-width: 700px\" alt=\"".htmlspecialchars($row['filename'])."\" src=\"".$url."\"". $onclick . " onmouseover=\"domTT_activate(this, event, 'content', '".htmlspecialchars("<strong>".nexus_trans('attachment.size')."</strong>: ".mksize($row['filesize'])."<br />".gettime($row['added']))."', 'styleClass', 'attach', 'x', findPosition(this)[0], 'y', findPosition(this)[1]-58);\" />";
|
||||
}
|
||||
@@ -240,7 +240,7 @@ function formatImg($src, $enableImageResizer, $image_max_width, $image_max_heigh
|
||||
}
|
||||
return addTempCode("<img style=\"max-width: 100%\" id=\"$imgId\" alt=\"image\" src=\"$src\"" .
|
||||
($enableImageResizer ?
|
||||
" onload=\"Scale(this, $image_max_width, $image_max_height);\" onclick=\"Preview(this);\" " : "") .
|
||||
" onload=\"Scale(this, $image_max_width, $image_max_height);\" data-zoomable " : "") .
|
||||
" onerror=\"handleImageError(this, '$src');\" />");
|
||||
}
|
||||
|
||||
@@ -2584,7 +2584,6 @@ $cssupdatedate=($cssupdatedate ? "?".htmlspecialchars($cssupdatedate) : "");
|
||||
<link rel="stylesheet" href="<?php echo get_forum_pic_folder()."/forumsprites.css".$cssupdatedate?>" type="text/css" />
|
||||
<link rel="stylesheet" href="<?php echo $css_uri."theme.css".$cssupdatedate?>" type="text/css" />
|
||||
<link rel="stylesheet" href="<?php echo $css_uri."DomTT.css".$cssupdatedate?>" type="text/css" />
|
||||
<link rel="stylesheet" href="styles/curtain_imageresizer.css<?php echo $cssupdatedate?>" type="text/css" />
|
||||
<link rel="stylesheet" href="styles/nexus.css<?php echo $cssupdatedate?>" type="text/css" />
|
||||
<?php
|
||||
if ($CURUSER){
|
||||
@@ -3058,7 +3057,6 @@ function stdfoot() {
|
||||
print("</ul>");
|
||||
print("</div>");
|
||||
}
|
||||
print ("<div style=\"display: none;\" id=\"lightbox\" class=\"lightbox\"></div><div style=\"display: none;\" id=\"curtain\" class=\"curtain\"></div>");
|
||||
if ($add_key_shortcut != "")
|
||||
print($add_key_shortcut);
|
||||
print("</div>");
|
||||
@@ -3071,10 +3069,12 @@ function stdfoot() {
|
||||
}
|
||||
$js = <<<JS
|
||||
<script type="application/javascript" src="js/nexus.js"></script>
|
||||
<script type="application/javascript" src="js/medium-zoom.min.js"></script>
|
||||
<script type="application/javascript" src="vendor/jquery-goup-1.1.3/jquery.goup.min.js"></script>
|
||||
<script>
|
||||
jQuery(document).ready(function(){
|
||||
jQuery.goup()
|
||||
mediumZoom('[data-zoomable]')
|
||||
});
|
||||
</script>
|
||||
JS;
|
||||
|
||||
2
public/js/medium-zoom.min.js
vendored
Normal file
2
public/js/medium-zoom.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user