mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Improved bbcode styling
This commit is contained in:
@@ -30,6 +30,7 @@ class e_bbcode
|
|||||||
var $bbLocation; // Location for each file - 'core' or a plugin name
|
var $bbLocation; // Location for each file - 'core' or a plugin name
|
||||||
var $preProcess = FALSE; // Set when processing bbcodes prior to saving
|
var $preProcess = FALSE; // Set when processing bbcodes prior to saving
|
||||||
var $core_bb = array();
|
var $core_bb = array();
|
||||||
|
var $class = FALSE;
|
||||||
|
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
@@ -419,6 +420,28 @@ class e_bbcode
|
|||||||
|
|
||||||
return $ret;
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user