<% _.each(shareList,function(imgUrl,key,list){%>
<% if(key == "0" ) {%>
<%
var notAllowedClass = "notAllowed";
if (!IS_IP_RESTRICTED){
notAllowedClass = "";
%>
<%
}
%>
<%
if (IS_IP_RESTRICTED){
%>
<% } %>
<% } %>
<% if(key != "0" ) {%>
<%
var notAllowedClass = "notAllowed";
if (!IS_IP_RESTRICTED){
notAllowedClass = "";
%>
<% } %>
<%
if (IS_IP_RESTRICTED){
%>
<% } %>
<% } %>
<% });%>