Changeset 17407


Ignore:
Timestamp:
Aug 5, 2012, 4:51:13 PM (12 years ago)
Author:
Zaphod
Message:

version 2.2.7

Location:
extensions/stripped
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped/admin/admin.tpl

    r16602 r17407  
    117117                                                <option value="2small" {if ($options.albumSize=="2small")}selected{/if}>{'2small'|@translate}</option>
    118118                                                <option value="xsmall" {if ($options.albumSize=="xsmall")}selected{/if}>{'xsmall'|@translate}</option>
     119                                                <option value="small" {if ($options.albumSize=="small")}selected{/if}>{'small'|@translate}</option>
    119120                                                <option value="medium" {if ($options.albumSize=="medium")}selected{/if}>{'medium'|@translate}</option>
    120121                                                <option value="large" {if ($options.albumSize=="large")}selected{/if}>{'large'|@translate}</option>
     
    130131                                                <option value="2small" {if ($options.thumbSize=="2small")}selected{/if}>{'2small'|@translate}</option>
    131132                                                <option value="xsmall" {if ($options.thumbSize=="xsmall")}selected{/if}>{'xsmall'|@translate}</option>
     133                                                <option value="small" {if ($options.thumbSize=="small")}selected{/if}>{'small'|@translate}</option>
    132134                                                <option value="medium" {if ($options.thumbSize=="medium")}selected{/if}>{'medium'|@translate}</option>
    133135                                                <option value="large" {if ($options.thumbSize=="large")}selected{/if}>{'large'|@translate}</option>
     
    143145                                                <option value="2small" {if ($options.imageSize=="2small")}selected{/if}>{'2small'|@translate}</option>
    144146                                                <option value="xsmall" {if ($options.imageSize=="xsmall")}selected{/if}>{'xsmall'|@translate}</option>
     147                                                <option value="small" {if ($options.imageSize=="small")}selected{/if}>{'small'|@translate}</option>
    145148                                                <option value="medium" {if ($options.imageSize=="medium")}selected{/if}>{'medium'|@translate}</option>
    146149                                                <option value="large" {if ($options.imageSize=="large")}selected{/if}>{'large'|@translate}</option>
     
    156159                                                <option value="2small" {if ($options.hdSize=="2small")}selected{/if}>{'2small'|@translate}</option>
    157160                                                <option value="xsmall" {if ($options.hdSize=="xsmall")}selected{/if}>{'xsmall'|@translate}</option>
     161                                                <option value="small" {if ($options.hdSize=="small")}selected{/if}>{'small'|@translate}</option>
    158162                                                <option value="medium" {if ($options.hdSize=="medium")}selected{/if}>{'medium'|@translate}</option>
    159163                                                <option value="large" {if ($options.hdSize=="large")}selected{/if}>{'large'|@translate}</option>
  • extensions/stripped/js/scripts-tpp.js

    r14310 r17407  
    174174                        var marge_cote;
    175175
    176                         if (ImageCadre.length == 0) {
    177                                 ImageContainer.css("opacity","1");
    178                                 jQuery("img","#theImageAndTitle").css("opacity","1");
    179                                 return;
    180                         }
    181                        
    182                         if (options.navArrows) {marge_cote=30;} else {marge_cote=10;};
    183 
    184176                        var marge_sup = 5 + Content.offset().top;
    185177                        var marge_inf;
    186178                        if (options.themeStyle == 'original') { marge_inf = options.imageAutosizeMargin+10;} else { marge_inf = 30;};
    187179                        var marge_spec = 0;
     180
     181                        if (ImageCadre.length == 0) {
     182                                ImageContainer.css("opacity","1");
     183                                jQuery("img","#theImageAndTitle").css("opacity","1");
     184                                ImageContainer.css("top",marge_sup+"px");
     185                                //maps & earth
     186                                if (jQuery("#map").length == 1) {
     187                                        ImageContainer.css("position","static");
     188                                        ImageContainer.css("margin-top","10px");
     189                                }
     190                                return;
     191                        }
    188192                       
    189193                        var slideshow=jQuery("#light_slideshow");
     
    361365{
    362366  p = new Object();
     367  imgH = jQuery(document).data("highHeight")
     368  imgW = jQuery(document).data("highWidth")
    363369
    364370  if(zoom=='full')
     
    369375    p.top=options.marginContainer;
    370376
    371     if(p.width>jQuery(document).data("highWidth"))
    372     {
    373       p.width = jQuery(document).data("highWidth")-options.paddingContainer*2;
     377    if(p.width>imgW)
     378    {
     379      p.width = imgW;
    374380      p.left = (jQuery("html").get(0).clientWidth-p.width)/2;
    375     }
    376 
    377     if(p.height>jQuery(document).data("highHeight"))
    378     {
    379       p.height = jQuery(document).data("highHeight")-options.paddingContainer*2;
     381      jQuery("#theImgHighZoomButton").hide();
     382    }
     383
     384    if(p.height>imgH)
     385    {
     386      p.height = imgH;
    380387      p.top = (jQuery("html").get(0).clientHeight-p.height)/2;
    381     }
     388      jQuery("#theImgHighZoomButton").hide();
     389    }
     390       
     391        if ((p.width==imgW) && (p.height==imgH)) switchZoomHigh();
    382392  }
    383393  else
    384394  {
    385395    //zoom = 'fit'
    386     ratioImg = jQuery(document).data("highWidth") / jQuery(document).data("highHeight");
     396        ratioImg = imgW / imgH;
    387397    ratioPage = jQuery("html").get(0).clientWidth / jQuery("html").get(0).clientHeight;
    388398
     
    398408      p.height = p.width/ratioImg;
    399409    }
     410       
     411        if ((p.width > imgW) || (p.height > imgH)) {
     412                p.height = imgH;
     413                p.width = imgW;
     414                jQuery("#theImgHighZoomButton").hide();
     415        }
    400416    p.left = (jQuery("html").get(0).clientWidth-p.width)/2;
    401417    p.top = (jQuery("html").get(0).clientHeight-p.height)/2;
  • extensions/stripped/readme.txt

    r16914 r17407  
    3131Changelog
    3232---------
     33
     34*** version 2.2.7
     35
     36- bugfixes with multisize support
     37- improved compatibility with PWG Stuffs + RV Maps & Earth plugins
     38- languages updates
    3339
    3440*** version 2.2.6
  • extensions/stripped/theme.css

    r14450 r17407  
    13391339    left:240px;
    13401340        margin-bottom:15px;
    1341         margin-right:260px;
     1341        margin-right:270px;
    13421342}
    13431343
     
    14971497}
    14981498
     1499#content .stuffs_block  .wrap2 { height:130px!important;}
     1500#content .stuffs_block .wrap1 .wrap2full { height:160px!important;}
Note: See TracChangeset for help on using the changeset viewer.