設(shè)置了寬屏和窄屏可以自由切換的時候,輸出寬屏和窄屏的切換按鈕。
<p><!--{if empty($_G['disabledwidthauto']) && $_G['setting']['switchwidthauto']}--></p><p> <a href="javascript:;" id="switchwidth" onclick="widthauto(this)" title="{if widthauto()}{lang switch_narrow}{else}{lang switch_wide}{/if}" class="switchwidth"><!--{if widthauto()}-->{lang switch_narrow}<!--{else}-->{lang switch_wide}<!--{/if}--></a></p><p> <!--{/if}--></p>