{"id":45188,"date":"2011-11-09T17:03:56","date_gmt":"2011-11-09T17:03:56","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/garees-random-image\/"},"modified":"2011-12-08T17:43:23","modified_gmt":"2011-12-08T17:43:23","slug":"garees-random-image","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/garees-random-image\/","author":8531063,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.1","stable_tag":"trunk","tested":"3.3.2","requires":"3.0.0","requires_php":"","requires_plugins":"","header_name":"Garee's Random Image","header_author":"Sebastian Forster","header_description":"","assets_banners_color":"","last_updated":"2011-12-08 17:43:23","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/flattr.com\/donation\/give\/to\/garee\/","header_plugin_uri":"http:\/\/www.garee.ch\/wordpress\/garees-random-image\/","header_author_uri":"http:\/\/www.garee.ch\/wordpress\/","rating":5,"author_block_rating":0,"active_installs":50,"downloads":5662,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog","other_notes"],"tags":[],"upgrade_notice":{"0.9":"<p>If you used the template &#039;caption&#039;: be shure to check it, there were some modifications made<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-5.png":{"filename":"screenshot-5.png","revision":"1538941","resolution":"5","location":"plugin"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"1538941","resolution":"4","location":"plugin"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1538941","resolution":"2","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1538941","resolution":"3","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1538941","resolution":"1","location":"plugin"}},"screenshots":{"1":"The default-template shows the random image as a clickable thumnail with the post-title below","2":"The scrapbook-template, design by <a href=\"http:\/\/davejay.exit42design.com\/entry\/CSS\/32\/\">daveJay<\/a>","3":"The polaroid-template, design by <a href=\"http:\/\/www.zurb.com\/playground\/css3-polaroids\/\">ZURB<\/a>","4":"Configure the plugin with shortcode","5":"Write your own templates with <a href=\"http:\/\/mustache.github.com\/\">Mustache<\/a>"}},"plugin_section":[],"plugin_tags":[133,216,244],"plugin_category":[50],"plugin_contributors":[85361],"plugin_business_model":[],"class_list":["post-45188","plugin","type-plugin","status-closed","hentry","plugin_tags-image","plugin_tags-picture","plugin_tags-random","plugin_category-media","plugin_contributors-garee","plugin_committers-garee"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/garees-random-image.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/garees-random-image\/trunk\/screenshot-1.png?rev=1538941","caption":"The default-template shows the random image as a clickable thumnail with the post-title below"},{"src":"https:\/\/ps.w.org\/garees-random-image\/trunk\/screenshot-2.png?rev=1538941","caption":"The scrapbook-template, design by <a href=\"http:\/\/davejay.exit42design.com\/entry\/CSS\/32\/\">daveJay<\/a>"},{"src":"https:\/\/ps.w.org\/garees-random-image\/trunk\/screenshot-3.png?rev=1538941","caption":"The polaroid-template, design by <a href=\"http:\/\/www.zurb.com\/playground\/css3-polaroids\/\">ZURB<\/a>"},{"src":"https:\/\/ps.w.org\/garees-random-image\/trunk\/screenshot-4.png?rev=1538941","caption":"Configure the plugin with shortcode"},{"src":"https:\/\/ps.w.org\/garees-random-image\/trunk\/screenshot-5.png?rev=1538941","caption":"Write your own templates with <a href=\"http:\/\/mustache.github.com\/\">Mustache<\/a>"}],"raw_content":"<!--section=description-->\n<p><em>Garee's Random Image<\/em> shows a random image anywhere on your blog. The output is generated from template-files (html and css) or your own templates, which you can write with Mustache.<\/p>\n\n<p>Check out the <a href=\"http:\/\/www.garee.ch\/wordpress\/garees-random-image\/live-demo\/\">live-demo<\/a> on the official <a href=\"http:\/\/www.garee.ch\/wordpress\/garees-random-image\/\">plugin-site<\/a><\/p>\n\n<p>Main-advantages:<\/p>\n\n<ul>\n<li>CSS only included if shortcode found on page<\/li>\n<li>highly customizable with Mustache-templates<\/li>\n<li>only show pictures associated with a certain post-category<\/li>\n<li>only show jpg, png or gif<\/li>\n<li>choose from 6 different themes<\/li>\n<li>easily write your own theme using html, css and images<\/li>\n<\/ul>\n\n<p>Just insert the shortcode anywhere on your blog: <code>[random_image]<\/code><\/p>\n\n<p>Use shortcode-attributes to further customize the image:\n    [random_image template='polaroid' category='30' polaroid_font_size='14px' polaroid_width='360px']<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download the plugin and unzip it<\/li>\n<li>Upload the entire folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Goto the new plugin-page 'Garee's Random Image' to get your shortcode<\/li>\n<li>Place the shortcode anywhere in your blog<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I write Mustache-Code<\/dt>\n<dd><p>Have a look at the enclosed html-templates in the template-folder. For advanced syntax (e.g. if-else) there's the mustache(5)-manual on the <a href=\"http:\/\/mustache.github.com\/\">Mustache-Site<\/a><\/p><\/dd>\n<dt>My random images look different from the ones on the demo-page<\/dt>\n<dd><p>This might be because your wordpress-theme's css has an influence on the output of the plugin. You might have to adjust the css-template (set margins to zero, stuff like this)<\/p><\/dd>\n<dt>I would like to add the random image as a widget on the sidebar<\/dt>\n<dd><p>Just add a text-widget to the sidebar and insert the shortcode there<\/p><\/dd>\n<dt>I get always the same images<\/dt>\n<dd><p>Check if you have a cache-plugin running. If the page is cached, there won't be any random images on reload!<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>template 'rounded' has new custom-option \"float\" to control text-flow<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>faster algorithm to find a random image of a certain category<\/li>\n<li>if algorithm times out, make sure that an almost random image of the category is shown<\/li>\n<li>check if there are any images associated with a certain post-category (on the admin-page)<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>FIX: some themes don't run shortcode in the text-widget<\/li>\n<li>allow comma-separated categories as shortcode-option<\/li>\n<li>new shortcode-attributes 'window_image' and 'window_post' to control whether links should open a new window<\/li>\n<li>new corresponding Mustache-tags: {{window_image}} and {{window_post}}<\/li>\n<\/ul>\n\n<h4>0.9<\/h4>\n\n<ul>\n<li>FIX: detect shortcode in text-widget and load css (if template uses css)<\/li>\n<li>new Mustache-tag: 'post_author'<\/li>\n<li>new shortcode-attributes 'date_format' and 'exclude'<\/li>\n<li>{{post_date}} formatted automatically if 'date_format'-option missing<\/li>\n<li>minor changes to template 'caption'<\/li>\n<\/ul>\n\n<h4>0.8<\/h4>\n\n<ul>\n<li>FIX: \"Missing argument 1 for plugin_dir_url()\"<\/li>\n<\/ul>\n\n<h4>0.7<\/h4>\n\n<ul>\n<li>first official release<\/li>\n<\/ul>\n\n<h4>0.6<\/h4>\n\n<ul>\n<li>code cleanup, small fixes<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>new attribute 'size': sets {{image}}, 'full', 'large', 'medium', 'thumbnail' or something like '120,60' to get a custom size<\/li>\n<li>updated plugins to make use of size-attribute<\/li>\n<li>new attribute 'file_type': allows search to be narrowed to a png, jpeg or gif<\/li>\n<li>better search-algorithm to speed up search and avoid endless loop if category hasn't images published<\/li>\n<\/ul>\n\n<h4>0.4<\/h4>\n\n<ul>\n<li>Allow loading of more than one CSS file, if there are different random-image-styles detected<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>Load CSS only on pages with shortcode<\/li>\n<li>added new templates<\/li>\n<\/ul>\n\n<!--section=other_notes-->\n<h3>Coming soon<\/h3>\n\n<p>Here's what's planned for future releases:<\/p>\n\n<ul>\n<li>random-image-widget: better ways to control css-loading than if you insert the shortcode into a text-widget<\/li>\n<li>exif-extension: inlcude date\/time, coordinates, shutter-speed, ...<\/li>\n<li>...<\/li>\n<\/ul>","raw_excerpt":"a highly customizable WordPress-plugin that shows a random image anywhere on your blog.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/45188","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=45188"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/garee"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=45188"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=45188"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=45188"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=45188"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=45188"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=45188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}