• Resolved Jesper Bay Eriksen

    (@bayeriksen)


    In the class pg_Activity_Widget there is a problem in the function widget

    If empty( $allowed_posts ) is true in line 888 it’s execute a return in line 892,
    then you are missing the echo $args['after_widget'];

    Another thing:
    It would be nice if pg_Forums_Widget and pg_Activity_Widget works equally.
    In the pg_Activity_Widget class the if ( empty( $allowed_posts )) { is called after
    echo $args['before_widget'];

    In the class pg_Forums_Widget if ( empty( $allowed_posts )) { is called before echo $args['before_widget'];

    That means in pg_Forums_Widget there is no widget title set and in pg_Activity_Widget the widget title is set. I prepare to see the title, also in the case there is no items.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Robin W

    (@robin-w)

    thanks, and always pleased to received improvement suggestions to my code.

    Let me take a look, and I’ll come back.

    Plugin Author Robin W

    (@robin-w)

    I’ve taken a look and altered both to make them consistent.

    It will be in the next release, which I expect to do in the next couple of days

    Plugin Author Robin W

    (@robin-w)

    version 3.3.5 just released should correct this

    Thread Starter Jesper Bay Eriksen

    (@bayeriksen)

    Nice work, my problems is solved.

    I don’t use pg_Topics_Widget and pg_Replies_Widget, but i think you should add echo $args['after_widget']; to if ( empty( $allowed_posts ))

    Plugin Author Robin W

    (@robin-w)

    thanks

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘pg_Activity_Widget and pg_Forums_Widget’ is closed to new replies.