wick Posted March 12, 2015 Share Posted March 12, 2015 Собственно хотелось бы убрать меню выбора стиля форума, и на его месте просто сделать ссылку мобильная версия, при нажатии на которую она бы и включалась. Подскажите как реализовать это. Спасибо! Link to comment Share on other sites More sharing options...
Viktar83 Posted March 13, 2015 Share Posted March 13, 2015 В GlobalTemplate основного стиля найти:<if test="skinchangerOuter:|: ! $this->member->is_not_human"> <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> <if test="skinchangerInner:|:count($footer_items['skin_chooser']) > 1"> <li> <a rel="nofollow" id='new_skin' href='#' title='{$this->lang->words['change_theme']}'>{$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> </if>и заменить на: <if test="skinchangerOuter:|: ! $this->member->is_not_human"> <li> <a href='#' data-clicklaunch='changeSkin' data-skinid='setAsMobile'>{$this->lang->words['set_mobile_theme']}</a> </li> </if> Фразу "Использовать мобильную версию" можно сократить через редактирование слов до "Мобильная версия" например. 1 Link to comment Share on other sites More sharing options...
wick Posted March 13, 2015 Author Share Posted March 13, 2015 Большое спасибо!Название изменил сразу )) Знал где искать )) Link to comment Share on other sites More sharing options...
Justice Posted September 28, 2017 Share Posted September 28, 2017 Как реализовать подобное для 4.2? Код тот же самый или нет? Link to comment Share on other sites More sharing options...
Атаман Posted September 28, 2017 Share Posted September 28, 2017 в 4х адаптивный дизайн. - Создаете дубль основного шаблона. Включайте адаптивный дизайн в нем, и переименовывайте в мобильный.- На основном отключайте адаптивный. 1 Link to comment Share on other sites More sharing options...
Justice Posted September 29, 2017 Share Posted September 29, 2017 Спасибо. Чуть голову не сломал, пока понимал. ) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now