Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

Posted

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

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

 

А нужно так:

надо.JPG

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

  • Author

 

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

 есть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>

 

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
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.