Changeset 30053


Ignore:
Timestamp:
Oct 14, 2014, 9:28:26 PM (10 years ago)
Author:
rvelices
Message:

modus improve display of image number on picture page + add fotorama template

Location:
extensions/modus
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/modus/css/picture.css.tpl

    r26836 r30053  
    1 
    2 #imageToolBar .imageNumber {
     1#imageHeaderBar .imageNumber {
     2/* moved by prefilter from imageToolBar*/
    33        float: right;
    4         margin:-28px 9px 0 0;
    54}
    65
  • extensions/modus/functions.inc.php

    r29569 r30053  
    4747        }
    4848
     49        /* move imageNumber from imageToolBar to imageHeaderBar*/
     50        if (preg_match('#<div[ a-zA-Z"=]+id="?imageHeaderBar"?>#', $source, $matches, PREG_OFFSET_CAPTURE)
     51                && preg_match('#<div class="?imageNumber"?>{\\$PHOTO}</div>#', $source, $matches2, PREG_OFFSET_CAPTURE, $matches[0][1]+20))
     52        {
     53                $source = substr_replace($source, '', $matches2[0][1], strlen($matches2[0][0]));
     54                $source = substr_replace($source, $matches2[0][0], $matches[0][1]+strlen($matches[0][0]),0);
     55        }
     56
    4957        if ( ($pos=strpos($source, '<ul class="categoryActions">'))!==false || ($pos=strpos($source, '<ul class=categoryActions>'))!==false){
    5058                if ( ($pos2=strpos($source, '</ul>', $pos))!==false
  • extensions/modus/themeconf.inc.php

    r29799 r30053  
    2626
    2727$this->assign('MODUS_CSS_VERSION', crc32(implode(',', array(
    28                 'a'.@$conf['modus_theme']['skin'],
     28                'd'.@$conf['modus_theme']['skin'],
    2929                @$conf['modus_theme']['album_thumb_size'],
    3030                ImageStdParams::get_by_type(IMG_SQUARE)->max_width(),
     
    402402                }
    403403
     404                /*$debug[]= "avsize ".implode(',', $available_size);
     405                $debug[]= "selsize ".implode(',', $selected_derivative->get_size());*/
     406
    404407                if ($available_size[2]>1 && $selected_derivative)
    405408                {
     
    415418                        else
    416419                                $display_size = array( round($size[0]/$available_size[2]), round($size[1]/$available_size[2]) );
     420
     421                        /*$debug[]= "dsize ".implode(',', $display_size);
     422                        $debug[]= "nsize ".implode(',', $size);*/
     423
    417424                        $template->assign( array(
    418425                                        'rvas_display_size' => $display_size,
     
    420427                                ));
    421428                }
     429                /*if (is_admin())
     430                $template->append('footer_elements', implode("\n", $debug));*/
    422431
    423432                if (isset($picture['next'])
Note: See TracChangeset for help on using the changeset viewer.