Index: WAeUP_SRP/base/skins/cps_custom/main_template_popup.pt
===================================================================
--- WAeUP_SRP/base/skins/cps_custom/main_template_popup.pt	(revision 2918)
+++ WAeUP_SRP/base/skins/cps_custom/main_template_popup.pt	(revision 2920)
@@ -1,28 +1,36 @@
-<metal:block define-macro="master" tal:define="
-  showthirdcol showthirdcol|python:1;
+<metal:block define-macro="master"
+  tal:define="showthirdcol showthirdcol|python:1;
   emptybody emptybody|request/emptybody|nothing;
+  mtool here/portal_membership;
+  
   utool nocall:here/portal_url;
   atool here/portal_actions;
-  mtool here/portal_membership;
   ttool here/portal_trees;
   wtool here/portal_workflow;
+  ptool here/portal_cpsportlets;
   context_url python:here.getContextUrl(utool=utool);
-  base_url python:utool.getBaseUrl();
-  
+  here_url here/absolute_url;
+  base_url here/getBaseUrl;
   static_dir here/portal_properties/static_dir;
   static_base_url string:${here/getBaseUrl}${static_dir};
-  
-  
-  here_url python:here.absolute_url();
   member mtool/getAuthenticatedMember;
   isAnon mtool/isAnonymousUser;
+  isHomeless python:isAnon or member.getProperty('homeless', 0);
+  isHomeless python:(isHomeless == '0' and [0] or [isHomeless])[0];
   actions python:atool.listFilteredActionsFor(here);
   wf_state python:wtool.getInfoFor(here,'review_state','');
-  uname python:isAnon and 'Guest' or member.getUserName();
-  checkPerm nocall:mtool/checkPermission;
+  uname python: isAnon and 'Guest' or member.getUserName();
+  checkPerm nocall: mtool/checkPermission;
   cpsmcat nocall:here/translation_service;
   locale here/translation_service/getSelectedLanguage;
   in_ws here/isInWorkspace;
-  "><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+  waeup_skin here/get_waeup_skin;
+  student_theme python:test(waeup_skin == 'WAeUP_Student',1,0);
+  navigation_slot python:test(student_theme,'student_navigation_slot','navigation_slot');
+  object_tabs python:test(student_theme,'student_object_slot','staff_object_slot');
+  
+  ">
+  
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml"
   tal:attributes="lang locale; xml:lang locale">
@@ -34,6 +42,5 @@
   <metal:block fill-slot="head_slot"><metal:block define-slot="head_slot"
     /></metal:block>
-  <metal:block fill-slot="style_slot"><metal:block define-slot="style_slot"
-    /></metal:block>
+
   <metal:block fill-slot="javascript_head_slot"><metal:block
     define-slot="javascript_head_slot"
