вопрос
Здравствуйте, хотелось бы уточнить как убрать картинку в краткой новости на DLE 10.1 она слева от текста.
Нужно сделать по стандарту! Спасибо за ранние.
Вот shortstory.tpl
Вот css
Нужно сделать по стандарту! Спасибо за ранние.
Вот shortstory.tpl
<article class="story">
<div class="story_r">
<div class="story_c">
<div class="story_l lcol">
<div class="story_l_c">
<span class="story_img">[url={image-1}][img=|{title}]{image-1}[/img][/url]</span>
[not-group=5]<ul class="cmoder">
<li>{favorites}</li>
<li class="edit">[edit]Редактировать[/edit]</li>
</ul>[/not-group]
[fixed]<span class="fix" title="Новость зафиксирована Администратором"></span>[/fixed]
</div>
</div>
<div class="story_h">
<div class="lcols">
[full-link] <h1>{title}</h1>[/full-link]
</div>
<!--[rating]
<div class="rcols">
<div class="orating" id="orating-{news-id}">
<div class="opating_btn">
[url=#\" class=]</a>
<a href="#" class="orating_m" title="">[/url]
</div>
<div class="orating_num">
[url=#\" class=]{rate-val}[/url]
</div>
</div>
</div>[/rating]-->
[rating]<div class="orating" id="orating-{news-id}">
[url=#\" class=]</a>
<a href="#" class="orating_p" title="Нравится">[/url]
[url=#\" class=]{rate-val}[/url]
</div>[/rating]
</div>
<div class="story_inf">
Категория: [b]{category}[/b]
<span class="sep"></span>
Добавил: [b]{author}[/b]
<span class="sep"></span>
Дата: [b]{date}[/b]
</div>
<div class="f_link rcol">{include file="engine/modules/statnew.php?datenews={date=Ymd}"}</div>
{short-story limit="400"}
<div class="clr"></div>
</div>
</div>
<div class="clr"></div>
<div class="story_b">
<div class="lcol">
[tags]<span class="tags">
Теги: {tags}
</span>[/tags]
<span class="inf">
Комментариев: [b]{comments-num}[/b]
<span class="sep"></span>
Просмотров: [b]{views}[/b]
<span class="sep"></span>
{include file="engine/modules/thanks.php?news_id={news-id}&allow=[xfvalue_thanks]&short=1"}
</span>
</div>
<div class="f_link rcol">[full-link]<span>Читать дальше</span>[/full-link]</div>
</div>
</article>
Вот css
/*---article---*/
.story {
padding: 7px 0 0 0;
}
.story_l {
margin: 0 5px 0 1px;
width: 169px;
height: 173px;
padding: 5px 5px;
background: url("../images/poster_bg.png") no-repeat;
}
.story_l_c {
width: 169px;
height: 168px;
}
.story_l_c span.story_img img {
width: 169px;
height: 168px;
}
.story_l_c span.fix {
background: url("../images/fixed.png") no-repeat;
height: 49px;
width: 50px;
position: absolute;
top: 0;
left: -1px;
}
.cmoder {
float: right;
}
.cmoder li {
float: left;
padding: 2px 2px;
margin: 0 2px;
}
.cmoder li a {
-moz-transition: none;
-webkit-transition: none;
-o-transition: none;
transition: none;
-webkit-box-shadow: 0px 0px 0px 2px rgba(0, 0, 0, 0.12);
-moz-box-shadow: 0px 0px 0px 2px rgba(0, 0, 0, 0.12);
box-shadow: 0px 0px 0px 2px rgba(0, 0, 0, 0.12);
width: 19px;
height: 19px;
}
.cmoder li a img {
height: 19px;
}
.cmoder li.warn a {
background: url("../images/moder_ico.png") no-repeat -19px 0;
}
.cmoder li.warn a:hover {
background-position: -19px -19px;
}
.cmoder li.edit a {
background: url("../images/moder_ico.png") no-repeat -38px 0;
}
.cmoder li.edit a:hover {
background-position: -38px -19px;
}
.story_r {
margin: 0 6px;
}
.story_h {
padding: 4px 0 5px 2px;
line-height: 100%;
background: url("../images/sep_26.png") repeat-x center bottom;
}
.story_h .lcols {
padding: 1px 0 5px 0;
float: left;
}
.story_h .rcols {
float: right;
margin: 0 0 0 0;
font-size: 13px;
}
.story_h .rcols a {
color: #fff;
}
.story_h .lcols h1 {
line-height: 100%;
font-size: 15px;
color: #4d6588;
font-weight: normal;
padding: 0 0 0 13px;
background: url("../images/arrow_24.png") no-repeat left 4px;
}
.story_h .lcols h1 a {
color: #4d6588;
}
.story_h .lcols h1 a:hover {
color: #ab3636;
}
.story_inf {
height: 22px;
padding: 4px 4px;
margin: 0 0 3px 0;
color: #4d6588;
background: url("../images/sep_25.png") repeat-x center bottom;
}
.story_inf b {
font-weight: normal;
color: #757575;
}
.story_inf span.sep {
width: 1px;
background: #e8e8e8;
height: 13px;
margin: 0 8px;
vertical-align: middle;
}
.story_c {
font-size: 13px;
color: #7d7d7d;
line-height: 16px;
margin: 0 0 9px 0;
}
.story_c a {
color: #7d7d7d;
}
.story_b {
height: 44px;
background: url("../images/sep_24.png") repeat-x;
}
.story_b .lcol {
padding: 9px 0 0 7px;
font-size: 12px;
}
.story_b .lcol span.tags {
color: #5b5b5b;
text-shadow: 0 1px 0 rgba(255,255,255,0.75);
background: #ecebeb;
margin: 0 8px 0 0;
padding: 1px 7px;
max-width: 300px;
height: 18px;
}
.story_b .lcol span.tags a {
color: #5b5b5b;
}
.story_b .lcol span.inf {
color: #4d6588;
line-height: 19px;
}
.story_b .lcol span.inf b {
font-weight: normal;
color: #757575;
}
.story_b .lcol span.sep {
width: 1px;
background: #e8e8e8;
height: 13px;
margin: 0 7px;
vertical-align: middle;
}
.story_b .f_link {
margin: 7px 10px 0 0;
}
.story_b .f_link a span {
background: url("../images/arrow_27.png") no-repeat 6px 9px;
padding: 1px 10px 3px 20px;
}
.story.full .story_b .f_link a span {
background: url("../images/arrow_28.png") no-repeat 6px 9px;
padding: 1px 10px 3px 20px;
}
Ответил: fh79655l123
<article class="story">
<div class="story_r">
<div class="story_c">
[not-group=5]<ul class="cmoder">
<li>{favorites}</li>
<li class="edit">[edit]Редактировать[/edit]</li>
</ul>[/not-group]
[fixed]<span class="fix" title="Новость зафиксирована Администратором"></span>[/fixed]
<div class="story_h">
<div class="lcols">
[full-link] <h1>{title}</h1>[/full-link]
</div>
[rating]<div class="orating" id="orating-{news-id}">
<a href="#" class="orating_m" title="Не нравится" onclick="orating({news-id},0);return false;"></a>
<a href="#" class="orating_p" title="Нравится" onclick="orating({news-id},1);return false;"></a>
<a href="#" class="orating_res" onclick="ostats({news-id},1,true);return false;">{rate-val}</a>
</div>[/rating]
</div>
<div class="story_inf">
Категория: <b>{category}</b>
<span class="sep"></span>
Добавил: <b>{author}</b>
<span class="sep"></span>
Дата: <b>{date}</b>
</div>
<div class="f_link rcol">{include file="engine/modules/statnew.php?datenews={date=Ymd}"}</div>
<br /><div align="center">
<a href="{full-link}" rel="group1"><img style="max-width: 660px;" src="{image-1}" alt="{title}"></a>
</div><br />{short-story limit="320"}<br />
</div>
</div>
<div class="clr"></div>
<div class="story_b">
<div class="lcol">
[tags]<span class="tags">
Теги: {tags}
</span>[/tags]
<span class="inf">
Комментариев: <b>{comments-num}</b>
<span class="sep"></span>
Просмотров: <b>{views}</b>
<span class="sep"></span>
{include file="engine/modules/thanks.php?news_id={news-id}&allow=[xfvalue_thanks]&short=1"}
</span>
</div>
<div class="f_link rcol">[full-link]<span>Читать дальше</span>[/full-link]</div>
</div>
</article>