<?php require("config.php");

        $Photos = "actif";
?>
<!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" xml:lang="fr" lang="fr"> 
    <title>Idées Cake Design, Galerie photo de Gateau - <?php echo $jour; ?></title>
    <meta name="description" content="">
    <meta charset="utf-8">
    <link rel="icon" href="/images/favicon.ico" type="image/x-icon">    
    <link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/css/style.css">
    <script src="/js/jquery.js"></script>
    <script src="/js/superfish.js"></script>
    <script src="/js/jquery.hoverIntent.minified.js"></script>
    <script src="/js/jquery.easing.1.3.js"></script>
    <script src="/js/jquery.mobilemenu.js"></script>
    <script src="/js/jquery.ui.totop.js"></script>
    <script src="/js/script.js"></script>   
    <script>
        jQuery(function(){
            $().UItoTop({ easingType: 'easeOutQuart' });
        });
    </script>
<!--[if lt IE 8]>
   <div style=' clear: both; text-align:center; position: relative;'>
     <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
       <img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." />
    </a>
  </div>
<![endif]-->
<!--[if lt IE 9]>
    <script src="js/html5.js"></script>
    <link rel="stylesheet" href="css/ie.css"> 
<![endif]-->
</head>
<body>
<div class="bg">
<!--==============================header=================================-->
    <header>
        <div class="head-box1">
        <div class="container_16">
            <article class="grid_16">
                <div class="inner-block">
                    
                    <?php include("menu.php"); ?>
                    
            </div>
            </article>
        </div>
        </div>  
        <div class="container_16">
            <article class="grid_16 p6">
                <div class="inner-block"><h1><a href="http://www.bestcakes.fr" title="Best Cakes <?php echo $afficher_theme_titre; ?>" class="logo">Best Cakes</a></h1></div>                
            </article>
            <div class="clear"></div>
        </div>        
    </header>
    
    <!--==============================content================================-->
    <section id="content">      
        <div class="container_16">
                <article class="grid_4 suffix_1">
                    <div class="inner-block">
                        <h3 style="font-size:25px;">idées <span>Cake Design</span></h3>
                        <ul class="list1">

                            <?php include("nav2.php"); ?>
                    
                        </ul>
                    </div>
                </article>
                <article class="grid_12">
                    <div class="inner-block">
                        <h2 class="p12"></h2>
                        
                        <?php
                        $afficher_galeries = mysqli_query($mysqlLink, "SELECT * FROM galerie ORDER BY RAND()");
                        while($afficher_galerie = mysqli_fetch_array($afficher_galeries))
                        {
                        ?>
                        <span class="text6">Idées <?php echo $afficher_galerie['nom'] ?> Galerie Photos</span>
                        <div class="inner-block">
                            <?php
                            $selection_photos = mysqli_query($mysqlLink, "SELECT * FROM galerie_photos WHERE id_rubrique = '".$afficher_galerie['id']."'AND titre != '' ORDER BY RAND() LIMIT 6");
                            while($photo = mysqli_fetch_assoc($selection_photos))
                            {
                            ?>
                            <div class="grid_2" style="margin-left: 0px;">
                                <a href="http://www.bestcakes.fr/idees-cakedesign/<?php echo $afficher_galerie['rewrite']; ?>/<?php echo $photo['id_photo_new']; ?>_<?php echo $photo['rewrite']; ?>/">
                                    <img width="100" src="http://www.bestcakes.fr/photo/<?php echo $afficher_galerie['rewrite']; ?>/<?php echo $photo['id_photo']; ?>/thumb_<?php echo $photo['rewrite']; ?>-<?php echo $photo['id_photo'] ?>.jpg" style="width: 100px; margin-left: 0px;">
                                </a>
                            </div>
                            <?php
                            }
                            ?>
                        </div>   
                        <p style="clear:both;"><?php echo $afficher_galerie['meta_description'] ?></p>
                        <?php
                        }
                        ?>

                    </div>
                </article>
            <div class="clear"></div>
        </div>
    </section>

    <?php include("footer.php"); ?>

</div>
</body>
</html>