Changeset 967
- Timestamp:
- 07/10/10 11:21:51 (2 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
engine/modules/text/Text.class.php (modified) (4 diffs)
-
templates/skin/developer/topic.tpl (modified) (1 diff)
-
templates/skin/new/topic_list.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/engine/modules/text/Text.class.php
r952 r967 57 57 // Разрешённые параметры тегов 58 58 $this->oJevix->cfgAllowTagParams('img', array('src', 'alt' => '#text', 'title', 'align' => array('right', 'left', 'center'), 'width' => '#int', 'height' => '#int', 'hspace' => '#int', 'vspace' => '#int')); 59 $this->oJevix->cfgAllowTagParams('a', array('title', 'href', 'rel' ));59 $this->oJevix->cfgAllowTagParams('a', array('title', 'href', 'rel' => '#text', 'name' => '#text')); 60 60 $this->oJevix->cfgAllowTagParams('cut', array('name')); 61 61 $this->oJevix->cfgAllowTagParams('object', array('width' => '#int', 'height' => '#int', 'data' => '#link', 'type' => '#text')); … … 64 64 // Параметры тегов являющиеся обязательными 65 65 $this->oJevix->cfgSetTagParamsRequired('img', 'src'); 66 $this->oJevix->cfgSetTagParamsRequired('a', 'href');66 //$this->oJevix->cfgSetTagParamsRequired('a', 'href'); 67 67 // Теги которые необходимо вырезать из текста вместе с контентом 68 68 $this->oJevix->cfgSetTagCutWithContent(array('script', 'iframe', 'style')); … … 73 73 $this->oJevix->cfgSetTagChilds('object', 'embed', false, false); 74 74 // Если нужно оставлять пустые не короткие теги 75 $this->oJevix->cfgSetTagIsEmpty(array('param','embed' ));75 $this->oJevix->cfgSetTagIsEmpty(array('param','embed','a')); 76 76 // Не нужна авто-расстановка <br> 77 77 $this->oJevix->cfgSetTagNoAutoBr(array('ul','ol','object')); … … 205 205 $aMatch[3]=str_replace('[<n>]',"\r\n",$aMatch[3]); 206 206 $sTextShort=$aMatch[1]; 207 $sTextNew=$aMatch[1].' '.$aMatch[3];207 $sTextNew=$aMatch[1].' <a name="cut"></a> '.$aMatch[3]; 208 208 if (preg_match('/^\s*name\s*=\s*"(.+)"\s*\/?$/Ui',$aMatch[2],$aMatchCut)) { 209 209 $sTextCut=trim($aMatchCut[1]); -
trunk/templates/skin/developer/topic.tpl
r957 r967 49 49 {$oTopic->getTextShort()} 50 50 {if $oTopic->getTextShort()!=$oTopic->getText()} 51 <a href="{$oTopic->getUrl()} " title="{$aLang.topic_read_more}">51 <a href="{$oTopic->getUrl()}#cut" title="{$aLang.topic_read_more}"> 52 52 {if $oTopic->getCutText()} 53 53 {$oTopic->getCutText()} -
trunk/templates/skin/new/topic_list.tpl
r937 r967 54 54 {$oTopic->getTextShort()} 55 55 {if $oTopic->getTextShort()!=$oTopic->getText()} 56 <br><br>( <a href="{$oTopic->getUrl()} " title="{$aLang.topic_read_more}">56 <br><br>( <a href="{$oTopic->getUrl()}#cut" title="{$aLang.topic_read_more}"> 57 57 {if $oTopic->getCutText()} 58 58 {$oTopic->getCutText()}
