Перейти к содержимому


Информация статьи

  • Дабавлена: 22 апр 2012 00:35
  • Просмотров: 1035
 


* * * * *
1 Рейтинг

[Обновление до 3.3.x] Не работает смена стиля

Написано ๖ۣۣۜDesperate™ 22 апр 2012 00:35
После обновления бывает ситуация, не меняется стиль, исправляем следующим образом.
Пройти в ACP - Внешний вид - Ваш стиль - globalTemplate

Найти:

<if test="skinchanger:|:count($footer_items['skin_chooser']) > 1">
	    <if test="uagentlocked:|:$this->memberData['userAgentLocked'] AND ! $this->memberData['userAgentBypass']">
			    <li id='useragent_msg'>
					    {$this->lang->words['skin_browser_set']} <a href='{parse url="{$this->settings['query_string_formatted']}&amp;unlockUserAgent=1" base="public"}'>{$this->lang->words['override_browser_theme']}</a>
			    </li>
	    <else />
	    <if test="isTouchDevice:|:$this->registry->output->isTouchDevice()">
			    <li>
					    <a href='{parse url="{$this->settings['query_string_formatted']}&amp;setAsMobile=1" base="public"}'>{$this->lang->words['set_mobile_theme']}</a>
			    </li>
	    </if>
			    <li>
					    <a rel="nofollow" id='new_skin' href='#'>{$this->lang->words['change_theme']}</a>					  
					    <ul id='new_skin_menucontent' class='ipbmenu_content with_checks' style='display: none'>
							    <foreach loop="$footer_items['skin_chooser'] as $skin">
									    <li <if test="$skin['selected']">class='selected'</if>>
											    <a href='{parse url="{$this->settings['query_string_formatted']}&amp;k={$this->member->form_hash}&amp;settingNewSkin={$skin['id']}" base="public"}'>{$skin['title']}</a>
									    </li>
							    </foreach>
					    </ul>
			    </li>
	    </if>
</if>

Заменить на:

<if test="skinchanger:|: ! $this->member->is_not_human && count($footer_items['skin_chooser']) > 1">
	    <if test="uagentlocked:|:$this->memberData['userAgentLocked'] AND ! $this->memberData['userAgentBypass']">
			    <li id='useragent_msg'>
					    {$this->lang->words['skin_browser_set']} <a href='#' data-clicklaunch='changeSkin' data-skinid='unlockUserAgent'>{$this->lang->words['override_browser_theme']}</a>
			    </li>
	    <else />
	    <if test="isTouchDevice:|:$this->registry->output->isTouchDevice()">
			    <li>
					    <a href='#' data-clicklaunch='changeSkin' data-skinid='setAsMobile'>{$this->lang->words['set_mobile_theme']}</a>
			    </li>
	    </if>
			    <li>
					    <a rel="nofollow" id='new_skin' href='#'>{$this->lang->words['change_theme']}</a>					  
					    <ul id='new_skin_menucontent' class='ipbmenu_content with_checks' style='display: none'>
							    <foreach loop="$footer_items['skin_chooser'] as $skin">
									    <li <if test="$skin['selected']">class='selected'</if>>
											    <a href='#' data-clicklaunch='changeSkin' data-skinid='{$skin['id']}'>{$skin['title']}</a>
									    </li>
							    </foreach>
					    </ul>
			    </li>
	    </if>
</if>
  • 0

Powered by Tutorials 1.5.0 © 2016, by Michael McCune