0
@@ -39,6 +39,8 @@ if(isset($params['thumbPicTitleTag'])) $thumbPicTitleTag = $params['thumbPicTitl
0
if(isset($params['sortBy'])) $sortBy = $params['sortBy'];
0
if(isset($params['sortByOrder'])) $sortByOrder = $params['sortByOrder'];
0
$selfA = explode('/', $_SERVER["PHP_SELF"]);
0
$self = $selfA[sizeOf($selfA)-1] . '?page=' . $_GET['page'];
0
@@ -74,6 +76,10 @@ $liste = $tmp['file'];
0
+ $output .= generate_javascript();
0
for($i=1; $i<=sizeof($liste); $i++) {
0
@@ -422,7 +428,9 @@ good for most people :) </p>
0
- <h4>The popup javascript</h4>
0
+ <h4>The popup javascript is now included in plugin code and will be generated automatically if you still have javascript in your template please remove it.</h4>
0
<script type="text/javascript">
0
@@ -447,6 +455,8 @@ function PopupPic(bigPic,title,w,h) {
0
@@ -471,4 +481,39 @@ function smarty_cms_about_function_ImageGallery() {
0
+function generate_javascript() {
0
+<script type=\"text/javascript\">
0
+function PopupPic(bigPic,title,w,h) {
0
+var winl = (screen.width - w) / 2;
0
+var wint = (screen.height - h) / 2;
0
+var smarty_hack = 'head';
0
+newWindow = window.open('',title,'height='+h+',width='+w+',top='+wint+',left='+winl+',resizable=0,scrollbars=0');
0
+newWindow.document.write('<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">');
0
+newWindow.document.write('<html><head><title>'+title+'</title><base href=\"".$config[root_url]."/\" />');
0
+newWindow.document.write('<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" />');
0
+newWindow.document.write('<style type=\"text/css\"><!-- html, body {margin: 0px; background-color: #000;} --></style>');
0
+newWindow.document.write('</'+smarty_hack+'><body onclick=\"self.close()\">');
0
+newWindow.document.write('<p><img src=\"'+bigPic+'\" alt=\"'+title+'\" /></p>');
0
+newWindow.document.write('</body></html>');
0
+newWindow.document.close();
Comments
No one has commented yet.