Skip to content

Commit 1cf965f

Browse files
committed
Point to official WP plugin and RICG github
1 parent 8c23d0e commit 1cf965f

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

readme.md

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1 @@
1-
This plugin tells WordPress to create three additional sizes for images you upload. Then it outputs special HTML (via a shortcode) that works with the Picturefill library to achieve responsive images in content.
2-
3-
### Usage
4-
5-
Shortcode -
6-
[responsive imageid="12" size1="0" size2="500" size3="1000"]
7-
8-
PHP (use in template files) -
9-
10-
<?php
11-
$imageid = 'your image id';
12-
$mappings = array(
13-
0 => 'small-img', // zero maps to default
14-
250 => 'large-img',
15-
1000 => 'full-width'
16-
);
17-
?>
18-
<picture>
19-
<!--[if IE 9]><video style="display: none;"><![endif]-->
20-
<?php echo tevkori_get_picture_srcs($imageid, $mappings) ?>
21-
<!--[if IE 9]></video><![endif]-->
22-
<img srcset="<?php echo wp_get_attachment_image_src( $imageid )[0] ?>" alt="<?php tevkori_get_img_alt( $imageid ) ?>">
23-
<noscript> <?php echo wp_get_attachment_image( $imageid, $mappings[0] ) ?> </noscript>
24-
</picture>
25-
26-
### Tutorial
27-
28-
Here: http://css-tricks.com/hassle-free-responsive-images-for-wordpress
1+
This plugin is officially depreciated. Please see https://wordpress.org/plugins/ricg-responsive-images/ or https://github.com/ResponsiveImagesCG/wp-tevko-responsive-images

0 commit comments

Comments
 (0)