__('Primary', 'drop') )); } function ct_drop_register_widget_areas(){ /* register footer widget area */ hybrid_register_sidebar( array( 'name' => __( 'Subsidiary', 'drop' ), 'id' => 'subsidiary', 'description' => __( 'Widgets in this area will be shown in the footer', 'drop' ) ) ); } add_action('widgets_init','ct_drop_register_widget_areas'); // takes user input from the customizer and outputs linked social media icons function ct_drop_social_media_icons() { $social_sites = ct_drop_customizer_social_media_array(); // any inputs that aren't empty are stored in $active_sites array foreach($social_sites as $social_site) { if( strlen( get_theme_mod( $social_site ) ) > 0 ) { $active_sites[] = $social_site; } } // for each active social site, add it as a list item if(!empty($active_sites)) { echo "