CyberShot's post in help with array check was marked as the answer
November 11, 2017
It appears I have figured it out.
function bliss_social(){
if(function_exists('ot_get_option')){
$facebook = ot_get_option('facebook');
$flickr = ot_get_option('flickr');
$twitter = ot_get_option('twitter');
$google = ot_get_option('google_plus');
$social = array(
'facebook' => array(
'title' => 'Facebook',
'link' => $facebook,
'icon' => '1'
),
'flickr' => array(
'title' => 'Flickr',
'link' => $flickr,
'icon' => '2'
),
'twiiter' => array(
'title' => 'Twitter',
'link' => $twitter,
'icon' => '3'
),
'google' => array(
'title' => 'Google+',
'link' => $google,
'icon' => '4'
)
);
echo '<ul class="list-social pull-right">';
foreach($social as $row ){
if( !empty($row['link'])){
echo '<li>';
echo '<a class="tipsy2 icon-'.$row['icon'].'" original-title="'.$row['title'].'" href="'.$row['link'].'"></a>';
echo '</li>';
}
}
echo '</ul>';
}
}