Pronamic Google Mapsをwidth 100%で表示

Pocket

if ( function_exists( 'pronamic_google_maps' ) ) {
    $map = pronamic_google_maps( array(
        'width'  => 666,
        'height' => 400,
        'echo' => false
    ) );
    $pattern = "666px";
    $replacement = '100%';
    $map = str_replace($pattern, $replacement, $map);
    echo $map;
}

 

Comments on this post

No comments.

Leave a Reply

Your email address will not be published. Required fields are marked *

Trackbacks and Pingbacks on this post

No trackbacks.

TrackBack URL