{"id":59224,"date":"2009-07-23T20:52:59","date_gmt":"2009-07-23T20:52:59","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/text-based-image-links\/"},"modified":"2009-07-23T20:59:30","modified_gmt":"2009-07-23T20:59:30","slug":"text-based-image-links","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/text-based-image-links\/","author":107621,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2","stable_tag":"trunk","tested":"2.8.2","requires":"2.6","requires_php":"","requires_plugins":"","header_name":"Text Based Image Links","header_author":"Michael Fields","header_description":"","assets_banners_color":"","last_updated":"2009-07-23 20:59:30","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/mfields.org\/wordpress\/plugins\/text-based-image-links\/","header_author_uri":"http:\/\/mfields.org\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2032,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-59224","plugin","type-plugin","status-closed","hentry","plugin_committers-mfields"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/text-based-image-links.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Tired of the default thumbnail links that WordPress generates when using the gallery shortcode? I have made a plugin that allows users to add text based navigation to a WordPress gallery in just a few minutes. Please click the installation tab above for details.<\/p>\n\n<h4>This Plugin is No Longer Necessary<\/h4>\n\n<p>Some time around WordPress version 2.7 this functionality has been included in the core. Please visit the codex page for <a href=\"http:\/\/codex.wordpress.org\/Template_Tags\/previous_image_link#Use_a_Custom_String_as_Link_Text\">previous_image_link()<\/a> to see how you can include the same functionality into your blog without using a plugin at all!<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download the appropriate version from the list below.<\/li>\n<li>Unzip the package and upload to your \/wp-content\/plugins\/ directory.<\/li>\n<li>Log into WordPress and navigate to the \"Plugins\" Panel.<\/li>\n<li>Activate the plugin.<\/li>\n<li>Configure Template<\/li>\n<\/ol>\n\n<p>If your current theme does not have an image.php file, I would suggest that you visit your theme\u2019s homepage and see if a new version has been released for 2.5+. If no new version is available, you can save a copy of the WordPress default theme's image.php file to your current theme\u2019s directory and modify it match your current theme.<\/p>\n\n<p>Locate the following two functions:<\/p>\n\n<pre><code>&lt;?php previous_image_link() ?&gt;\n&lt;?php next_image_link() ?&gt;\n<\/code><\/pre>\n\n<p>Replace these functions with the following functions.<\/p>\n\n<pre><code>&lt;?php mf_previous_image_link() ?&gt;\n&lt;?php mf_next_image_link() ?&gt;\n<\/code><\/pre>\n\n<p>You should now save image.php and upload it to your production server and visit your site to see text-based navigation links on all of your WordPress galleries.<\/p>\n\n<p>The Text Based Image Links plugin will accept a variety of parameters. When you pass no parameter to either function, default values will be used.<\/p>\n\n<pre><code>&lt;?php mf_previous_image_link(); ?&gt;\n&lt;?php mf_next_image_link(); ?&gt;\n<\/code><\/pre>\n\n<p>The above code will render the title of your image (as defined by you on the \"Edit Media\" page of the WordPress Administration Panels) nested inside an anchor element with an <strong>href<\/strong> attribute pointing to the previous or next image attachment in the current \"gallery\" and a <strong>title<\/strong> attribute containing the title of your image. If there is no previous or next image, the functions will return a Boolean false.<\/p>\n\n<p>You may pass a single parameter (string) which will be displayed inside the link. The title attribute of the anchor tag will still default to the title of your image.<\/p>\n\n<pre><code>&lt;?php mf_previous_image_link( 'Previous Image' ); ?&gt;\n&lt;?php mf_next_image_link( 'Next Image' ); ?&gt;\n<\/code><\/pre>\n\n<p>You may also pass an associative array to further customize the anchor. Any value may be left empty for the default behavior to be used. If 'title' is set to <strong>false<\/strong>, no title attribute will be displayed.<\/p>\n\n<pre><code>&lt;?php \nmf_previous_image_link( array(\n    'link_text' =&gt; 'Previous Image',\n    'title' =&gt; false,\n    'class' =&gt; 'one two three four',\n    'id' =&gt; 'previous_id'\n    ) );\n?&gt;\n\n&lt;?php mf_next_image_link( array(\n    'link_text' =&gt; 'Next Image',\n    'title' =&gt; false,\n    'class' =&gt; 'one two three four',\n    'id' =&gt; 'next_id'\n    ) );\n?&gt;\n<\/code><\/pre>\n\n<!--section=changelog-->\n<h4>1.2<\/h4>\n\n<ul>\n<li>Added support for html 'title', 'id' and 'class' attributes.<\/li>\n<li>Changed default behaviour of plugin.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Plugin updated to work with wp 2.6.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Original Release - Works With: wp 2.5.1.<\/li>\n<\/ul>","raw_excerpt":"Replace the default thumbnail-based navigation from you theme's image.php file.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/59224","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=59224"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mfields"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=59224"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=59224"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=59224"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=59224"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=59224"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=59224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}