Announcement

  •  » Extensions
  •  » [Theme] Action Links in 'Simple White'?

#1 2012-01-15 23:48:26

Canut
Guest

[Theme] Action Links in 'Simple White'?

Hi,

Not quite sure whether this is the appropriate place to post my wishlist, so please feel free to point me in the right direction.

'Simple White' seems to be missing action links, such as 'Add to Favorites' on picture pages. It's enabled under 'Options', but still no go. Is this deliberate, or am I missing something here?

TIA

Mike

 

#2 2012-01-30 12:00:03

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13182

Re: [Theme] Action Links in 'Simple White'?

Hi Canut,

There is currently a bug in Simple* themes.

Saimon, can you apply this patch:

Code:

Index: picture.tpl
===================================================================
--- picture.tpl (revision 998)
+++ picture.tpl (working copy)
@@ -64,8 +64,8 @@
         <li><a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}">{'download'|@translate}</a></li>
         {/if}
         {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if}
-        {if isset($favorite) }
-        <li><a href="{$favorite.U_FAVORITE}" title="{$favorite.FAVORITE_HINT}">{$favorite.FAVORITE_HINT}</a></li>
+        {if isset($favorite)}
+        <li><a href="{$favorite.U_FAVORITE}">{if $favorite.IS_FAVORITE}{'delete this photo from your favorites'|@translate}{else}{'add this photo to your favorites'|@translate}{/if}</a></li>
         {/if}
         {if !empty($U_SET_AS_REPRESENTATIVE) }
         <li><a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}">{'representative'|@translate}</a></li>

Latest blog post (November 9th 2018) Why Flickr could not remain free for ever

Offline

 

#3 2012-01-30 12:10:24

saimon
Member
2006-12-04
184

Re: [Theme] Action Links in 'Simple White'?

ok, thanks plg for the patch :-)

Offline

 
  •  » Extensions
  •  » [Theme] Action Links in 'Simple White'?

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact