diff --git a/js/cs.js b/js/cs.js index f0056db..52966ba 100644 --- a/js/cs.js +++ b/js/cs.js @@ -269,27 +269,6 @@ $(window).resize(function() { }); $(window).load(function() { stickyFoot(); - $('.page-template-user-people .uc-people .person-image').each(function(index, element) { - var imgWidth = $(this).find('img').width(); - var imgHeight = $(this).find('img').height(); - console.log(imgWidth + ' x ' + imgHeight); - var width = $(this).width(); - $(this).height(width); - - - /* - // find the shorter side, and set that to 100% of container - if (imgWidth > imgHeight) { - // horizontal images - $(this).find('img').height(width).removeAttr('height').removeAttr('width').addClass('horiztonal'); - } else { - // vertical or square images - //$(this).find('img').width(width).removeAttr('width').removeAttr('height').addClass('vertical');; - } - /**/ - $(this).css('display', 'block'); - }); - }); $(window).ready(function() { diff --git a/user-people.php b/user-people.php index e6aa2dc..bb536c3 100644 --- a/user-people.php +++ b/user-people.php @@ -179,4 +179,21 @@ function createTextCell($setting, $field){ +