From: Steve Sutton Date: Tue, 12 Aug 2014 20:11:58 +0000 (-0400) Subject: Setting up members X-Git-Tag: V1.0^2~101 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=43e87434065420850830873cd7c0e060e4c40fb9;p=web%2FKeweenaw.git Setting up members update members to work with the site. Adding in photoswipe for member photos --- diff --git a/Toolkit/Members/ProfileWriter.php b/Toolkit/Members/ProfileWriter.php index d193f64..a94b512 100644 --- a/Toolkit/Members/ProfileWriter.php +++ b/Toolkit/Members/ProfileWriter.php @@ -199,14 +199,18 @@ class Toolkit_Members_ProfileWriter implements SplSubject */ public function toHtml(Toolkit_Members_ProfilePage $profile) { - $GLOBALS['bottomScripts'][] - = MEDIA_APP_BASE_URL . 'gallery/thickbox-3.1.1.js'; + //$GLOBALS['bottomScripts'][] + //= MEDIA_APP_BASE_URL . 'gallery/thickbox-3.1.1.js'; $GLOBALS['bottomScripts'][] = MEDIA_BASE_URL . 'Toolkit/Members/libjs/business-detail.js'; $GLOBALS['styleSheets'][] = MEDIA_BASE_URL . 'Toolkit/Members/css/member.css'; - $GLOBALS['styleSheets'][] = MEDIA_APP_BASE_URL . 'gallery/gallery.css'; - $GLOBALS['styleSheets'][] = MEDIA_APP_BASE_URL . 'gallery/thickbox.css'; + //$GLOBALS['styleSheets'][] = MEDIA_APP_BASE_URL . 'gallery/gallery.css'; + //$GLOBALS['styleSheets'][] = MEDIA_APP_BASE_URL . 'gallery/thickbox.css'; + $GLOBALS['styleSheets'][] = BASE_URL . 'photoswipe/photoswipe.css'; + $GLOBALS['bottomScripts'][] = BASE_URL . 'photoswipe/lib/klass.min.js'; + $GLOBALS['bottomScripts'][] = BASE_URL . 'photoswipe/code.photoswipe.jquery-3.0.5.js'; + $GLOBALS['bottomScripts'][] = BASE_URL . 'js/photoGallery.js'; $profileCache = "Member-{$profile->getMemberId()}"; $out = $this->_cache->get($profileCache, 'Profile'); diff --git a/Toolkit/Members/templates/memberDetail.tpl b/Toolkit/Members/templates/memberDetail.tpl index e13e130..98663b8 100644 --- a/Toolkit/Members/templates/memberDetail.tpl +++ b/Toolkit/Members/templates/memberDetail.tpl @@ -168,13 +168,17 @@ catid="catid" {end:} -