diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-07-17 16:10:29 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-07-17 16:10:29 +0000 |
| commit | b4da02a0df04e995a24e998d472f1052d498565b (patch) | |
| tree | d66bd0f74a5b856e159efb323c2cb985f3eb0ca6 /sidebar.php | |
| parent | 72cc34148c69d4aa6f14584d3268ea835b9ce739 (diff) | |
| download | webtrees-b4da02a0df04e995a24e998d472f1052d498565b.tar.gz webtrees-b4da02a0df04e995a24e998d472f1052d498565b.tar.bz2 webtrees-b4da02a0df04e995a24e998d472f1052d498565b.zip | |
Combine large and small icons - use CSS to downsize when small icons are required
Diffstat (limited to 'sidebar.php')
| -rw-r--r-- | sidebar.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sidebar.php b/sidebar.php index 48c57d63bc..6bc71e3d52 100644 --- a/sidebar.php +++ b/sidebar.php @@ -164,13 +164,13 @@ jQuery(document).ready(function() { // Sidebar Pin Function jQuery('#sidebar_pin').toggle( function() { - jQuery('#sidebar_pin img').attr('src', '<?php echo $WT_IMAGES['pin-in']['other'];?>').attr('title', '<?php echo i18n::translate('Unpin Sidebar');?>'); + jQuery('#sidebar_pin img').attr('src', '<?php echo $WT_IMAGES['pin-in'];?>').attr('title', '<?php echo i18n::translate('Unpin Sidebar');?>'); jQuery.get('individual.php?pid=<?php echo $controller->pid;?>&action=ajax&pin=true'); pinned = true; }, function() { - jQuery('#sidebar_pin img').attr('src', '<?php echo $WT_IMAGES['pin-out']['other'];?>').attr('title', '<?php echo i18n::translate('Pin Sidebar');?>'); + jQuery('#sidebar_pin img').attr('src', '<?php echo $WT_IMAGES['pin-out'];?>').attr('title', '<?php echo i18n::translate('Pin Sidebar');?>'); jQuery.get('individual.php?pid=<?php echo $controller->pid;?>&action=ajax&pin=false'); pinned = false; }); @@ -184,7 +184,7 @@ jQuery(document).ready(function() { // Sidebar Open/Close Function // Sidebar Open jQuery('#sidebar_open').toggle(function() { - jQuery('#sidebar_open img').attr('style', 'margin-left:255px;' ).attr('src', '<?php echo $WT_IMAGES['slide_close']['other'];?>').attr('title', '<?php echo i18n::translate('Sidebar Close');?>'); + jQuery('#sidebar_open img').attr('style', 'margin-left:255px;' ).attr('src', '<?php echo $WT_IMAGES['slide_close'];?>').attr('title', '<?php echo i18n::translate('Sidebar Close');?>'); jQuery('#sidebar').animate({ right: "0px", width: "260px" @@ -222,7 +222,7 @@ jQuery(document).ready(function() { // Sidebar Close }, function() { - jQuery('#sidebar_open img').attr('style', 'margin-left:0px;' ).attr('src', '<?php echo $WT_IMAGES['slide_open']['other'];?>').attr('title', '<?php echo i18n::translate('Sidebar Open');?>'); + jQuery('#sidebar_open img').attr('style', 'margin-left:0px;' ).attr('src', '<?php echo $WT_IMAGES['slide_open'];?>').attr('title', '<?php echo i18n::translate('Sidebar Open');?>'); jQuery('#sidebar').css('left', ''); jQuery('#sidebar').animate({ right: "4px", @@ -268,15 +268,15 @@ jQuery(document).ready(function() { if ( isset($_SESSION['WT_pin']) && $_SESSION['WT_pin'] && $sidebar_state == "open") { ?> <div id="sidebar_controls" class="ui-accordion-header ui-helper-reset ui-state-active ui-corner-top ui-state-focus"> - <a id="sidebar_open" href="#open"><img style="margin-left:0px;" src="<?php echo $WT_IMAGES['slide_close']['other'];?>" border="0" title="<?php echo i18n::translate('Sidebar Open');?>" alt="" /></a> - <a id="sidebar_pin" href="#pin"><img src="<?php echo $WT_IMAGES['pin-out']['other'];?>" border="0" title="<?php echo i18n::translate('Pin Sidebar');?>" alt="" /></a> + <a id="sidebar_open" href="#open"><img style="margin-left:0px;" src="<?php echo $WT_IMAGES['slide_close'];?>" border="0" title="<?php echo i18n::translate('Sidebar Open');?>" alt="" /></a> + <a id="sidebar_pin" href="#pin"><img src="<?php echo $WT_IMAGES['pin-out'];?>" border="0" title="<?php echo i18n::translate('Pin Sidebar');?>" alt="" /></a> </div> <?php } else { ?> <div id="sidebar_controls" class="ui-accordion-header ui-helper-reset ui-state-active ui-corner-top ui-state-focus"> - <a id="sidebar_open" href="#open"><img style="margin-left:0px;" src="<?php echo $WT_IMAGES['slide_open']['other'];?>" border="0" title="<?php echo i18n::translate('Sidebar Open');?>" alt="" /></a> - <a id="sidebar_pin" href="#pin"><img src="<?php echo $WT_IMAGES['pin-out']['other'];?>" border="0" title="<?php echo i18n::translate('Pin Sidebar');?>" alt="" /></a> + <a id="sidebar_open" href="#open"><img style="margin-left:0px;" src="<?php echo $WT_IMAGES['slide_open'];?>" border="0" title="<?php echo i18n::translate('Sidebar Open');?>" alt="" /></a> + <a id="sidebar_pin" href="#pin"><img src="<?php echo $WT_IMAGES['pin-out'];?>" border="0" title="<?php echo i18n::translate('Pin Sidebar');?>" alt="" /></a> </div> <?php } |
