void tmplput_ROOM_BASENAME(StrBuf *Target, WCTemplputParams *TP) { folder *room = (folder *)CTX(CTX_ROOMS); if (room->nRoomNameParts > 1) StrBufAppendTemplate(Target, TP, room->RoomNameParts[room->nRoomNameParts - 1], 0); else StrBufAppendTemplate(Target, TP, room->name, 0); }
void tmplput_trailing_javascript(StrBuf *Target, WCTemplputParams *TP) { wcsession *WCC = WC; if (WCC != NULL) StrBufAppendTemplate(Target, TP, WCC->trailing_javascript, 0); }
void tmplput_ThisRoomPass(StrBuf *Target, WCTemplputParams *TP) { wcsession *WCC = WC; LoadRoomXA(); StrBufAppendTemplate(Target, TP, WCC->CurRoom.XAPass, 0); }
void tmplput_ThisRoomDirectory(StrBuf *Target, WCTemplputParams *TP) { wcsession *WCC = WC; LoadRoomXA(); StrBufAppendTemplate(Target, TP, WCC->CurRoom.Directory, 0); }
void tmplput_ThisRoomAide(StrBuf *Target, WCTemplputParams *TP) { wcsession *WCC = WC; LoadRoomAide(); StrBufAppendTemplate(Target, TP, WCC->CurRoom.RoomAide, 0); }
void tmplput_ROOM_FLOOR_NAME(StrBuf *Target, WCTemplputParams *TP) { folder *Folder = (folder *)CTX(CTX_ROOMS); const Floor *pFloor = Folder->Floor; if (pFloor == NULL) return; StrBufAppendTemplate(Target, TP, pFloor->Name, 0); }
void tmplput_ThisRoom(StrBuf *Target, WCTemplputParams *TP) { wcsession *WCC = WC; if (WCC != NULL) { StrBufAppendTemplate(Target, TP, WCC->CurRoom.name, 0 ); } }
void tmplput_ThisRoomInfoText(StrBuf *Target, WCTemplputParams *TP) { wcsession *WCC = WC; long nchars = 0; LoadXRoomInfoText(); nchars = GetTemplateTokenNumber(Target, TP, 0, 0); if (!nchars) { /* the whole thing */ StrBufAppendTemplate(Target, TP, WCC->CurRoom.XInfoText, 1); } else { /* only a certain number of characters */ StrBuf *SubBuf; SubBuf = NewStrBufDup(WCC->CurRoom.XInfoText); if (StrLength(SubBuf) > nchars) { StrBuf_Utf8StrCut(SubBuf, nchars); StrBufAppendBufPlain(SubBuf, HKEY("..."), 0); } StrBufAppendTemplate(Target, TP, SubBuf, 1); FreeStrBuf(&SubBuf); } }
void tmplput_ThisRoomFloorName(StrBuf *Target, WCTemplputParams *TP) { wcsession *WCC = WC; folder *Folder = &WCC->CurRoom; const Floor *pFloor; if (Folder == NULL) return; pFloor = Folder->Floor; if (pFloor == NULL) return; StrBufAppendTemplate(Target, TP, pFloor->Name, 0); }
void tmplput_HANDLER_DISPLAYNAME(StrBuf *Target, WCTemplputParams *TP) { wcsession *WCC = WC; if (WCC->Hdr->HR.Handler != NULL) StrBufAppendTemplate(Target, TP, WCC->Hdr->HR.Handler->DisplayName, 0); }
void tmplput_ICalAttendee(StrBuf *Target, WCTemplputParams *TP) { CalAttendee *Att = (CalAttendee*) CTX(CTX_ICALATTENDEE); StrBufAppendTemplate(Target, TP, Att->AttendeeStr, 0); }
void tmplput_ConflictSummary(StrBuf *Target, WCTemplputParams *TP) { CalendarConflict *C = (CalendarConflict *) CTX(CTX_ICALCONFLICT); StrBufAppendTemplate(Target, TP, C->conflict_event_summary, 0); }
void tmplput_Port(StrBuf *Target, WCTemplputParams *TP) { NodeConf *Node= (NodeConf*) CTX(CTX_NODECONF); StrBufAppendTemplate(Target, TP, Node->Port, 0); }
void tmplput_current_user(StrBuf *Target, WCTemplputParams *TP) { StrBufAppendTemplate(Target, TP, WC->wc_fullname, 0); }
void tmplput_ROOM_NAME(StrBuf *Target, WCTemplputParams *TP) { folder *Folder = (folder *)CTX(CTX_ROOMS); StrBufAppendTemplate(Target, TP, Folder->name, 0); }
void tmplput_FLOOR_NAME(StrBuf *Target, WCTemplputParams *TP) { Floor *myFloor = (Floor *)CTX(CTX_FLOORS); StrBufAppendTemplate(Target, TP, myFloor->Name, 0); }