Jump to content

Другой логотип в мобильной версии


 Share

Recommended Posts

Добрый день.

Используется тема Nerva 4.1.x 

Вывод лого обрабатывает следующий код:

{{if \IPS\Theme::i()->logo['front']['url'] !== null }}

	{{$logo = \IPS\File::get( 'core_Theme', \IPS\Theme::i()->logo['front']['url'] )->url;}}

	{{if theme.ipsm_mobileTextLogo}}
	
		<a href='{setting="base_url"}' id='elLogo' accesskey='1' class='logo hideOnMobile'><img src="{$logo}" alt='{setting="board_name" escape="true"}' /></a>
		<a href='{setting="base_url"}' id='elSiteTitle' accesskey='1' class='logo textLogo hideOnDesktop'>
			<span>
				{{if theme.ipsm_textLogo}}{theme="ipsm_textLogo"}{{else}}{setting="board_name"}{{endif}}
				{{if theme.ipsm_textLogoSlogan}}<span class='logoSlogan'>{theme="ipsm_textLogoSlogan"}</span>{{endif}}
			</span>
		</a>
	
	{{else}}
	
		<a href='{setting="base_url"}' id='elLogo' accesskey='1' class='logo'><img src="{$logo}" alt='{setting="board_name" escape="true"}' /></a>
	
	{{endif}}

{{else}}

<a href='{setting="base_url"}' id='elSiteTitle' accesskey='1' class='logo textLogo'>
	{{if theme.ipsm_textLogoMiniImage}}
		{{if theme.ipsm_textLogoImage}}<img src='{theme="ipsm_textLogoImage"}' alt='' />{{endif}}
	{{endif}}
	
	<span>
		{{if theme.ipsm_textLogo}}{theme="ipsm_textLogo"}{{else}}{setting="board_name"}{{endif}}
		{{if theme.ipsm_textLogoSlogan}}<span class='logoSlogan'>{theme="ipsm_textLogoSlogan"}</span>{{endif}}
	</span>
  
</a>
{{endif}}

 

Нужно, чтобы в мобильной версии сайта в лого выводилось другое изображение.

 

Может кто-нибудь помочь?

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.

 Share

  • Recently Browsing   0 members

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