{"id":90894,"date":"2018-09-04T10:12:53","date_gmt":"2018-09-04T10:12:53","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/image-links\/"},"modified":"2022-06-23T15:49:26","modified_gmt":"2022-06-23T15:49:26","slug":"image-links","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/image-links\/","author":13642574,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.4","stable_tag":"trunk","tested":"6.0.12","requires":"3.0.1","requires_php":"5.3","requires_plugins":"","header_name":"Image Links","header_author":"Mill Hill Automation","header_description":"Outputs a linked image with a title. Optionally in a group.","assets_banners_color":"d2d1d1","last_updated":"2022-06-23 15:49:26","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.mha.systems","header_author_uri":"http:\/\/www.mha.systems","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1701,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1935643,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1935643,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":1935643,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1935643,"resolution":"1","location":"assets","locale":"","width":480,"height":2020},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":1935643,"resolution":"2","location":"assets","locale":"","width":768,"height":1874},"screenshot-3.jpg":{"filename":"screenshot-3.jpg","revision":1935643,"resolution":"3","location":"assets","locale":"","width":1024,"height":2234}},"screenshots":{"1":"Preview at 480px wide screen","2":"Preview at 768px wide screen","3":"Preview at 1024px wide screen"}},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[139228],"plugin_business_model":[],"class_list":["post-90894","plugin","type-plugin","status-publish","hentry","plugin_contributors-patabugen","plugin_committers-patabugen","plugin_support_reps-patabugen"],"banners":{"banner":"https:\/\/ps.w.org\/image-links\/assets\/banner-772x250.png?rev=1935643","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/image-links\/assets\/icon-128x128.png?rev=1935643","icon_2x":"https:\/\/ps.w.org\/image-links\/assets\/icon-256x256.png?rev=1935643","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/image-links\/assets\/screenshot-1.png?rev=1935643","caption":"Preview at 480px wide screen"},{"src":"https:\/\/ps.w.org\/image-links\/assets\/screenshot-2.jpg?rev=1935643","caption":"Preview at 768px wide screen"},{"src":"https:\/\/ps.w.org\/image-links\/assets\/screenshot-3.jpg?rev=1935643","caption":"Preview at 1024px wide screen"}],"raw_content":"<!--section=description-->\n<p>Outputs links which are images, with floting-over captions and changing images.\nEasily lets you disable the styles (and Scripts) so you can write your own styles.<\/p>\n\n<p>Note there are no screens added to your dashboard - all the settings\/information\nis in this readme.txt file.<\/p>\n\n<h3>Example<\/h3>\n\n<p>Here's an example of a bunch of image links wrapped in an image link grid. The grid is optional and just makes the image links sit in columns instead of always being  full width.<\/p>\n\n<p>Be careful when using image_link_grid that there is no other markup included - watch out for text-editor line breaks being turned into paragraph or line-break tags. You're probably best editing the shortcode data in Text and not Visual view.<\/p>\n\n<pre><code>[mha_image_link_grid columns_xs=2 columns_md=2]\n  [mha_image_link attachment=100 link=\"\/contact-us\" text=\"Contact Us!\" subtext=\"Get in touch now!\"]\n  [mha_image_link attachment=101 link=\"https:\/\/www.example.com\" text=\"Checkout Example\"]\n  [mha_image_link attachment=102 link=\"\/some-page\" text=\"This is some page\"]\n  [mha_image_link attachment=102 link=\"\/some-page\" text=\"This is some page\" style=\"full\"]\n  [mha_image_link image=\"\/path-to\/image.png\" link=\"\/another_page\" text=\"This is another page\"]\n  [mha_image_link image=\"https:\/\/www.example.com\/remote-image.png\" link=\"\/another_page\"]\n[\/mha_image_link_grid] \n<\/code><\/pre>\n\n<h3>Documentation<\/h3>\n\n<p>No screens or options are added to your Dashboard. All customising needs to be done in your theme's CSS file.<\/p>\n\n<h3>Image links Javascript<\/h3>\n\n<p>The JavaScript enables multiple images on each image link. If you're not using that functionlaity, or want to implement it yourself - you can stop the JavaScript file being included with:<\/p>\n\n<pre><code>&lt;?php\n    add_filter( 'mha_image_link_include_scripts', '__return_false' );\n?&gt;\n<\/code><\/pre>\n\n<p>The handle of the script is <code>mha-image-links<\/code>.<\/p>\n\n<h3>Image links CSS<\/h3>\n\n<p>To stop the plugin including it's default CSS file use this filter:<\/p>\n\n<pre><code>&lt;?php\n    add_filter( 'mha_image_link_include_styles', '__return_false' );\n?&gt;\n<\/code><\/pre>\n\n<p>The handle of the styles is <code>mha-image-links<\/code><\/p>\n\n<h3>[mha_image_link_grid] shortcode settings<\/h3>\n\n<ul>\n<li><p><strong>columns_xs<\/strong> <em>Default: 2<\/em>\nSpecify hwo many columns should display on extra small devices.  By default that's anything up to 768px. Valid values are 1, 2, 3 or 4 unless you add more code based on the source in <code>image-links.scss<\/code><\/p><\/li>\n<li><p><strong>columns_sm<\/strong> <em>Default: none<\/em>\nThe same as columns_xs but for small screens (above 768px).  If not set then this will default to the value of columns_xs<\/p><\/li>\n<li><p><strong>columns_md<\/strong> <em>Default: none<\/em>\nThe same as columns_sm but for small screens (above 992px).  If not set then this will default to the value of columns_sm<\/p><\/li>\n<li><p><strong>columns_lg<\/strong> <em>Default: none<\/em>\nThe same as columns_md but for large screens (above 1200px). If not set then this will default to the value of columns_md.<\/p><\/li>\n<\/ul>\n\n<h3>[mha_image_link] shortcode settings<\/h3>\n\n<ul>\n<li><p><strong>image<\/strong> *Default: ''**\nSpecify the URL to an image. It's better to use attachment if you can.<\/p><\/li>\n<li><p><strong>text<\/strong> *Default: ''**\nThe big text to display on the image<\/p><\/li>\n<li><p><strong>subtext<\/strong> *Default: false**\nThe smaller text to show on the image link<\/p><\/li>\n<li><p><strong>link<\/strong> *Default: ''**\nThe link this image should direct to. Can be anything href=\"\" takes.<\/p><\/li>\n<li><p><strong>attachment<\/strong> *Default: false**\nThe attachment ID of the image you want to use or the image. If  you specify this instead of <code>image<\/code> then you'll get  a properly sized image and everything will be excellent.\nTo get the attachment ID find the attachment in your Dashbaord -&gt; media screen, click the one you want and look in your browsers address bar for the Item number. For example in this address <code>upload.php?item=400<\/code> the attachment ID is 400.<\/p><\/li>\n<li><p><strong>style<\/strong> *Default: half**\nBy default the caption covers half the image - you can set style to <code>full<\/code> to make it cover the whole image. You can also enter anything you like here and the <code>.mha-image-link<\/code> element will be given it as an extra class. See the bottom of <code>image-link.scss<\/code> for an example of styling it.<\/p><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin directory <code>image-links<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory or install it directly from the Wordpress plugin directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Add some [mha_image_link] shortcodes to your pages\/site using the settings below.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20do%20i%20change%20the%20output%20styles'><h3>How do I change the output styles<\/h3><\/dt>\n<dd><p>You can customise the look and feel of the image links by writing your own CSS. You can use the included .scss file<\/p>\n\n<p>You can either include the scss file in your own SCSS and override it, or you can edit a copy of the scss file and compile it, then auto-prefix it, using these online services. Store the output in your child-theme template and include it using wp_enqueue_style inside a wp_enqueue_style hook.<\/p>\n\n<ul>\n<li>http:\/\/beautifytools.com\/scss-compiler.php<\/li>\n<li>https:\/\/autoprefixer.github.io\/<\/li>\n<\/ul><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.4<\/h4>\n\n<p>Tested with WordPress 6.0<\/p>\n\n<h4>1.3<\/h4>\n\n<p>Tested with WordPress 5.1<\/p>\n\n<h4>1.2<\/h4>\n\n<p>Reduced font-sizes on large screens.<\/p>\n\n<h4>1.1<\/h4>\n\n<p>Fixed JavaScript - which wasn't running at all. Also made the slidehosw delay be random rather than always 7 seconds.<\/p>\n\n<h4>1<\/h4>\n\n<p>Initial release<\/p>","raw_excerpt":"Outputs links which are images, with floting-over captions and changing images. Easily lets you disable the styles (and Scripts) so you can write your &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/90894","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=90894"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/patabugen"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=90894"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=90894"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=90894"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=90894"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=90894"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=90894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}