Список новостей
Название
:
Список новостей
Ссылки
Шаблон ссылки
:
/news
Строки
Номер строки
:
10
Минимальная ширина содержимого
:
1200
Максимальная ширина содержимого
:
1380
Позиция
Номер позиции
:
1
Размер позиции
:
3
Строка позиции
:
10
Номер позиции
:
2
Размер позиции
:
9
Строка позиции
:
10
Блоки страниц
Позиция блока
:
2
Сортировка блока внутри позиции
:
1
Строка блока
:
10
Позиция блока
:
1
Сортировка блока внутри позиции
:
1
Строка блока
:
10
CSS
:
.row-wrapper-10 {
margin-top: 50px;
}
.row-wrapper-10 {
margin-top: 50px;
}
JS
:
$(document).ready(function () {
$('.object-data').each(function () { var me = $(this), parent = me.parent();
var images = $(this).find('.news-image');
if (images != null && images.length > 0) {
var a = images.first().find('a');
parent.css('background', 'url("' + a.attr('href') + '") no-repeat scroll center center');
parent.addClass('news-with-image');
}
var title = me.find('.news-title'),
newsText = me.find('.news-text');
if (title.height() > 40) {
newsText.attr('style', 'max-height: 39px !important;');
} else if (title.height() > 20) {
newsText.attr('style', 'max-height: 59px !important;');
}
});
});
$(document).ready(function () {
$('.object-data').each(function () { var me = $(this), parent = me.parent();
var images = $(this).find('.news-image');
if (images != null && images.length > 0) {
var a = images.first().find('a');
parent.css('background', 'url("' + a.attr('href') + '") no-repeat scroll center center');
parent.addClass('news-with-image');
}
var title = me.find('.news-title'),
newsText = me.find('.news-text');
if (title.height() > 40) {
newsText.attr('style', 'max-height: 39px !important;');
} else if (title.height() > 20) {
newsText.attr('style', 'max-height: 59px !important;');
}
});
});