Jump to content
Sign in to follow this  
newjey

Переместить корзину и поиск.

Recommended Posts

Добрый день.

Промучился уже два дня, не могу корректно изменить расположение блоков корзина и поиск.

Как перенести нарисовал.

Код хедера прилагаю.

11111.jpg

<?php if (isset($_SERVER['HTTP_USER_AGENT']) && !strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" xml:lang="<?php echo $lang; ?>">
<head>
<title><?php echo $title; ?></title>
<base href="<?php echo $base; ?>" />
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<?php if ($keywords) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php } ?>
<?php if ($icon) { ?>
<link href="<?php echo $icon; ?>" rel="icon" />
<?php } ?>
<?php foreach ($links as $link) { ?>
<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
<?php } ?>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/stylesheet.css" />
<?php foreach ($styles as $style) { ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/ui/themes/ui-lightness/jquery-ui-1.8.16.custom.css" />
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/external/jquery.cookie.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/colorbox/jquery.colorbox.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/colorbox/colorbox.css" media="screen" />
<script type="text/javascript" src="catalog/view/javascript/jquery/tabs.js"></script>
<script type="text/javascript" src="catalog/view/javascript/common.js"></script>
<?php foreach ($scripts as $script) { ?>
<script type="text/javascript" src="<?php echo $script; ?>"></script>
<?php } ?>
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie7.css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie6.css" />
<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('#logo img');
</script>

<![endif]-->
<?php echo $google_analytics; ?>
</head>
<body>
<?php if ($config_choose_site_layout != 'full') { ?><?php echo '<div id="container-box">' ?><?php } else { ?><?php echo '' ?><?php } ?>
<div id="tw"><!-- ***** Top Wrapper Start ***** -->	
	<div id="<?php if ($config_choose_site_layout == 'full') { ?><?php echo 'tw1' ?><?php } else { ?><?php echo 'tw1-box' ?><?php } ?>"><!-- ***** Top Wrapper 1 Start ***** -->	
		<div class="<?php if ($config_choose_site_layout == 'full') { ?><?php echo 'tw1-container' ?><?php } else { ?><?php echo 'tw1-container-box' ?><?php } ?>">
			<!-- ***** LINKS Start ***** -->
			<div class="links">
				<a href="<?php echo $account; ?>">О магазине</a>
				<a href="<?php echo $account; ?>">Доставка и оплата</a>
				</div>
			<!-- ***** LINKS End ***** -->
			
			<!-- ***** WELCOME Start ***** -->
				<div id="welcome">
					<?php if (!$logged) { ?>
					<?php echo $text_welcome; ?>
					<?php } else { ?>
					<?php echo $text_logged; ?>
					<?php } ?>  
					<a href="<?php echo $wishlist; ?>" id="wishlist-total"><?php echo $text_wishlist; ?></a>
				</div>
				<!-- ***** WELCOME End ***** -->
				
		</div>
	</div><!-- ***** Top Wrapper 1 End ***** -->	
	
	<div id="<?php if ($config_choose_site_layout == 'full') { ?><?php echo 'tw2' ?><?php } else { ?><?php echo 'tw2-box' ?><?php } ?>"><!-- ***** Top Wrapper 2 Start ***** -->	
		<div class="<?php if ($config_choose_site_layout == 'full') { ?><?php echo 'tw2-container' ?><?php } else { ?><?php echo 'tw2-container-box' ?><?php } ?>">
			<div id="header"><!-- ***** HEADER Start ***** -->
			
				<!-- ***** LOGO Start ***** -->
				<?php if ($logo) { ?>
					<div id="logo"><a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" /></a></div>
				<?php } ?>
				<!-- ***** LOGO End ***** -->
			    <img src="http:///image/data/_tel.png" title="телефоны" style="position: relative; left: 385px; top: 11px;" alt=""/>
			<!-- ***** CURRENCIES Start ***** -->
			<?php if ($config_display_header_currency) { ?>
				<?php echo $currency; ?>
			<?php } ?>
			<!-- ***** CURRENCIES End ***** -->
			
			<!-- ***** LANGUAGES Start ***** -->
			<?php if ($config_display_header_languages) { ?>
				<?php echo $language; ?>
			<?php } ?>
			<!-- ***** LANGUAGES End ***** -->
				
				<!-- ***** SEARCH Start ***** -->
				<div id="search">
					<div class="button-search"></div>
					<?php if ($filter_name) { ?>
						<input type="text" name="filter_name" value="<?php echo $filter_name; ?>" />
					<?php } else { ?>
						<input type="text" name="filter_name" value="<?php echo $text_search; ?>" onclick="this.value = '';" onblur="if (this.value == ''){this.value = '<?php echo $text_search; ?>';}" onfocus="if (this.value == '<?php echo $text_search; ?>'){this.value = '';}" onkeydown="this.style.color = '#777'; font-style = 'normal'; " />
					<?php } ?>
				</div>
				<!-- ***** SEARCH End ***** -->
				
				<!-- ***** CONTACTS Start ***** -->
				<?php if ($config_facontact_phone) { ?>
					<div id="call">
					<?php echo $text_call; ?><?php echo $config_facontact_phone; ?>
					</div>
				<?php } ?>
				<!-- ***** CONTACTS End ***** -->
				
				<!-- ***** CART Start ***** -->
				<?php echo $cart; ?>
				<!-- ***** CART End ***** -->
			 
			</div><!-- ***** HEADER End ***** -->
		</div>
	</div><!-- ***** Top Wrapper 2 End ***** -->	
	
	<div id="<?php if ($config_choose_site_layout == 'full') { ?><?php echo 'tw3' ?><?php } else { ?><?php echo 'tw3-box' ?><?php } ?>"><!-- ***** Top Wrapper 3 Start ***** -->	
		<div class="<?php if ($config_choose_site_layout == 'full') { ?><?php echo 'tw3-container' ?><?php } else { ?><?php echo 'tw3-container-box' ?><?php } ?>">
			<!-- ***** MENU Start ***** -->	
			<?php if ($categories) { ?>
			<div id="menu">
				<ul>
				<?php foreach ($categories as $category) { ?>
					<li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
						<?php if ($category['children']) { ?>
						<div>
							<?php for ($i = 0; $i < count($category['children']);) { ?>
							<ul>
								<?php $j = $i + ceil(count($category['children']) / $category['column']); ?>
								<?php for (; $i < $j; $i++) { ?>
									<?php if (isset($category['children'][$i])) { ?>
									<li><a href="<?php echo $category['children'][$i]['href']; ?>"><?php echo $category['children'][$i]['name']; ?></a></li>
									<?php } ?>
								<?php } ?>
							</ul>
							<?php } ?>
						</div>
						<?php } ?>
					</li>
				<?php } ?>
				</ul>
			</div>
			<?php } ?>
			<!-- ***** MENU End ***** -->
		</div>
	</div><!-- ***** Top Wrapper 3 End ***** -->	
	
</div><!-- ***** Top Wrapper End ***** -->	

<div id="container">
		<div id="notification"></div>

Как ни пробую переносить, не получается.

Спасибо за ранее.

Share this post


Link to post
Share on other sites

У них в css заданы абсолютные координаты. Вот там и нужно править

Share this post


Link to post
Share on other sites

Вот еще бы ссылку на сайт кинул бы, ваще красава была бы. Можно было бы сверстать. А так по моему тут ничего сложного, 3 колонки и всё!

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.

Sign in to follow this  

  • 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.