Ignore:
Timestamp:
Dec 30, 2010, 8:47:17 PM (14 years ago)
Author:
rvelices
Message:

index.tpl and thumbnails change: category description above thumbs and enclosing ul moved to index.tpl
fix some combine_xxx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/template.class.php

    r8378 r8401  
    429429          $css = array_merge($css, $files);
    430430      }
    431      
     431
    432432      $content = array();
    433433      foreach( $css as $file_ver )
     
    598598      if (count($this->scriptLoader->inline_scripts))
    599599      {
    600         $content[]= '<script type="text/javascript">//<![CDATA[ 
     600        $content[]= '<script type="text/javascript">//<![CDATA[
    601601';
    602602        $content = array_merge($content, $this->scriptLoader->inline_scripts);
     
    979979      }
    980980    }
     981
    981982    foreach( array_keys($todo) as $id )
    982983    {
     
    10201021    return $results;
    10211022  }
    1022  
     1023
    10231024  // checks that if B depends on A, then B->load_mode >= A->load_mode in order to respect execution order
    10241025  private static function check_load_dep($scripts)
     
    10421043            $changed = true;
    10431044          }
    1044           if ($load==2 && $scripts[$precedent]->load_mode==2 && ($script->is_remote() or !$conf['template_combine_files']) )
     1045          if ($load==2 && $scripts[$precedent]->load_mode==2 && ($scripts[$precedent]->is_remote() or !$conf['template_combine_files']) )
    10451046          {// we are async -> a predecessor cannot be async unlesss it can be merged; otherwise script execution order is not guaranteed
    10461047            $scripts[$precedent]->load_mode = 1;
     
    11591160    global $conf;
    11601161    $key = array();
    1161     if ($is_css) 
     1162    if ($is_css)
    11621163      $key[] = get_absolute_root_url(false);//because we modify bg url
    11631164    for ($i=0; $i<count($this->files); $i++)
     
    11711172    $file = base_convert(crc32($key),10,36);
    11721173    $file = self::OUT_SUB_DIR . $file . '.' . $this->type;
    1173    
     1174
    11741175    $exists = file_exists( PHPWG_ROOT_PATH . $file );
    11751176    if ($exists)
     
    12211222    return $js;
    12221223  }
    1223  
     1224
    12241225  private static function process_css($file)
    12251226  {
     
    12271228    require_once(PHPWG_ROOT_PATH.'include/cssmin.class.php');
    12281229    $css = CssMin::minify($css, array('emulate-css3-variables'=>false));
    1229                 $css = trigger_event('combined_css_postfilter', $css);
     1230    $css = trigger_event('combined_css_postfilter', $css);
    12301231    return $css;
    12311232  }
    1232  
     1233
    12331234  private static function process_css_rec($file)
    12341235  {
     
    12441245          $relative = dirname($file) . "/$match[1]";
    12451246          $search[] = $match[0];
    1246           $replace[] = 'url('.embellish_url(get_absolute_root_url(false)).$relative.')';
     1247          $replace[] = 'url('.embellish_url(get_absolute_root_url(false).$relative).')';
    12471248        }
    12481249      }
Note: See TracChangeset for help on using the changeset viewer.