Jump to content

Подскажите код "Сменить стиль".


Recommended Posts

Приветствую. Дело вот в чем, я случайно удалил функцию смены стиля, т.е кнопки "Сменить стиль" у меня нету.

 

Кто знает как это исправить, или может быть кто-нибудь может скинуть код это функции. Помогите, пожалуйста.

Заранее спасибо!  :)

Link to comment
Share on other sites

В шаблоне 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>


должен находиться в разделе <!-- ::: FOOTER (Change skin, language, mark as read, etc) ::: -->
 
вот весь код футера

			<!-- ::: FOOTER (Change skin, language, mark as read, etc) ::: -->
			<div id='footer_utilities' class='main_width clearfix clear'>
				<a rel="nofollow" href='#top' id='backtotop' title='{$this->lang->words['go_to_top']}'><img src='{$this->settings['img_url']}/top.png' alt='' /></a>
				<ul class='ipsList_inline left'>
					<li>
						<img src='{$this->settings['img_url']}/feed.png' alt='{$this->lang->words['rss_feed']}' id='rss_feed' class='clickable' />
					</li>
					<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="langchooser:|: ! $this->member->is_not_human && count( $footer_items['lang_chooser']['options'] ) > 1">
						<li>
							<a rel="nofollow" href='#' id='new_language'>{$footer_items['lang_chooser']['default']}</a>
							<ul id='new_language_menucontent' class='ipbmenu_content with_checks' style='display: none'>
								<foreach loop="$footer_items['lang_chooser']['options'] as $lang">
									<li <if test="$lang['selected']">class='selected'</if>>
										<a href="{$this->lang->changeLanguageUrl( $lang['id'] )}">{$lang['title']}</a>
									</li>
								</foreach>
							</ul>
						</li>
					</if>
					<if test="markRead:|: ( ! $this->member->is_not_human ) && ( $this->memberData['member_id'] || $this->settings['topic_marking_guests'] )">
						<li>
							<a rel="nofollow" id='mark_all_read' href="{parse url="app=forums&amp;module=forums&amp;section=markasread&amp;marktype=all&amp;k={$this->member->form_hash}" base="public"}" title='{$this->lang->words['mark_all_as_read']}'>{$this->lang->words['mark_board_as_read']}</a>
							<ul id='mark_all_read_menucontent' class='ipbmenu_content' style='display: none'>
								<foreach loop="$footer_items['mark_read_apps'] as $app => $appData">
									<li>
										<if test="hideRcForPerms:|:$this->memberData['showReportCenter'] OR $app != 'core'">
											<a href="{parse url="app=forums&amp;module=forums&amp;section=markasread&amp;marktype=app&amp;markApp={$app}&amp;k={$this->member->form_hash}" base="public"}"><if test="isCoreRC:|:$app=='core'">{$this->lang->words['markread_rc_link']}<else />{IPSLib::getAppTitle($app)}</if></a>
										</if>
									</li>
								</foreach>
								<li>
									<a href="{parse url="app=forums&amp;module=forums&amp;section=markasread&amp;marktype=all&amp;k={$this->member->form_hash}" base="public"}"><strong>{$this->lang->words['mark_all_as_read']}</strong></a>
								</li>
							</ul>
						</li>
					</if>
					<li>
						<a href="{parse url="app=core&amp;module=help" base="public"}" title='{$this->lang->words['view_help']}' rel="help" accesskey='6'>{$this->lang->words['sj_help']}</a>
					</li>
					<li style='display: none'><a href='__ipbmafia.ru'>Форум поддержки IPS Community Suite</li>
				</ul>
				{$footer_items['copyright']}
			</div>
			<if test="showdebuglevel:|:$this->memberData['member_id'] and $this->settings['debug_level']">
				<div id='ipsDebug_footer'>
					<strong>{$this->lang->words['time_now']}</strong> {$footer_items['time']}
					<if test="lastvisit:|:$this->memberData['member_id'] AND $this->memberData['last_visit']"><strong>{$this->lang->words['you_last_visit']}</strong> {parse date="$this->memberData['last_visit']" format="short"}</if>
					<strong>{$this->lang->words['stat_exec']}</strong> {$stats['ex_time']} <if test="isfloat:|:is_float($stats['ex_time'])">{$this->lang->words['stats_sec']}</if>
					<strong>{$this->lang->words['stat_load']}</strong> {$stats['server_load']}
					<strong>{$this->lang->words['stat_queries']}</strong> {$stats['queries']} <if test="sqldebuglink:|:IPS_SQL_DEBUG_MODE"><a href='{parse url="{$this->settings['query_string_safe']}&amp;debug=1" base="public"}'></if>{$this->lang->words['stats_queries']}<if test="closesqldebuglink:|:IPS_SQL_DEBUG_MODE"></a></if>
					<strong>{$this->lang->words['stat_gzip']}</strong> {$stats['gzip_status']}
				</div>
			</if>
			{$stats['task']}
			<if test="includeLightboxDoReal:|:$this->settings['do_include_lightbox_real']">
				{parse template="include_lightbox_real" group="global" params=""}
			<else />
				<script type="text/javascript">
					ipb.global.lightBoxIsOff();
				</script>
			</if>
			<if test="!$this->memberData['member_id']">
				{parse template="inlineLogin" group="global" params=""}
			</if>
		</div>

 

А Вы точно удалили? Или может у Вас один видимый стиль - вот и нет кнопки?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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