Опубліковано 7 травня, 20213 р Решил доработать шаблон но сразу возникло много трудностей. Можно ли зафиксировать верхний сайдбар что бы при прокрутке страницы он оставался наверху.?и можно ли его растянуть на ширину шаблона или на ширину браузера.?И соответственно переместить навигационное горизонтальное меню в сайдбар.? вот как то так...фото прилагаю.
Опубліковано 8 травня, 20213 р Адміністратор Вирішено Заменить весь код в globalTemplate <!DOCTYPE html> <html id='ipsfocus' lang="{expression="\IPS\Member::loggedIn()->language()->bcp47()"}" dir="{{if member.language()->isrtl}}rtl{{else}}ltr{{endif}}" class='focus-g{expression="member.member_group_id"} {{if !member.member_id}}focus-guest focus-guest-alert{{else}}focus-member{{endif}} focus-topic-compact focus-post-bar focus-post-buttons'> <head> <title>{expression="output.getTitle( $title )"}</title> {{if settings.ipbseo_ga_enabled}}{setting="ipseo_ga"}{{endif}} <!--[if lt IE 9]> {{foreach \IPS\Theme::i()->css( 'extra/ie8.css', 'core' ) as $css}}<link rel="stylesheet" type="text/css" href="{$css}">{{endforeach}} <script src="{url="applications/core/interface/html5shiv/html5shiv.js" base="none" protocol="\IPS\Http\Url::PROTOCOL_RELATIVE"}"></script> <![endif]--> {template="includeMeta" app="core" group="global" location="global" params=""} {template="includeCSS" app="core" group="global" location="global" params=""} {template="js_head" app="core" group="global" location="global" params=""} {template="includeJS" if="theme.js_include != 'footer'" app="core" group="global" location="global" params=""} {template="js_backgroundPicker" if="(theme.js_include != 'footer') && (theme.focus_picker)" app="core" group="global" location="global" params=""} {template="js_general" if="theme.js_include != 'footer'" app="core" group="global" location="global" params=""} {template="js_globalMessage" if="(theme.js_include != 'footer') && (theme.global_close)" app="core" group="global" location="global" params=""} {template="js_countdown" if="(theme.js_include != 'footer') && (theme.countdown_enable)" app="core" group="global" location="global" params=""} {template="js_theme" if="theme.js_include != 'footer'" app="core" group="global" location="global" params=""} {template="favico" app="core" group="global" location="front" params=""} </head> <body class='ipsApp ipsApp_front {{if isset( \IPS\Request::i()->cookie['hasJS'] )}}ipsJS_has{{else}}ipsJS_none{{endif}} ipsClearfix{{foreach output.bodyClasses as $class}} {$class}{{endforeach}}' {{if output.globalControllers}}data-controller='{expression="implode( ',', output.globalControllers )"}'{{endif}} {{if isset( output.inlineMessage )}}data-message="{expression="output.inlineMessage"}"{{endif}} data-pageApp='{$location['app']}' data-pageLocation='front' data-pageModule='{$location['module']}' data-pageController='{$location['controller']}' {{if isset( \IPS\Request::i()->id )}}data-pageID='{expression="(int) \IPS\Request::i()->id"}'{{endif}}> <a href='#elContent' class='ipsHide' title='{lang="jump_to_content_desc"}' accesskey='m'>{lang="jump_to_content"}</a> {template="mobileNavBar" app="core" group="global" params=""} <div class='ipsLayout_container'> <header id='header'> <div class='ipsLayout_container header-align'> <div class='logo-wrap'>{template="logo" app="core" group="global" params=""}</div> <div class='focus-nav focus-nav-right'>{template="navBar" app="core" group="global" params=""}</div> </div> <div class='nav-bar hide-minimal'> <div class='ipsLayout_container secondary-header-align'> <div class='user-links user-links-b'>{template="userBar" app="core" group="global" params=""}</div> <div class='ipsfocus-search'></div> </div> </div> </header> </div> <main id='ipsLayout_body' class='ipsLayout_container'> <div class='content-wrap'> <div class='content-padding'> <div class='precontent-blocks'> <div class='ipsfocus-breadcrumb'> {template="breadcrumb" app="core" group="global" params="'top'"} {template="ipsfocus_socialButtons" if="theme.focus_social" app="core" group="global" params=""} </div> {template="ipsfocus_backgroundPicker" if="theme.focus_picker" app="core" group="global" params=""} {template="updateWarning" app="core" group="global" params=""} {template="ipsfocus_countdown" if="theme.countdown_enable" app="core" group="global" params=""} {template="ipsfocus_globalMessage" if="theme.global_enable" app="core" group="global" params=""} {template="ipsfocus_guestMessage" if="(theme.guest_enable) && !\in_array('ipsLayout_minimal', \IPS\Output::i()->bodyClasses ) && !member.member_id" app="core" group="global" params=""} </div> <div id='ipsLayout_contentArea'> <div id='ipsLayout_contentWrapper'> {template="sidebar" if="theme.sidebar_position == 'left'" app="core" group="global" params="'left'"} <div id='ipsLayout_mainArea'> <a id='elContent'></a> {advertisement="ad_global_header"} {template="acknowledgeWarning" if="\IPS\Member::loggedIn()->members_bitoptions['unacknowledged_warnings']" params="\IPS\Member::loggedIn()->warnings( 1, FALSE )" group="global" app="core"} {{if !\in_array('ipsLayout_minimal', \IPS\Output::i()->bodyClasses ) and !member.members_bitoptions['profile_completion_dismissed'] and $nextStep = member.nextProfileStep()}} {template="profileNextStep" group="global" app="core" params="$nextStep, true"} {{endif}} {template="widgetContainer" group="global" app="core" params="'header', 'horizontal'"} {$html|raw} {template="widgetContainer" group="global" app="core" params="'footer', 'horizontal'"} </div> {template="sidebar" if="theme.sidebar_position == 'right'" app="core" group="global" params="'right'"} </div> </div> </div> {template="ipsfocus_megaFooter" if="theme.footer_enable" app="core" group="global" params=""} {template="breadcrumb" app="core" group="global" params="'bottom'"} {template="inlineMessage" if="member.msg_show_notification and $message = \IPS\core\Messenger\Conversation::latestUnreadMessage()" app="core" group="global" params="$message"} </div> </main> <footer id='ipsLayout_footer'> {advertisement="ad_global_footer"} <div class='ipsLayout_container'> {template="footer" app="core" group="global" params=""} </div> </footer> </div> {template="mobileNavigation" if="theme.responsive" app="core" group="global" params=""} {template="guestTermsBar" if="!\IPS\Member::loggedIn()->member_id and \IPS\Settings::i()->guest_terms_bar" app="core" group="global" params="base64_encode( \IPS\Settings::i()->base_url )"} {template="includeJS" if="theme.js_include == 'footer'" app="core" group="global" location="global" params=""} {template="js_backgroundPicker" if="(theme.js_include == 'footer') && (theme.focus_picker)" app="core" group="global" location="global" params=""} {template="js_general" if="theme.js_include == 'footer'" app="core" group="global" location="global" params=""} {template="js_countdown" if="(theme.js_include == 'footer') && (theme.countdown_enable)" app="core" group="global" location="global" params=""} {template="js_globalMessage" if="(theme.js_include == 'footer') && (theme.global_close)" app="core" group="global" location="global" params=""} {template="js_theme" if="theme.js_include == 'footer'" app="core" group="global" location="global" params=""} {template="viglink" if="settings.viglink_enabled" app="core" group="global" params=""} {template="metaTagEditor" if="isset( $_SESSION['live_meta_tags'] ) and $_SESSION['live_meta_tags'] and member.isAdmin()" app="core" group="global" params=""} <!--ipsQueryLog--> <!--ipsCachingLog--> {expression="output.endBodyCode" raw="true"} {{if settings.fb_pixel_enabled and settings.fb_pixel_id and $noscript = \IPS\core\Facebook\Pixel::i()->noscript()}} <noscript> {$noscript|raw} </noscript> {{endif}} </body> </html>
Опубліковано 13 травня, 20213 р Автор Вопрос актуален В 11.05.2021 в 10:30, Freez сказал: Подскажите еще,как убрать это недрозумение?)
Опубліковано 17 травня, 20213 р Автор Появилось еще одно но Либо аватарка наложилась лиюо текст сместился
Для публікації повідомлень створіть обліковий запис або авторизуйтесь