aboutsummaryrefslogtreecommitdiff
path: root/includes/functions.php
diff options
context:
space:
mode:
authorjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2010-01-26 21:52:17 -0500
committerjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2010-01-26 21:52:17 -0500
commita0701d581dfa39113c1af68637118d99d5a0822a (patch)
tree17858862321c09316dbbeb9038695a8815406e2a /includes/functions.php
parent6d28ed7cd510621e571da1d5a20848d58d079f53 (diff)
downloadbayonetcms-a0701d581dfa39113c1af68637118d99d5a0822a.tar.gz
commit just prior to some pure insanity.
implementing theme system git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@463 c5b2fb0a-d05d-0410-98c8-828840a80ff6
Diffstat (limited to 'includes/functions.php')
-rw-r--r--includes/functions.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/includes/functions.php b/includes/functions.php
index 09fc456..3f1c3d2 100644
--- a/includes/functions.php
+++ b/includes/functions.php
@@ -54,7 +54,8 @@ function bbcode_format ($str)
'/\[img\=(.*?)\](.*?)\[\/img\]/is',
'/\[img align\=(.+?)\](.+?)\[\/img\]/is',
'/\[mail\](.*?)\[\/mail\]/is',
- '/\[mail\=(.*?)\](.*?)\[\/mail\]/is'
+ '/\[mail\=(.*?)\](.*?)\[\/mail\]/is',
+ '/\[list\](.*?)\[\/list\]/is'
);
$simple_replace = array(
@@ -77,10 +78,10 @@ function bbcode_format ($str)
'<img src="$1" alt="$2"/>',
'<img src=\"$2\" align=\"$1\" />',
'<a href="mailto:$1">$1</a>',
- '<a href="mailto:$1">$2</a>'
+ '<a href="mailto:$1">$2</a>',
+ '<li style="list-style-position: inside; padding:10px">$1</li>'
);
-
$str = preg_replace ($simple_search, $simple_replace, $str);
$str = nl2br($str);
return $str;
@@ -313,7 +314,7 @@ if(!defined("CALLED_FROM_ADMIN"))
function OpenTable($width = "100%")
{
//width="100%" is important. Otherwise all of our tables will be text width.
- echo "<table width=\"{$width}\" align=\"center\" class=\"cleartable\">\n";
+ echo "<table width=\"{$width}\" align=\"center\">\n";
}
/**