PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/mytube.pm/wp-content/plugins/social-pug/inc/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/mytube.pm/wp-content/plugins/social-pug/inc/class-view-loader.php |
<?php namespace Mediavine\Grow; class View_Loader { /** @var string */ public static $plugin_path = DPSP_PLUGIN_DIR; /** * Returns the output of the passed view. * * @param string $view_file Relative path to view file from plugin root * @param array $args Array that will be passed to the included view * @return false|string Output from the view */ public static function get_view( $view_file, $args = [] ) { $view_path = self::$plugin_path . $view_file; ob_start(); try { include( $view_path ); } catch ( \Exception $exception ) { // @TODO: More robust Exception handling here error_log( 'MV Grow: View File not Found ' . $view_path ); // @codingStandardsIgnoreLine — Logging allowed if on purpose ob_get_clean(); return ''; } return ob_get_clean(); } /** * Custom version of wp_kses to allow SVG tags. * * @return string */ public static function get_allowed_tags() { $kses_defaults = wp_kses_allowed_html( 'post' ); $svg_kses = [ 'svg' => [ 'class' => true, 'aria-hidden' => true, 'preserveaspectratio' => true, 'aria-labelledby' => true, 'version' => true, 'xmlns' => true, 'width' => true, 'height' => true, 'viewbox' => true, // <= Must be lower case! ], 'g' => [ 'fill' => true ], 'title' => [ 'title' => true ], 'path' => [ 'd' => true, 'fill' => true, 'class' => true, ], 'rect' => [ 'x' => true, 'y' => true, 'height' => true, 'width' => true, 'class' => true, 'rx' => true, 'ry' => true, ], 'ellipse' => [ 'x' => true, 'y' => true, 'height' => true, 'width' => true, 'class' => true, ], ]; return array_merge( $kses_defaults, $svg_kses ); } }