Changeset 29476


Ignore:
Timestamp:
Sep 11, 2014, 10:11:42 AM (10 years ago)
Author:
JanisV
Message:

Updated picture navigation

Location:
extensions/stripped_responsive
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped_responsive/admin/maintain.inc.php

    r29453 r29476  
    2020        'imageFrame'                                    => true,
    2121        'imageCaption'                                  => 'title',
    22         'imageArrows'                                   => false,
    23         'navArrows'                                             => true,
     22        'imageArrows'                                   => true,
     23        'navArrows'                                             => false,
    2424        'HDlightbox'                                    => true,
    2525        'forceLightboxOn'                               => false,
     
    3131        'albumSize'                                             => "thumb",
    3232        'thumbSize'                                             => "thumb",
    33         'imageSize'                                             => "medium",
     33        'imageSize'                                             => "large",
    3434        'hdSize'                                                => "xxlarge",
    3535       
    3636        'imageAutosize'                                 => true,
    37         'imageAutosizeMargin'                   => 60,
     37        'imageAutosizeMargin'                   => 40,
    3838        'imageAutosizeMinHeight'                => 200,
    3939
  • extensions/stripped_responsive/template/picture_content.tpl

    r29449 r29476  
    4242{/if}
    4343
     44{if ($stripped_responsive.imageArrows) }
     45    {if isset($previous)}
     46        <a href="{$previous.U_IMG}" class="img_nav img_prev" alt="{$previous.TITLE}"><span class="img_nav_content">&nbsp;</span></a>
     47    {/if}
     48{/if}
    4449<div id="theImg" {if ($stripped_responsive.imageFrame)}class="img_frame"{/if}>
    4550        {if isset($displayHD)}
     
    4853                {if ($stripped_responsive.imagePreloadHD)}<div class="preload" style="display:none;">{$HD_url}</div>{/if}
    4954        {/if}
    50         {if ($stripped_responsive.imageArrows) }
    51                 {if isset($U_UP)}
    52                         <a href="{$U_UP}" class="img_nav cat_up" alt="{'Thumbnails'|@translate}">&nbsp;</a>
    53                 {/if}
    54                 {if isset($previous)}
    55                         <a href="{$previous.U_IMG}" class="img_nav img_prev" alt="{$previous.TITLE}">&nbsp;</a>
    56                 {/if}
    57                 {if isset($next)}
    58                         <a href="{$next.U_IMG}" class="img_nav img_next" alt="{$next.TITLE}">&nbsp;</a>
    59                 {/if}
    60         {/if}
    6155        <img src="{$derivative->get_url()}" {$derivative->get_size_htm()} alt="{$ALT_IMG}" id="theMainImage" class="hideTabs">
    6256</div>
     57{if ($stripped_responsive.imageArrows) }
     58    {if isset($next)}
     59        <a href="{$next.U_IMG}" class="img_nav img_next" alt="{$next.TITLE}"><span class="img_nav_content">&nbsp;</span></a>
     60    {/if}
     61{/if}
  • extensions/stripped_responsive/theme.css

    r29459 r29476  
    799799        position:absolute;
    800800        height:100%;
    801         width:25%;
    802801        top:0;
    803802        display:block;
    804 }
    805 
    806 .img_prev               { background:transparent url(icon/none.png) no-repeat left center;}
    807 .img_prev:hover         { background:transparent url(icon/img_prev.png) no-repeat left center;}
    808 .img_next               { background:transparent url(icon/none.png) no-repeat right center;}
    809 .img_next:hover         { background:transparent url(icon/img_next.png) no-repeat right center;}
     803    z-index: 101;
     804}
     805.img_prev               { width:40%; }
     806.img_next               { width:60%; }
     807
     808.img_nav_content {
     809  width: 20px;
     810  height: 150px;
     811  display: block;
     812  top: 50%;
     813  margin-top: -75px;
     814  position: absolute;
     815}
     816.img_prev .img_nav_content {
     817  background:url(icon/arrows.png) 0 0 no-repeat;
     818}
     819.img_prev:hover .img_nav_content {
     820  background:url(icon/arrows.png) 0 -150px no-repeat;
     821}
     822.img_next .img_nav_content {
     823  background:url(icon/arrows.png) -20px 0 no-repeat;
     824  right: 0;
     825}
     826.img_next:hover .img_nav_content {
     827  background:url(icon/arrows.png) -20px -150px no-repeat;
     828}
    810829
    811830.hd_link {
Note: See TracChangeset for help on using the changeset viewer.