responsive_II_get_social_icons

The Responsive II responsive II get social icons function.

Description

responsive_II_get_social_icons(); 

Usage

  1. if ( !function_exists( 'responsive_II_get_social_icons' ) ) { 
  2. require_once '/includes/functions-extentions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = responsive_II_get_social_icons(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/functions-extentions.php  
  1. function responsive_II_get_social_icons() { 
  2.  
  3. $responsive_II_options = responsive_II_get_options(); 
  4.  
  5. $sites = array ( 
  6. 'twitter' => 'Twitter',  
  7. 'facebook' => 'Facebook',  
  8. 'linkedin' => 'LinkedIn',  
  9. 'youtube' => 'YouTube',  
  10. 'stumbleupon' => 'StumbleUpon',  
  11. 'rss' => 'RSS Feed',  
  12. 'googleplus' => 'Google+',  
  13. 'instagram' => 'Instagram',  
  14. 'pinterest' => 'Pinterest',  
  15. // 'yelp' => 'Yelp!', TODO no font icon for yelp yet 
  16. 'vimeo' => 'Vimeo',  
  17. 'foursquare' => 'foursquare',  
  18. ); 
  19.  
  20. $html = '<ul class="social-icons">'; 
  21. foreach( $sites as $key => $value ) { 
  22. if ( !empty( $responsive_II_options[$key . '_uid'] ) ) { 
  23. $html .= '<li class="' . esc_attr( $key ) . '-icon"><a href="' . $responsive_II_options[$key . '_uid'] . '"></a></li>'; 
  24. $html .= '</ul><!-- .social-icons -->'; 
  25.  
  26. return $html; 
  27.