<?php
/**
 * @version    $Id$
 * @package    IT_Theme_Framework
 * @author     InnoThemes Team <support@innothemes.com>
 * @copyright  Copyright (C) 2012 InnoThemes.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.innothemes.com
 */

// Get theme options
global $it_options;

$param_key = "{$prefix}_social_icons";

if ( is_array( $it_options[$param_key] ) && count( $it_options[$param_key] ) ) :

if ( is_array( $it_options['it_social_channels'] ) && count( $it_options['it_social_channels'] ) ) :
	?>
	<ul class="it-social">
<?php
foreach ( $it_options[$param_key] as $channel => $status ) {
	if ( $status && isset( $it_options['it_social_channels'][$channel] ) && ! empty( $it_options['it_social_channels'][$channel] ) ) {
		?>
		<li class=<?php esc_attr_e( $channel ); ?>>
			<a target="_blank" href="<?php echo esc_url( $it_options['it_social_channels'][$channel] ); ?>">
				<?php esc_html_e( $channel, IT_THEME_TEXTDOMAIN ); ?>
			</a>
		</li>
		<?php
	}
}
?>
	</ul>
<?php
endif;

endif;
