Hello,
I think there is a bug in the following file:
com_easyblog -> themes -> ja_intranet -> authors -> item.js
EasyBlog.require()
.library('masonry', 'imagesloaded')
.script('posts/posts')
.done(function($) {
$('[data-blog-posts]').implement(EasyBlog.Controller.Posts);
// MASONRY
var container = $('.eb-posts-masonry');
$('img').load(function(){
container.imagesLoaded(function(){
container.masonry({
itemSelector : '.eb-post',
isRTL: false
});
});
});
$('.eb-masonry').imagesLoaded( function(){
$('.eb-masonry').masonry({
itemSelector: '.eb-masonry-post'
});
});
$('.eb-masonry').masonry({
itemSelector: '.eb-masonry-post'
});
});
I think you need <?php echo $this->output(‘site/blogs/nickel’); ?> at the top of the page.
Also, I think line 4 should be as follows: .script(‘site/posts/posts’)
SOLUTION:
To fix the problem, I think you can use the original item.js file located within the nickel theme:
<?php echo $this->output('site/blogs/nickel'); ?>
EasyBlog.require()
.library('masonry', 'imagesloaded')
.script('site/posts/posts')
.done(function($) {
$('[data-blog-posts]').implement(EasyBlog.Controller.Posts, {
"ratings": <?php echo $this->config->get('main_ratings') ? 'true' : 'false';?>
});
// MASONRY
var container = $('.eb-posts-masonry');
$('img').load(function(){
container.imagesLoaded(function(){
container.masonry({
itemSelector : '.eb-post',
isRTL: false
});
});
});
$('.eb-masonry').imagesLoaded( function(){
$('.eb-masonry').masonry({
itemSelector: '.eb-masonry-post'
});
});
$('.eb-masonry').masonry({
itemSelector: '.eb-masonry-post'
});
});
QUESTION: Would you please fix the themes/ja_intranet/authors/item.js with the correct paths when you release the next update?
Thank you