Jump to content

Измененный виджет "записи блога" в стиле Grid


Recommended Posts

Опять всем привет, я наверное не устану задавать вопросы, просить помощи, пока не добьюсь своего.

У меня есть чуть-чуть измененный виджет "записи блога" такого типа:есть.JPG

 

А нужно так:

надо.JPG

Например указывайте в  настройках виджета 6 публикаций, показывает 2 ряда по 3 публикации.  Кто может помочь? Денег пока нет, если кто возьмется за реализацию, могу вернуть потом деньги , ибо форумов на рынке Азербайджана не так много, это прибыльное дело.

Link to comment
Share on other sites

 

Так вот  сделал виджет "записи из блога" так:

 есть1.JPG

 

А надо как писал выше

ну что бы был стиль сетка что ли

 

вот сам код:

 

<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()"} &nbsp;&nbsp;
		{{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>

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...