Changeset 29641


Ignore:
Timestamp:
Sep 19, 2014, 2:53:38 PM (10 years ago)
Author:
JanisV
Message:

Improve nav arrows

Location:
extensions/stripped_responsive
Files:
8 edited

Legend:

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

    r29453 r29641  
    2222        $config['imageCaption']=$_POST['f_imageCaption'];
    2323        $config['imageArrows']=isset($_POST['f_imageArrows']);
    24         $config['navArrows']=isset($_POST['f_navArrows']);
    2524        $config['HDlightbox']=($_POST['f_lightboxOptions'] != 'never');
    2625        $config['forceLightboxOn']=($_POST['f_lightboxOptions'] == 'always');
  • extensions/stripped_responsive/admin/admin.tpl

    r29453 r29641  
    5252                                        <span class="property">{'Use navigation arrows on picture'|@translate}</span>&nbsp;
    5353                                        <input type="checkbox" name="f_imageArrows" {if $options.imageArrows}checked{/if}>
    54                                 </label></li>
    55                                 <li><label>
    56                                         <span class="property">{'Use navigation arrows outside picture'|@translate}</span>&nbsp;
    57                                         <input type="checkbox" name="f_navArrows" {if $options.navArrows}checked{/if}>
    5854                                </label></li>
    5955                                <li><label>
  • extensions/stripped_responsive/admin/maintain.inc.php

    r29476 r29641  
    2121        'imageCaption'                                  => 'title',
    2222        'imageArrows'                                   => true,
    23         'navArrows'                                             => false,
    2423        'HDlightbox'                                    => true,
    2524        'forceLightboxOn'                               => false,
  • extensions/stripped_responsive/js/scripts-tpp.js

    r29449 r29641  
    177177                        if (options.themeStyle == 'original') {
    178178                                marge_inf = options.imageAutosizeMargin+10;     
    179                                 if (options.navArrows) marge_cote=20;
    180179                        } else {
    181180                                marge_inf = 30;
    182                                 if (options.navArrows) marge_cote=25;
    183181                        }
    184182                        var marge_spec = 0;
  • extensions/stripped_responsive/template/config.js.tpl

    r29449 r29641  
    1515        defaultZoomSize:"{$stripped_responsive.defaultZoomSize}",
    1616        highResClickMode:"{$stripped_responsive.highResClickMode}",
    17         navArrows:{if $stripped_responsive.navArrows}true{else}false{/if}
    1817{else}
    1918        animatedMenu:{if $stripped_responsive.animatedMenu}true{else}false{/if}
  • extensions/stripped_responsive/template/picture.tpl

    r29449 r29641  
    9999        <div id="theImageBox" >
    100100                <div class="hideTabsZone hideTabs">&nbsp;</div>
    101                 {if (isset($previous) && $stripped_responsive.navArrows) }
    102                         <a href="{$previous.U_IMG}" id="imgprev">&nbsp;</a>
    103                 {/if}
    104101                <div id="theImage">
    105102                        {$ELEMENT_CONTENT}
    106103                </div>
    107                 {if (isset($next) && $stripped_responsive.navArrows)}
    108                         <a href="{$next.U_IMG}" id="imgnext">&nbsp;</a>
    109                 {/if}
    110104        </div>
    111105        {if $showTitle }
  • extensions/stripped_responsive/template/slideshow.tpl

    r29449 r29641  
    4242                <div id="theImageAndTitle">
    4343                        <div id="theImageBox">
    44                                 {if (isset($previous) && $stripped_responsive.navArrows) }
    45                                         <a href="{$previous.U_IMG}" id="imgprev">&nbsp;</a>
    46                                 {/if}
    4744                                <div id="theImage">
    4845                                        {$ELEMENT_CONTENT}
    4946                                </div>
    50                 {if (isset($next) && $stripped_responsive.navArrows)}
    51                         <a href="{$next.U_IMG}" id="imgnext">&nbsp;</a>
    52                 {/if}
    5347                        </div>
    5448                        {if $showTitle }
  • extensions/stripped_responsive/theme.css

    r29639 r29641  
    835835.img_prev .img_nav_content {
    836836  background:url(icon/arrows.png) 0 0 no-repeat;
     837  margin-left: 5px;
    837838}
    838839.img_prev:hover .img_nav_content {
     
    842843  background:url(icon/arrows.png) -20px 0 no-repeat;
    843844  right: 0;
     845  margin-right: 5px;
    844846}
    845847.img_next:hover .img_nav_content {
Note: See TracChangeset for help on using the changeset viewer.