From 5a52436a323bdacf7179b94fe843e6010e9cfac7 Mon Sep 17 00:00:00 2001 From: andrewmbacon Date: Tue, 11 Aug 2015 14:39:03 -0400 Subject: [PATCH] moved ucpeople js to page template --- js/cs.js | 21 --------------------- user-people.php | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 21 deletions(-) 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){ +