Page 1 of 1

cssmagic info for side bars

Posted: Fri Jul 19, 2019 5:10 pm
by Martin

Code: Select all

	{% if (S_CSSMAGIC_ENABLE && CSSMAGIC_ENABLE) || MCHAT_ALLOW_USE || (S_CHAT_ENABLED && S_CHAT_NAV_LINK && CHAT_PAGE != 'chat') || U_MOBILE_VIEW_LOGS %}
		<h4><a href="#" onclick="return false;">{{ lang('EXTENSIONS') }}</a></h4>
		{% if S_CSSMAGIC_ENABLE and CSSMAGIC_ENABLE %}
	<div class="cssmagic-nav-container dropdown-container">
		<a href="{{ U_CSSMAGIC ?: '#' }}" title="{{ lang('CSS_MAGIC') }}" class="cssmagic-nav-link-title dropdown-trigger" role="menuitem">
			&nbsp; <i class="icon fa fa-magic" style="font-size: 12px;" aria-hidden="true"></i><span class="cssmagic-nav-link">{{ lang('CSS_MAGIC') }}</span> &nbsp;<i class="icon fa fa-caret-down cssmagic-nav-caret" aria-hidden="true"></i>
		</a>
		
		<div class="dropdown">
			<div class="pointer"><div class="pointer-inner"></div></div>
			<ul class="cssmagic-nav-menu dropdown-contents" role="menu">
				{% if not CSSMAGIC_VIEW %}
				<li class="cssmagic-nav-template-add">
					<a href="{{ U_CSSMAGIC_TEMPLATE_ADD }}" target="_blank" title="{{ lang('CSS_MAGIC_ADD_FILE') }}" role="menuitem">
						<i class="icon fa fa-plus-square fa-fw" aria-hidden="true"></i><span>{{ lang('CSS_MAGIC_ADD_FILE') }}</span>
					</a>
				</li>
				<li class="cssmagic-nav-template-edit">
					<a href="{{ U_CSSMAGIC_TEMPLATE_EDIT }}" target="_blank" title="{{ lang('CSS_MAGIC_EDIT_FILE') }}" role="menuitem">
						<i class="icon fa fa-edit fa-fw" aria-hidden="true"></i><span>{{ lang('CSS_MAGIC_EDIT_FILE') }}</span>
					</a>
				</li>
				<li class="cssmagic-nav-css-template-edit">
					<a href="{{ U_CSSMAGIC_CSS_TEMPLATE_EDIT }}" target="_blank" title="{{ lang('CSS_MAGIC_EDIT_CSS_FILE') }}" role="menuitem">
						<i class="icon fa fa-edit fa-fw" aria-hidden="true"></i><span>{{ lang('CSS_MAGIC_EDIT_CSS_FILE') }}</span>
					</a>
				</li>
				<br />
				<li class="cssmagic-nav-template-add">
					<a href="{{ U_CSSMAGIC_ACP_TEMPLATE_ADD }}" target="_blank" title="{{ lang('CSS_MAGIC_ACP_ADD_FILE') }}" role="menuitem">
						<i class="icon fa fa-plus-square fa-fw" aria-hidden="true"></i><span>{{ lang('CSS_MAGIC_ACP_ADD_FILE') }}</span>
					</a>
				</li>
				<li class="cssmagic-nav-template-edit">
					<a href="{{ U_CSSMAGIC_ACP_TEMPLATE_EDIT }}" target="_blank" title="{{ lang('CSS_MAGIC_ACP_EDIT_FILE') }}" role="menuitem">
						<i class="icon fa fa-edit fa-fw" aria-hidden="true"></i><span>{{ lang('CSS_MAGIC_ACP_EDIT_FILE') }}</span>
					</a>
				</li>
				<li class="cssmagic-nav-css-template-edit">
					<a href="{{ U_CSSMAGIC_ACP_CSS_TEMPLATE_EDIT }}" target="_blank" title="{{ lang('CSS_MAGIC_EDIT_ACP_CSS_FILE') }}" role="menuitem">
						<i class="icon fa fa-edit fa-fw" aria-hidden="true"></i><span>{{ lang('CSS_MAGIC_EDIT_ACP_CSS_FILE') }}</span>
					</a>
				</li>
				<br />
				<li class="cssmagic-nav-lang-template-edit">
					<a href="{{ U_CSSMAGIC_LANG_TEMPLATE_EDIT }}" target="_blank" title="{{ lang('CSS_MAGIC_EDIT_LANG_FILE') }}" role="menuitem">
						<i class="icon fa fa-edit fa-fw" aria-hidden="true"></i><span>{{ lang('CSS_MAGIC_EDIT_LANG_FILE') }}</span>
					</a>
				</li>
				{% else %}
				<div class="rules">
					<div class="inner">
						<strong>{{ lang('CSS_MAGIC') ~ lang('COLON') }}</strong> {{ lang('CSS_MAGIC_LICENSE') }}
					</div>
				</div>
				{% endif %}
			</ul>
		</div>
	</div>

