Exemplo n.º 1
0
 public function widget($args, $instance)
 {
     $title = apply_filters('widget_title', $instance['title']);
     echo $args['before_widget'];
     if (!empty($title)) {
         echo $args['before_title'] . esc_attr($title) . $args['after_title'];
     }
     echo '<div class="social"><ul>';
     $social_links = converio_get_social_links();
     foreach ($social_links as $link) {
         echo '<li>';
         echo '<a href="' . esc_url($link->url) . '" class="' . esc_attr($link->class) . '" target="_blank">' . esc_attr($link->name) . '</a>';
         echo '</li>';
     }
     echo '</ul></div>';
     echo $args['after_widget'];
 }
Exemplo n.º 2
0
    echo esc_url('http://thememotive.com/');
    ?>
"><?php 
    esc_attr_e('ThemeMotive.', 'converio');
    ?>
</a><?php 
    esc_attr_e(' | All rights reserved.', 'converio');
    ?>
</p>
			<?php 
}
?>
			<nav class="social social-light social-colored">
				<ul>
					<?php 
$social_links = converio_get_social_links();
foreach ($social_links as $link) {
    ?>
					<li><a href="<?php 
    echo esc_url($link->url);
    ?>
" class="<?php 
    echo esc_attr($link->class);
    ?>
" title="<?php 
    echo esc_attr($link->name);
    ?>
" target="_blank"><?php 
    echo esc_attr($link->name);
    ?>
</a></li>