function widget($args, $instance) { extract($args); echo $before_widget; $title = apply_filters('widget_title', $instance['title']); //$disable_styles = $instance['disable_styles']; if (!empty($title)) { echo $before_title . $title . $after_title; } ?> <style> .widget-social-icons ul { margin: 0 auto; overflow: hidden; } .widget-social-icons ul li{ display: block; float: left; padding: 6px 2.9px !important; border-bottom: 0 !important; text-align: center; margin-right: 1px; } .widget-social-icons ul li a, .widget-social-icons ul li a img{ display: block; } </style> <?php ?> <div class="widget-social-icons"> <ul><?php social_bartender(); ?> </ul> </div> <?php if (!empty($title)) { echo $after_widget; } else { ?> </div> <style> .sidebar .widget-social-icons{ margin-bottom: 30px; overflow: hidden; clear: both; } </style> <?php } }
<?php echo stripslashes(get_option_max('copyright')); ?> </span> <?php // Check if we have to show the fullsize key nav icon if (get_option_max('fullsize_key_nav') == "true") { echo '<a href="#keynav" id="fullsizeKeynav" class="keynav tooltip" title="' . __('Use Keynav to navigate', MAX_SHORTNAME) . '"></a>'; } // Check if social array is enabled if (get_option_max('social_use') == 'true' && is_array(get_option_max('social_show'))) { echo '<div id="sociallinks" class="clearfix">'; // check if social bartender plugin is installed if (function_exists('social_bartender')) { social_bartender(); } else { //Start the generated social network loop echo '<ul>'; $blank = get_option_max('social_show_blank') == 'true' ? 'target="_blank"' : ''; for ($iconCount = 0; $iconCount < count($iconArray); $iconCount++) { if ($iconArray[$iconCount] != "") { if ($iconUrl[$iconCount] != "") { echo '<li><a href="' . $iconUrl[$iconCount] . '" title="' . $iconArray[$iconCount] . '" ' . $blank . ' class="tooltip"><img alt="' . $iconArray[$iconCount] . '" src="' . $iconPath . '' . $iconArray[$iconCount] . '.png" /></a></li>'; } } } echo '</ul>'; } echo '</div>'; }
function header_social() { ?> <div class="custom-social-icons"> <ul> <?php social_bartender(); ?> </ul> </div> <?php }