SmartPocket theme doesn't work with the Media_Icon plugin. #616

Open
opened 2026-10-05 00:07:34 +02:00 by adam · 0 comments
Owner

The theme doesn't work with the Media_Icon plugin which is frustrating. To fix this, you need to make two alterations:

1. File: /piwigo/themes/smartpocket/template/header.tpl
a. Search for </head> tag.
b. on the line above, enter the following lines of text (taken from the default theme) (but not begin and end block lines)
//BEGIN BLOCK
{if not empty($head_elements)}
{foreach from=$head_elements item=elt}
{$elt}
{/foreach}
{/if}
//END BLOCK
2. File: /piwigo/themes/smartpocket/template/
a. Search for line with text <img src="{$derivative->get_url()}"
b. alter the found text to: <img class="thumbnail" src="{$derivative->get_url()}"

The theme doesn't work with the Media_Icon plugin which is frustrating. To fix this, you need to make two alterations: **1.** File: /piwigo/themes/smartpocket/template/header.tpl **a.** Search for </head> tag. **b.** on the line above, enter the following lines of text (taken from the default theme) (but not begin and end block lines) //BEGIN BLOCK {if not empty($head_elements)} {foreach from=$head_elements item=elt} {$elt} {/foreach} {/if} //END BLOCK **2.** File: /piwigo/themes/smartpocket/template/ **a.** Search for line with text _<img src="{$derivative->get_url()}"_ **b.** alter the found text to: _<img class="thumbnail" src="{$derivative->get_url()}"_ <!-- github-sync-id:226208436 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#616