PK
œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in /home/telusvwg/public_html/da754d/index.php on line 8
| Dir : /home/telusvwg/techinnovo.co/wp-content/plugins/svg-support/functions/ |
| Server: Linux premium279.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 IP: 66.29.132.192 |
| Dir : /home/telusvwg/techinnovo.co/wp-content/plugins/svg-support/functions/attribute-control.php |
<?php
/**
* Attribute Control
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* If in Advanced Mode
*/
if ( bodhi_svgs_advanced_mode() ) {
/**
* Strip HTML of all attributes and add custom class if the file is .svg
*/
function bodhi_svgs_auto_insert_class( $html, $alt='' ) {
global $bodhi_svgs_options;
if ( ! empty( $bodhi_svgs_options['css_target'] ) ) {
// if custom class is set, use it
$class = $bodhi_svgs_options['css_target'];
} else {
// if no custom class set, use default
$class = 'style-svg';
}
// check if the src file has .svg extension
if ( strpos( $html, '.svg' ) !== FALSE ) {
// strip html for svg files
$html = preg_replace( '/(width|height|title|alt|class)=".*"\s/', 'class="' . esc_attr($class) . '"', $html );
} else {
// leave html intact for non-svg
$html = $html;
}
return $html;
}
/**
* Fire auto insert class
*/
if ( ! empty( $bodhi_svgs_options['auto_insert_class'] ) ) {
add_filter( 'image_send_to_editor', 'bodhi_svgs_auto_insert_class', 10 );
// add_filter( 'post_thumbnail_html', 'bodhi_svgs_auto_insert_class', 10 );
}
}