EbasH Posted July 7, 2016 Report Share Posted July 7, 2016 Не могу понять как сделать красивый вывод новостей на отдельной странице, создаю новый блок и в нем плагином вывожу ленту новостей которая имеет вот такой вид: и такой исходный код: {{if !empty( $records ) }} <h3 class='ipsWidget_title ipsType_reset'>{$title}</h3> {{if $orientation == 'vertical'}} <div class='ipsPad_half ipsWidget_inner'> <ul class='ipsDataList ipsDataList_reducedSpacing'> {{foreach $records as $record}} <li class='ipsDataItem'> <div class='ipsDataItem_icon ipsPos_top'> {template="userPhoto" group="global" app="core" params="$record->author(), 'tiny'"} </div> <div class='ipsDataItem_main'> <div class="ipsCommentCount ipsPos_right {{if ( $record->record_comments ) === 0}}ipsFaded{{endif}}" data-ipsTooltip title='{lang="replies_number" pluralize="$record->record_comments"}'>{expression="$record->record_comments"}</div> <a href="{$record->url()->setQueryString( 'do', 'getLastComment' )}" title='{lang="view_this_cmsrecord" sprintf="\IPS\Member::loggedIn()->language()->addToStack( 'content_db_lang_sl_' . $record::$customDatabaseId, FALSE ), $record->_title"}' class='ipsDataItem_title ipsType_break'>{wordbreak="$record->_title"}</a><br> <span class='ipsType_light ipsType_small'>{lang="byline_nodate" htmlsprintf="$record->author()->link()"} · {datetime="$record->mapped('date')"}</span> </div> </li> {{endforeach}} </ul> </div> {{else}} <div class='ipsWidget_inner'> <ul class='ipsDataList'> {template="recordRow" group="listing" location="database" app="cms" themeClass="IPS\cms\Theme" params="null, null, $records"} </ul> </div> {{endif}} {{endif}} а мне нужно получить вот такой выводЖ или такой кто может с этим помочь, жду в личку или тут напишите Quote Link to comment Share on other sites More sharing options...
EbasH Posted July 26, 2016 Author Report Share Posted July 26, 2016 Подниму Quote Link to comment Share on other sites More sharing options...
EbasH Posted September 1, 2016 Author Report Share Posted September 1, 2016 еще раз вверх, знает кто то как это реализовать? Quote Link to comment Share on other sites More sharing options...
Andrew155 Posted September 9, 2016 Report Share Posted September 9, 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.