I got a problem with my fancy box, for some reason it just opens the images normally. here is my code :
<?php
include 'lib/classes/Db.php';
include 'lib/classes/Switch.php';
$Switch = new ThemeSwitch();
$Switch->loadActiveTheme();
$Switch->setImgPaths();
// print '"' . $Switch->imgPath . 'home-bg.jpg"';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hertog van Baerle</title>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet">
<!-- Add fancyBox -->
<link rel="stylesheet" href="js/fancybox/source/jquery.fancybox.css?v=2.1.5" type="text/css" media="screen" />
<script type="text/javascript" src="js/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
<script type="text/javascript">
$(document).ready(function() {
$("a.fancybox").fancybox();
});
</script>
<!-- Custom css -->
<link href="css/style.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="http://ift.tt/1fK4qT1"></script>
<script src="http://ift.tt/1knl5gY"></script>
<![endif]-->
</head>
<body>
<?php
if(!isset($_GET['page'])){
include 'inc/pages/home.php';
} else {
$page = $_GET['page'];
switch($page){
case 'fotoboek':
include 'inc/pages/fotoboek.php';
break;
default:
include 'inc/pages/notfound.php';
break;
}
}
?>
<script src="http://ift.tt/1g1yFpr"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
</body>
</html>
As you can see i included a page called fotoboek.php, thats where the fancybox tagg with my img is. but it just doesnt work, any of you guys got a clue whats wrong ?
all the filepaths are correct.
Aucun commentaire:
Enregistrer un commentaire