WPML support
  • First, thank you for this nice peace of work.
    Because i use this plugin in a multilangual environment i would like to have the title translated by WPML.
    The only way I was able to have it WPML aware was by modifying the code. I am not a programmer, but the fragment beneath fixed my problem.
    =================================================
    function widget($args, $instance) {
    extract( $args );

    echo $before_widget;
    //echo $before_title
    // . $instance['title']
    // . $after_title;
    $instance['title'] = __($instance['title']);
    echo $instance['title'];
    echo "
    ";
    bp_prettyphoto_gallery_list_galleries('max='.$instance['count'].'&show_thumb='.$instance['show_thumb'].'&owner_type='.$instance['owner_type'].'&type=photo&sitewide=true');
    echo "
    ";

    echo $after_widget;
    =================================================
    Again I am not a programmer and maybe this is a very stupid solution, but if not, would you add this change (or even a better one) to the next version?
    I think many would like WPML support.
    Thanks in advance.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter