<?php for ($i = 1; $i < 8; $i++) : $social = esc_html(get_theme_mod('madhat_social_'.$i)); if ( ($social != 'none') && ($social != '') ) : ?> <?php endif; endfor; ?>
Dałby radę ktoś pomóć?

<?php for ($i = 1; $i < 8; $i++) : $social = esc_html(get_theme_mod('madhat_social_'.$i)); if ( ($social != 'none') && ($social != '') ) : ?> <?php endif; endfor; ?>