Marktplatz - Eine große Auswahl an neuen und hilfreichen Modulen sowie modernen Templates für die modified eCommerce Shopsoftware
Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Umlaute in Alt-Tags werden falsch dargestellt

    garnetz

    • Neu im Forum
    • Beiträge: 35
    Umlaute in Alt-Tags werden falsch dargestellt
    am: 27. August 2012, 11:08:16
    Hallo,

    ich habe einen Shop zur Pflege übernommen. Dort werden in den Alt-Tags der Bilder beim Mouseover die Umlaute falsch (als Entity) dargestellt. Hier zu sehen: http://www.v-rooms.de/Polstermoebel-fuer-Kinder/Sessel-fuer-Kinder-miss-sunny-mit-abnehmbarer-Housse::165.html
    Kann mir jemand sagen, woran das liegt und wie man das korrigieren kann?

    Vielen Dank
    garnetz

    Linkback: https://www.modified-shop.org/forum/index.php?topic=21973.0
    Modulshop - Eine große Auswahl an neuen und hilfreichen Modulen für die modified eCommerce Shopsoftware

    cYbercOsmOnauT

    • modified Team
    • Beiträge: 914
    • Geschlecht:
    Re: Umlaute in Alt-Tags werden falsch dargestellt
    Antwort #1 am: 27. August 2012, 14:27:13
    Der Inhalt eines alt Attributs ist reiner Text, kein HTML! Deswegen darfst Du dort keine sog. Entities (also z.B. ü anstelle von ü - Erklärung für diejenigen, die mit dem Wort Entity nichts anzufangen wissen) verwenden.

    Hast Du mal bei den Artikeln geschaut wie die Texte dort eingegeben sind?
    Viele Grüße,
    Tekin Birdüzen - Zend Certified Engineer

    garnetz

    • Neu im Forum
    • Beiträge: 35
    Re: Umlaute in Alt-Tags werden falsch dargestellt
    Antwort #2 am: 27. August 2012, 14:43:36
    Hallo cYbercOsmOnauT,

    in den Artikelnamen stehen keine Entities, nur Text. Daher verstehe ich nicht, woher die Entities kommen.
    Der Artikelname für das Produkt lautet "Sessel für Kinder "miss sunny".
    Ich denke mal, der Alt-Text wird daraus generiert. Dann aber mit Entity.
    Komisch.

    LG
    garnetz

    garnetz

    • Neu im Forum
    • Beiträge: 35
    Re: Umlaute in Alt-Tags werden falsch dargestellt
    Antwort #3 am: 27. August 2012, 19:49:03
    Hallo,

    mein Vorgänger hat anscheinend Magic Zoom Plus eingebaut.
    Ich denke, dass vielleicht der Fehler daher kommt.
    Ich habe mal den Quelltext der magiczoomplus.module.core.class.php hier und denke, dass der Fehler wahrscheinlich dort generiert wird.
    Code: PHP  [Auswählen]
    <?php

    if(!in_array('MagicZoomPlusModuleCoreClass', get_declared_classes())) {

        require_once(dirname(__FILE__) . '/magictoolbox.params.class.php');

            class MagicZoomPlusModuleCoreClass {
                    var $uri;
                    var $jsPath;
                    var $cssPath;
                    var $imgPath;
                    var $params;
            var $mainImageID;
            var $type = 'standard';

                    function MagicZoomPlusModuleCoreClass() {
                            $this->params = new MagicToolboxParams();
                            $this->_paramDefaults();
                    }
                   
                    function headers($jsPath = '', $cssPath = null, $notCheck = false) {
                            if($cssPath == null) $cssPath = $jsPath;
                            $headers = array();
                $headers[] = '<!-- Magic Zoom Plus xtCommerce module version 3.0.2.3 -->';        
                $headers[] = '<link type="text/css" href="' . $cssPath . '/magiczoomplus.css" rel="stylesheet" media="screen" />';        
                            $headers[] = '<script type="text/javascript" src="' . $jsPath . '/magiczoomplus.js"></script>';
               
                $conf = Array(
                    "'expand-speed': " . $this->params->getValue("expand-speed"),
                    "'restore-speed': " . $this->params->getValue("restore-speed"),
                    "'expand-effect': '" . $this->params->getValue("expand-effect") . "'",
                    "'restore-effect': '" . $this->params->getValue("restore-effect") . "'",
                    "'expand-align': '" . $this->params->getValue("expand-align") . "'",
                    "'expand-position': '" . $this->params->getValue("expand-position") . "'",
                    "'image-size': '" . $this->params->getValue("image-size") . "'",
                    //"'keep-thumbnail': " . $this->params->getValue("keep-thumbnail"),
                    //"'click-to-initialize': " . $this->params->getValue("click-to-initialize"),
                    "'background-color': '" . $this->params->getValue("background-color") . "'",
                    "'background-opacity': " . $this->params->getValue("background-opacity"),
                    "'background-speed': " . $this->params->getValue("background-speed"),
                    "'caption-speed': " . $this->params->getValue("caption-speed"),
                    "'caption-position': '" . $this->params->getValue("caption-position") . "'",
                    "'caption-height': " . $this->params->getValue("caption-height"),
                    "'caption-width': " . $this->params->getValue("caption-width"),
                    "'buttons': '" . $this->params->getValue("buttons") . "'",
                    "'buttons-position': '" . $this->params->getValue("buttons-position") . "'",
                    "'buttons-display': '" . $this->params->getValue("buttons-display") . "'",
                    //"'show-loading': " . $this->params->getValue("show-loading"),
                    "'loading-msg': '" . $this->params->getValue("loading-msg") . "'",
                    "'loading-opacity': " . $this->params->getValue("loading-opacity"),

                    "'swap-image': '" . $this->params->getValue("swap-image") . "'",
                    "'thumb-change': '" . $this->params->getValue('swap-image') ."'",
           
                    "'swap-image-delay': " . $this->params->getValue("swap-image-delay"),
                    "'selectors-mouseover-delay': " . $this->params->getValue('swap-image-delay') ,

                    "'slideshow-effect': '" . $this->params->getValue("slideshow-effect") . "'",
                    "'slideshow-speed': " . $this->params->getValue("slideshow-speed"),
                    //"'slideshow-loop': " . $this->params->getValue("slideshow-loop"),
                    //"'link': '" . $this->params->getValue("link") . "'",
                    //"'link-target': '" . $this->params->getValue("link-target") . "'",
                    //"'thumb-id': '" . $this->params->getValue("thumb-id") . "'",
                    //"'group': '" . $this->params->getValue("group") . "'",
                    //"'keyboard': " . $this->params->getValue("keyboard"),
                    //"'keyboard-ctrl': " . $this->params->getValue("keyboard-ctrl"),
                    "'z-index': " . $this->params->getValue("z-index"),

                    "'opacity': " . $this->params->getValue('opacity'),
                    "'zoom-width': " . $this->params->getValue('zoom-width'),
                    "'zoom-height': " . $this->params->getValue('zoom-height'),
                    "'zoom-position': '" . $this->params->getValue('zoom-position') ."'",
                    //"'thumb-change': '" . $this->params->getValue('thumb-change') ."'",
                    "'smoothing-speed': " . $this->params->getValue('smoothing-speed'),
                    "'zoom-distance': " . $this->params->getValue('zoom-distance'),
                    "'zoom-fade-in-speed': " . $this->params->getValue('zoom-fade-in-speed'),
                    "'zoom-fade-out-speed': " . $this->params->getValue('zoom-fade-out-speed'),
                    //"'hotspots': " . $this->params->getValue('hotspots'),
                    "'fps': " . $this->params->getValue('fps'),
                    "'loading-position-x': " . $this->params->getValue('loading-position-x'),
                    "'loading-position-y': " . $this->params->getValue('loading-position-y'),
                    "'x': " . $this->params->getValue('x'),
                    "'y': " . $this->params->getValue('y'),
                    "'show-title': " . ($this->params->getValue('show-title')=='disable'?'false':"'".$this->params->getValue('show-title')."'"),
                    "'selectors-effect': '" . $this->params->getValue('selectors-effect') ."'",
                    "'selectors-effect-speed': " . $this->params->getValue('selectors-effect-speed'),


                );
               
                if($notCheck) {
                    $conf = array_merge($conf, array(
                        "'disable-zoom': " . $this->params->getValue("disable-zoom"),
                        "'disable-expand': " . $this->params->getValue("disable-expand"),
                        "'keep-thumbnail': " . $this->params->getValue("keep-thumbnail"),
                        "'click-to-initialize': " . $this->params->getValue("click-to-initialize"),
                        "'show-loading': " . $this->params->getValue("show-loading"),
                        "'slideshow-loop': " . $this->params->getValue("slideshow-loop"),
                        "'keyboard': " . $this->params->getValue("keyboard"),
                        "'keyboard-ctrl': " . $this->params->getValue("keyboard-ctrl"),
                       
                        "'drag-mode': " . $this->params->getValue('drag-mode'),
                        "'always-show-zoom': " . $this->params->getValue('always-show-zoom'),
                        "'smoothing': " . $this->params->getValue('smoothing'),
                        "'opacity-reverse': " . $this->params->getValue('opacity-reverse'),
                        "'click-to-activate': " . $this->params->getValue('click-to-activate'),
                        "'preload-selectors-small': " . $this->params->getValue('preload-selectors-small'),
                        "'preload-selectors-big': " . $this->params->getValue('preload-selectors-big'),
                        "'zoom-fade': " . $this->params->getValue('zoom-fade'),
                        "'move-on-click': " . $this->params->getValue('move-on-click'),
                        "'preserve-position': " . $this->params->getValue('preserve-position'),
                        "'fit-zoom-window': " . $this->params->getValue('fit-zoom-window'),
                        "'entire-image': " . $this->params->getValue('entire-image'),
                    ));
                } else {
                    $conf = array_merge($conf, array(
                        "'disable-zoom': " . ($this->params->getValue("disable-zoom")=='Yes'?'true':'false'),
                        "'disable-expand': " . ($this->params->getValue("disable-expand")=='Yes'?'true':'false'),
                        "'keep-thumbnail': " . ($this->params->getValue('keep-thumbnail')=='Yes'?'true':'false'),
                        "'click-to-initialize': " . ($this->params->getValue('click-to-initialize')=='Yes'?'true':'false'),
                        "'show-loading': " . ($this->params->getValue('show-loading')=='Yes'?'true':'false'),
                        "'slideshow-loop': " . ($this->params->getValue('slideshow-loop')=='Yes'?'true':'false'),
                        "'keyboard': " . ($this->params->getValue('keyboard')=='Yes'?'true':'false'),
                        "'keyboard-ctrl': " . ($this->params->getValue('keyboard-ctrl')=='Yes'?'true':'false'),

                        "'drag-mode': " . ($this->params->checkValue('drag-mode', 'Yes') ? 'true' : 'false'),
                        "'always-show-zoom': " . ($this->params->checkValue('always-show-zoom', 'Yes') ? 'true' : 'false'),
                        "'smoothing': " . ($this->params->checkValue('smoothing', 'Yes') ? 'true' : 'false'),
                        "'opacity-reverse': " . ($this->params->checkValue('opacity-reverse', 'Yes') ? 'true' : 'false'),
                        "'click-to-activate': " . ($this->params->checkValue('click-to-activate', 'Yes') ? 'true' : 'false'),
                        "'preload-selectors-small': " . ($this->params->checkValue('preload-selectors-small', 'Yes') ? 'true' : 'false'),
                        "'preload-selectors-big': " . ($this->params->checkValue('preload-selectors-big', 'Yes') ? 'true' : 'false'),
                        "'zoom-fade': " . ($this->params->checkValue('zoom-fade', 'Yes') ? 'true' : 'false'),
                        "'move-on-click': " . ($this->params->checkValue('move-on-click', 'Yes') ? 'true' : 'false'),
                        "'preserve-position': " . ($this->params->checkValue('preserve-position', 'Yes') ? 'true' : 'false'),
                        "'fit-zoom-window': " . ($this->params->checkValue('fit-zoom-window', 'Yes') ? 'true' : 'false'),
                        "'entire-image': " . ($this->params->checkValue('entire-image', 'Yes') ? 'true' : 'false'),
                    ));
                }

                $cSource = $this->params->get("caption-source");
                if(isset($cSource['core']) && $cSource['core']) {
                    $conf = array_merge($conf, array(
                        "'caption-source': '" . $this->params->getValue("caption-source") . "'"
                    ));
                } else {
                    $conf = array_merge($conf, array(
                        "'caption-source': 'span'"
                    ));
                }
               
                $headers[] = "<script type=\"text/javascript\">\n\tMagicZoomPlus.options = {\n\t\t".implode(",\n\t\t",$conf)."\n\t}\n</script>\n";
               
                            return implode("\r\n", $headers);
                    }
                   
            function template($params) {
                extract($params);

                if(!isset($img) || empty($img)) return false;
                if(!isset($thumb) || empty($thumb)) $thumb = $img;
                if(!isset($id) || empty($id)) $id = md5($img);
               
                if(!isset($alt) || empty($alt)) {
                    $alt = '';
                } else {
                    $alt = htmlspecialchars(htmlspecialchars_decode($alt, ENT_QUOTES));
                }
                if(!isset($title) || empty($title)) $title = '';
                if(!isset($description)) $description = '';

                if($this->params->checkValue('show-caption', 'Yes')) {
                    $captionSource = $this->params->getValue('caption-source');
                    $captionSource = trim($captionSource);
                    if($captionSource == 'All') {
                        $captionSource = $this->params->getValues('caption-source');
                    } else {
                        $captionSource = explode(',',$captionSource);
                    }
                    $fullTitle = array();
                    foreach($captionSource as $caption) {
                        $caption = trim($caption);
                        $caption = strtolower($caption);
                        $caption = lcfirst(implode(explode(' ', ucwords($caption))));
                        if($caption == 'all') continue;
                        if(!isset($$caption)) continue;
                        if($$caption == '') continue;
                        if($caption == 'title') {
                            $fullTitle[] = '<b>' . $$caption . '</b>';
                        } else {
                            $fullTitle[] = $$caption;
                        }
                    }
                    $description_new = implode('<br/>',$fullTitle);
                } else $description_new = '';
                $description = $description_new;
                $description = trim(preg_replace("/\s+/is", " ", $description));
                if(!empty($description)) {
                    $description = preg_replace("/<(\/?)a([^>]*)>/is", "[$1a$2]", $description);
                    $description = "<span>{$description}</span>";
                }
                if(!empty($title) && !$this->params->checkValue('show-title', 'disable')) {
                    $title = htmlspecialchars(htmlspecialchars_decode($title, ENT_QUOTES));
                    if(empty($alt)) $alt = $title;
                    $title = " title=\"{$title}\"";
                } else $title = '';
               
                if(!isset($width) || empty($width)) $width = "";
                else $width = " width=\"{$width}\"";
                if(!isset($height) || empty($height)) $height = "";
                else $height = " height=\"{$height}\"";
               
                if($this->params->checkValue('show-message', 'Yes')) {
                    $message = '<br />' .$this->params->getValue('message');
                } else $message = '';

                $this->mainImageID = $id;
               
                $rel[] = 'disable-zoom:'.($this->params->getValue("disable-zoom")=='Yes'?'true':'false');
                $rel[] = 'disable-expand: ' . ($this->params->getValue("disable-expand")=='Yes'?'true':'false');

                if(isset($link) && !empty($link)) {
                    $rel[] = 'link: ' . ($link);
                }

                if(isset($group) && !empty($group)) {
                    $rel[] = 'group: ' . ($group);
                }
               
                $rel = implode('; ',$rel);
               
                return "<a class=\"MagicZoomPlus\"{$title} id=\"MagicZoomPlusImage{$id}\" href=\"{$img}\" rel=\"{$rel}\"><img{$width}{$height} src=\"{$thumb}\" alt=\"{$alt}\" />{$description}</a>" . $message;
            }
                   
            function subTemplate($params) {
                extract($params);
               
                if(!isset($alt) || empty($alt)) {
                    $alt = '';
                } else {
                    $alt = htmlspecialchars(htmlspecialchars_decode($alt, ENT_QUOTES));
                }
                if(!isset($img) || empty($img)) return false;
                if(!isset($medium) || empty($medium)) $medium = $img;
                if(!isset($thumb) || empty($thumb)) $thumb = $img;
                if(!isset($id) || empty($id)) $id = md5($img);
                if(!isset($title) || empty($title) || $this->params->checkValue('show-caption', 'No')) $title = '';
                else {
                    $title = htmlspecialchars(htmlspecialchars_decode($title, ENT_QUOTES));
                    if(empty($alt)) $alt = $title;
                    $title = " title=\"{$title}\"";
                }
                if(!isset($width) || empty($width)) $width = "";
                else $width = " width=\"{$width}\"";
                if(!isset($height) || empty($height)) $height = "";
                else $height = " height=\"{$height}\"";

                /* onclick - to allow change image for MagicThumb effect */
                //$onclick = " onclick=\"MagicZoomPlusResreshMagicThumb(this);\"";
               
                return "<a{$title} href=\"{$img}\" rel=\"zoom-id: MagicZoomPlusImage{$id}; caption-source: a:title\" rev=\"{$medium}\"><img{$width}{$height} src=\"{$thumb}\" alt=\"{$alt}\" /></a>";
            }

                   
                    function addonsTemplate($imgPath = '') {
                            if ($this->params->getValue("loading-animation") == "Yes"){
                                    return '<img style="display:none;" class="MagicZoomLoading" src="' . $imgPath . '/' . $this->params->getValue("loading-image") . '" alt="' . $this->params->getValue("loading-text") . '"/>';
                } else return '';
                    }
                   
                    function _paramDefaults() {
                            $params = array("opacity"=>array("id"=>"opacity","default"=>"50","label"=>"Square opacity","type"=>"num"),"zoom-width"=>array("id"=>"zoom-width","default"=>"300","label"=>"Zoomed area width (in pixels)","type"=>"num"),"zoom-height"=>array("id"=>"zoom-height","default"=>"300","label"=>"Zoomed area height (in pixels)","type"=>"num"),"zoom-position"=>array("id"=>"zoom-position","default"=>"right","label"=>"Zoomed area position","type"=>"array","subType"=>"select","values"=>array("top","right","bottom","left","inner")),"zoom-distance"=>array("id"=>"zoom-distance","default"=>"15","label"=>"Distance between small image and zoom window (in pixels)","type"=>"num"),"show-message"=>array("id"=>"show-message","default"=>"Yes","label"=>"Show message under image?","type"=>"array","subType"=>"radio","values"=>array("Yes","No")),"message"=>array("id"=>"message","default"=>"Move your mouse over image or click to enlarge","label"=>"Message under images","type"=>"text"),"drag-mode"=>array("id"=>"drag-mode","default"=>"No","label"=>"Use drag mode?","type"=>"array","subType"=>"radio","values"=>array("Yes","No")),"always-show-zoom"=>array("id"=>"always-show-zoom","default"=>"No","label"=>"Always show zoom?","type"=>"array","subType"=>"radio","values"=>array("Yes","No")),"smoothing"=>array("id"=>"smoothing","default"=>"Yes","label"=>"Enable smooth zoom movement","type"=>"array","subType"=>"radio","values"=>array("Yes","No")),"smoothing-speed"=>array("id"=>"smoothing-speed","default"=>"40","label"=>"Speed of smoothing (1-99)","type"=>"num"),"opacity-reverse"=>array("id"=>"opacity-reverse","default"=>"No","label"=>"Add opacity to background instead of hovered area","type"=>"array","subType"=>"radio","values"=>array("Yes","No")),"click-to-initialize"=>array("id"=>"click-to-initialize","default"=>"No","label"=>"Click to initialize Magic Zoom and download large image","type"=>"array","subType"=>"radio","values"=>array("Yes","No")),"click-to-activate"=>array("id"=>"click-to-activate","default"=>"No","label"=>"Click to show the zoom","type"=>"array","subType"=>"radio","values"=>array("Yes","No")),"show-title"=>array("id"=>"show-title","default"=>"top","label"=>"Show the title of the image in the zoom window","type"=>"array","subType"=>"select","values"=>array("top","bottom","disable")),"selectors-mouseover-delay"=>array("id"=>"selectors-mouseover-delay","default"=>"200","label"=>"Multiple images delay in ms before switching thumbnails","type"=>"num"),"preload-selectors-small"=>array("id"=>"preload-selectors-small","default"=>"Yes","label"=>"Multiple images, preload small images","type"=>"array","subType"=>"radio","values"=>array("Yes","No")),"preload-selectors-big"=>array("id"=>"preload-selectors-big","default"=>"No","label"=>"Multiple images, preload large images","type"=>"array","subType"=>"radio","values"=>array("Yes","No")),"zoom-fade"=>array("id"=>"zoom-fade","default"=>"No","label"=>"Zoom window fade effect","type"=>"array","subType"=>"select","values"=>array("Yes","No")),"zoom-fade-in-speed"=>array("id"=>"zoom-fade-in-speed","default"=>"200","label"=>"Zoom window fade-in speed (in milliseconds)","type"=>"num"),"zoom-fade-out-speed"=>array("id"=>"zoom-fade-out-speed","default"=>"200","label"=>"Zoom window fade-out speed  (in milliseconds)","type"=>"num"),"fps"=>array("id"=>"fps","default"=>"25","label"=>"Frames per second for zoom effect","type"=>"num"),"show-loading"=>array("id"=>"show-loading","default"=>"Yes","label"=>"Loading message","type"=>"array","subType"=>"select","values"=>array("Yes","No")),"loading-msg"=>array("id"=>"loading-msg","default"=>"Loading zoom...","label"=>"Loading message text","type"=>"text"),"loading-opacity"=>array("id"=>"loading-opacity","default"=>"75","label"=>"Loading message opacity (0-100)","type"=>"num"),"loading-position-x"=>array("id"=>"loading-position-x","default"=>"-1","label"=>"Loading message X-axis position, -1 is center","type"=>"num"),"loading-position-y"=>array("id"=>"loading-position-y","default"=>"-1","label"=>"Loading message Y-axis position, -1 is center","type"=>"num"),"move-on-click"=>array("id"=>"move-on-click","default"=>"Yes","label"=>"Click alone will also move zoom (drag mode only)","type"=>"array","subType"=>"radio","values"=>array("Yes","No")),"x"=>array("id"=>"x","default"=>"-1","label"=>"Initial zoom X-axis position for drag mode, -1 is center","type"=>"num"),"y"=>array("id"=>"y","default"=>"-1","label"=>"Initial zoom Y-axis position for drag mode, -1 is center","type"=>"num"),"preserve-position"=>array("id"=>"preserve-position","default"=>"No","label"=>"Position of zoom can be remembered for multiple images and drag mode","type"=>"array","subType"=>"radio","values"=>array("Yes","No")),"fit-zoom-window"=>array("id"=>"fit-zoom-window","default"=>"Yes","label"=>"Resize zoom window if big image is smaller than zoom window","type"=>"array","subType"=>"radio","values"=>array("Yes","No")),"selectors-effect"=>array("id"=>"selectors-effect","default"=>"dissolve","label"=>"Dissolve or cross fade thumbnail when switching thumbnails","type"=>"array","subType"=>"select","values"=>array("dissolve","fade","disable")),"selectors-effect-speed"=>array("id"=>"selectors-effect-speed","default"=>"400","label"=>"Selectors effect speed, ms","type"=>"num"),"entire-image"=>array("id"=>"entire-image","default"=>"No","label"=>"Show entire large image on hover","type"=>"array","subType"=>"radio","values"=>array("Yes","No")),"expand-speed"=>array("id"=>"expand-speed","default"=>"500","label"=>"Expand duration (milliseconds: 0-10000)","type"=>"num"),"restore-speed"=>array("id"=>"restore-speed","default"=>"-1","label"=>"Restore duration (milliseconds: 0-10000, -1: use expand-speed value)","type"=>"num"),"expand-effect"=>array("id"=>"expand-effect","default"=>"linear","label"=>"Effect while expanding image","type"=>"array","subType"=>"select","values"=>array("linear","cubic","back","elastic","bounce")),"restore-effect"=>array("id"=>"restore-effect","default"=>"linear","label"=>"Effect while restoring image","type"=>"array","subType"=>"select","values"=>array("linear","cubic","back","elastic","bounce")),"expand-align"=>array("id"=>"expand-align","default"=>"screen","label"=>"Align expanded image relative to screen or thumbnail","type"=>"array","subType"=>"select","values"=>array("screen","image")),"expand-position"=>array("id"=>"expand-position","default"=>"center","label"=>"Precise position of enlarged image (px)","type"=>"text","description"=>"The value can be 'center' or coordinates. E.g. 'top:0, left:0' or 'bottom:100, left:100'"),"image-size"=>array("id"=>"image-size","default"=>"fit-screen","label"=>"Size of the enlarged image","type"=>"array","subType"=>"select","values"=>array("original","fit-screen")),"keep-thumbnail"=>array("id"=>"keep-thumbnail","default"=>"Yes","label"=>"Show/hide thumbnail when image enlarged","type"=>"array","subType"=>"radio","values"=>array("Yes","No")),"background-color"=>array("id"=>"background-color","default"=>"#000000","label"=>"Fade background color (RGB)","type"=>"text"),"background-opacity"=>array("id"=>"background-opacity","default"=>"0","label"=>"Opacity of the background effect (0-100)","type"=>"num"),"background-speed"=>array("id"=>"background-speed","default"=>"200","label"=>"Speed of the fade effect (milliseconds: 0 or larger)","type"=>"num"),"show-caption"=>array("id"=>"show-caption","default"=>"Yes","label"=>"Show caption","type"=>"array","subType"=>"radio","values"=>array("Yes","No")),"caption-source"=>array("id"=>"caption-source","default"=>"Description","label"=>"Caption source","type"=>"text","values"=>array("Title","Short description","Description","All")),"caption-speed"=>array("id"=>"caption-speed","default"=>"250","label"=>"Speed of the caption slide effect (milliseconds: 0 or larger)","type"=>"num"),"caption-position"=>array("id"=>"caption-position","default"=>"bottom","label"=>"Where to position the caption","type"=>"array","subType"=>"select","values"=>array("bottom","right","left")),"caption-height"=>array("id"=>"caption-height","default"=>"300","label"=>"Max height of bottom caption (pixels: 0 or larger)","type"=>"num"),"caption-width"=>array("id"=>"caption-width","default"=>"300","label"=>"Max width of bottom caption (pixels: 0 or larger)","type"=>"num"),"buttons"=>array("id"=>"buttons","default"=>"show","label"=>"Whether to show navigation buttons","type"=>"array","subType"=>"select","values"=>array("show","hide","autohide")),"buttons-position"=>array("id"=>"buttons-position","default"=>"auto","label"=>"Location of navigation buttons","type"=>"array","subType"=>"select","values"=>array("auto","top left","top right","bottom left","bottom right")),"buttons-display"=>array("id"=>"buttons-display","default"=>"previous, next, close","label"=>"Display button","type"=>"text","description"=>"Show all three buttons or just one or two. E.g. 'previous, next' or 'close, next'"),"swap-image"=>array("id"=>"swap-image","default"=>"click","label"=>"Method to switch between multiple images","type"=>"array","subType"=>"radio","values"=>array("click","mouseover")),"swap-image-delay"=>array("id"=>"swap-image-delay","default"=>"100","label"=>"Delay before switching thumbnails (milliseconds: 0 or larger)","type"=>"num"),"slideshow-effect"=>array("id"=>"slideshow-effect","default"=>"dissolve","label"=>"Visual effect for switching images","type"=>"array","subType"=>"select","values"=>array("dissolve","fade","expand")),"slideshow-speed"=>array("id"=>"slideshow-speed","default"=>"800","label"=>"Speed of slideshow effect (milliseconds: 0 or larger)","type"=>"num"),"slideshow-loop"=>array("id"=>"slideshow-loop","default"=>"Yes","label"=>"Restart slideshow after last image","type"=>"array","subType"=>"radio","values"=>array("Yes","No")),"keyboard"=>array("id"=>"keyboard","default"=>"Yes","label"=>"Ability to use keyboard shortcuts","type"=>"array","subType"=>"radio","values"=>array("Yes","No")),"keyboard-ctrl"=>array("id"=>"keyboard-ctrl","default"=>"No","label"=>"Require Ctrl key to permit shortcuts","type"=>"array","subType"=>"radio","values"=>array("Yes","No")),"z-index"=>array("id"=>"z-index","default"=>"10001","label"=>"The z-index for the enlarged image","type"=>"num"),"big-image"=>array("id"=>"big-image","default"=>"original","label"=>"Use following image size as big image","type"=>"array","subType"=>"select","values"=>array("original","popup")),"use-effect-on-category-page"=>array("id"=>"use-effect-on-category-page","default"=>"No","label"=>"Use effect on category page","type"=>"array","subType"=>"select","values"=>array("Yes","Zoom","Expand","No")),"use-effect-on-product-page"=>array("id"=>"use-effect-on-product-page","default"=>"Yes","label"=>"Use effect on product page","type"=>"array","subType"=>"select","values"=>array("Yes","Zoom","Expand","No")),"use-effect-on-category-image"=>array("id"=>"use-effect-on-category-image","default"=>"No","label"=>"Use effect on category image","type"=>"array","subType"=>"select","values"=>array("Yes","No")),"thumbnails-size"=>array("id"=>"thumbnails-size","default"=>"-1","label"=>"Thumbnails width","description"=>"(use -1 for default)","type"=>"num"),"selectors-size"=>array("id"=>"selectors-size","default"=>"-1","label"=>"Selectors width","description"=>"(use -1 for default)","type"=>"num"));
                            $this->params->appendArray($params);
                    }
            }

    }
    ?>
     

    Was meint ihr? Kommt mein Problem daher?
    Und was kann man da machen, damit keine Entities in die Alt-Texte eingebaut werden?

    Vielen Dank
    garnetz

    cYbercOsmOnauT

    • modified Team
    • Beiträge: 914
    • Geschlecht:
    Re: Umlaute in Alt-Tags werden falsch dargestellt
    Antwort #4 am: 27. August 2012, 22:12:43
    In Zeile 167 und 241 findet sich
    Code: PHP  [Auswählen]
    $alt = htmlspecialchars(htmlspecialchars_decode($alt, ENT_QUOTES));
    mach mal daraus
    Code: PHP  [Auswählen]
    $alt = htmlspecialchars_decode($alt, ENT_QUOTES);
    oder auch
    Code: PHP  [Auswählen]
    // $alt = htmlspecialchars(htmlspecialchars_decode($alt, ENT_QUOTES));
    und schau ob es dann besser ist. Nicht vergessen beide Trefferzeilen zu ersetzen!

    amex

    • Neu im Forum
    • Beiträge: 1
    Re: Umlaute in Alt-Tags werden falsch dargestellt
    Antwort #5 am: 18. September 2012, 19:53:07
    Hello All,
    And I have same problem with "umlaut". When I write Category Topic or Product Topic for example: "Für" and click to accept it I see only "F". I do not know how to fix this problem. I make probe to write UTF8 on shop/lang/german/german.php , aber have not resut...

    6 Antworten
    2588 Aufrufe
    23. November 2018, 12:32:43 von karsta.de
    5 Antworten
    6085 Aufrufe
    13. September 2011, 15:10:47 von web28
    50 Antworten
    26936 Aufrufe
    05. März 2016, 15:45:20 von pq
    4 Antworten
    1185 Aufrufe
    21. Mai 2019, 14:20:07 von Tomcraft