mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-10 02:33:02 +02:00
Updated Technical changes in Piwigo 13 (markdown)
@@ -39,26 +39,26 @@ window.onload = function(e){
|
||||
As we added SVG support in Piwigo gallery, this change will affect custom themes.
|
||||
If theme developers also want to support SVG files, they will need to add this condition to their modified ```picture_content.tpl``` file.
|
||||
```
|
||||
{if {$current.path_ext} == 'svg'}src="{$current.path}"
|
||||
{if (isset($current.path_ext) and $current.path_ext == 'svg')}src="{$current.path}"
|
||||
```
|
||||
This is necessary if you modified the default ```picture_content.tpl``` file for your theme otherwise, if your theme inherits the default theme, you can leave it as it is.
|
||||
|
||||
For the previous image you'll need to add the following condition
|
||||
```
|
||||
{if {$previous.path_ext} == 'svg'}{$previous.path}
|
||||
{if (isset($previous.path_ext) and $previous.path_ext == 'svg')}{$previous.path}{/if}
|
||||
```
|
||||
And add a class to the img using
|
||||
```
|
||||
class="{if {$previous.path_ext} == 'svg'}svgImg{/if}"
|
||||
class="{if (isset($previous.path_ext) and $previous.path_ext == 'svg')}svgImg{/if}"
|
||||
```
|
||||
|
||||
Same for the next image.
|
||||
```
|
||||
{if {$next.path_ext} == 'svg'}{$next.path}
|
||||
{if (isset($next.path_ext) and $next.path_ext == 'svg')}{$next.path}{/if}
|
||||
```
|
||||
And add a class to the img using
|
||||
```
|
||||
class="{if {$next.path_ext} == 'svg'}svgImg{/if}"
|
||||
class="{if (isset($next.path_ext) and $next.path_ext == 'svg')}svgImg{/if}"
|
||||
```
|
||||
|
||||
We implemented the following classes to support SVG but also any other formats : ```file-ext-{{the file extention}}``` and ```path-ext-{{the file's path extention}}```. These will be used to custom the gallery if needed.
|
||||
|
||||
Reference in New Issue
Block a user