<?php
session_start();
include_once 'control/ayarlar.php';
$mysql_baglanti= new yonetici(); 
$mysql_baglanti->mysql_baglan();
error_reporting(E_ALL ^ E_NOTICE);
ini_set('error_reporting', E_ALL ^ E_NOTICE); 
?>
<? include 'functions.php'?>
<? $settings=mysql_fetch_assoc(mysql_query("Select * from settings where id=1"))?>
<!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">
    <title><?=stripslashes($settings['meta_title'])?></title>

	<base href="<?=stripslashes($settings['base'])?>" /> 
	<meta name="keywords" content="<?=stripslashes($settings['meta_keywords'])?>"/>
	<meta name="description" content="<?=stripslashes($settings['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'>

    <!-- Revolution Slider -->

</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 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" class="bg-parallax" data-enllax-ratio="0.3">
            <header id="Header">
                <? include 'inc_header.php'?>
            </header>
            <div id="Subheader" style="padding:150px 0 100px;">
                <div class="container">
                    <div class="column one">
                        <h1 class="title">Projelerimiz</h1>
                    </div>
                </div>
            </div>
        </div>
		<div id="Content">
            <div class="content_wrapper clearfix">
                <div class="sections_group">
                    <div class="entry-content">
                        <div class="section mcb-section  section-border-bottom  bg-cover" style="padding-top:0px; padding-bottom:30px; background-color:#f7f7f7; background-image:url(images/home_minimal_sectionbg2.png); background-repeat:no-repeat; background-position:center top; background-attachment:fixed;">
                            <div class="section_wrapper mcb-section-inner">
                                <div class="wrap mcb-wrap one  valign-top clearfix" style="margin-top:-40px">
                                    <div class="mcb-wrap-inner">
                                        <div class="column mcb-column one column_image ">
                                            <div class="image_frame image_item no_link scale-with-grid aligncenter no_border">
                                                <div class="image_wrapper"><img class="scale-with-grid" src="images/home_minimal_sep.png" alt="home_minimal_sep" width="11" height="86" /> </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="wrap mcb-wrap one  valign-top clearfix" style="padding:10px 0 0 0">
                                    <div class="mcb-wrap-inner">
                                        
                                        <div class="column mcb-column one column_portfolio ">
                                            <div class="column_filters">
                                                <div id="Filters" class="isotope-filters filters4portfolio" data-parent="column_filters">
                                                    <div class="filters_wrapper">
                                                        <ul class="categories">
                                                            <li class="reset current-cat">
                                                                <a class="all" data-rel="*" href="#">Tüm Kategoriler</a> 
															</li>
															<? $q=mysql_query("Select * from categories  where parent='0' and parents='0' order by priority asc");?>
															<? while ($d=mysql_fetch_assoc($q)){?>
															<? $l=mysql_fetch_assoc(mysql_query("Select * from l_categories where category='".$d['id']."' and language='".$language."'"))?>
                                                            <li class="branding">
                                                                <a data-rel=".category-<?=stripslashes($d['id'])?>" href="<?=stripslashes($l['link'])?>"><?=stripslashes($l['title'])?></a> 
															</li>
                                                            <? }?>
                                                        </ul>
                                                    </div>
                                                </div>
                                                <div class="portfolio_wrapper isotope_wrapper ">
                                                    <ul class="portfolio_group lm_wrapper masonry isotope col-3 masonry-minimal">
														<? $q=mysql_query("Select * from projects where featured_project='0' order by RAND()");?>
														<? 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 isotope-item category-<?=stripslashes($d['parent'])?>  has-thumbnail">
                                                            <div class="image_frame scale-with-grid">
                                                                <div class="image_wrapper">
                                                                    <a href="<?=stripslashes($l['link'])?>">
                                                                        <div class="mask"></div><img src="<?=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 class="section mcb-section" style="padding-top:0px;">
                            <div class="section_wrapper mcb-section-inner">
                                <div class="wrap mcb-wrap one  valign-top clearfix" style="margin-top:-70px">
                                    <div class="mcb-wrap-inner">
                                        <div class="column mcb-column one-sixth column_placeholder">
                                            <div class="placeholder">
                                                &nbsp;
                                            </div>
                                        </div>
                                        
                                    </div>
                                </div>
                                
								
                                
                            </div>
                        </div>
                        <div class="section mcb-section" style="padding-top:0px; padding-bottom:70px;" >
                            <div class="section_wrapper mcb-section-inner">
                                <div class="wrap mcb-wrap one-sixth  column-margin-0px valign-top clearfix">
                                    <div class="mcb-wrap-inner">
                                        <div class="column mcb-column one column_placeholder">
                                            <div class="placeholder">
                                                &nbsp;
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                
                                <div class="wrap mcb-wrap one  column-margin-10px valign-top clearfix" style="padding:50px 0 0 0; background-image:url(images/home_minimal_heading2.png); background-repeat:no-repeat; background-position:center bottom;">
                                    <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_sep2.png" alt="home_minimal_sep2" width="30" height="18" /> </div>
                                                </div>
                                                <hr class="no_line" style="margin: 0 auto 20px;" />
                                                <h3>Kimlerle çalıştık?</h3>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="wrap mcb-wrap one  valign-top clearfix" style="padding:40px 0 0 0">
                                    <div class="mcb-wrap-inner">
                                        <div class="column mcb-column one column_clients ">
                                            <ul class="clients clearfix ">
											<? $query=mysql_query("Select * from reference_files where image<>'' order by rand() limit 5");?>
											<? while ($data=mysql_fetch_assoc($query)){?>
												<li style="width:20%">
                                                    <div class="client_wrapper">
                                                        <a target="_blank" href="referanslarimiz.html" title="<?=stripslashes($data['title'])?>">
                                                            <div class="gs-wrapper"><img width="141" height="75" src="photo/141/75/100/<?=stripslashes($data['image'])?>" class="scale-with-grid wp-post-image" alt="home_minimal_clients1" sizes="(max-width: 141px) 100vw, 141px" /> </div>
                                                        </a>
                                                    </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 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>