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

Enhancement for the plugin development:

o Add footer block
o Add useful triggers on template object

Merge branch-1_7 2034:2035 into BSF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/template.php

    r1900 r2036  
    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;
Note: See TracChangeset for help on using the changeset viewer.