Jump to content
plach

Подскажите как правильно добавить вывод модуля Geoip в шапку

Recommended Posts

Здравствуйте! Нужно вывести город в шапке.

Вставляю <div class="prmn-cmngr" data-confirm="true"></div>, куда бы не вставлял появляется доп.строка, что некрасиво.

Подскажите, пожалуйста, куда вставить. Нужно чтобы слева был....и как можно дополнительно прописать Ваш город: Москва

<div id="top">
		<div class="container">
			<?php if ($setting_all_settings['mobile_header']) { ?>
				<div class="hidden-sm hidden-md hidden-lg"><?php echo $cart_mobi; ?></div>
			<?php } ?>
			<?php if ($informations || $revtheme_header_links || $revtheme_dop_menus_2 || $revtheme_dop_menus_3 || $setting_all_settings['mobile_header']) { ?>
				<div class="hidden-sm hidden-md hidden-lg mobile_info">
					<div class="navbar navbar-default pull-left">
						<?php if ($setting_all_settings['mobile_header']) { ?>
							<?php if ($setting_all_settings['mobile_header'] == '2') { ?>
								<a class="mobil_mmenu_three" href="#mobil_mmenu"><i class="fa fa-bars"></i></a>
							<?php } else { ?>
								<button type="button" class="navbar-toggle" data-toggle="offcanvas"
								data-target=".navmenu.mobcats" data-canvas="body">
								<i class="fa fa-bars"></i>
								</button>
							<?php } ?>
							<?php if (($informations || $revtheme_header_links || $revtheme_dop_menus_2 || $revtheme_dop_menus_3) && $setting_all_settings['mobile_header'] !== '2') { ?>
								<button type="button" class="navbar-toggle" data-toggle="offcanvas"
								data-target=".navmenu.moblinks" data-canvas="body">
								<i class="fa fa-info"></i>
								</button>
							<?php } ?>
						<?php } else { ?>
							<?php if ($informations || $revtheme_header_links || $revtheme_dop_menus_2 || $revtheme_dop_menus_3) { ?>
								<button type="button" class="navbar-toggle" data-toggle="offcanvas"
								data-target=".navmenu.moblinks" data-canvas="body">
								<i class="fa fa-info" aria-hidden="true"></i>
								<span class="hidden-xs"><?php echo $text_header_information; ?></span>
								<i class="fa fa-chevron-left"></i>
								</button>
							<?php } ?>
						<?php } ?>
					</div>
				</div>
				<div class="top-links hidden-xs verh nav pull-left text-center">
				<div class="prmn-cmngr" data-confirm="true">
					<?php foreach ($informations as $information) { ?>
						<a href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a>
					<?php } ?>
					<?php if ($revtheme_header_links) { ?>
						<?php foreach ($revtheme_header_links as $revtheme_header_link) { ?>
							<a href="<?php echo $revtheme_header_link['link']; ?>"><?php echo $revtheme_header_link['title']; ?></a>
						<?php } ?>
					<?php } ?>
					<?php if ($revtheme_dop_menus_2) { ?>
						<ul class="list-inline ul_dop_menu">
							<?php foreach ($revtheme_dop_menus_2 as $revtheme_dop_menu) { ?>
								<?php if (isset($revtheme_dop_menu['children'])) { ?>
									<li class="dropdown"><a href="<?php echo $revtheme_dop_menu['href'.$config_language_id]; ?>" class="dropdown-toggle" data-toggle="dropdown"><?php echo $revtheme_dop_menu['name'.$config_language_id]; ?><i class="fa fa-chevron-down strdown"></i></a>
										<ul class="dropdown-menu dropdown-menu-right">
											<?php foreach ($revtheme_dop_menu['children'] as $child) { ?>
												<li><a href="<?php echo $child['href'.$config_language_id]; ?>"><?php echo $child['name'.$config_language_id]; ?></a></li>
											<?php } ?>
										</ul>
									</li>
								<?php } else { ?>
									<li><a href="<?php echo $revtheme_dop_menu['href'.$config_language_id]; ?>"><?php echo $revtheme_dop_menu['name'.$config_language_id]; ?></a></li>
								<?php } ?>
							<?php } ?>
						</ul>
					<?php } ?>
					<span class="foroppro" style="display:none;"></span>
				</div>

 

3406697634.jpg

Share this post


Link to post
Share on other sites

@plach в li обверните и модификатором, в код шаблона вообще лучше не лезть

Share this post


Link to post
Share on other sites
4 minutes ago, AWARO said:

@plach в li обверните и модификатором, в код шаблона вообще лучше не лезть

Как-то так? Куда это вставить подскажите, пожалуйста, дилетант я.

<li><div class="prmn-cmngr" data-confirm="true"></div></a></li>

Share this post


Link to post
Share on other sites

покажите сайт
можно и в лс

Share this post


Link to post
Share on other sites
9 минут назад, plach сказал:

Как-то так? Куда это вставить подскажите, пожалуйста, дилетант я.

<li><div class="prmn-cmngr" data-confirm="true"></div></a></li> 

тогда так

<a class="prmn-cmngr" data-confirm="true"></a>

лучше модификатором

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.