<?php
    /*
		*
		*                        Copyright (C) 2015 Puiu Calin
		*
		*       This program is a commercial software. Copying or distribution without a license is forbidden.
		*     
	*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="<?php echo str_replace('_', '-', osc_current_user_locale()); ?>">
    <head>	
        <?php osc_current_web_theme_path('head.php'); ?>
        <meta name="robots" content="index, follow" />
        <meta name="googlebot" content="index, follow" />
	</head>
    <body class="msss">
        <?php osc_current_web_theme_path('header.php'); ?>
		<div class="to_hide">
			<div class="form_publishk">
				<?php osc_current_web_theme_path('inc.search.php'); ?>
			</div>
			<div class="content home">
				<div id="main" class="home-left-side">
					<?php osc_current_web_theme_path('inc.main.php') ; ?>
				</div>
				<div id="sidebar" class="home-right-side"> 
					<?php if( osc_get_preference('region_pub', 'one') !== '1') { ?>
						<div class="navigation">
							<p class="title"><?php _e('Find your buyers', 'one'); ?></p>
							<p class="tcenter">
								<a href="<?php echo osc_item_post_url_in_category(); ?>" >
									<?php _e("Publish your ad for free", 'one');?>
								</a>
							</p>
							<div class="rest">
								<span><?php _e("Free and without an account", 'one');?></span>
								<span><?php _e("Up to 8 photos in the announcement", 'one');?></span>
								<span><?php _e("Valid for 30 days", 'one');?></span>
							</div>
							<div class="states">
								<span class="name"><?php _e("Your listings", 'one');?>:</span>
								<a href="<?php echo osc_user_login_url(); ?>"><span><?php _e("Modify", 'one');?></span></a>,
								<a href="<?php echo osc_user_login_url(); ?>"><span> <?php _e("Promote", 'one');?></span></a>,
								<a href="<?php echo osc_user_login_url(); ?>"><span> <?php _e("Delete", 'one');?></span></a>
							</div>
						</div>
						<?php } else { ?>
						<div class="navigation2">
							<?php osc_current_web_theme_path('regions.php') ; ?>
						</div>  
					<?php } ?>  
				</div>
				<div class="clear"></div>
				<?php if( osc_get_preference('homepage-728x90', 'one') != '') { ?>
					<!-- homepage ad 728x60-->
					<div class="ads_728">
						<?php echo osc_get_preference('homepage-728x90', 'one'); ?>
					</div>
					<!-- /homepage ad 728x60-->
				<?php } ?>
			</div>
			<?php if( osc_get_preference('latest', 'one') == 1) { ?>
				<?php osc_current_web_theme_path('latest.php') ; ?>
			<?php } ?>
			<div class="mobile_category">
				<?php osc_current_web_theme_path('category.php') ; ?>
			</div>
			<div class="social_share">
				<span><?php _e("Join us on social networks", 'one');?> :</span>
				<ul class="sccc">			
					<li><?php echo osc_get_preference('social_facebook', 'one'); ?></li>
					<li><?php echo osc_get_preference('social_twitter', 'one'); ?></li>
					<li><?php echo osc_get_preference('social_google', 'one'); ?></li>
				</ul>
			</div>
			<?php if( osc_get_preference('text_home', 'one') != '') { ?>
				<div class="text_site">
					<?php echo osc_get_preference('text_home', 'one'); ?>
				</div>
			<?php } ?>
			<div class="frecvent">		
				<span><?php _e("Most searched items", 'one');?> :</span>
				<?php if(osc_count_latest_searches()>0) { ?>
				<?php most_used_search();?>	
				<?php } ?>		
			</div>
		</div>
		<script type="text/javascript">
			$(document).ready(function() {	
				$(".category strong").click(function(){
					$(".to_hide").hide();
					$(".second_categoriess").css("display", "inline-block");
				});
			});	
			
		</script>
		<?php osc_current_web_theme_path('inc.main.second.php') ; ?>
        <?php osc_current_web_theme_path('footer.php') ; ?>
	</body>
</html>
