The page you are looking at now is at this URL: http://pastoid.com/bf4
This paste was last updated on November 17, 2008 at 3:35 pm.
// Catch tags in the format {hi:command:parameter}
if(preg_match('%^(\w+):(.+)$%', $cmd, $cmd_matches)) {
switch(strtolower($cmd_matches[1])) {
case 'display':
return '<?php $theme->display(\'' . $cmd_matches[2] . '\'); ?>';
case 'option':
case 'options':
return '<?php Options::out(\'' . $cmd_matches[2] . '\'); ?>';
case 'siteurl':
return '<?php Site::out_url( \'' . $cmd_matches[2] . '\' ); ?>';
case 'url':
return '<?php URL::out( \'' . $cmd_matches[2] . '\' ); ?>';
case 'session':
switch($cmd_matches[2]) {
case 'messages':
return '<?php if(Session::has_messages()){Session::messages_out();} ?>';
case 'errors':
return '<?php if(Session::has_errors()){Session::messages_out();} ?>';
}
}
}
Tip: Use Pastoid to shorten URLs with this bookmarklet: Pastoid This