/** * Inserts an url relative to the skindir (useful when doing import/export) * * e.g. <skinfile(default/myfile.sth)> */ function parse_skinfile($filename) { global $CONF; echo $CONF['SkinsURL'] . PARSER::getProperty('IncludePrefix') . $filename; }
/** * Parse skinvar nucleusbutton */ function parse_nucleusbutton($imgurl = '', $imgwidth = '85', $imgheight = '31') { global $CONF; if ($imgurl == '') { $imgurl = $CONF['AdminURL'] . 'nucleus.gif'; } else { if (PARSER::getProperty('IncludeMode') == 'skindir') { // when skindit IncludeMode is used: start from skindir $imgurl = $CONF['SkinsURL'] . PARSER::getProperty('IncludePrefix') . $imgurl; } } $this->formdata = array('imgurl' => $imgurl, 'imgwidth' => $imgwidth, 'imgheight' => $imgheight); $this->doForm('nucleusbutton'); }