Embed Picasa Album

Description

This plugin add new button to tinymce that allows you insert any of yours albums into post.

No need in downloading your photos into multiple places.

Add entire album into your post in few clicks.

Automatticaly supports by plugins like Lightbox2.

Added template support, if you want custom template just copy loop-picasa.php file into your template and modify it as you want.

Screenshots

  • Plugin configuration page.
  • TinyMCE, the plugin's buttons, and the plugin's dialog window.
  • Result on page.

Installation

Installing The Plugin

Extract all files from the ZIP file, making sure to keep the file structure intact, and then upload it to /wp-content/plugins/. This should result in multiple subfolders and files.

Then just visit your admin area and activate the plugin.

See Also: “Installing Plugins” article on the WP Codex

Plugin Configuration

To configure this plugin, visit it’s settings page. It can be found under the “Settings” tab in your admin area, titled “Picasa”.

Templating

To make custom template for your gallery just copy loop-picasa.php file into your template.

FAQ

How to open images in lightbox

Just install something like lightbox plugin it will automaticaly open all images in lightbox

How to theme result

Just copy loop-picasa.php file into your template.

How to paginate result

Just copy loop-picasa.php file into your template.

And change it to something like this:

<p>
<?php
$total = count($photos); // number of images
$per_page = 6; // count of images to show per page
$current = isset($_GET['picasa_page']) ? max(1, intval($_GET['picasa_page'])) : 1; // current page number

// render pager https://codex.wordpress.org/Function_Reference/paginate_links
echo paginate_links( array(
    'format' => add_query_arg('picasa_page', '%#%'),
    'current' => $current,
    'total' => round($total / $per_page)
) );
?>
</p>

<ul class="embpicasa">
<?php for($i = $current; $i < $current + $per_page; $i++): $photo = $photos[$i];?>
    <li>
        <a title="<?php echo $photo['title']?>" rel="lightbox[<?php echo $id?>]" target="_blank" href="<?php echo $photo['fullsize']?>">
            <img src="<?php echo $photo['thumbnail']?>" alt="<?php echo $photo['title']?>" />
        </a>
    </li>
<?php endfor;?>
</ul>

Contributors & Developers

“Embed Picasa Album” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • Initial commit.