PluginProbe
GutSlider – All in One Slider and Carousel Blocks for Gutenberg / 2.10.1
GutSlider – All in One Slider and Carousel Blocks for Gutenberg v2.10.1
3.1.0 3.0.0 2.13.2 2.13.1 2.13.0 trunk 1.0.0 2.1.0 2.10.0 2.10.1 2.11.0 2.11.1 2.11.2 2.11.3 2.11.4 2.12.0 2.2.1 2.2.2 2.3.0 2.4.0 2.5.1 2.5.3 2.5.4 2.5.5 2.6.1 All 56 releases
slider-blocks / includes / icons / allowed-svg.php

allowed-svg.php in GutSlider – All in One Slider and Carousel Blocks for Gutenberg 2.10.1, at includes/icons/allowed-svg.php

31 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * The function `gutslider_allowed_svg_tags` defines an array of allowed SVG tags and their attributes
5 * for use in a PHP application.
6 *
7 * @return An array of allowed SVG tags and their attributes is being returned. The 'svg' tag allows
8 * attributes such as class, aria-hidden, aria-labelledby, role, xmlns, width, height, and viewbox. The
9 * 'g' tag allows the fill attribute. The 'title' tag allows the title attribute. The 'path' tag allows
10 * the d and fill attributes.
11 */
12 function gutslider_allowed_svg_tags() {
13 return array(
14 'svg' => array(
15 'class' => true,
16 'aria-hidden' => true,
17 'aria-labelledby' => true,
18 'role' => true,
19 'xmlns' => true,
20 'width' => true,
21 'height' => true,
22 'viewbox' => true, // <= Must be lower case!
23 ),
24 'g' => array( 'fill' => true ),
25 'title' => array( 'title' => true ),
26 'path' => array(
27 'd' => true,
28 'fill' => true,
29 ),
30 );
31 }