function bearded_social_meta_box() { ?> <table class="form-table"> <!-- Add custom form elements below here. --> <!-- Text input box --> <?php $socials = bearded_get_social_lists(); ?> <?php foreach ($socials as $key => $val) { ?> <tr> <th> <label for="<?php echo hybrid_settings_field_id('bearded_social_' . $key); ?> "> <?php printf(__('%1$s URL', 'bearded'), ucwords(str_replace('-', ' ', $key))); ?> </label> </th> <td> <p> <input type="text" id="<?php echo hybrid_settings_field_id('bearded_social_' . $key); ?> " name="<?php echo hybrid_settings_field_name('bearded_social_' . $key); ?> " size="80" value="<?php echo $val; ?> " /> </p> </td> </tr> <?php } ?> <!-- End custom form elements. --> </table><!-- .form-table --> <?php }
?> <?php } ?> </div> <?php } ?> </div> <div class="footer-content row"> <div class="column large-12"> <?php $social_lists = bearded_get_social_lists(); if (is_array($social_lists) && !empty($social_lists)) { ?> <ul class="footer-social"> <?php foreach ($social_lists as $key => $value) { if (!empty($value)) { if ($key === 'github') { $key = 'github-alt'; } echo '<li><a href="' . $value . '"><i class="icon-' . $key . '"></i></a></li>'; } } ?>