File tree Expand file tree Collapse file tree 1 file changed +34
-2
lines changed Expand file tree Collapse file tree 1 file changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ class WP_Bootstrap_Images {
22
22
*/
23
23
public function __construct () {
24
24
25
- // add_filter( 'get_image_tag_class', array( $this, 'responsive_image_class' ) );
25
+ // Uncomment to auto add Responsive class to all images.
26
+ // add_filter( 'get_image_tag_class', array( $this, 'image_responsive_class' ) );
26
27
27
28
}
28
29
@@ -37,11 +38,42 @@ function image_responsive_class( $class ) {
37
38
$ class .= ' img-responsive ' ;
38
39
return $ class ;
39
40
}
40
-
41
+
42
+ /**
43
+ * image_rounded_class function.
44
+ *
45
+ * @access public
46
+ * @param mixed $class
47
+ * @return void
48
+ */
41
49
function image_rounded_class ( $ class ) {
42
50
$ class .= ' img-rounded ' ;
43
51
return $ class ;
44
52
}
53
+
54
+ /**
55
+ * image_circle_class function.
56
+ *
57
+ * @access public
58
+ * @param mixed $class
59
+ * @return void
60
+ */
61
+ function image_circle_class ( $ class ) {
62
+ $ class .= ' img-circle ' ;
63
+ return $ class ;
64
+ }
65
+
66
+ /**
67
+ * image_thumbnail_class function.
68
+ *
69
+ * @access public
70
+ * @param mixed $class
71
+ * @return void
72
+ */
73
+ function image_thumbnail_class ( $ class ) {
74
+ $ class .= ' img-thumbnail ' ;
75
+ return $ class ;
76
+ }
45
77
}
46
78
47
79
new WP_Bootstrap_Images ();
You can’t perform that action at this time.
0 commit comments