Две страницы, одна html, другая php. В первой fancybox работает, во второй нет, почему?
http://futbick.ru/aa.html
<html>
<script src="//code.jquery.com/jquery-3.3.1.min.js"></script>
<link rel="stylesheet" href="/fancybox/dist/jquery.fancybox.min.css" />
<script src="/fancybox/dist/jquery.fancybox.min.js"></script>
<a data-fancybox="gallery" href="/fm/emblem/293.png"><img src="/fm/emblem/293.png"></a>
<a data-fancybox="gallery" href="/fm/emblem/6977.png"><img src="/fm/emblem/6977.png"></a>
<a data-fancybox="gallery" href="/fm/emblem/4005.png"><img src="/fm/emblem/4005.png"></a>
</html>http://futbick.ru/aa.php
В head.php подключил
"\n" . '<script src="//code.jquery.com/jquery-3.3.1.min.js"></script>' .
"\n" . '<link rel="stylesheet" href="' . $set['homeurl'] . '/fancybox/dist/jquery.fancybox.min.css" />' .
"\n" . '<script src="' . $set['homeurl'] . '/fancybox/dist/jquery.fancybox.min.js"></script>' .В самом php файле прописал
<?php
define('_IN_JOHNCMS', 1);
require('incfiles/core.php');
$headmod = 'mainpage';
require('incfiles/head.php');
echo '<a data-fancybox="gallery" href="../fm/emblem/293.png"><img src="../fm/emblem/293.png" /></a>';
echo '<a data-fancybox="gallery" href="../fm/emblem/6977.png"><img src="../fm/emblem/6977.png" /></a>';
echo '<a data-fancybox="gallery" href="../fm/emblem/4005.png"><img src="../fm/emblem/4005.png" /></a>';
require('incfiles/end.php');
?>