version 1.1, 2010/02/28 20:17:33
|
version 1.2, 2010/03/08 16:19:22
|
Line 25 class DbField {
|
Line 25 class DbField {
|
} |
} |
|
|
public function formatHtml() { |
public function formatHtml() { |
|
$this->html = preg_replace('/\[Раздаточный материал:(.*?)\]\s*\n/sm', |
|
"<div class=\"razdatka\"><div class=\"razdatka_header\">Раздаточный материал</div> \\1</div>\n", |
|
$this->html ); |
|
$this->html = preg_replace('/^\s*<раздатка>(.*?)<\/раздатка>/sm', |
|
"<div class=\"razdatka\"><div class=\"razdatka_header\">Раздаточный материал</div> \\1</div>\n", |
|
$this->html ); |
|
|
$this->html = preg_replace('/^\s+/m', "<br>\n ", $this->html); |
$this->html = preg_replace('/^\s+/m', "<br>\n ", $this->html); |
|
|
if (!preg_match('/^\|/m')) { |
if (!preg_match('/^\|/m',$this->html)) { |
$this->html = preg_replace('/\s+\–/m',' \–', $this->html); |
$this->html = preg_replace('/\s+\–/m',' \–', $this->html); |
} |
} |
|
|
$this->html = preg_replace('/\(pic: ([^\)]*)\)/','<p><img src="/images/db/$1"></p>', $this->html); |
$this->html = preg_replace('/\(pic: ([^\)]*)\)/','<p><img src="/images/db/$1"></p>', $this->html); |
|
|
|
|
} |
} |
|
|
public function getName() { |
public function getName() { |