1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

Improved bbcode styling

This commit is contained in:
CaMer0n
2012-05-22 07:30:38 +00:00
parent 9cf35b1754
commit 4855187c67

View File

@@ -30,6 +30,7 @@ class e_bbcode
var $bbLocation; // Location for each file - 'core' or a plugin name
var $preProcess = FALSE; // Set when processing bbcodes prior to saving
var $core_bb = array();
var $class = FALSE;
function __construct()
{
@@ -419,6 +420,28 @@ class e_bbcode
return $ret;
}
//Set the class type for a bbcode eg. news | page | user | {plugin-folder}
function setClass($mode=false)
{
$this->class = $mode;
}
// return the class for a bbcode
function getClass($type='')
{
$ret = "bbcode-".$type;
if($this->class)
{
$ret .= " bbcode-".$type."-".$this->class;
}
return $ret;
}
function clearClass()
{
$this->setClass();
}
}