Changeset 2035


Ignore:
Timestamp:
Jun 13, 2007, 7:14:54 AM (17 years ago)
Author:
rub
Message:

Enhancement for the plugin development:

o Add footer block
o Add useful triggers on template object

Location:
branches/branch-1_7
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_7/include/template.php

    r1900 r2035  
    116116  function set_filenames($filename_array)
    117117    {
     118      $filename_array = trigger_event('loc_tpl_set_filenames', $filename_array, array(&$this));
     119
    118120      if (!is_array($filename_array))
    119121      {
     
    154156      if (!isset($this->compiled_code[$handle]) || empty($this->compiled_code[$handle]))
    155157      {
     158        trigger_action('loc_before_tpl_pparse', $handle, array(&$this));
    156159        // Actually compile the code now.
    157160        $this->compiled_code[$handle] = $this->compile($this->uncompiled_code[$handle]);
     
    177180      if (!isset($this->compiled_code[$handle]) || empty($this->compiled_code[$handle]))
    178181      {
     182        trigger_action('loc_before_tpl_parse', $handle, array(&$this));
    179183        // Actually compile the code now.
    180184        $this->compiled_code[$handle] = $this->compile($this->uncompiled_code[$handle], true, '_str');
     
    216220      }
    217221
     222      trigger_action('loc_before_tpl_assign_var_from_handle', $handle, array(&$this));
    218223      // Compile it, with the "no echo statements" option on.
    219224      $_str = "";
     
    395400      }
    396401
    397       $this->uncompiled_code[$handle] = $str;
     402      $this->uncompiled_code[$handle] = trigger_event('tpl_load_file', $str, $handle, array(&$this));
    398403
    399404      return true;
  • branches/branch-1_7/plugins

    • Property svn:ignore
      •  

        old new  
        11text_integrator
         2my_phpwebheader
         3personal
  • branches/branch-1_7/template/yoga/footer.tpl

    r1900 r2035  
    1919
    2020</div> <!-- copyright -->
     21<!-- BEGIN footer_element -->
     22{footer_element.CONTENT}
     23<!-- END footer_element -->
    2124</div> <!-- the_page -->
    2225
Note: See TracChangeset for help on using the changeset viewer.