<? $page_data_l=mysql_fetch_assoc(mysql_query("Select * from l_projects where link='".addslashes($_GET['link'])."'"))?>
<?
	$_SESSION['language']=$page_data_l['language'];
	$language=$page_data_l['language'];
?>
<? $page_data=mysql_fetch_assoc(mysql_query("Select * from projects where id='".addslashes($page_data_l['project'])."'"))?>
<!DOCTYPE html>
<!--[if lt IE 7]><html class="no-js lt-ie10 lt-ie9 lt-ie8 lt-ie7 "> <![endif]-->
<!--[if IE 7]><html class="no-js lt-ie10 lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]><html class="no-js lt-ie10 lt-ie9"> <![endif]-->
<!--[if IE 9]><html class="no-js lt-ie10"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->

<head>

    <!-- Basic Page Needs -->
    <meta charset="utf-8">
    <? $settings=mysql_fetch_assoc(mysql_query("Select * from settings where id=1"))?>
	<base href="<?=stripslashes($settings['base'])?>" /> 
	<title><?=stripslashes($page_data_l['meta_title'])?></title>
	<meta name="keywords" content="<?=stripslashes($page_data_l['meta_keywords'])?>"/>
	<meta name="description" content="<?=stripslashes($page_data_l['meta_description'])?>"/>

    <!-- Mobile Specific Metas -->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

    <!-- Favicons -->
    <link rel="shortcut icon" href="images/favicon.ico">

    <!-- FONTS -->
    <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Roboto:100,300,400,400italic,700'>
    <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Patua+One:100,300,400,400italic,700'>
    <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Playfair+Display:300,300italic,400,400italic,700,700italic'>
    <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Lato:100,300,400'>

    <!-- CSS -->
    <link rel='stylesheet' href='css/global.css'>
    <link rel='stylesheet' href='css/structure.css'>
    <link rel='stylesheet' href='css/minimal.css'>
    <link rel='stylesheet' href='css/custom.css'>
	<link rel="stylesheet" href="plugins/rs-plugin/css/settings.css">
</head>

