Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • c45rs82wVm9y Friend
    #1057328

    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

    Saguaros Moderator
    #1057529

    Hi,

    Thanks for sharing, I will share with development team also for further update.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 1 reply, has 2 voices, and was last updated by  Saguaros 6 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum