????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.16.1  /  Your IP : 216.73.216.145
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/tempvsty/eaabusiness.com/wp-content/plugins/social-icons/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tempvsty/eaabusiness.com/wp-content/plugins/social-icons/includes/functions-si-core.php
<?php
/**
 * Social Icons Core Functions
 *
 * General core functions available on both the front-end and admin.
 *
 * @package Social_Icons/Functions
 * @version 1.4.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Clean variables using sanitize_text_field. Arrays are cleaned recursively.
 * Non-scalar values are ignored.
 *
 * @param  string|array $var Data to sanitize.
 * @return string|array
 */
function si_clean( $var ) {
	if ( is_array( $var ) ) {
		return array_map( 'si_clean', $var );
	} else {
		return is_scalar( $var ) ? sanitize_text_field( $var ) : $var;
	}
}

/**
 * Sanitize a string destined to be a tooltip.
 *
 * @since  1.4.0 Tooltips are encoded with htmlspecialchars to prevent XSS. Should not be used in conjunction with esc_attr()
 * @param  string $var Data to sanitize.
 * @return string
 */
function si_sanitize_tooltip( $var ) {
	return htmlspecialchars( wp_kses( html_entity_decode( $var ), array(
		'br'     => array(),
		'em'     => array(),
		'strong' => array(),
		'small'  => array(),
		'span'   => array(),
		'ul'     => array(),
		'li'     => array(),
		'ol'     => array(),
		'p'      => array(),
	) ) );
}

/**
 * Queue some JavaScript code to be output in the footer.
 *
 * @param string $code Code.
 */
function si_enqueue_js( $code ) {
	global $si_queued_js;

	if ( empty( $si_queued_js ) ) {
		$si_queued_js = '';
	}

	$si_queued_js .= "\n" . $code . "\n";
}

/**
 * Output any queued javascript code in the footer.
 */
function si_print_js() {
	global $si_queued_js;

	if ( ! empty( $si_queued_js ) ) {
		// Sanitize.
		$si_queued_js = wp_check_invalid_utf8( $si_queued_js );
		$si_queued_js = preg_replace( '/&#(x)?0*(?(1)27|39);?/i', "'", $si_queued_js );
		$si_queued_js = str_replace( "\r", '', $si_queued_js );

		$js = "<!-- Social Icons JavaScript -->\n<script type=\"text/javascript\">\njQuery(function($) { $si_queued_js });\n</script>\n";

		/**
		 * Queued jsfilter.
		 *
		 * @param string $js JavaScript code.
		 */
		echo apply_filters( 'social_icons_queued_js', $js ); // WPCS: XSS ok.

		unset( $si_queued_js );
	}
}

/**
 * Get the icon from supported URL lists.
 *
 * @return array
 */
function si_get_supported_url_icon() {
	return apply_filters( 'social_icons_get_supported_url_icon', array(
		'feed'                  => 'rss',
		'ok.ru'                 => 'odnoklassniki',
		'vk.com'                => 'vkontakte',
		'trello'                => 'trello',
		'last.fm'               => 'lastfm',
		'weixin:'               => 'wechat',
		'youtu.be'              => 'youtube',
		'fyu.se'                => 'fyuse',
		'mail.ru'               => 'mailru',
		'onsolve'               => 'codered',
		'pscp.tv'               => 'periscope',
		'angel.co'              => 'angellist',
		'nicovideo'             => 'niconico',
		'gym.openai'            => 'openaigym',
		'ycombinator'           => 'hackernews',
		'del.icio.us'           => 'delicious',
		'us.battle.net'         => 'diablo',
		'us.battle.net'         => 'heroes',
		'battle.net'            => 'battlenet',
		'blogspot.com'          => 'blogger',
		'nationalgeographic'    => 'natgeo',
		'playoverwatch'         => 'overwatch',
		'playhearthstone'       => 'hearthstone',
		'play.google.com'       => 'play',
		'maps.google.com'       => 'googlemaps',
		'plus.google.com'       => 'googleplus',
		'photos.google.com'     => 'googlephotos',
		'groups.google.com'     => 'googlegroups',
		'scholar.google.com'    => 'googlescholar',
		'calendar.google.com'   => 'googlecalendar',
		'chrome.google.com'     => 'chrome',
		'gaming.youtube.com'    => 'yt-gaming',
		'feedburner.google.com' => 'feedburner',
		'feeds.feedburner.com'  => 'feedburner',
	) );
}

/**
 * Checks whether the content passed contains a specific short code.
 *
 * @param  string $tag Shortcode tag to check.
 * @return bool
 */
function si_post_content_has_shortcode( $tag = '' ) {
	global $post;

	return is_singular() && is_a( $post, 'WP_Post' ) && has_shortcode( $post->post_content, $tag );
}

/**
 * Display a Social Icons help tip.
 *
 * @param  string $tip        Help tip text.
 * @param  bool   $allow_html Allow sanitized HTML if true or escape.
 * @return string
 */
