Community Documentation

Customizing Smarty Themes

Last updated April 26, 2010. Created by wpd on June 6, 2006.
Edited by bekasu, esmerel, sepeck. Log in to edit this page.

Create a file in your theme directory named: smartytemplate.php.

<?php
 
function _smarty_variables($hook, $vars = array()) {
    switch (
$hook) {
      case
'page':
      if ((
arg(0) == 'admin')) {
       
$vars['template_file'] = 'admin';
      }
      break;
   }
   return
$vars;
  }
?>

References:

nobody click here