{"id":47249,"date":"2014-10-08T14:04:54","date_gmt":"2014-10-08T14:04:54","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/theme-album\/"},"modified":"2014-11-17T18:18:22","modified_gmt":"2014-11-17T18:18:22","slug":"theme-album","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/theme-album\/","author":1145594,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.1","stable_tag":"trunk","tested":"","requires":"","requires_php":"","requires_plugins":"","header_name":"Theme Album","header_author":"Super Blog Me","header_description":"","assets_banners_color":"bfcacf","last_updated":"2014-11-17 18:18:22","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.superblogme.com\/theme-album\/","header_author_uri":"http:\/\/www.superblogme.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":703,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1004009","resolution":"128x128","location":"assets"},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":"1004009","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1031800","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1003845","resolution":"1","location":"assets"},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1003845","resolution":"2","location":"assets"}},"screenshots":{"1":"Posts displayed in a grid album format","2":"Posts displayed in a list album format"}},"plugin_section":[],"plugin_tags":[5719,1578,6040,245,1141],"plugin_category":[50],"plugin_contributors":[79924],"plugin_business_model":[],"class_list":["post-47249","plugin","type-plugin","status-closed","hentry","plugin_tags-album","plugin_tags-display","plugin_tags-grid","plugin_tags-list","plugin_tags-theme","plugin_category-media","plugin_contributors-johnh10","plugin_committers-johnh10"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/theme-album_bfcacf.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/theme-album\/assets\/screenshot-1.jpg?rev=1003845","caption":"Posts displayed in a grid album format"},{"src":"https:\/\/ps.w.org\/theme-album\/assets\/screenshot-2.jpg?rev=1003845","caption":"Posts displayed in a list album format"}],"raw_content":"<!--section=description-->\n<p>Replace the default WordPress loop in your theme with a list or grid album. It\nwill automatically create album thumbnails from each post looking in this\norder:<\/p>\n\n<ol>\n<li>The featured image.<\/li>\n<li>The first image found in the content.<\/li>\n<li>The first attached image.<\/li>\n<li>The default image.<\/li>\n<\/ol>\n\n<p>Any images from the Media Library will be automatically resized if needed to a\nnew thumbnail to save resources. Remote images will be mock sized to given\ndimensions.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin through WordPress admin or upload the 'Theme Album'\ndirectory to the '\/wp-content\/plugins\/' directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Visit 'Settings -&gt; Theme Album' to set default options.<\/li>\n<li>There is no 'hook' to change the WordPress loop, so we'll need to edit the\ntemplate index file with 2 simple changes.<\/li>\n<\/ol>\n\n<p>The typical WordPress loop starts here:<\/p>\n\n<pre><code>&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;\n<\/code><\/pre>\n\n<p>and ends here:<\/p>\n\n<pre><code>&lt;?php endwhile; else : ?&gt;\n        &lt;p&gt;&lt;?php _e( 'Sorry, no posts matched your criteria.' ); ?&gt;&lt;\/p&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<p>Change the loop to this:<\/p>\n\n<pre><code>&lt;?php if (isset($theme_album)) : $theme_album-&gt;ta_albumFormat(); else : ?&gt;\n&lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;\n<\/code><\/pre>\n\n<p>and :<\/p>\n\n<pre><code>&lt;?php endwhile; else : ?&gt;\n        &lt;p&gt;&lt;?php _e( 'Sorry, no posts matched your criteria.' ); ?&gt;&lt;\/p&gt;\n&lt;?php endif; ?&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<ol>\n<li>Tweak the custom CSS in Settings to match your site if needed.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Remove any unsafe characters when doing media library check.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Use base URL of image in post content if from an auto-generated thumbnail<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"tube\nRequires at least: 3.0.1\nTested up to: 4.0\nStable Tag: 1.1.1\nLicense: GPLv2 or later\nLicense URI: http:\/\/www.gnu.org\/licenses\/gpl-2.0.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/47249","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=47249"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/johnh10"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=47249"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=47249"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=47249"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=47249"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=47249"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=47249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}