Ignore:
Timestamp:
Dec 14, 2010, 7:45:52 AM (13 years ago)
Author:
rvelices
Message:

css sprites - almost done - still to implement nice colors and hover effect for clear and sylvia

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/template-extension/distributed/samples/my-picture.tpl

    r5021 r8119  
    3434{if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if}
    3535<div id="imageToolBar">
    36   <div class="randomButtons">
    37     {if isset($U_SLIDESHOW_START) }
    38       <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_slideshow.png" class="button" alt="{'slideshow'|@translate}"></a>
    39     {/if}
    40     {if isset($U_SLIDESHOW_STOP) }
    41       <a href="{$U_SLIDESHOW_STOP}" title="{'stop the slideshow'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_slideshow.png" class="button" alt="{'stop the slideshow'|@translate}"></a>
    42     {/if}
    43       <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/metadata.png" class="button" alt="metadata"></a>
    44     {if isset($current.U_DOWNLOAD) }
    45       <a href="{$current.U_DOWNLOAD}" title="{'download'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/save.png" class="button" alt="{'download'|@translate}"></a>
    46     {/if}
    47     {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if}
    48     {if isset($favorite) }
    49       <a href="{$favorite.U_FAVORITE}" title="{$favorite.FAVORITE_HINT}"><img src="{$favorite.FAVORITE_IMG}" class="button" alt="favorite" title="{$favorite.FAVORITE_HINT}"></a>
    50     {/if}
    51     {if !empty($U_SET_AS_REPRESENTATIVE) }
    52       <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'representative'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/representative.png" class="button" alt="{'representative'|@translate}"></a>
    53     {/if}
    54     {if isset($U_ADMIN) }
    55       <a href="{$U_ADMIN}" title="{'edit'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/preferences.png" class="button" alt="{'edit'|@translate}"></a>
    56     {/if}
    57     {if isset($U_CADDIE) }{*caddie management BEGIN*}
     36        <div class="actionButtons">
     37{if isset($U_SLIDESHOW_START)}
     38                <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     39                        <span class="pwg-icon pwg-icon-slideshow">&nbsp;</span><span class="pwg-button-text">{'slideshow'|@translate}</span>
     40                </a>
     41{/if}
     42{if isset($U_SLIDESHOW_STOP)}
     43                <a href="{$U_SLIDESHOW_STOP}" title="{'stop the slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     44                        <span class="pwg-icon pwg-icon-slideshow">&nbsp;</span><span class="pwg-button-text">{'stop the slideshow'|@translate}</span>
     45                </a>
     46{/if}
     47{if isset($U_METADATA)}
     48                <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     49                        <span class="pwg-icon pwg-icon-camera-info">&nbsp;</span><span class="pwg-button-text">{'Show file metadata'|@translate}</span>
     50                </a>
     51{/if}
     52{if isset($current.U_DOWNLOAD)}
     53                <a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     54                        <span class="pwg-icon pwg-icon-save">&nbsp;</span><span class="pwg-button-text">{'download'|@translate}</span>
     55                </a>
     56{/if}
     57{if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if}
     58{if isset($favorite)}
     59                <a href="{$favorite.U_FAVORITE}" title="{if $favorite.IS_FAVORITE}{'delete this image from your favorites'|@translate}{else}{'add this image to your favorites'|@translate}{/if}" class="pwg-state-default pwg-button" rel="nofollow">
     60                        <span class="pwg-icon pwg-icon-favorite-{if $favorite.IS_FAVORITE}del{else}add{/if}">&nbsp;</span><span class="pwg-button-text">{'Favorites'|@translate}</span>
     61                </a>
     62{/if}
     63{if isset($U_SET_AS_REPRESENTATIVE)}
     64                <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as category representative'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     65                        <span class="pwg-icon pwg-icon-representative">&nbsp;</span><span class="pwg-button-text">{'representative'|@translate}</span>
     66                </a>
     67{/if}
     68{if isset($U_ADMIN)}
     69                <a href="{$U_ADMIN}" title="{'Modify information'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     70                        <span class="pwg-icon pwg-icon-edit">&nbsp;</span><span class="pwg-button-text">{'edit'|@translate}</span>
     71                </a>
     72{/if}
     73{if isset($U_CADDIE)}{*caddie management BEGIN*}
    5874<script type="text/javascript">
    5975{literal}function addToCadie(aElement, rootUrl, id)
    6076{
    6177if (aElement.disabled) return;
    62 aElement.disabled=true; 
     78aElement.disabled=true;
    6379var y = new PwgWS(rootUrl);
    6480
    6581y.callService(
    66   "pwg.caddie.add", {image_id: id} ,
    67   {
    68     onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; },
    69     onSuccess: function(result) { aElement.disabled = false; }
    70   }
    71   );
     82        "pwg.caddie.add", {image_id: id} ,
     83        {
     84                onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; },
     85                onSuccess: function(result) { aElement.disabled = false; }
     86        }
     87        );
    7288}{/literal}
    7389</script>
    74       <a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}); return false;" title="{'caddie'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/caddie_add.png" class="button" alt="{'caddie'|@translate}"></a>
    75     {/if}{*caddie management END*}
    76   </div>
     90                <a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL|@escape:'javascript'}', {$current.id}); return false;" title="{'add to caddie'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     91                        <span class="pwg-icon pwg-icon-caddie-add">&nbsp;</span><span class="pwg-button-text">{'caddie'|@translate}</span>
     92                </a>
     93{/if}{*caddie management END*}
     94        </div>   
    7795  {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
    7896</div> <!-- imageToolBar -->
Note: See TracChangeset for help on using the changeset viewer.