Changeset 8506


Ignore:
Timestamp:
Jan 7, 2011, 8:57:07 PM (10 years ago)
Author:
rvelices
Message:

added some comments

File:
1 edited

Legend:

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

    r8449 r8506  
    549549  }
    550550
     551  /**
     552    * combine_script smarty function allows inclusion of a javascript file in the current page.
     553    * The engine will combine several js files into a single one in order to reduce the number of
     554    * required http requests.
     555    * param id - required
     556    * param path - required - the path to js file RELATIVE to piwigo root dir
     557    * param load - optional - header|footer|async, default header
     558    * param require - optional - comma separated list of script ids required to be loaded and executed
     559        before this one
     560    * param version - optional - plugins could use this and change it in order to force a
     561        browser refresh
     562    */
    551563  function func_combine_script($params, &$smarty)
    552564  {
     
    653665  }
    654666
     667  /**
     668    * combine_css smarty function allows inclusion of a css stylesheet file in the current page.
     669    * The engine will combine several css files into a single one in order to reduce the number of
     670    * required http requests.
     671    * param path - required - the path to css file RELATIVE to piwigo root dir
     672    * param version - optional - plugins could use this and change it in order to force a
     673        browser refresh
     674    */
    655675  function func_combine_css($params, &$smarty)
    656676  {
     
    900920    $this->did_head = false;
    901921  }
    902        
    903         function get_all()
    904         {
    905                 return $this->registered_scripts;
    906         }
     922
     923  function get_all()
     924  {
     925    return $this->registered_scripts;
     926  }
    907927
    908928  function add_inline($code, $require)
     
    11991219    }
    12001220
    1201     $output = "/* ".join("\n", $this->files)."*/\n";
     1221    $output = '';
    12021222    foreach ($this->files as $input_file)
    12031223    {
    1204       $output .= "/* BEGIN $input_file */\n";
     1224      $output .= "/*BEGIN $input_file */\n";
    12051225      if ($is_css)
    12061226        $output .= self::process_css($input_file);
Note: See TracChangeset for help on using the changeset viewer.