Changeset 841 in ExiteCMS for trunk/includes/theme_functions.php


Ignore:
Timestamp:
09/26/07 16:21:28 (5 years ago)
Author:
hverton
Message:

fixed ticket #5: panel preview doesn't work
added new images for the Gallery module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/theme_functions.php

    r834 r841  
    5454// Register the panel template resource 
    5555$template->register_resource('panel', array('resource_panel_source', 'resource_panel_timestamp', 'resource_panel_secure', 'resource_panel_trusted')); 
     56 
     57// Register the string template resource 
     58$template->register_resource('string', array('resource_string_source', 'resource_string_timestamp', 'resource_string_secure', 'resource_string_trusted')); 
    5659 
    5760// Array to store panels 
     
    382385    // not used for templates 
    383386} 
     387 
     388/*-----------------------------------------------------+ 
     389| resource_string - Smarty string resource callbacks   | 
     390+-----------------------------------------------------*/ 
     391function resource_string_source($tpl_name, &$tpl_source, &$smarty) { 
     392 
     393    $tpl_source = $tpl_name; 
     394    return true; 
     395} 
     396 
     397function resource_string_timestamp($tpl_name, &$tpl_timestamp, &$smarty) { 
     398 
     399    $tpl_timestamp = time(); 
     400    return true; 
     401} 
     402 
     403function resource_string_secure($tpl_name, &$smarty) { 
     404 
     405    // assume all templates are secure 
     406    return true; 
     407} 
     408 
     409function resource_string_trusted($tpl_name, &$smarty) { 
     410 
     411    // not used for templates 
     412} 
    384413?> 
Note: See TracChangeset for help on using the changeset viewer.