Changeset 12602 for extensions/gally


Ignore:
Timestamp:
Nov 11, 2011, 3:04:25 PM (12 years ago)
Author:
grum
Message:

feature:2499 - compatibility with Piwigo 2.3

Location:
extensions/gally/gally-black-graphite
Files:
6 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/gally/gally-black-graphite/css/theme.css

    r8534 r12602  
    11271127  picture page
    11281128*/
     1129#thePicturePage #titrePageID {
     1130  min-height:0;
     1131  padding:0;
     1132  border:0;
     1133  margin:0;
     1134}
     1135
    11291136#imageHeaderBar {
    11301137  border-width: 2px;
     
    11351142  z-index: 1000;
    11361143  position: relative;
     1144}
     1145
     1146#imageHeaderBar.borderMenu {
     1147  border-top: 4px solid;
    11371148}
    11381149
     
    13361347#rateForm input[type="button"].rateButtonStarFull:focus,
    13371348#rateForm input[type="submit"].rateButtonStarFull  {
    1338   background: url('./../icon/rating-stars.png') no-repeat scroll; background-position:-16px center; width:16px;
     1349  background: url('./../icon/buttons.png') no-repeat scroll; background-position:-111px 1px; width:16px; height:16px;
    13391350  outline:none;
     1351  -moz-border-radius:0px;
     1352  -webkit-border-radius:0px;
     1353  -khtml-border-radius:0px;
     1354  border-radius:0;
    13401355}
    13411356
     
    13431358#rateForm input[type="button"].rateButtonStarEmpty:focus,
    13441359#rateForm input[type="submit"].rateButtonStarEmpty {
    1345   background: url('./../icon/rating-stars.png') no-repeat scroll; background-position:0 center; width:16px;
     1360  background: url('./../icon/buttons.png') no-repeat scroll; background-position:-89px 1px; width:16px; height:16px;
    13461361  outline:none;
     1362  -moz-border-radius:0px;
     1363  -webkit-border-radius:0px;
     1364  -khtml-border-radius:0px;
     1365  border-radius:0;
    13471366}
    13481367
     
    15951614  top:-3px;
    15961615}
    1597 
     1616span.add_tag {
     1617  background:transparent url('./../icon/buttons.png') no-repeat scroll;
     1618  background-position:-528px 0px;
     1619  width:7px;
     1620  height:7px;
     1621  display:inline-block;
     1622}
     1623span.add_tag:hover {
     1624  background-position:-528px -22px;
     1625}
    15981626
    15991627.mandatorystar {
     
    17411769  height:27px;
    17421770  line-height:27px;
    1743   margin-top:3px;
    1744 }
    1745 
    1746 .menuf ul.flag-pan .flags:hover, .menuf a img.flags {
     1771  margin-top:-3px;
     1772}
     1773
     1774div.content ul.categoryActions li.menuf ul li a,
     1775div.content ul.categoryActions li.menuf ul li.languageSwitchBoxTitle {
     1776  color:#c0c0c0;
     1777}
     1778div.content ul.categoryActions li.menuf ul li a:hover {
     1779  color:#f0f0f0;
     1780}
     1781
     1782
     1783div.content ul.categoryActions li.menuf ul.flag-pan .flags:hover,
     1784div.content ul.categoryActions li.menuf a img.flags {
    17471785  border:1px solid #202020;
    17481786}
    17491787
    1750 .menuf ul.flag-pan .flags {
     1788div.content ul.categoryActions li.menuf ul.flag-pan .flags {
    17511789  border:1px solid #202020;
    17521790}
    17531791
    1754 .menuf ul.flag-pan {
     1792div.content ul.categoryActions li.menuf ul.flag-pan {
    17551793  -moz-border-radius: 6px;
    17561794  -webkit-border-radius:6px;
     
    17631801  margin-top: -4px;
    17641802}
     1803
    17651804
    17661805/*
  • extensions/gally/gally-black-graphite/template/mainpage_categories.tpl

    r8534 r12602  
    1 
    21<!-- **GBL** >MAINPAGE_CATEGORIES> -->
    32
     
    1716        </h3>
    1817
    19 
    20           <div class="illustration">
    21             <img {if isset($cat.EXTRA_CLASS)}class="{$cat.EXTRA_CLASS}"{/if} src="{$cat.TN_SRC}" alt="{$cat.TN_ALT}">
    22           </div>
    23 
     18        <div class="illustration">
     19          <img {if isset($cat.EXTRA_CLASS)}class="{$cat.EXTRA_CLASS}"{/if} src="{$cat.TN_SRC}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}">
     20        </div>
    2421
    2522        <div class="text">
  • extensions/gally/gally-black-graphite/template/picture.tpl

    r11031 r12602  
    11<!-- **GBL** >PICTURE> -->
    22
     3
     4
     5
     6
     7
    38{include file='dialogs.tpl'}
    49
    5 <div id="content">
     10<div id="content" {if isset($MENUBAR)}class="pictureContent"{/if}>
    611
    712  <div id="theImageHigh" style="display:none;">
     
    1116      <div id="theImgHighZoomButton" class="fit" onclick="gallyPP.switchZoomHigh();"></div>
    1217      <div id="theImgHighContainer2">
    13         <img id="theImgHigh" src="" style="display:none;" alt="{$ALT_IMG}">
     18        <img id="theImgHigh" src="" style="display:none;" alt="{$ALT_IMG}"
     19          {if isset($COMMENT_IMG)}
     20            title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}"
     21          {/if}>
    1422      </div>
    1523    </div>
    1624  </div>
    1725
     26
     27  {if isset($MENUBAR)}
     28  <div id="imageHeaderBar" class="borderMenu">
     29    <div class="titrePage" id='titrePageID'>
     30      {if #menuAnimated# == "noswitch"}
     31          {$MENUBAR}
     32      {else}
     33        <div class="titrePage" id='titrePageID'>
     34          <div id="menuswitcher">
     35            <a id="icon_menu" class="button" onclick="gallyCP.switchmenu('', '{$ROOT_URL}{$themeconf.icon_dir}/');">&nbsp;
     36            </a>
     37          </div>
     38        </div>
     39        {$MENUBAR}
     40      {/if}
     41    </div>
     42  {else}
    1843  <div id="imageHeaderBar">
     44  {/if}
     45
    1946    <div class="imageNumber">{$PHOTO}</div>
    2047    <div class="browsePath">
     
    2552  </div> <!-- imageHeaderBar -->
    2653
    27 
    2854  {if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if}
    2955
     
    3864
    3965    {if isset($COMMENT_IMG)}
    40     <p>{$COMMENT_IMG}</p>
     66    <p class="imageComment">{$COMMENT_IMG}</p>
    4167    {else}
    4268    <p>&nbsp;</p>
     
    261287            {/if}
    262288
    263             {if (isset($rate_summary) or isset($rating)) and  $display_info.average_rate}
    264               <tr>
     289            {if (isset($rate_summary) or isset($rating)) and  $display_info.rating_score}
     290              <tr id="rating">
    265291                {if isset($rate_summary)}
    266                   <td class="label">{'Average rate'|@translate}</td>
    267                   <td class="value" id="ratingSummary">
     292                  <td class="label">{'Rating score'|@translate}</td>
     293                  <td class="value">
    268294                  {if $rate_summary.count}
    269                     {assign var='rate_text' value='%.2f (rated %d times)'|@translate }
    270                     {$pwg->sprintf($rate_text, $rate_summary.average, $rate_summary.count) }
     295                    <span id="ratingScore">{$rate_summary.score}</span>
     296                    <span id="ratingCount">({assign var='rate_text' value='%d rates'|@translate}{$pwg->sprintf($rate_text, $rate_summary.count)})</span>
    271297                  {else}
    272                     {'no rate'|@translate}
     298                    <span id="ratingScore">{'no rate'|@translate}</span> <span id="ratingCount"></span>
    273299                  {/if}
    274300                  </td>
     
    283309
    284310                    <form action="{$rating.F_ACTION}" method="post" id="rateForm" style="margin:0;">
    285                     <div>&nbsp;
    286                     {foreach from=$rating.marks item=mark name=rate_loop}
    287                     {if !$smarty.foreach.rate_loop.first} | {/if}
    288                     {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE}
    289                       <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}" />
    290                     {else}
    291                       <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}" />
    292                     {/if}
    293                     {/foreach}
    294                     <script type="text/javascript" src="{$ROOT_URL}themes/default/js/rating.js"></script>
    295                     <script type="text/javascript">
    296                     makeNiceRatingForm( {ldelim}rootUrl: '{$ROOT_URL|@escape:"javascript"}', image_id: {$current.id},
    297                     updateRateText: "{'Update your rating'|@translate|@escape:'javascript'}", updateRateElement: document.getElementById("updateRate"),
    298                     ratingSummaryText: "{'%.2f (rated %d times)'|@translate|@escape:'javascript'}", ratingSummaryElement: document.getElementById("ratingSummary") {rdelim} );
    299                     </script>
    300                     </div>
     311                      <div>&nbsp;
     312                      {foreach from=$rating.marks item=mark name=rate_loop}
     313                        {if !$smarty.foreach.rate_loop.first} | {/if}
     314
     315                        {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE}
     316                          <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}" />
     317                        {else}
     318                          <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}" />
     319                        {/if}
     320
     321                      {/foreach}
     322
     323                      {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
     324                      {combine_script id='rating' load='async' require='core.scripts' path='themes/default/js/rating.js'}
     325
     326
     327                      {footer_script}
     328                        var _pwgRatingAutoQueue = _pwgRatingAutoQueue||[];
     329                        _pwgRatingAutoQueue.push( {ldelim}rootUrl: '{$ROOT_URL}', image_id: {$current.id},
     330                          onSuccess : function(rating) {ldelim}
     331                            var e = document.getElementById("updateRate");
     332                            if (e) e.innerHTML = "{'Update your rating'|@translate|@escape:'javascript'}";
     333                            e = document.getElementById("ratingScore");
     334                            if (e) e.innerHTML = rating.score;
     335                            e = document.getElementById("ratingCount");
     336                            if (e) e.innerHTML = "({'%d rates'|@translate|@escape:'javascript'})".replace( "%d", rating.count);
     337                          {rdelim}{rdelim} );
     338                      {/footer_script}
     339
     340                      </div>
    301341                    </form>
    302342                  </td>
  • extensions/gally/gally-black-graphite/template/slideshow.tpl

    r8534 r12602  
    11<!-- **GBL** >SLIDESHOW> -->
     2
    23<div id="content">
    34  <div id="imageHeaderBar" class="slideShow">
  • extensions/gally/gally-black-graphite/template/thumbnails.tpl

    r8534 r12602  
    2424      <tr>
    2525        <td>
    26           <span class="thumbLegend">
     26          {if $SHOW_THUMBNAIL_CAPTION }
     27            <span class="thumbLegend">
    2728
    28           {if !empty($thumbnail.icon_ts)}
    29             <span class="newImage button id_recent"></span>
     29            {if !empty($thumbnail.icon_ts)}
     30              <span class="newImage button id_recent"></span>
     31            {/if}
     32            {if !empty($thumbnail.NAME)}{$thumbnail.NAME}{/if}
     33
     34            </span>
    3035          {/if}
    31           {if !empty($thumbnail.NAME)}{$thumbnail.NAME}{/if}
    32 
    33           </span>
    3436        </td>
    3537      </tr>
Note: See TracChangeset for help on using the changeset viewer.