{"id":13682,"date":"2011-06-17T09:50:20","date_gmt":"2011-06-17T09:50:20","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/embpicasa\/"},"modified":"2015-08-20T14:29:41","modified_gmt":"2015-08-20T14:29:41","slug":"embpicasa","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/embpicasa\/","author":7089737,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2.2","stable_tag":"trunk","tested":"4.3.0","requires":"3.3.1","requires_php":"","requires_plugins":"","header_name":"Embed picasa album","header_author":"Marchenko Alexandr","header_description":"","assets_banners_color":"","last_updated":"2015-08-20 14:29:41","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/","header_author_uri":"http:\/\/mac-blog.org.ua\/","rating":4.3,"author_block_rating":0,"active_installs":80,"downloads":13181,"num_ratings":0,"support_threads":1,"support_threads_resolved":1,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0.0":"<p>Initial commit.<\/p>","1.0.1":"<p>Added title to anchor and alt to image.<\/p>","1.0.2":"<p>Fixed bug with full size options.<\/p>","1.0.4":"<p>Fixed bug in wp 3.5.<\/p>","1.0.5":"<p>Float left added for list items default styles by user request.<\/p>","1.0.6":"<p>Fixed bug in wp 3.6 when jQuery UI dialog was displayed under overlay.<\/p>","1.1.0":"<p>Wordpress 3.9 fix<\/p>","1.2.0":"<p>Moving to atom feeds instead of api which now is unavailable.<\/p>","1.2.1":"<p>Allow not gmail accounts<\/p>","1.2.2":"<p>Fix for child themes<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":"2","5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1538886","resolution":"2","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1538886","resolution":"3","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1538886","resolution":"1","location":"plugin"}},"screenshots":{"1":"Plugin configuration page.","2":"TinyMCE, the plugin's buttons, and the plugin's dialog window.","3":"Result on page."}},"plugin_section":[],"plugin_tags":[6016],"plugin_category":[50],"plugin_contributors":[83432],"plugin_business_model":[],"class_list":["post-13682","plugin","type-plugin","status-closed","hentry","plugin_tags-picasa","plugin_category-media","plugin_contributors-marchenkoalexandr","plugin_committers-marchenkoalexandr"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/embpicasa.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/embpicasa\/trunk\/screenshot-1.png?rev=1538886","caption":"Plugin configuration page."},{"src":"https:\/\/ps.w.org\/embpicasa\/trunk\/screenshot-2.png?rev=1538886","caption":"TinyMCE, the plugin's buttons, and the plugin's dialog window."},{"src":"https:\/\/ps.w.org\/embpicasa\/trunk\/screenshot-3.png?rev=1538886","caption":"Result on page."}],"raw_content":"<!--section=description-->\n<p>This plugin add new button to tinymce that allows you insert any of yours albums into post.<\/p>\n\n<p>No need in downloading your photos into multiple places.<\/p>\n\n<p>Add entire album into your post in few clicks.<\/p>\n\n<p>Automatticaly supports by plugins like Lightbox2.<\/p>\n\n<p>Added template support, if you want custom template just copy <code>loop-picasa.php<\/code> file into your template and modify it as you want.<\/p>\n\n<!--section=installation-->\n<h3>Installing The Plugin<\/h3>\n\n<p>Extract all files from the ZIP file, <strong>making sure to keep the file structure intact<\/strong>, and then upload it to <code>\/wp-content\/plugins\/<\/code>. This should result in multiple subfolders and files.<\/p>\n\n<p>Then just visit your admin area and activate the plugin.<\/p>\n\n<p><strong>See Also:<\/strong> <a href=\"http:\/\/codex.wordpress.org\/Managing_Plugins#Installing_Plugins\">\"Installing Plugins\" article on the WP Codex<\/a><\/p>\n\n<h3>Plugin Configuration<\/h3>\n\n<p>To configure this plugin, visit it's settings page. It can be found under the \"Settings\" tab in your admin area, titled \"Picasa\".<\/p>\n\n<h3>Templating<\/h3>\n\n<p>To make custom template for your gallery just copy <code>loop-picasa.php<\/code> file into your template.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>How to open images in lightbox<\/dt>\n<dd><p>Just install something like <a href=\"http:\/\/wordpress.org\/extend\/plugins\/lightbox-2\/\">lightbox<\/a> plugin it will automaticaly open all images in lightbox<\/p><\/dd>\n<dt>How to theme result<\/dt>\n<dd><p>Just copy <code>loop-picasa.php<\/code> file into your template.<\/p><\/dd>\n<dt>How to paginate result<\/dt>\n<dd><p>Just copy <code>loop-picasa.php<\/code> file into your template.<\/p>\n\n<p>And change it to something like this:<\/p>\n\n<pre><code>&lt;p&gt;\n&lt;?php\n$total = count($photos); \/\/ number of images\n$per_page = 6; \/\/ count of images to show per page\n$current = isset($_GET['picasa_page']) ? max(1, intval($_GET['picasa_page'])) : 1; \/\/ current page number\n\n\/\/ render pager http:\/\/codex.wordpress.org\/Function_Reference\/paginate_links\necho paginate_links( array(\n    'format' =&gt; add_query_arg('picasa_page', '%#%'),\n    'current' =&gt; $current,\n    'total' =&gt; round($total \/ $per_page)\n) );\n?&gt;\n&lt;\/p&gt;\n\n&lt;ul class=\"embpicasa\"&gt;\n&lt;?php for($i = $current; $i &lt; $current + $per_page; $i++): $photo = $photos[$i];?&gt;\n    &lt;li&gt;\n        &lt;a title=\"&lt;?php echo $photo['title']?&gt;\" rel=\"lightbox[&lt;?php echo $id?&gt;]\" target=\"_blank\" href=\"&lt;?php echo $photo['fullsize']?&gt;\"&gt;\n            &lt;img src=\"&lt;?php echo $photo['thumbnail']?&gt;\" alt=\"&lt;?php echo $photo['title']?&gt;\" \/&gt;\n        &lt;\/a&gt;\n    &lt;\/li&gt;\n&lt;?php endfor;?&gt;\n&lt;\/ul&gt;\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial commit.<\/li>\n<\/ul>","raw_excerpt":"Allow insert picasa album into posts and pages via short code.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/13682","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=13682"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/marchenkoalexandr"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=13682"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=13682"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=13682"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=13682"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=13682"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=13682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}