1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-01 05:55:02 +03:00

доработка Jevix на предмет обязательных параметров + обязательный параметр wmode=opaque для embed

This commit is contained in:
Mzhelskiy Maxim 2009-04-04 11:38:30 +00:00
parent e735f09678
commit 0faa2c670d
2 changed files with 1227 additions and 1218 deletions

File diff suppressed because it is too large Load diff

View file

@ -59,7 +59,7 @@ class LsText extends Module {
$this->oJevix->cfgAllowTagParams('cut', array('name'));
$this->oJevix->cfgAllowTagParams('object', array('width' => '#int', 'height' => '#int', 'data' => '#link'));
$this->oJevix->cfgAllowTagParams('param', array('name' => '#text', 'value' => '#text'));
$this->oJevix->cfgAllowTagParams('embed', array('src' => '#image', 'type' => '#text','allowscriptaccess' => '#text', 'allowfullscreen' => '#text','width' => '#int', 'height' => '#int', 'flashvars'=> '#text'));
$this->oJevix->cfgAllowTagParams('embed', array('src' => '#image', 'type' => '#text','allowscriptaccess' => '#text', 'allowfullscreen' => '#text','width' => '#int', 'height' => '#int', 'flashvars'=> '#text', 'wmode'=> '#text'));
// Параметры тегов являющиеся обязательными
$this->oJevix->cfgSetTagParamsRequired('img', 'src');
$this->oJevix->cfgSetTagParamsRequired('a', 'href');
@ -72,6 +72,8 @@ class LsText extends Module {
$this->oJevix->cfgSetTagChilds('object', 'embed', false, false);
// Если нужно оставлять пустые не короткие теги
$this->oJevix->cfgSetTagIsEmpty(array('param','embed'));
// Теги с обязательными параметрами
$this->oJevix->cfgSetTagParamsAutoAdd('embed',array(array('name'=>'wmode','value'=>'opaque','rewrite'=>true)));
// Отключение авто-добавления <br>
//$this->oJevix->cfgSetAutoBrMode(false);
// Автозамена