Skip to content

Commit

Permalink
Merge pull request #146 from yehudah/widgets/social-links
Browse files Browse the repository at this point in the history
fixed js template
  • Loading branch information
KingYes committed Jun 26, 2016
2 parents 3d0724f + b5b36c3 commit 4bc1a06
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions includes/widgets/social-links.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function get_title() {
}

public function get_icon() {
return 'bullet-list';
return 'settings';
}

protected function _register_controls() {
Expand Down Expand Up @@ -287,20 +287,20 @@ protected function content_template() {
?>
<div class="elementor-icon-wrapper">
<%
_.each( settings.icon_list, function( item ) {
if ( settings.icon ) {
var hasLink = settings.link && settings.link.url;
_.each( settings.social_icon_list, function( item ) {

var hasLink = item.link && item.link.url;

if ( hasLink ) { %>
<a class="elementor-icon-link" href="<%- item.link.url %>">
<% } %>
<div class="elementor-icon">
<i class="<%- item.social %>"></i>
</div>
<% if ( hasLink ) { %>
</a>
<% }

if ( hasLink ) { %>
<a class="elementor-icon-link" href="<%- settings.link.url %>">
<% } %>
<div class="elementor-icon">
<i class="<%- settings.social %>"></i>
</div>
<% if ( hasLink ) { %>
</a>
<% }
}
} );
%>
</div>
Expand Down

0 comments on commit 4bc1a06

Please sign in to comment.