function si_help_tip( $tip, $allow_html = false ) {
	if ( $allow_html ) {
		$tip = si_sanitize_tooltip( $tip );
	} else {
		$tip = esc_attr( $tip );
	}

	return '<span class="social-icons-help-tip" data-tip="' . $tip . '"></span>';
}

/**
 * Get the allowed socicon lists.
 *
 * @return array
 */
function si_get_allowed_socicons() {
	return apply_filters( 'social_icons_allowed_socicon', array( 'hackerone', 'beatport', 'napster', 'spip', 'wickr', 'blackberry', 'pixiv', 'myanimelist', 'gamefor', 'traxsource', 'indiedb', 'moddb', 'hackernews', 'smashwords', 'kobo', 'bookbub', 'mailru', 'gitlab', 'instructables', 'portfolio', 'codered', 'origin', 'nextdoor', 'udemy', 'livemaster', 'crunchbase', 'homefy', 'calendly', 'realtor', 'tidal', 'qobuz', 'natgeo', 'mastodon', 'unsplash', 'homeadvisor', 'angieslist', 'codepen', 'slack', 'openaigym', 'logmein', 'fiverr', 'gotomeeting', 'aliexpress', 'guru', 'appstore', 'homes', 'zoom', 'alibaba', 'craigslist', 'wix', 'redfin', 'googlecalendar', 'shopify', 'freelancer', 'seedrs', 'bing', 'doodle', 'bonanza', 'squarespace', 'toptal', 'gust', 'ask', 'trulia', 'loomly', 'ghost', 'upwork', 'fundable', 'booking', 'googlemaps', 'zillow', 'niconico', 'toneden', 'augment', 'bitbucket', 'fyuse', 'yt-gaming', 'sketchfab', 'mobcrush', 'microsoft', 'pandora', 'messenger', 'gamewisp', 'bloglovin', 'tunein', 'gamejolt', 'trello', 'spreadshirt', '500px', '8tracks', 'airbnb', 'alliance', 'amazon', 'amplement', 'android', 'angellist', 'apple', 'appnet', 'baidu', 'bandcamp', 'battlenet', 'mixer', 'bebee', 'bebo', 'behance', 'blizzard', 'blogger', 'buffer', 'chrome', 'coderwall', 'curse', 'dailymotion', 'deezer', 'delicious', 'deviantart', 'diablo', 'digg', 'discord', 'disqus', 'douban', 'draugiem', 'dribbble', 'drupal', 'ebay', 'ello', 'endomondo', 'envato', 'etsy', 'facebook', 'feedburner', 'filmweb', 'firefox', 'flattr', 'flickr', 'formulr', 'foursquare', 'github', 'goodreads', 'google', 'googlescholar', 'googlegroups', 'googlephotos', 'googleplus', 'grooveshark', 'hackerrank', 'hearthstone', 'hellocoton', 'heroes', 'smashcast', 'horde', 'houzz', 'icq', 'identica', 'imdb', 'instagram', 'issuu', 'istock', 'itunes', 'keybase', 'lanyrd', 'lastfm', 'line', 'linkedin', 'livejournal', 'lyft', 'macos', 'mail', 'medium', 'meetup', 'mixcloud', 'modelmayhem', 'mumble', 'myspace', 'nintendo', 'npm', 'odnoklassniki', 'openid', 'opera', 'outlook', 'overwatch', 'patreon', 'paypal', 'periscope', 'pinterest', 'play', 'player', 'playstation', 'pocket', 'qq', 'quora', 'raidcall', 'ravelry', 'reddit', 'renren', 'researchgate', 'residentadvisor', 'reverbnation', 'rss', 'sharethis', 'skype', 'slideshare', 'smugmug', 'snapchat', 'songkick', 'soundcloud', 'spotify', 'stackexchange', 'stackoverflow', 'starcraft', 'stayfriends', 'steam', 'storehouse', 'strava', 'streamjar', 'stumbleupon', 'swarm', 'teamspeak', 'teamviewer', 'telegram', 'tripadvisor', 'tripit', 'triplej', 'tumblr', 'twitch', 'twitter', 'uber', 'ventrilo', 'viadeo', 'viber', 'viewbug', 'vimeo', 'vine', 'vkontakte', 'warcraft', 'wechat', 'weibo', 'whatsapp', 'wikipedia', 'windows', 'wordpress', 'wykop', 'xbox', 'xing', 'yahoo', 'yammer', 'yandex', 'yelp', 'younow', 'youtube', 'zapier', 'zerply', 'zomato', 'zynga' ) );
}

/**
 * Get the default sortable socicon lists.
 *
 * @return array
 */
function si_get_default_sortable_socicons() {
	return apply_filters( 'social_icons_get_default_sortable_socicons', array(
		'twitter'  => array(
			'url'   => 'https://twitter.com/themegrill/',
			'label' => __( 'Follow Me', 'social-icons' ),
		),
		'facebook' => array(
			'url'   => 'https://facebook.com/themegrill/',
			'label' => __( 'Friend me on Facebook', 'social-icons' ),
		),
	) );
}

Youez - 2016 - github.com/yon3zu
LinuXploit