Current Path: > home > > transcarter > public_html > wp-content > themes > > woostify > inc
Operation : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 Software : Apache Server IP : 198.54.126.42 | Your IP: 216.73.216.135 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
admin | Directory | - | - | |
compatibility | Directory | - | - | |
customizer | Directory | - | - | |
widget | Directory | - | - | |
woocommerce | Directory | - | - | |
class-woostify-icon.php | File | 2112 bytes | June 12 2025 15:15:30. | |
class-woostify-walker-menu.php | File | 6000 bytes | June 12 2025 15:15:30. | |
class-woostify.php | File | 35833 bytes | June 12 2025 15:15:30. | |
woostify-functions.php | File | 24364 bytes | June 12 2025 15:15:30. | |
woostify-template-builder.php | File | 1246 bytes | June 12 2025 15:15:30. | |
woostify-template-functions.php | File | 79906 bytes | June 12 2025 15:15:30. | |
woostify-template-hooks.php | File | 6378 bytes | June 12 2025 15:15:30. |
<?php /** * Woostify Icon Class * * @package woostify */ defined( 'ABSPATH' ) || exit; if ( ! class_exists( 'Woostify_Icon' ) ) { /** * Class Woostify_Icon */ class Woostify_Icon { /** * Woostify SVGs. * * @var woostify_svgs */ private static $woostify_svgs = null; /** * Woostify SVGs array. * * @var woostify_svgs_arr */ private static $woostify_svgs_arr = null; /** * Get an SVG Icon * * @param string $icon the icon name. * @param bool $echo echo icon. */ public static function fetch_svg_icon( $icon = '', $echo = true ) { $svg_output = ''; if ( ! self::$woostify_svgs ) { ob_start(); include_once WOOSTIFY_THEME_DIR . 'assets/svg/svgs.json'; // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound self::$woostify_svgs = json_decode( ob_get_clean(), true ); self::$woostify_svgs = apply_filters( 'woostify_svg_icons', self::$woostify_svgs ); self::$woostify_svgs_arr = self::$woostify_svgs; } $svg_output .= isset( self::$woostify_svgs[ $icon ] ) ? self::$woostify_svgs[ $icon ] : ''; $classes = array( 'woostify-svg-icon', 'icon-' . $icon, ); $output = sprintf( '<span class="%1$s">%2$s</span>', implode( ' ', $classes ), $svg_output ); if ( $echo ) { echo apply_filters( 'woostify_generate_svg_icon', $output, $icon ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } else { return apply_filters( 'woostify_generate_svg_icon', $output, $icon ); } } /** * Get all SVG Icon */ public static function fetch_all_svg_icon() { if ( ! self::$woostify_svgs_arr ) { ob_start(); include_once WOOSTIFY_THEME_DIR . 'assets/svg/svgs.json'; // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound self::$woostify_svgs_arr = json_decode( ob_get_clean(), true ); self::$woostify_svgs = self::$woostify_svgs_arr; self::$woostify_svgs_arr = apply_filters( 'woostify_svg_icons_arr', self::$woostify_svgs_arr ); } return self::$woostify_svgs_arr; } } }
SILENT KILLER Tool