Viewing 1 replies (of 1 total)
  • Thread Starter mlh1407

    (@mlh1407)

    I have mixed up a solution ,, dont know if it is any good

    in core.php in the loadResources part add this
    wp_register_script(
    ‘fancy’,
    plugins_url( ‘fancybox/jquery.fancybox-1.3.4.pack.js’, __FILE__ ),
    array( ‘jquery’ ),
    self::VERSION,
    true
    );
    wp_register_style(
    self::PREFIX .’style’,
    plugins_url( ‘style.css’, __FILE__ ),
    false,
    self::VERSION,
    false
    );
    and add this after the if( !is_admin() && $this->mapShortcodeCalled ) – part
    wp_enqueue_script(‘fancy’);

    $params = array(
    ‘autoDimensions’ => ‘true’,
    ‘width’ => 640,
    ‘height’ => 480
    );
    wp_localize_script( ‘fancy’, ‘my_unique_name’, $params );

    aaand in functions.js
    ad this
    $.fancybox(
    infowindowcontent,
    {
    });
    $.fancybox.resize();

    if you want to change the params from javascript i guess one could just write my_unique_name.pamName=newValue (my_unique_name.width=320) before you make the fancybox call ?

    anyways … im no really a programmer – what do you think ?

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Basic Google Maps Placemarks] – show content in lightbox’ is closed to new replies.