{"id":3254,"date":"2008-06-18T04:24:03","date_gmt":"2008-06-18T04:24:03","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/get-image\/"},"modified":"2009-06-03T16:57:29","modified_gmt":"2009-06-03T16:57:29","slug":"get-image","status":"publish","type":"plugin","link":"https:\/\/es-uy.wordpress.org\/plugins\/get-image\/","author":637626,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"1.0","tested":"2.7.1","requires":"2.6","requires_php":"","requires_plugins":"","header_name":"getImage","header_author":"DGmike","header_description":"","assets_banners_color":"","last_updated":"2009-06-03 16:57:29","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/dgmike.com.br","header_plugin_uri":"","header_author_uri":"http:\/\/dgmike.com.br","rating":0,"author_block_rating":0,"active_installs":20,"downloads":9331,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.2","0.5","0.8","0.9","1.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[32177,32178,133,163,1326],"plugin_category":[50],"plugin_contributors":[87963],"plugin_business_model":[],"class_list":["post-3254","plugin","type-plugin","status-publish","hentry","plugin_tags-fullzise","plugin_tags-get-image","plugin_tags-image","plugin_tags-images","plugin_tags-thumbnail","plugin_category-media","plugin_contributors-dgmike","plugin_committers-dgmike"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/get-image.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Note: This version only works on Wordpress 2.6. If you wants to use on wordpress 2.5, please get\nthe version 0.5 on download repository.<\/p>\n\n<p>Take the last image daughter of a post. To use this plugin you just need to insert one of\nthe following commands in your template:<\/p>\n\n<ul>\n<li><code>gi_fullsize ();<\/code><\/li>\n<li><code>gi_medium ();<\/code><\/li>\n<li><code>gi_thumbnail ();<\/code><\/li>\n<\/ul>\n\n<p>Adding a parameter, it becames in the tag img generated. By default, the plugin will return\na string containing the tag of the image, but you can pass the second parameter to true to\nmake the impression of this string.<\/p>\n\n<h4>Updated in version 0.5<\/h4>\n\n<p>Now you have a <code>gi_library ()<\/code> function. It returns all images from yout post - not only the\nlast daughter, where you can pass some parameters like size and type of return you wants.<\/p>\n\n<p>The sizes of <code>gi_library ()<\/code> are: 'all', 'fullsize', 'medium', 'thumbnail'<\/p>\n\n<h4>Upgraded in version 0.8<\/h4>\n\nAdded shortcuts for <code>gi_thumb ()<\/code> and <code>gi_full()<\/code>.\n\nUpgraded for wordpress 2.6\n\nAdded width and height in <code>gi_library<\/code>.\n\nUsing the native <code>wp_get_attachment_image ()<\/code> function.\n\n<h4>Upgraded in version 0.9<\/h4>\n\n<p>Now, <code>gi_fullsize()<\/code>, <code>gi_full()<\/code>, <code>gi_medium()<\/code>, <code>gi_thumbnail()<\/code> and <code>gi_thumb()<\/code> recives two parameters.<\/p>\n\n<p>The first is $print, this param prints the return, use it to shorcur yours call. So, if you wants\nto print do not use:<\/p>\n\n<pre><code>&lt;?php echo gi_full(); ?&gt;\n<\/code><\/pre>\n\n<p>But use:<\/p>\n\n<pre><code>&lt;?php gi_full(1); ?&gt;\n<\/code><\/pre>\n\n<p>The second param says the number of image you want to use. This number is the number of image in\ngalery order. The next code prints the third image in galery on format thumbnail.<\/p>\n\n<pre><code>&lt;?php gi_thumb(true, 3); ?&gt;\n<\/code><\/pre>\n\n<p>The function <code>gi_library()<\/code> have shortcuts for thumb and full sizes. Now you can use\n    gi_library('thumb') or <code>gi_library('full')<\/code> in your templates\/scripts.<\/p>\n\n<h3>Upgrated in version 1.0<\/h3>\n\n<p>Now the function <code>gi_library()<\/code> on mode <code>brute_array<\/code> returns the <code>post_ID<\/code>, <code>title<\/code>, <code>caption<\/code> and <code>description<\/code>\nfrom the image.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>getimage.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Place <code>&lt;?php gi_fullsize (); ?&gt;<\/code> in your templates<\/li>\n<li>You can place <code>&lt;?php gi_library ('thumbnail'); ?&gt;<\/code><\/li>\n<\/ol>\n\n<h4>Using gi_library<\/h4>\n\n<p>It returns all images from yout post - not only the last daughter, where you can pass some\nparameters like size and type of return you wants. Sintax:<\/p>\n\n<pre><code>gi_library ($size, $extra, $print, $return_as)\n<\/code><\/pre>\n\n<ol>\n<li>The <code>size<\/code>s of <code>gi_library ()<\/code> are: 'all', 'fullsize', 'medium', 'thumbnail'. Default: 'thumbnail'<\/li>\n<li>The <code>extra<\/code> is an extra string that you wants to put in your image tag. Default: ''<\/li>\n<li>The <code>print<\/code> is used if the <code>return_as<\/code> is <code>string<\/code>. It prints the string genered. Default: true<\/li>\n<li>The <code>return_as<\/code> is the return that you wants. Here is the powerfull way to manipulate your results. The <code>result_as<\/code> can be: 'string', 'array', 'brute_array'<\/li>\n<\/ol>","raw_excerpt":"Take the last image daughter of a post on the selected size.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/3254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=3254"}],"author":[{"embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/dgmike"}],"wp:attachment":[{"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=3254"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=3254"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=3254"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=3254"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=3254"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=3254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}