/** * Get social navigation menu * * @return string */ public function get_social_nav() { return king_news_get_social_list('widget'); }
/** * Show Social list. * * @return void */ function king_news_social_list($context = '') { $visibility_in_header = get_theme_mod('header_social_links', king_news_theme()->customizer->get_default('header_social_links')); $visibility_in_footer = get_theme_mod('footer_social_links', king_news_theme()->customizer->get_default('footer_social_links')); if (!$visibility_in_header && 'header' === $context) { return; } if (!$visibility_in_footer && 'footer' === $context) { return; } echo king_news_get_social_list($context); }