{"id":10107,"date":"2010-08-13T15:38:09","date_gmt":"2010-08-13T15:38:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/gs-alternate-images\/"},"modified":"2010-08-13T15:38:09","modified_gmt":"2010-08-13T15:38:09","slug":"gs-alternate-images","status":"publish","type":"plugin","link":"https:\/\/fr-be.wordpress.org\/plugins\/gs-alternate-images\/","author":3919610,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"3.0.5","requires":"2.9","requires_php":"","requires_plugins":"","header_name":"GS Alternate Images","header_author":"Jeff Seese","header_description":"","assets_banners_color":"","last_updated":"2010-08-13 15:38:09","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.dabombmedia.com\/capabilities\/wordpress-plugin\/gs-alternate-images\/","header_author_uri":"http:\/\/www.dabombmedia.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2395,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0":"<p>Initial Release<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1566852","resolution":"2","location":"plugin","width":600,"height":518},"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1566852","resolution":"1","location":"plugin","width":650,"height":562}},"screenshots":{"1":"Click on the \"Add Alternate Images\" button","2":"Browse your gallery or media library for media. Click on the thumbnail to add it to your alternate images. Once in your alterante images they can be re-ordered and deleted easily."}},"plugin_section":[],"plugin_tags":[33885,210,163],"plugin_category":[50],"plugin_contributors":[93667],"plugin_business_model":[],"class_list":["post-10107","plugin","type-plugin","status-publish","hentry","plugin_tags-alternate-images","plugin_tags-gallery","plugin_tags-images","plugin_category-media","plugin_contributors-jeffgoseesecom","plugin_committers-jeffgoseesecom"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/gs-alternate-images.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/gs-alternate-images\/trunk\/screenshot-1.jpg?rev=1566852","caption":"Click on the \"Add Alternate Images\" button"},{"src":"https:\/\/ps.w.org\/gs-alternate-images\/trunk\/screenshot-2.jpg?rev=1566852","caption":"Browse your gallery or media library for media. Click on the thumbnail to add it to your alternate images. Once in your alterante images they can be re-ordered and deleted easily."}],"raw_content":"<!--section=description-->\n<p>GS Alternate Images is a plugin that adds a meta box to the page and post edit pages.<\/p>\n\n<p>Users can add images to this area by clicking on the \"Add Alterante Images\" button and browsing the gallery or media library.<\/p>\n\n<p>Once images are added to the Alternate Images area, they can be extracted in a number of ways.<\/p>\n\n<p>In it's most basic form, the attachment ID's are added to a postmeta as an array. A programmer could use existing wp functions\nto extract the array from the postmeta and manipulate the images as they see fit, also using existing wp functionality.<\/p>\n\n<p>In addition this plugin add shortcode support allowing non programmers to produce a gallery of images, or ustilize the images in\nsome other fashion.<\/p>\n\n<p>For example.<\/p>\n\n<pre><code>To get an array of alternate images attachment IDs\n\n$array_of_IDs = gs_get_alt_image_ids($post_ID); \/\/ post_ID = the page\/post ID that you want to retreive the images for.\n\n\nuse this method to get an array of objects of images.\n    $args = array (\n        'post_id' =&gt; int \/\/ the numeric ID of page\/post, if left black the current post is assumed.\n        'class'   =&gt; string \/\/ a class name that will be appended to the image html that is generated\n        'size'    =&gt; string\/array  \/\/ if it's a string us standard WP imagse sizes ex: 'thumbnail' if it's an array define with and height array(50,50) if left blank it defaults to thumbnail\n    );\n$array_of_objects = gs_get_alt_images( $args )\n\nOr use a short code\n\naccepts args of\norder = the image in the order as it's displayed in the panel\nsize = the displayed iamge size thumbnail, small, array 100,100 width,height example size=100,100\nclass = the class that will be inserted into the img tag\n\nYou can also use included content as a template for the image like this.\n[gsaltimg]&lt;a href = \"{img_att_url}\"&gt;{img_html}&lt;\/a&gt;[\/gsaltimg] &lt;!-- this will create an image with a hyper link to the full size image --&gt;\n\nallowed tags are\n{img_html}      = full img html for the image ex &lt;img src = \"....\" class = \"...\" \/&gt;\n{img_url}       = the urls to the sized image\n{img_att_url}   = the url to the full sized attachment\n\nHere is one way to use a short code and build a small gallery that alerts the actual image url.\n[gsaltimg size=80,80]\n&lt;div style = \"text-align: center; float: left; clear: none; margin-left: 10px; cursor: pointer; background-color: #0000FF; padding: 3px;\"\nonclick = \"alert('hello I am {img_att_url}');\"{img_html}\n&lt;p style = \"color: #FFF; text-align: center;clear: both;\"&gt;Click me&lt;\/p&gt;&lt;\/div&gt;\n[\/gsaltimg]\n<\/code><\/pre>\n\n<h3>Arbitrary section<\/h3>\n\n<p>full instructions can be found here http:\/\/www.dabombmedia.com\/capabilities\/wordpress-plugin\/gs-alternate-images\/<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>plugin-name.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>Go to page post edit and add images to your alternate images area<\/li>\n<li>drop this short code in the same page or post [gsaltimg]<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Where can I find complete install instructions<\/dt>\n<dd><p>full instructions can be found here http:\/\/www.dabombmedia.com\/capabilities\/wordpress-plugin\/gs-alternate-images\/<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial wp release.<\/li>\n<\/ul>","raw_excerpt":"A plugin to add alternate images ability to the page\/post editor","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/10107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=10107"}],"author":[{"embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jeffgoseesecom"}],"wp:attachment":[{"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=10107"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=10107"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=10107"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=10107"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=10107"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fr-be.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=10107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}