<body class="color-custom style-simple layout-full-width nice-scroll-on mobile-tb-left button-flat if-zoom if-border-hide no-content-padding single-template-intro header-transparent header-fw minimalist-header-no sticky-header sticky-tb-color ab-hide subheader-both-center menuo-no-borders menuo-right footer-copy-center">
    <div id="Wrapper">
        <div id="Header_wrapper" style="background-image:url(images/home_minimal_portfolioheader_1.jpg);" class="bg-parallax" data-enllax-ratio="0.3">
            <header id="Header">
               	<? include 'inc_header.php'?>
				<div class="mfn-main-slider" id="mfn-rev-slider">
                    <div id="rev_slider_1_1_wrapper" class="rev_slider_wrapper fullwidthbanner-container" style="margin:0px auto;background-color:transparent;padding:0px;margin-top:0px;margin-bottom:0px;">
                        <div id="rev_slider_1_1" class="rev_slider fullwidthabanner" style="display:none;" data-version="5.2.5.1">
                            <ul>
								<li data-index="rs-1" data-transition="fade" data-slotamount="default" data-hideafterloop="0" data-hideslideonmobile="off" data-easein="default" data-easeout="default" data-masterspeed="300" data-rotate="0" data-saveperformance="off" data-title="Slide" data-param1="" data-param2="" data-param3="" data-param4="" data-param5="" data-param6="" data-param7="" data-param8="" data-param9="" data-param10="" data-description="">
                                    <img src="<?=$page_data['cover_image']?>" alt="" title="<?=$page_data_l['title']?>" data-bgposition="center center" data-bgfit="cover" data-bgrepeat="no-repeat" class="rev-slidebg" data-no-retina width="100%" >
								</li>
								<? $i=2;?>
                               	<? $query=mysql_query("Select * from project_gallery where project='".$page_data['id']."' order by priority asc");?>
                               	<? while ($data=mysql_fetch_assoc($query)){?>
                                <li data-index="rs-<?=$i?>" data-transition="fade" data-slotamount="default" data-hideafterloop="0" data-hideslideonmobile="off" data-easein="default" data-easeout="default" data-masterspeed="300" data-rotate="0" data-saveperformance="off" data-title="Slide" data-param1="" data-param2="" data-param3="" data-param4="" data-param5="" data-param6="" data-param7="" data-param8="" data-param9="" data-param10="" data-description="">
                                    <img src="<?=$data['image']?>" alt="" title="Home" data-bgposition="center center" data-bgfit="cover" data-bgrepeat="no-repeat" class="rev-slidebg" data-no-retina width="100%" >
								</li>
                                <? $i++;?>
                                <? }?>
								
                                
                            </ul>
                            <div class="tp-bannertimer tp-bottom" style="visibility: hidden !important;"></div>
                        </div>
                    </div>
                </div>
            </header>
        </div>
        
        <div id="Content">
            <div class="content_wrapper clearfix">
                <div class="sections_group">
                    <div id="portfolio-item-32" class="post-32 portfolio type-portfolio has-post-thumbnail  portfolio-types-branding">
                        
                        <div class="entry-content">
                            <div class="section mcb-section" style="padding-top:0px; padding-bottom:100px; background-color:#222224">
                                <div class="section_wrapper mcb-section-inner">
                                    <div class="wrap mcb-wrap one  valign-top clearfix" style="padding:40px 0 0">
                                        <div class="mcb-wrap-inner">
											
											
											<div class="column mcb-column one column_column ">
												<div class="column_attr clearfix align_center">
													<div class="image_frame image_item no_link scale-with-grid alignnone no_border">
														<div class="image_wrapper"><img class="scale-with-grid" src="images/home_minimal_sep6.png" alt="home_minimal_sep1" width="35" height="17" /> </div>
													</div>
													<hr class="no_line" style="margin: 0 auto 20px;" />
													<h1 style="color: #fff;"><?=stripslashes($page_data_l['title'])?></h1>
													<hr class="no_line" style="margin: 0 auto 20px;" />
													<h4  style="color: #fff;">
														<i class="icon-clock"></i><span><?=stripslashes($page_data['project_date'])?></span> - 
														<i class="icon-location"></i><span><?=stripslashes($page_data_l['location'])?></span>
													</h4>
													<div class="image_frame image_item no_link scale-with-grid alignnone no_border">
														<div class="image_wrapper"><img class="scale-with-grid" src="images/home_minimal_sep4.png" alt="home_minimal_sep1" width="53" height="1" /> </div>
													</div>
													
													<hr class="no_line" style="margin: 0 auto 20px;" />
													<h3 style="color: #fff;"><?=stripslashes($page_data_l['short_content'])?></h3>
													<hr class="no_line" style="margin: 0 auto 20px;" />
												</div>
											</div>
											
											
                                            <div class="column mcb-column one column_column ">
                                                <div class="column_attr clearfix align_center">
                                                   	<?=stripslashes($page_data_l['content'])?>
                                                </div>
                                            </div>
                                            
                                        </div>
                                    </div>
                                </div>
                            </div>
							
							
                            <div class="section" style="margin-top:50px">
								<div class="section_wrapper clearfix">
									
									
									<div class="column mcb-column one column_column ">
										<div class="column_attr clearfix align_center">
											<div class="image_frame image_item no_link scale-with-grid alignnone no_border">
												<div class="image_wrapper"><img class="scale-with-grid" src="images/home_minimal_sep1.png" alt="home_minimal_sep1" width="35" height="17" /> </div>
											</div>
											<hr class="no_line" style="margin: 0 auto 20px;" />
											<h2>Benzer Projeler</h2>
											<hr class="no_line" style="margin: 0 auto 20px;" />
										</div>
									</div>
									
									<div class="column one column_portfolio">
										<div class="portfolio_wrapper isotope_wrapper">
											<ul class="portfolio_group lm_wrapper masonry isotope masonry-minimal col-3">
												<? $q=mysql_query("Select * from projects where parent='".$page_data['parent']."' order by RAND() limit 3");?>
												<? while ($d=mysql_fetch_assoc($q)){?>
												<? $l=mysql_fetch_assoc(mysql_query("Select * from l_projects where project='".$d['id']."' and language='".$language."'"))?>
												<li class="portfolio-item has-thumbnail">
													<div class="image_frame scale-with-grid">
														<div class="image_wrapper">
															<a href="<?=stripslashes($l['link'])?>">
																<div class="mask"></div><img src="photo/780/780/100/<?=stripslashes($d['image'])?>" class="scale-with-grid wp-post-image" alt="<?=stripslashes($l['title'])?>" itemprop="image" sizes="(max-width: 780px) 100vw, 780px" />
																<div class="desc aligncenter">
																			<h4><?=stripslashes($l['title'])?></h4>
																		</div>
															</a>

														</div>
													</div>
												</li>
												<? }?>
											</ul>
										</div>
									</div>
								</div>
							</div>
							
							
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <? include 'inc_footer.php'?>
    </div>

    <!-- JS -->
    <script src="js/jquery-2.1.4.min.js"></script>

    <script src="js/mfn.menu.js"></script>
    <script src="js/jquery.plugins.js"></script>
    <script src="js/jquery.jplayer.min.js"></script>
    <script src="js/animations/animations.js"></script>
    <script src="js/translate3d.js"></script>
    <script src="js/scripts.js"></script>
	<script src="plugins/rs-plugin/js/jquery.themepunch.tools.min.js"></script>
    <script src="plugins/rs-plugin/js/jquery.themepunch.revolution.min.js"></script>
    <script src="plugins/rs-plugin/js/extensions/revolution.extension.video.min.js"></script>
    <script src="plugins/rs-plugin/js/extensions/revolution.extension.slideanims.min.js"></script>
    <script src="plugins/rs-plugin/js/extensions/revolution.extension.actions.min.js"></script>
    <script src="plugins/rs-plugin/js/extensions/revolution.extension.layeranimation.min.js"></script>
    <script src="plugins/rs-plugin/js/extensions/revolution.extension.kenburn.min.js"></script>
    <script src="plugins/rs-plugin/js/extensions/revolution.extension.navigation.min.js"></script>
    <script src="plugins/rs-plugin/js/extensions/revolution.extension.migration.min.js"></script>
    <script src="plugins/rs-plugin/js/extensions/revolution.extension.parallax.min.js"></script>

    <script>
        var tpj = jQuery;
        var revapi1;
        tpj(document).ready(function() {
            if (tpj("#rev_slider_1_1").revolution == undefined) {
                revslider_showDoubleJqueryError("#rev_slider_1_1");
            } else {
                revapi1 = tpj("#rev_slider_1_1").show().revolution({
                    sliderType: "standart",
                    sliderLayout: "auto",
                    dottedOverlay: "none",
                    delay: 9000,
                    navigation: {
                        keyboardNavigation: "off",
                        keyboard_direction: "horizontal",
                        mouseScrollNavigation: "off",
                        mouseScrollReverse: "default",
                        onHoverStop: "off",
                        bullets: {
                            enable: true,
                            hide_onmobile: false,
                            style: "hesperiden",
                            hide_onleave: false,
                            direction: "horizontal",
                            h_align: "center",
                            v_align: "bottom",
                            h_offset: 0,
                            v_offset: 50,
                            space: 5,
                            tmp: ''
                        }
                    },
                    visibilityLevels: [1240, 1024, 778, 480],
                    gridwidth: 1240,
                    gridheight: 600,
                    lazyType: "none",
                    shadow: 0,
                    spinner: "spinner2",
                    autoHeight: "off",
                    disableProgressBar: "on",
                    hideThumbsOnMobile: "off",
                    hideSliderAtLimit: 0,
                    hideCaptionAtLimit: 0,
                    hideAllCaptionAtLilmit: 0,
                    debugMode: false,
                    fallbacks: {
                        simplifyAll: "off",
                        disableFocusListener: false,
                    }
                });
            }
        });
        /*]]>*/
    </script>
    <script id="mfn-dnmc-retina-js">
        jQuery(window).load(function() {
            var retina = window.devicePixelRatio > 1 ? true : false;
            if (retina) {
                var retinaEl = jQuery("#logo img.logo-main");
                var retinaLogoW = retinaEl.width();
                var retinaLogoH = retinaEl.height();
                retinaEl.attr("src", "images/logo.png").width(retinaLogoW).height(retinaLogoH);
                var stickyEl = jQuery("#logo img.logo-sticky");
                var stickyLogoW = stickyEl.width();
                var stickyLogoH = stickyEl.height();
                stickyEl.attr("src", "images/logo.png").width(stickyLogoW).height(stickyLogoH);
                var mobileEl = jQuery("#logo img.logo-mobile");
                var mobileLogoW = mobileEl.width();
                var mobileLogoH = mobileEl.height();
                mobileEl.attr("src", "images/logo.png").width(mobileLogoW).height(mobileLogoH);
            }
        });
    </script>
</body>

</html>