Announcement

  •  » Extensions
  •  » stripped theme: keyboard navigation does not work

#1 2024-02-25 17:07:04

szpajder
Member
2024-02-25
1

stripped theme: keyboard navigation does not work

Hi,

"stripped" theme allows the user to navigate through the photos in the album using arrow keys on the keyboard. At least this is how it worked for me before, because now it doesn't. Dunno exactly when it broke (I went through many upgrades and changed servers over the years). Additionally when I click any picture in any album the following message pops up in the error_log:

Code:

PHP Notice:  escape: unsupported type: jasvascript - returning unmodified string in /somedir/gallery/include/smarty/libs/plugins/modifier.escape.php on line 186, referer: https://somesite/picture.php?/1722/category/39

Indeed, themes/stripped/template/picture_nav_buttons.tpl contains several lines with "jasvascript":

Code:

        /*Up*/case 38: if (e.ctrlKey){ldelim}window.location="{$U_UP|@escape:jasvascript}".replace("&","&"); return false; } break;

Is "jasvascript" a typo, or is it intentional?

When I replace all occurrences of "jasvascript" in this file with "javascript", then the error no longer shows up and the navigation keys magically work again.

stripped 14.b, Piwigo 14.2.0, PHP 7.4.33, self-hosted.

Offline

 

#2 2024-02-25 19:11:15

erAck
Only trying to help
2015-09-06
2043

Re: stripped theme: keyboard navigation does not work

Looks very much like a typo.
https://piwigo.org/dev/browser/extensio … uttons.tpl is 12 years old though with the same content.


Running Piwigo at https://erack.net/gallery/

Offline

 
  •  » Extensions
  •  » stripped theme: keyboard navigation does not work

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact