...
|
...
|
@@ -372,7 +372,7 @@ define('yohood', function(require, exports) { |
|
|
});
|
|
|
$(".brand-content").html(template.replace('{li}', html));
|
|
|
} else {
|
|
|
$(".brand-content").html(noSearchTemplate.replace('{brand}', brand));
|
|
|
$(".brand-content").html(noSearchTemplate.replace('{brand}', decodeURIComponent(brand)));
|
|
|
}
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -599,16 +599,17 @@ define('yohood', function(require, exports) { |
|
|
var template = function(topic, img, url, isVideo, isTitleStyle, title, imgStyle) {
|
|
|
var playIcon = '';
|
|
|
var titleStyle = '';
|
|
|
var title = $('<p>'+title+'</p>').text();
|
|
|
var html = '<div class="layout-item clearfix">' +
|
|
|
'<div class="image-box">' +
|
|
|
'<a href="' + url + '" target="_blank" title="' + $('<p>'+title+'</p>').text() + '">' +
|
|
|
'<a href="' + url + '" target="_blank" title="' + title + '">' +
|
|
|
'<img src="' + img + '" alt="" style="' + imgStyle + '">' +
|
|
|
'{playIcon}' +
|
|
|
'</a>' +
|
|
|
'</div>' +
|
|
|
'<div class="content">' +
|
|
|
'<h2 {titleStyle}>' +
|
|
|
'<a href="' + url + '" title="' + $('<p>'+title+'</p>').text() + '" target="_blank">' + topic + '</a>' +
|
|
|
'<a href="' + url + '" title="' + title + '" target="_blank">' + topic + '</a>' +
|
|
|
'</h2>' +
|
|
|
'</div>' +
|
|
|
'</div>';
|
...
|
...
|
|