");
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_WriteNoteDate (SocNot->DateTimeUTC);
if (SocNot->NoteType == Soc_NOTE_SOCIAL_POST)
{
/* Write post content */
fprintf (Gbl.F.Out,"
");
Soc_GetAndWriteSocialPost (SocNot->Cod);
fprintf (Gbl.F.Out,"
");
/***** Put icons to share/unshare/remove *****/
if (Gbl.Usrs.Me.Logged)
{
if (UsrDat->UsrCod == Gbl.Usrs.Me.UsrDat.UsrCod) // I am the author
{
if (PutIconRemove)
/* Put icon to remove this publishing */
Soc_PutFormToRemoveSocialPublishing (SocPub->PubCod);
}
else // I am not the author
{
if (Soc_CheckIfNoteIsYetPublishedByMe (SocNot->NotCod)) // I have yet published this social note
/* Put icon to unshare this publishing */
Soc_PutFormToUnshareSocialPublishing (SocPub->PubCod);
else // I have not yet published this social note
/* Put icon to share this publishing */
Soc_PutFormToShareSocialPublishing (SocPub->PubCod);
}
}
}
else
{
/* Write note type and location */
fprintf (Gbl.F.Out,"
");
Soc_StartFormGoToAction (SocNot->NoteType,Crs.CrsCod,SocNot->Cod);
Act_LinkFormSubmit (Txt_SOCIAL_NOTE[SocNot->NoteType],
The_ClassForm[Gbl.Prefs.Theme]);
fprintf (Gbl.F.Out,"%s",
Txt_SOCIAL_NOTE[SocNot->NoteType]);
Act_FormEnd ();
fprintf (Gbl.F.Out,"
");
if (SocNot->NoteType == Soc_NOTE_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 note */
Soc_GetNoteSummary (SocNot,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,"