Skip to content
View in the app

A better way to browse. Learn more.

Дизайн и модификация 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.

Теги в темах Ips 4x

Добрый! В теме отображаются теги в большом количестве, а можно как-то сделать отображение 5 шт, и рядом кнопку "раскрыть"

?

Featured Replies

Открыть Ваш шаблон / front / global / core / tags

Найти:

		<ul class='ipsTags ipsList_inline {{if $hideResponsive}}ipsResponsive_hidePhone ipsResponsive_inline{{endif}}' {{if $tagEditUrl}}data-controller='core.front.core.tagEditor' data-tagEditID='{$id}' {{if \IPS\Settings::i()->tags_min}}data-minTags='{setting="tags_min"}'{{endif}} {{if \IPS\Settings::i()->tags_max}}data-maxTags='{setting="tags_max"}'{{endif}}{{endif}}>
			{{if \count( $tags )}}
				{{foreach $tags as $tag}}
					{template="tag" group="global" app="core" params="$tag, $tagEditUrl"}
				{{endforeach}}
			{{endif}}
			{{if $tagEditUrl}}
				<li class='ipsTags_edit'>
					<a href="{$tagEditUrl->setQueryString( 'do', 'editTags' )}" title="{lang="edit_tags"}" data-ipsMenu data-ipsMenu-closeOnClick='false' id='elTagEditor_{$id}' class='ipsButton ipsButton_veryVerySmall ipsButton_light'><i class='fa fa-plus'></i>{{if !\count( $tags )}} {lang="add_tags"}{{endif}}</a>
				</li>
			{{endif}}
		</ul>

Заменить на:

		<ul class='ipsTags ipsTags_inline ipsList_inline {{if $hideResponsive}}ipsResponsive_hidePhone ipsResponsive_inline{{endif}}'  {{if $tagEditUrl}}data-controller='core.front.core.tagEditor' data-tagEditID='{$id}' {{if \IPS\Settings::i()->tags_min}}data-minTags='{setting="tags_min"}'{{endif}} {{if \IPS\Settings::i()->tags_max}}data-maxTags='{setting="tags_max"}'{{endif}}{{endif}}>
			{{if \count( $tags )}}
				{{foreach $tags as $idx => $tag}}
					{{if $idx < 5}}
						{template="tag" group="global" app="core" params="$tag, $tagEditUrl"}
					{{endif}}
				{{endforeach}}
			{{endif}}
			{{if \count( $tags ) > 5}}
				<li class='ipsType_small'>
					<span class='ipsType_light ipsCursor_pointer' data-ipsMenu id='elTags_{$id}'>{lang="and_x_more" pluralize="\count( $tags ) - 5"} <i class='fa fa-caret-down ipsJS_show'></i></span>
					<div class='ipsHide ipsMenu ipsMenu_normal ipsPad_half cTagPopup' id='elTags_{$id}_menu'>
						<p class='ipsType_medium ipsType_reset ipsType_light'>{lang="tagged_with"}</p>
						<ul class='ipsTags ipsList_inline'>
							{{foreach $tags as $tag}}
								{template="tag" group="global" app="core" params="$tag, NULL"}
							{{endforeach}}
						</ul>
					</div>
				</li>
			{{endif}}
			{{if $tagEditUrl}}
				<li class='ipsTags_edit'>
					<a href="{$tagEditUrl->setQueryString( 'do', 'editTags' )}" title="{lang="edit_tags"}" data-ipsMenu data-ipsMenu-closeOnClick='false' id='elTagEditor_{$id}' class='ipsButton ipsButton_veryVerySmall ipsButton_light'><i class='fa fa-plus'></i>{{if !\count( $tags )}} {lang="add_tags"}{{endif}}</a>
				</li>
			{{endif}}
		</ul>

 

Результат:

image.png

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

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.