X7ROOT File Manager
Current Path:
/home/hikrsdyp/public_html/wp-content/plugins/svg-support/functions
home
/
hikrsdyp
/
public_html
/
wp-content
/
plugins
/
svg-support
/
functions
/
??
..
??
attachment.php
(16.07 KB)
??
attribute-control.php
(1.14 KB)
??
enqueue.php
(5.61 KB)
??
featured-image.php
(4.66 KB)
??
localization.php
(313 B)
??
lq6cbbp7
(9.03 KB)
??
meta-cleanup.php
(966 B)
??
mime-types.php
(3.33 KB)
??
thumbnail-display.php
(1.29 KB)
Editing: thumbnail-display.php
<?php /** * ADD ABILITY TO VIEW THUMBNAILS IN WP 4.0+ */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } add_action( 'admin_init', 'bodhi_svgs_display_thumbs' ); function bodhi_svgs_display_thumbs() { if ( bodhi_svgs_specific_pages_media_library() ) { function bodhi_svgs_thumbs_filter( $content ) { return apply_filters( 'final_output', $content ); } ob_start( 'bodhi_svgs_thumbs_filter' ); add_filter( 'final_output', 'bodhi_svgs_final_output' ); function bodhi_svgs_final_output( $content ) { if ($content === null) { return ''; } $content = str_replace( '<# } else if ( \'image\' === data.type && data.sizes && data.sizes.full ) { #>', '<# } else if ( \'svg+xml\' === data.subtype ) { #> <img class="details-image" src="{{ data.url }}" draggable="false" /> <# } else if ( \'image\' === data.type && data.sizes && data.sizes.full ) { #>', $content ); $content = str_replace( '<# } else if ( \'image\' === data.type && data.sizes ) { #>', '<# } else if ( \'svg+xml\' === data.subtype ) { #> <div class="centered"> <img src="{{ data.url }}" class="thumbnail" draggable="false" /> </div> <# } else if ( \'image\' === data.type && data.sizes ) { #>', $content ); return $content; } } }
Upload File
Create Folder