{% endif %}
		{% if CSSMAGICB21_ENABLE and CSSMAGIC_ENABLE and not CSSMAGIC_VIEW and S_USER_LOGGED_IN %}
			<a href="#" class="nightmodeoff nav" role="menuitem" title="Change to prosilver dark">&nbsp;<i class="icon fa-moon-o fa-fw" style="font-size: 12px;" aria-hidden="true"></i><span>{{ lang('CSSMAGIC_DARK') }}</span></a>
			<a href="#" class="nightmodeon nav" role="menuitem" title="Change to default prosilver">&nbsp;<i class="icon fa fa-sun-o fa-fw" style="font-size: 12px;" aria-hidden="true"></i><span>{{ lang('CSSMAGIC_LIGHT') }}</span></a>
		{% endif %}

Re: cssmagic info for side bars

Posted: Sun Jul 21, 2019 8:23 pm
by Sniper_E

Code: Select all

		{% if S_CSSMAGIC_ENABLE and CSSMAGIC_ENABLE %}
		<div class="menu_list">
			<a href="{{ U_CSSMAGIC ?: '#' }}" onclick="return false;"><i class="icon fa-magic fa-fw" aria-hidden="true"></i> <span>{{ lang('CSS_MAGIC') }}</span></a>
			<div class="menu_links headerbar">
				{% if not CSSMAGIC_VIEW %}
				<div class="panel">
					<div class="menu_link"><a href="{{ U_CSSMAGIC_TEMPLATE_ADD }}" target="blank" role="menuitem">
						<i class="icon fa fa-plus-square fa-fw" aria-hidden="true"></i> <span>{{ lang('CSS_MAGIC_ADD_FILE') }}</span></a></div>
					<div class="menu_link"><a href="{{ U_CSSMAGIC_TEMPLATE_EDIT }}" target="blank" role="menuitem">
						<i class="icon fa fa-edit fa-fw" aria-hidden="true"></i> <span>{{ lang('CSS_MAGIC_EDIT_FILE') }}</span></a></div>
					<div class="menu_link"><a href="{{ U_CSSMAGIC_CSS_TEMPLATE_EDIT }}" target="blank" role="menuitem">
						<i class="icon fa fa-edit fa-fw" aria-hidden="true"></i> <span>{{ lang('CSS_MAGIC_EDIT_CSS_FILE') }}</span></a></div>
					<hr>
					<div class="menu_link"><a href="{{ U_CSSMAGIC_ACP_TEMPLATE_ADD }}" target="blank" role="menuitem">
						<i class="icon fa fa-plus-square fa-fw" aria-hidden="true"></i> <span>{{ lang('CSS_MAGIC_ACP_ADD_FILE') }}</span></a></div>
					<div class="menu_link"><a href="{{ U_CSSMAGIC_ACP_TEMPLATE_EDIT }}" target="blank" role="menuitem">
						<i class="icon fa fa-edit fa-fw" aria-hidden="true"></i> <span>{{ lang('CSS_MAGIC_ACP_EDIT_FILE') }}</span></a></div>
					<div class="menu_link"><a href="{{ U_CSSMAGIC_ACP_CSS_TEMPLATE_EDIT }}" target="blank" role="menuitem">
						<i class="icon fa fa-edit fa-fw" aria-hidden="true"></i> <span>{{ lang('CSS_MAGIC_EDIT_ACP_CSS_FILE') }}</span></a></div>
					<hr>
					<div class="menu_link"><a href="{{ U_CSSMAGIC_LANG_TEMPLATE_EDIT }}" target="blank" role="menuitem">
						<i class="icon fa fa-edit fa-fw" aria-hidden="true"></i> <span>{{ lang('CSS_MAGIC_EDIT_LANG_FILE') }}</span></a></div>
				</div>
				{% else %}
				<div class="rules">
					<div class="inner"><strong>{{ lang('CSS_MAGIC') ~ lang('COLON') }}</strong> {{ lang('CSS_MAGIC_LICENSE') }}</div>
				</div>
				{% endif %}
			</div>
		</div>
		{% endif %}

Code: Select all

		{% if CSSMAGICB21_ENABLE and CSSMAGIC_ENABLE and not CSSMAGIC_VIEW and S_USER_LOGGED_IN %}
		<script src="{{ BOARD_URL }}/ext/The Guv/cssmagic/styles/all/template/js/cssmagic.js"></script>
		<div class="menu_list" data-skip-responsive="true">
			<a href="#" class="nightmodeoff nav" role="menuitem" title="Change to prosilver dark">
				<i class="icon fa-moon-o fa-fw" aria-hidden="true"></i> <span>Dark style</span></a>
			<a href="#" class="nightmodeon nav" role="menuitem" title="Change to default prosilver">
				<i class="icon fa fa-sun-o fa-fw" aria-hidden="true"></i> <span>Light style</span></a>
		</div>
		{% endif %}