Mam pytanie odnośnie pewnej zmiany, którą chciałbym wykonać w kodzie PHP.
Otóż jest sobie pewna galeria na skrypcie Gallery 3 (gallery.menalto.com), który działa podobnie jak np. Picasa Google'a
czyli jest sobie album, klika się na album, wyświetlają się miniaturki zdjęć, klika się na miniaturkę, wyświetla się zdjęcie i...
no właśnie - i chciałbym, żeby tu był koniec możliwości dalszych operacji.
Tymczasem obecny skrypt umożliwia jeszcze jedno kliknięcie na tymże zdjęciu i wyświetlenie go na pełnym ekranie.
Domyślam się przeglądając forum tej galerii, że jest to umieszczone gdzieś w pliku, który zamieszczam poniżej.
Czy mógłbym prosić o prześledzenie czy w tym poniższym kodzie znajduje się coś takiego?
Niestety dla mnie to czarna magia i nie mam kompletnie pojęcia nawet jakiego słowa w kodzie szukać...
Z góry dzięki za pomoc, jestem w tym kompletnie zielony... sad.gif


Kod
<?php defined("SYSPATH") or die("No direct script access.");
/**
* Grey Dragon Theme - a custom theme for Gallery 3
* This theme was designed and built by Serguei Dosyukov, whose blog you will find at http://blog.dragonsoft.us
* Copyright (C) 2009-2011 Serguei Dosyukov
*
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General
* Public License as published by the Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License along with this program; if not, write to
* the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA  02110-1301, USA.
*/
?>
<?
  if ($theme->desc_allowbbcode):
    $_description = $theme->bb2html($item->description, 1);
  else:
    $_description = nl2br(html::purify($item->description));
  endif;

  if ($theme->is_photometa_visible):
    $_description .= '<ul class="g-metadata">' . $theme->thumb_info($item) . '</ul>';
  endif;

  switch ($theme->photo_popupbox):
    case "preview":
      $include_list = FALSE;
      $include_single = TRUE;
      break;
    case "none":
      $include_list = FALSE;
      $include_single = FALSE;
      break;
    default:
      $include_list = TRUE;
      $include_single = TRUE;
      break;
  endswitch;
?>  

<div id="g-item">
  <? $_title = $theme->bb2html(html::purify($item->title), 1); ?>
  <div id="g-info">
    <h1><?= $_title ?></h1>
  </div>
  <?= $theme->add_paginator("top"); ?>
  <?= $theme->photo_top() ?>
  <? if (($theme->photo_descmode == "top") and ($_description)): ?>
    <div id="g-info"><div class="g-description"><?= $_description ?></div></div>
  <? endif; ?>
  <div id="g-photo">
    <?= $theme->resize_top($item) ?>
    <? $_resizewidth = $item->width;
       $siblings = $item->parent()->children(); ?>
    <div class="g-resize" style="margin-left: -<?= intval($_resizewidth / 2); ?>px; ">
    <? $script  = "<script type=\"text/javascript\">\n";
       $script .= "  if (document.images) {\n";
       for ($i = 0; ($i <= count($siblings) - 1); $i++):
         if ($siblings[$i]->rand_key == $item->rand_key): ?>
           <a style="<?= ($siblings[$i]->rand_key == $item->rand_key)? "display: static;" : "display: none;"; ?>" title="<?= $theme->bb2html(html::purify($item->title), 2) ?>" <?= ($include_single)? "class=\"g-sb-preview\"" : "target=_blank;"; ?> <?= ($include_list)? "rel=\"g-preview\"" : null; ?> href="<?= (access::can("view_full", $item))? $item->file_url() : $item->resize_url(); ?>">
           <?= $item->full_img(array("id" => "g-photo-id-{$item->id}", "class" => "g-resize", "alt" => $_title)) ?>
           </a>
      <?  if ($i < count($siblings) - 1):
            $script  .= "    var image_preload_n = new Image();\n    image_preload_n.src = \"" . $siblings[$i+1]->resize_url() . "\";\n";
          endif;
          if ($i > 0):
            $script  .= "    var image_preload_p = new Image();\n    image_preload_p.src = \"" . $siblings[$i-1]->resize_url() . "\";\n";
          endif;
        else:
        if ($include_list): ?>
          <? if (!$siblings[$i]->is_album()): ?>
          <a title="<?= $theme->bb2html(html::purify($siblings[$i]->title), 2) ?>" class="g-sb-preview g-hide" rel="g-preview" href="<?= (access::can("view_full", $siblings[$i]))? $siblings[$i]->file_url() : $siblings[$i]->resize_url(); ?>">&nbsp;</a>
          <? endif; ?>  
        <? endif; ?>
      <? endif; ?>
    <? endfor; ?>
    <? $script  .= "  }\n</script>\n"; ?>
    <? $_align = "";
       if ($_description):
         switch ($theme->photo_descmode):
           case "overlay_top":
             $_align = "g-align-top";
             break;
           case "overlay_bottom":
             $_align = "g-align-bottom";
             break;
           default:
             break;
         endswitch;
       endif; ?>
   <?  if ($_align): ?>
      <span class="g-more <?= $_align ?>"><?= t("More") ?></span>
      <div class="g-description <?= $_align; ?>" style="width: <?= $_resizewidth - 20; ?>px;" >
        <strong><?= $_title ?></strong>
        <?= $_description ?>
      </div>
    <? endif ?>
    </div>
    <?= $theme->resize_bottom($item) ?>
  </div>
  <? if (($theme->photo_descmode == "bottom") and ($_description)): ?>
    <div id="g-info"><div class="g-description"><?= $_description ?></div></div>
  <? endif; ?>
  <?= $theme->add_paginator("bottom"); ?>
  <?= $theme->photo_bottom() ?>
</div>
<?= $script ?>