Sindbad~EG File Manager
<?php
/**
* The template for displaying Social Icons
*
* @package Catch Themes
* @subpackage Catch Base
* @since Catch Base 1.0
*/
if ( ! defined( 'CATCHBASE_THEME_VERSION' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
if ( ! function_exists( 'catchbase_get_social_icons' ) ) :
/**
* Generate social icons.
*
* @since Catch Base 1.0
*/
function catchbase_get_social_icons(){
if ( ( !$output = get_transient( 'catchbase_social_icons' ) ) ) {
$output = '';
$options = catchbase_get_theme_options(); // Get options
//Pre defined Social Icons Link Start
$pre_def_social_icons = catchbase_get_social_icons_list();
foreach ( $pre_def_social_icons as $key => $item ) {
if ( isset( $options[ $key ] ) && '' != $options[ $key ] ) {
$value = $options[ $key ];
if ( 'email_link' == $key ) {
$output .= '<a class="genericon_parent genericon genericon-'. sanitize_key( $item['genericon_class'] ) .'" target="_blank" title="'. esc_attr__( 'Email', 'catch-base') . '" href="mailto:'. antispambot( sanitize_email( $value ) ) .'"><span class="screen-reader-text">'. __( 'Email', 'catch-base') . '</span> </a>';
}
elseif ( 'skype_link' == $key ) {
$output .= '<a class="genericon_parent genericon genericon-'. sanitize_key( $item['genericon_class'] ) .'" target="_blank" title="'. esc_attr( $item['label'] ) . '" href="'. esc_attr( $value ) .'"><span class="screen-reader-text">'. esc_attr( $item['label'] ). '</span> </a>';
}
elseif ( 'phone_link' == $key || 'handset_link' == $key ) {
$output .= '<a class="genericon_parent genericon genericon-'. sanitize_key( $item['genericon_class'] ) .'" target="_blank" title="'. esc_attr( $item['label'] ) . '" href="tel:' . preg_replace( '/\s+/', '', esc_attr( $value ) ) . '"><span class="screen-reader-text">'. esc_attr( $item['label'] ) . '</span> </a>';
}
else {
$output .= '<a class="genericon_parent genericon genericon-'. sanitize_key( $item['genericon_class'] ) .'" target="_blank" title="'. esc_attr( $item['label'] ) .'" href="'. esc_url( $value ) .'"><span class="screen-reader-text">'. esc_attr( $item['label'] ) .'</span> </a>';
}
}
}
//Pre defined Social Icons Link End
//Custom Social Icons Link End
set_transient( 'catchbase_social_icons', $output, 86940 );
}
return $output;
} // catchbase_get_social_icons
endif;
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists