Esempio n. 1
0
 /**
  * Outputs the content for the current widget instance.
  *
  * @since 1.0.0
  *
  * @param array $args     Display arguments.
  * @param array $instance Settings for the current widget instance.
  */
 function widget($args, $instance)
 {
     $params = $this->get_params($instance);
     echo $args['before_widget'];
     if (!empty($params['title'])) {
         echo $args['before_title'] . $params['title'] . $args['after_title'];
     }
     // Render social links.
     blue_planet_generate_social_links();
     echo $args['after_widget'];
 }
Esempio n. 2
0
 /**
  * Implement social links in footer.
  *
  * @since 1.0.0
  */
 function blue_planet_footer_social()
 {
     $flg_hide_footer_social_icons = blue_planet_get_option('flg_hide_footer_social_icons');
     if (1 !== $flg_hide_footer_social_icons) {
         blue_planet_generate_social_links();
     }
 }