2011-11-22, 03:39:13
A way of protecting the admin files is to copy the related files inside the template folder. I just tested this with Fancybox successfully
1. theme file inside the <head></head> tags just before <?php get_header(); ?>
<script type="text/javascript" src="<?php get_theme_url(); ?>/assets/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php get_theme_url(); ?>/assets/js/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" href="<?php get_theme_url(); ?>/assets/css/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
<script>
jQuery(document).ready(function() {
if(jQuery().fancybox) {
$("a[rel*=enlarge]").fancybox();
}
});
</script>
2. In the page the image link should have
<a href="your link" class="fancybox" rel="enlarge" title="your title"><img src="your image"></a>
1. theme file inside the <head></head> tags just before <?php get_header(); ?>
<script type="text/javascript" src="<?php get_theme_url(); ?>/assets/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php get_theme_url(); ?>/assets/js/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" href="<?php get_theme_url(); ?>/assets/css/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
<script>
jQuery(document).ready(function() {
if(jQuery().fancybox) {
$("a[rel*=enlarge]").fancybox();
}
});
</script>
2. In the page the image link should have
<a href="your link" class="fancybox" rel="enlarge" title="your title"><img src="your image"></a>