Skip to content

Instantly share code, notes, and snippets.

@sumanahmed
Created January 8, 2016 06:34
Show Gist options
  • Save sumanahmed/1aa0395b367704552940 to your computer and use it in GitHub Desktop.
Save sumanahmed/1aa0395b367704552940 to your computer and use it in GitHub Desktop.
<?php
if ( function_exists( 'ot_get_option' ) ) {
/* get the slider array */
$social_icons = ot_get_option( 'social_icon', array() );
if ( ! empty( $social_icons ) ) {
foreach( $social_icons as $social_icon ) {
echo '
<li><a href="' . $social_icon['icon_link_t'] . '" data-placement="top" title="' . $social_icon['title'] . '"><i class="fa fa-' . $social_icon['icon_name'] . '"></i></a></li>
';
}
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment