");
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO60x80",Pho_ZOOM);
fprintf (Gbl.F.Out,"
");
/***** Right: author's name, time and summary *****/
fprintf (Gbl.F.Out,"");
/* Write author's full name and nickname */
Str_LimitLengthHTMLStr (UsrDat->FullName,20);
fprintf (Gbl.F.Out,"
"
"%s"
" @%s"
"
",
UsrDat->FullName,UsrDat->Nickname);
/* Write date and time */
Soc_WriteEventDate (Soc->DateTimeUTC);
if (Soc->SocialEvent == Soc_EVENT_SOCIAL_POST)
{
/* Write post content */
fprintf (Gbl.F.Out,"
");
Soc_GetAndWriteSocialPost (Soc->Cod);
fprintf (Gbl.F.Out,"
");
/* Write form to remove this event */
if (PutIconRemove &&
Gbl.Usrs.Me.Logged &&
UsrDat->UsrCod == Gbl.Usrs.Me.UsrDat.UsrCod) // I am the author
Soc_PutFormToRemoveSocialEvent (Soc->SocCod);
}
else
{
/* Write event type and location */
fprintf (Gbl.F.Out,"
");
Soc_StartFormGoToAction (Soc->SocialEvent,Crs.CrsCod,Soc->Cod);
Act_LinkFormSubmit (Txt_SOCIAL_EVENT[Soc->SocialEvent],
The_ClassForm[Gbl.Prefs.Theme]);
fprintf (Gbl.F.Out,"%s",
Txt_SOCIAL_EVENT[Soc->SocialEvent]);
Act_FormEnd ();
fprintf (Gbl.F.Out,"
");
if (Soc->SocialEvent == Soc_EVENT_FORUM_POST)
fprintf (Gbl.F.Out,"
%s: %s
",
Txt_Forum,ForumName);
else if (Crs.CrsCod > 0)
fprintf (Gbl.F.Out,"
%s: %s
",
Txt_Course,Crs.ShortName);
else if (Deg.DegCod > 0)
fprintf (Gbl.F.Out,"
%s: %s
",
Txt_Degree,Deg.ShortName);
else if (Ctr.CtrCod > 0)
fprintf (Gbl.F.Out,"
%s: %s
",
Txt_Centre,Ctr.ShortName);
else if (Ins.InsCod > 0)
fprintf (Gbl.F.Out,"
%s: %s
",
Txt_Institution,Ins.ShortName);
else if (Cty.CtyCod > 0)
fprintf (Gbl.F.Out,"
%s: %s
",
Txt_Country,Cty.Name[Gbl.Prefs.Language]);
/* Write content of the event */
Soc_GetEventSummary (Soc,SummaryStr,Soc_MAX_BYTES_SUMMARY);
fprintf (Gbl.F.Out,"
%s
",SummaryStr);
}
/* End of right part */
fprintf (Gbl.F.Out,"
");
/***** End list item *****/
fprintf (Gbl.F.Out,"