<?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 -->
    <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 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'?>
                <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>
								
								<? $i=1;?>
                               	<? $query=mysql_query("Select * from slider 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="1920" height="1080" >
                                    <div class="tp-caption mfnrs_minimal_medium_light   tp-resizeme" id="slide-1-layer-1" data-x="center" data-hoffset="" data-y="center" data-voffset="" data-width="['auto']" data-height="['auto']" data-transform_idle="o:1;" data-transform_in="opacity:0;s:1500;e:Power2.easeInOut;" data-transform_out="opacity:0;s:300;" data-start="500" data-splitin="none" data-splitout="none" data-responsive_offset="on" style="z-index: 5; white-space: nowrap; font-size: 20px; line-height: 22px;">
                                        </div>
								</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 class="entry-content">
                        <div class="section mcb-section  section-border-bottom  bg-cover" style="padding-top:0px; padding-bottom:80px; 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:0px 0 0 0">
                                    <div class="mcb-wrap-inner">
                                        <div class="column mcb-column one column_column ">
                                            <div class="column_attr clearfix align_center">
                                                
                                                <hr class="no_line" style="margin: 0 auto 20px;" />
                                                <h3>Projelerimiz</h3>
                                            </div>
                                        </div>
                                        <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="#">Hepsi</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">
                                                <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/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>