function widget($args, $instance)
 {
     extract($args);
     /* User-selected settings. */
     $title = apply_filters('widget_title', $instance['title']);
     $address = $instance['address'];
     $phone = $instance['phone'];
     $email = $instance['email'];
     $website = $instance['website'];
     $showmap = $instance['showmap'];
     /* Before widget (defined by themes). */
     echo $before_widget;
     /* Title of widget (before and after defined by themes). */
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     /* Display name from widget settings. */
     ?>
     
     <div class="widget-social-icons">
     	<?php 
     vntd_print_social_icons('rounded');
     ?>
     </div> 
              
                     
     <?php 
     /* After widget (defined by themes). */
     echo $after_widget;
 }
Exemple #2
0
        $img_url = $smof_data['vntd_logo_url'];
    }
    if ($img_url) {
        echo '<img class="site_logo" src="' . $img_url . '" alt="' . get_bloginfo() . '">';
    }
}
?>
			<!-- Text -->
			<p class="uppercase semibold">
				<?php 
echo $smof_data['vntd_copyright'];
?>
			</p>
			<?php 
if ($footer_style == 'footer-classic' && function_exists('vntd_print_social_icons')) {
    vntd_print_social_icons();
}
?>
			</div>
		</div>
	</footer>
	<!-- End Footer -->

	<!-- Back To Top Button -->

	<?php 
if ($smof_data['vntd_stt']) {
    echo '<section id="back-top"><a href="#home" class="scroll t-center white"><i class="fa fa-angle-double-up"></i></a></section>';
}
?>
	
 function vntd_topbar_content($side)
 {
     global $smof_data;
     $type = vntd_option('topbar_' . $side);
     $bar_text = '<span class="topbar-text">' . do_shortcode(vntd_option('topbar_text_' . $side)) . '</span>';
     // If more than 1 WPML language, display switcher
     if (function_exists('icl_get_languages') && sizeof(icl_get_languages('skip_missing=0')) > 1 && $side == 'right' && $smof_data['vntd_topbar_wpml']) {
         vntd_topbar_langs();
     }
     // Switch content type
     if ($type == 'social') {
         echo '<div class="topbar-section topbar-social">';
         vntd_print_social_icons();
         echo '</div>';
     } elseif ($type == 'Menu') {
         echo '<div class="topbar-section topbar-menu">';
         wp_nav_menu(array('theme_location' => 'topbar'));
         echo '</div>';
     } elseif ($type == 'textsocial') {
         echo '<div class="topbar-section topbar-text">' . $bar_text . '</div>';
         echo '<div class="topbar-section topbar-social">';
         vntd_print_social_icons();
         echo '</div>';
     } else {
         echo '<div class="topbar-section topbar-text">' . $bar_text . '</div>';
     }
 }