Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_modules / postcalendar [ view in CVS ]
| Date | Directory [filter] | File(s) [view] | Author [filter] |
| 02 Oct 2002 21:15:13 | postnuke_modules/postcalendar | pcSmarty.class.php,NONE,1.1 | Roger Raymond |
| smarty subclass | |||
Update of /home/cvsroot/postnuke_modules/postcalendar
In directory ns7.hostnuke.net:/tmp/cvs-serv3344
Added Files:
pcSmarty.class.php
Log Message:
smarty subclass
--- NEW FILE: pcSmarty.class.php ---
<?php
class pcSmarty extends Smarty
{
function pcSmarty()
{
pnThemeLoad(pnUserGetTheme());
global $bgcolor1,$bgcolor2,$bgcolor3,$bgcolor4,$bgcolor5,$bgcolor6,$textcolor1,$textcolor2;
// call constructor
$this->Smarty();
// gather module information
$pcModInfo = pnModGetInfo(pnModGetIDFromName('PostCalendar'));
$pcDir = pnVarPrepForOS($pcModInfo['directory']);
// setup up pcSmarty configs
$this->template_dir = "modules/$pcDir/pntemplates";
$this->compile_dir = "modules/$pcDir/pntemplates/compiled";
$this->left_delimiter = '[-';
$this->right_delimiter = '-]';
$this->caching = false;
$this->cache_dir = "modules/$pcDir/pntemplates/cache";
$this->cache_lifetime = 60*60*24*1; // 1 day
// check for safe mode and set accordingly
if(ini_get('safe_mode') > 0) {
$this->use_sub_dirs = false;
} else {
$this->use_sub_dirs = true;
}
// register postcalendar custom functions
$this->register_function('pc_date_format','postcalendar_smarty_pcDateFormat');
$this->register_function('pc_event_url','postcalendar_smarty_pcEventURL');
$this->register_function('pc_date_select','postcalendar_smarty_pcDateSelect');
$this->register_function('pc_url','postcalendar_smarty_pcURL');
$this->register_modifier('pc_date_format','postcalendar_smarty_pc_date_format');
// assign theme globals
$this->assign('BGCOLOR1', $bgcolor1);
$this->assign('BGCOLOR2', $bgcolor2);
$this->assign('BGCOLOR3', $bgcolor3);
$this->assign('BGCOLOR4', $bgcolor4);
$this->assign('BGCOLOR5', $bgcolor5);
$this->assign('BGCOLOR6', $bgcolor6);
$this->assign('TEXTCOLOR1', $textcolor1);
$this->assign('TEXTCOLOR2', $textcolor2);
$this->assign('USER_LANG', pnUserGetLang());
}
}
?>
View Statistics - Next Notice - Previous Notice
| Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |