'', 'close' => '', 'smile' => '', 'hamburger' => '', 'error' => '', 'caret-right' => '', 'chevron-left' => '', 'chevron-left-v2' => ' ', 'chevron-right' => '', 'chevron-right-v2' => ' ', 'chevron-bottom' => '', 'paper-plane' => '', ); /** * Store the code for all SVGs in an array. * * @since 1.0.0 * * @return string */ public static $shop_icons = array( 'search' => '', 'account' => '', 'heart' => '', 'cart' => ' ', 'shop-bag' => '', 'shop-bag-2' => '', 'shop-cart' => '', 'eye' => '', 'filter' => ' ', 'infor' => '', 'star' => '', 'plus' => '', 'minus' => '', 'car' => '', ); /** * Store the code for all SVGs in an array. * * @since 1.0.0 * * @return string */ public static $widget_icons = array( 'size-chart' => '', 'staring' => '', 'play' => '', 'move-left-right' => '', ); /** * Store the code for all SVGs in an array. * * @since 1.0.0 * * @return string */ public static $mobile_icons = array( 'home' => '', 'filter-2' => '', 'checkout' => ' ' ); /** * Social Icons – svg sources. * * @since 1.0.0 * * @return string */ public static $social_icons = array( '500px' => '', 'amazon' => '', 'bandcamp' => '', 'behance' => '', 'codepen' => '', 'deviantart' => '', 'dribbble' => '', 'dropbox' => '', 'etsy' => '', 'facebook' => '', 'feed' => '', 'flickr' => '', 'foursquare' => '', 'goodreads' => '', 'google' => '', 'github' => '', 'instagram' => '', 'lastfm' => '', 'linkedin' => '', 'mail' => '', 'mastodon' => '', 'medium' => '', 'meetup' => '', 'pinterest' => '', 'pocket' => '', 'reddit' => '', 'skype' => '', 'snapchat' => '', 'soundcloud' => '', 'spotify' => '', 'tumblr' => '', 'tiktok' => '', 'twitch' => '', 'twitter' => '', 'vimeo' => '', 'vk' => '', 'whatsapp' => '', // phpcs:disable WordPress.WP.CapitalPDangit.Misspelled 'wordpress' => '', 'yelp' => '', 'youtube' => '', 'rss' => '', 'telegram' => '', ); /** * Get the SVG code for the specified icon * * @since 1.0.0 * * @param string $icon Icon name. * @param string $group Icon group. * @param int $size The icon-size in pixels. * * @return string */ public static function get_svg( $icon, $class = '', $group = 'ui') { if ( 'ui' === $group ) { $arr = self::$ui_icons; } elseif ( 'social' === $group ) { $arr = self::$social_icons; } elseif ( 'shop' === $group ) { $arr = self::$shop_icons; } elseif ( 'mobile' === $group ) { $arr = self::$mobile_icons; } elseif ( 'widget' === $group ) { $arr = self::$widget_icons; } else { $arr = array(); } $arr = apply_filters( "razzi_svg_icons_{$group}", $arr ); $svg = ''; if ( array_key_exists( $icon, $arr ) ) { $repl = '