';
foreach ( $beauty_studio_social_data as $social_data ){
$icon = $social_data->icon;
$link = $social_data->link;
$checkbox = $social_data->checkbox;
echo '
';
echo '';
echo '';
echo '';
echo '';
}
echo '';
}
}
endif;
add_action( 'beauty_studio_action_social_links', 'beauty_studio_social_links', 10 );
if ( !function_exists('beauty_studio_newsnotice') ) :
function beauty_studio_newsnotice( ) {
global $beauty_studio_customizer_all_values;
$beauty_studio_newsnotice_cat = $beauty_studio_customizer_all_values['beauty-studio-newsnotice-cat'];
if( 0 != $beauty_studio_newsnotice_cat ){
$recent_args = array(
'numberposts' => 5,
'post_status' => 'publish',
'category' => $beauty_studio_newsnotice_cat
);
$recent_posts = wp_get_recent_posts( $recent_args );
if ( !empty( $recent_posts ) ):
if ( !empty( $beauty_studio_customizer_all_values['beauty-studio-newsnotice-title'] ) ){
$bn_title = $beauty_studio_customizer_all_values['beauty-studio-newsnotice-title'];
}
else{
$bn_title = esc_html__( 'Recent posts', 'beauty-studio' );
}
?>
";
wp_nav_menu(
array(
'theme_location' => 'top-menu',
'container' => false,
'depth' => 1
)
);
echo "";
}
endif;
add_action( 'beauty_studio_action_top_menu', 'beauty_studio_action_top_menu', 10 );