コード例 #1
0
 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 
     waxom_print_social_icons('rounded');
     ?>
     </div> 
              
                     
     <?php 
     /* After widget (defined by themes). */
     echo $after_widget;
 }
コード例 #2
0
ファイル: footer.php プロジェクト: siiiiilvio/kadcnc
        echo '<div class="footer-extra-text">' . esc_attr(waxom_option('footer_extra_text')) . '</div>';
    }
    if (function_exists('waxom_print_social_icons')) {
        waxom_print_social_icons();
    }
}
if ($footer_style == 'centered') {
    if (waxom_option('logo_url_white')) {
        echo '<div class="footer-logo"><img src="' . esc_attr(waxom_option('logo_url_white')) . '" alt></div>';
    }
    if (waxom_option('footer_extra_text')) {
        echo '<p class="footer-extra-text">' . waxom_option('footer_extra_text') . '</p>';
    }
}
if (function_exists('waxom_print_social_icons')) {
    waxom_print_social_icons();
}
?>
			
			<!-- Text -->
			<p class="copyright subpixel">
				<?php 
echo waxom_option('copyright');
?>
			</p>
			
			</div>
		</div>
	</footer>
	<!-- End Footer -->
コード例 #3
0
 function waxom_topbar_content($side)
 {
     $type = waxom_option('topbar_' . $side);
     $top_bar_text = '';
     $icon_style = 'font_awesome';
     if (waxom_option('social_icons_style') != 'font_awesome') {
         $icon_style = waxom_option('social_icons_style');
     }
     if ($icon_style != 'font_awesome') {
         $top_bar_text = str_replace("[icon icon", '[icon icon_style="simple-line" icon', waxom_option('topbar_text_' . $side));
     } else {
         $top_bar_text = waxom_option('topbar_text_' . $side);
     }
     $bar_text = '<span class="topbar-text">' . do_shortcode($top_bar_text) . '</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' && waxom_option('topbar_wpml')) {
         waxom_topbar_langs();
     }
     // Switch content type
     if ($type == 'social') {
         echo '<div class="topbar-section topbar-social">';
         waxom_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 icons-' . $icon_style . '">' . $bar_text . '</div>';
         echo '<div class="topbar-section topbar-social">';
         waxom_print_social_icons();
         echo '</div>';
     } else {
         echo '<div class="topbar-section topbar-text icons-' . $icon_style . '">' . $bar_text . '</div>';
     }
 }