1
有沒有人設法讓prettyPhoto與Isotope一起工作?同位素和prettyPhoto
我已經整合了它 - 但是當我使用同位素過濾來查看一組特定的圖像時,我仍然在prettyPhoto中獲得全套圖像。
你可以看到我的試驗場頁:http://wordpress.markrichardson.co.uk/wedding-photography-gallery/
我正在使用的代碼是:
<script type="text/javascript" charset="utf-8">
$(function(){ var $container = $('#wedding');
$checkboxes = $('#filters input'); $checkboxes.change(function(){
var filters = [];
$checkboxes.filter(':checked').each(function(){
filters.push(this.value);
});
filters = filters.join(', ');
$container.isotope({ filter: filters });
});
$container.isotope({
// options
itemSelector : '.photo',
layoutMode : 'fitRows',
sortBy : 'random',
sortAscending : true
});
}); </script> <script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("a[rel^='[wedding_photography]']").prettyPhoto({
slideshow: 5000, /* false OR interval time in ms */
opacity: 0.70,
show_title: false,
allow_resize: false,
default_width: 950,
default_height: 500,
theme: 'light_rounded',
horizontal_padding: 20,
overlay_gallery: false,
social_tools: false,
deeplinking: false
});
});
</script>