Changeset 193


Ignore:
Timestamp:
Jan 31, 2007 11:45:25 AM (6 years ago)
Author:
dkg
Message:

JPDD: publish room numbers clearly on category listing pages for easier reference.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jpdd/class.jpdd.category.php

    r184 r193  
    2626        if (count($wshops)) { 
    2727          $ret .= '<div class="array"><div class="array-title">'.$item->getLinkedTitle('title')."</div>\n<ul>\n"; 
    28           $ret .= join('', array_map(create_function('$w', 'return "<li>".$w->getLinkedTitle()."</li>\n";'), $wshops)); 
     28          $ret .= join('', array_map(create_function('$w', '$r = $w->getAssignedRoom(); return "<li>".$w->getLinkedTitle().(is_null($r)? "" : " [Room ".$w->getAssignedRoomTitle()."]")."</li>\n";'), $wshops)); 
    2929          $ret .= "</ul></div>\n"; 
    3030        } 
     
    8686      $wshops = $this->getM2MPeers('workshop', 'workshop_category', 'Workshops'); 
    8787      if (count($wshops))  
    88         return join('', array_map(create_function('$w', 'return "<div class=\"array\">".$w->getLinkedTitle("title")."\n".$w->getPresentersWithOrgs()."<div class=\"workshop-blurb\">".$w->getDescription()."</div></div>\n";'), $wshops))."\n</dl>\n"; 
     88        return join('', array_map(create_function('$w', '$r = $w->getAssignedRoom(); return "<div class=\"array\">".$w->getLinkedTitle("title").(is_null($r)? "" : " [Room ".$w->getAssignedRoomTitle()."]")."\n".$w->getPresentersWithOrgs()."<div class=\"workshop-blurb\">".$w->getDescription()."</div></div>\n";'), $wshops))."\n</dl>\n"; 
    8989      return ''; 
    9090        } 
Note: See TracChangeset for help on using the changeset viewer.