cpt_z3qo Posted June 30, 2016 Report Share Posted June 30, 2016 Опять всем привет, я наверное не устану задавать вопросы, просить помощи, пока не добьюсь своего. У меня есть чуть-чуть измененный виджет "записи блога" такого типа: А нужно так: Например указывайте в настройках виджета 6 публикаций, показывает 2 ряда по 3 публикации. Кто может помочь? Денег пока нет, если кто возьмется за реализацию, могу вернуть потом деньги , ибо форумов на рынке Азербайджана не так много, это прибыльное дело. Quote Link to comment Share on other sites More sharing options...
cpt_z3qo Posted July 2, 2016 Author Report Share Posted July 2, 2016 Так вот сделал виджет "записи из блога" так: А надо как писал выше ну что бы был стиль сетка что ли вот сам код: <li class='ipsDataItem'> <div class='ipsDataItem_icon ipsPos_top'></div> <div class='ipsDataItem_main'> <div class='ipsGrid'><div class='ipsGrid_span1'> </div> <div class='ipsGrid_span2'> <a href="{$entry->url('getLastComment')}" title='{lang="view_this_entry" sprintf="$entry->_title"}' class='ipsType_medium ipsType_break'>{wordbreak="$entry->name"}</a><br> <span class='ipsType_blendLinks ipsType_light ipsType_medium ipsType_break ipsContained'>{lang="byline_nodate" htmlsprintf="$entry->author()->link()"} {lang="in"} <a href='{$entry->container()->url()}' class='ipsType_blendLinks'>{$entry->container()->_title}</a></span> {{if \IPS\Settings::i()->blog_enable_rating}} {template="rating" group="global" location="front" app="core" params="'small', $entry->averageRating(), 5, $entry->memberRating()"} {{endif}} <span class='ipsType_medium ipsType_reset'>{{if !$entry->num_comments}}<span class='ipsType_light'>{{endif}}<i class='fa fa-comment'></i> {number="$entry->num_comments"}{{if !$entry->num_comments}}</span>{{endif}}</span> {{if $orientation == 'horizontal'}} {{$content = new \DOMDocument;}} {{$content->loadHTML( $entry->content() );}} {{$src = $content->getElementsByTagName('img')->item(0)->getAttribute('src');}} {{\IPS\Output::i()->parseFileObjectUrls( $src );}} <a class="ipsAttachLink ipsAttachLink_image" href="{$src}" rel="external nofollow noopener noreferrer" target="_blank" style="display: block; max-width: 250px;" data-ipslightbox><img src="{$src}" class="ipsImage ipsImage_thumbnailed"></a> <div class='ipsType_medium ipsType_richText ipsType_break' data-ipsTruncate data-ipsTruncate-type='remove' data-ipsTruncate-size='2 lines'> {$entry->truncated()|raw} </div> {{endif}} </div> </div> <div class='ipsGrid_span3'> </div> </div> </li> Quote Link to comment Share on other sites More sharing options...
cpt_z3qo Posted July 2, 2016 Author Report Share Posted July 2, 2016 вообще можно ли это реализрвать? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.