mirror of https://github.com/acanas/swad-core.git
Version18.92
This commit is contained in:
parent
62a376fd08
commit
006895be7d
|
@ -2897,29 +2897,29 @@ a:hover img.CENTRE_PHOTO_SHOW
|
||||||
|
|
||||||
@media only screen and (max-width: 590px)
|
@media only screen and (max-width: 590px)
|
||||||
{ /* For mobile-phones (maximum width visible on Moto G4 vertical) */
|
{ /* For mobile-phones (maximum width visible on Moto G4 vertical) */
|
||||||
.TL_WIDTH {width:316px;} /* 556-240 */
|
.TL_WIDTH {width:316px;} /* 556-240 */
|
||||||
.TL_RIGHT_WIDTH {width:260px;} /* 500-240 */
|
.TL_RIGHT_WIDTH {width:260px;} /* 500-240 */
|
||||||
.TL_RIGHT_AUTHOR_WIDTH {width:100px;} /* 340-240 */
|
.TL_RIGHT_AUTHOR_WIDTH {width:100px;} /* 340-240 */
|
||||||
.TL_COMMENT_WIDTH {width:220px;} /* 460-240 */
|
.TL_COMM_WIDTH {width:220px;} /* 460-240 */
|
||||||
.TL_COMMENT_AUTHOR_WIDTH {width: 60px;} /* 300-240 */
|
.TL_COMM_AUTHOR_WIDTH {width: 60px;} /* 300-240 */
|
||||||
.TL_MED_INPUT_WIDTH {width:160px;} /* 400-240 */
|
.TL_MED_INPUT_WIDTH {width:160px;} /* 400-240 */
|
||||||
.TL_NOTE_FOOT_WIDTH {width:260px;} /* 500-240 */
|
.TL_NOTE_FOOT_WIDTH {width:260px;} /* 500-240 */
|
||||||
.TL_COMM_FOOT_WIDTH {width:220px;} /* 460-240 */
|
.TL_COMM_FOOT_WIDTH {width:220px;} /* 460-240 */
|
||||||
.TL_FAV_NOT_WIDTH {width:120px;} /* (480-240)/2 */
|
.TL_FAV_NOT_WIDTH {width:120px;} /* (480-240)/2 */
|
||||||
.TL_SHA_NOT_WIDTH {width:120px;} /* (480-240)/2 */
|
.TL_SHA_NOT_WIDTH {width:120px;} /* (480-240)/2 */
|
||||||
.TL_FAV_COM_WIDTH {width:200px;} /* 440-240 */
|
.TL_FAV_COM_WIDTH {width:200px;} /* 440-240 */
|
||||||
}
|
}
|
||||||
@media only screen and (min-width: 590px)
|
@media only screen and (min-width: 590px)
|
||||||
{ /* For tablets and desktop (maximum width visible on Moto G4 horizontal) */
|
{ /* For tablets and desktop (maximum width visible on Moto G4 horizontal) */
|
||||||
.TL_WIDTH {width:556px;}
|
.TL_WIDTH {width:556px;}
|
||||||
.TL_RIGHT_WIDTH {width:500px;}
|
.TL_RIGHT_WIDTH {width:500px;}
|
||||||
.TL_RIGHT_AUTHOR_WIDTH {width:340px;}
|
.TL_RIGHT_AUTHOR_WIDTH {width:340px;}
|
||||||
.TL_COMMENT_WIDTH {width:460px;}
|
.TL_COMM_WIDTH {width:460px;}
|
||||||
.TL_COMMENT_AUTHOR_WIDTH {width:300px;}
|
.TL_COMM_AUTHOR_WIDTH {width:300px;}
|
||||||
.TL_MED_INPUT_WIDTH {width:400px;}
|
.TL_MED_INPUT_WIDTH {width:400px;}
|
||||||
.TL_FAV_NOT_WIDTH {width:240px;}
|
.TL_FAV_NOT_WIDTH {width:240px;}
|
||||||
.TL_SHA_NOT_WIDTH {width:240px;}
|
.TL_SHA_NOT_WIDTH {width:240px;}
|
||||||
.TL_FAV_COM_WIDTH {width:440px;}
|
.TL_FAV_COM_WIDTH {width:440px;}
|
||||||
}
|
}
|
||||||
|
|
||||||
.TL_NEW_PUB
|
.TL_NEW_PUB
|
||||||
|
@ -2931,7 +2931,7 @@ a:hover img.CENTRE_PHOTO_SHOW
|
||||||
{
|
{
|
||||||
to {background-color:white;}
|
to {background-color:white;}
|
||||||
}
|
}
|
||||||
.TL_FORM_NEW_POST
|
.TL_FORM_NEW_PST
|
||||||
{
|
{
|
||||||
padding:10px 0;
|
padding:10px 0;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
|
@ -2940,7 +2940,7 @@ a:hover img.CENTRE_PHOTO_SHOW
|
||||||
{
|
{
|
||||||
border-top:1px solid silver;
|
border-top:1px solid silver;
|
||||||
}
|
}
|
||||||
.TL_TOP_CONTAINER
|
.TL_TOP_CONT
|
||||||
{
|
{
|
||||||
box-sizing:border-box;
|
box-sizing:border-box;
|
||||||
padding-top:10px;
|
padding-top:10px;
|
||||||
|
@ -2964,7 +2964,7 @@ a:hover img.CENTRE_PHOTO_SHOW
|
||||||
text-align:left;
|
text-align:left;
|
||||||
vertical-align:top;
|
vertical-align:top;
|
||||||
}
|
}
|
||||||
.TL_RIGHT_CONTAINER
|
.TL_RIGHT_CONT
|
||||||
{
|
{
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
box-sizing:border-box;
|
box-sizing:border-box;
|
||||||
|
@ -2988,29 +2988,29 @@ a:hover img.CENTRE_PHOTO_SHOW
|
||||||
text-align:right;
|
text-align:right;
|
||||||
vertical-align:top;
|
vertical-align:top;
|
||||||
}
|
}
|
||||||
.TL_POST_TEXTAREA
|
.TL_PST_TEXTAREA
|
||||||
{
|
{
|
||||||
box-sizing:border-box;
|
box-sizing:border-box;
|
||||||
margin:0;
|
margin:0;
|
||||||
resize:none;
|
resize:none;
|
||||||
}
|
}
|
||||||
.TL_POST_MED_CONTAINER
|
.TL_PST_MED_CONT
|
||||||
{
|
{
|
||||||
box-sizing:border-box;
|
box-sizing:border-box;
|
||||||
margin:10px 0;
|
margin-top:10px;
|
||||||
}
|
}
|
||||||
.TL_POST_MED
|
.TL_PST_MED
|
||||||
{
|
{
|
||||||
box-sizing:border-box;
|
box-sizing:border-box;
|
||||||
border-radius:4px;
|
border-radius:4px;
|
||||||
}
|
}
|
||||||
.TL_COMMENT_CONTAINER
|
.TL_COM_CONT
|
||||||
{
|
{
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
box-sizing:border-box;
|
box-sizing:border-box;
|
||||||
padding-top:10px;
|
padding-top:10px;
|
||||||
}
|
}
|
||||||
.TL_COMMENT_AUTHOR
|
.TL_COM_AUTHOR
|
||||||
{
|
{
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
box-sizing:border-box;
|
box-sizing:border-box;
|
||||||
|
@ -3020,17 +3020,17 @@ a:hover img.CENTRE_PHOTO_SHOW
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
text-overflow:ellipsis;
|
text-overflow:ellipsis;
|
||||||
}
|
}
|
||||||
.TL_COMMENT_MED_CONTAINER
|
.TL_COM_MED_CONT
|
||||||
{
|
{
|
||||||
box-sizing:border-box;
|
box-sizing:border-box;
|
||||||
margin:10px 0;
|
margin-top:10px;
|
||||||
}
|
}
|
||||||
.TL_COMMENT_MED
|
.TL_COM_MED
|
||||||
{
|
{
|
||||||
box-sizing:border-box;
|
box-sizing:border-box;
|
||||||
border-radius:4px;
|
border-radius:4px;
|
||||||
}
|
}
|
||||||
.TL_FORM_NEW_COMMENT
|
.TL_FORM_NEW_COM
|
||||||
{
|
{
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
margin-left:56px;
|
margin-left:56px;
|
||||||
|
@ -3038,7 +3038,7 @@ a:hover img.CENTRE_PHOTO_SHOW
|
||||||
padding-bottom:10px;
|
padding-bottom:10px;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
}
|
}
|
||||||
.TL_COMMENT_TEXTAREA
|
.TL_COM_TEXTAREA
|
||||||
{
|
{
|
||||||
box-sizing:border-box;
|
box-sizing:border-box;
|
||||||
margin:0;
|
margin:0;
|
||||||
|
@ -3049,8 +3049,8 @@ a:hover img.CENTRE_PHOTO_SHOW
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
box-sizing:border-box;
|
box-sizing:border-box;
|
||||||
width:56px;
|
width:56px;
|
||||||
|
padding-right:11px;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
padding-right:10px;
|
|
||||||
vertical-align:bottom;
|
vertical-align:bottom;
|
||||||
}
|
}
|
||||||
.TL_BOTTOM_RIGHT /* Container for fav, share, remove and comments */
|
.TL_BOTTOM_RIGHT /* Container for fav, share, remove and comments */
|
||||||
|
@ -3076,35 +3076,45 @@ a:hover img.CENTRE_PHOTO_SHOW
|
||||||
}
|
}
|
||||||
.TL_TXT
|
.TL_TXT
|
||||||
{
|
{
|
||||||
padding:5px 0;
|
padding-top:5px;
|
||||||
color:#202020;
|
color:#202020;
|
||||||
font-size:13pt;
|
font-size:13pt;
|
||||||
line-height:1.4;
|
line-height:1.4;
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
text-overflow:ellipsis;
|
text-overflow:ellipsis;
|
||||||
}
|
}
|
||||||
.TL_EXPAND_COMMENTS
|
.TL_EXPAND_COM
|
||||||
{
|
{
|
||||||
text-align:center;
|
text-align:center;
|
||||||
vertical-align:top;
|
vertical-align:top;
|
||||||
padding-bottom:10px;
|
padding-bottom:10px;
|
||||||
}
|
}
|
||||||
.TL_ICO_COMMENT
|
.TL_ICO_COM_OFF
|
||||||
{
|
{
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
padding-bottom:10px;
|
box-sizing:border-box;
|
||||||
|
padding:6px;
|
||||||
|
text-align:center;
|
||||||
|
vertical-align:middle;
|
||||||
|
border:solid 1px;
|
||||||
|
border-color:transparent;
|
||||||
}
|
}
|
||||||
.TL_ICO_COMMENT_DISABLED
|
.TL_ICO_COM_ON
|
||||||
{
|
{
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
padding-bottom:10px;
|
box-sizing:border-box;
|
||||||
opacity:0.1;
|
padding:6px;
|
||||||
|
text-align:center;
|
||||||
|
vertical-align:middle;
|
||||||
|
border:solid 1px;
|
||||||
|
border-color:#C0DAE4;
|
||||||
|
background-color:#DDECF1;
|
||||||
}
|
}
|
||||||
.TL_FOOT /* Container for favs, shares and remove */
|
.TL_FOOT /* Container for favs, shares and remove */
|
||||||
{
|
{
|
||||||
display:table;
|
display:table;
|
||||||
vertical-align:top;
|
vertical-align:top;
|
||||||
padding-bottom:10px;
|
padding:7px 0;
|
||||||
}
|
}
|
||||||
.TL_FAV_NOT, .TL_SHA_NOT
|
.TL_FAV_NOT, .TL_SHA_NOT
|
||||||
{
|
{
|
||||||
|
@ -3150,11 +3160,11 @@ a:hover img.CENTRE_PHOTO_SHOW
|
||||||
padding-left:4px;
|
padding-left:4px;
|
||||||
vertical-align:bottom;
|
vertical-align:bottom;
|
||||||
}
|
}
|
||||||
.TL_COMMENT
|
.TL_COM
|
||||||
{
|
{
|
||||||
border-top:1px solid silver;
|
border-top:1px solid silver;
|
||||||
}
|
}
|
||||||
.TL_COMMENT_PHOTO
|
.TL_COM_PHOTO
|
||||||
{
|
{
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
box-sizing:border-box;
|
box-sizing:border-box;
|
|
@ -956,6 +956,20 @@ function toggleOffGIF (elem, staticURL) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/******* Change display of edition of a new comment in a social note *********/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
function toggleNewComment (id) {
|
||||||
|
var iconDiv = document.getElementById (id + '_ico');
|
||||||
|
|
||||||
|
if (iconDiv.className == 'TL_ICO_COM_OFF')
|
||||||
|
iconDiv.className = 'TL_ICO_COM_ON';
|
||||||
|
else
|
||||||
|
iconDiv.className = 'TL_ICO_COM_OFF';
|
||||||
|
toggleDisplay(id);
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/*************** Change display of comments in a social note *****************/
|
/*************** Change display of comments in a social note *****************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
|
@ -464,10 +464,11 @@ En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
ps2pdf source.ps destination.pdf
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 18.91.1 (2019-03-29)"
|
#define Log_PLATFORM_VERSION "SWAD 18.92 (2019-03-29)"
|
||||||
#define CSS_FILE "swad18.91.css"
|
#define CSS_FILE "swad18.92.css"
|
||||||
#define JS_FILE "swad18.91.js"
|
#define JS_FILE "swad18.92.js"
|
||||||
/*
|
/*
|
||||||
|
Version 18.92: Mar 29, 2019 Changes in timeline layout. (241367 lines)
|
||||||
Version 18.91.1: Mar 29, 2019 Changes in timeline layout. (241345 lines)
|
Version 18.91.1: Mar 29, 2019 Changes in timeline layout. (241345 lines)
|
||||||
Version 18.91: Mar 29, 2019 Code refactoring in timeline. (241341 lines)
|
Version 18.91: Mar 29, 2019 Code refactoring in timeline. (241341 lines)
|
||||||
Version 18.90.4: Mar 29, 2019 Changes in layout of shared/faved social notes and comments. (241394 lines)
|
Version 18.90.4: Mar 29, 2019 Changes in layout of shared/faved social notes and comments. (241394 lines)
|
||||||
|
|
|
@ -1191,7 +1191,7 @@ static void TL_PutFormWhichUsrs (void)
|
||||||
{
|
{
|
||||||
fprintf (Gbl.F.Out,"<div class=\"%s\">",
|
fprintf (Gbl.F.Out,"<div class=\"%s\">",
|
||||||
WhichUsrs == Gbl.Timeline.WhichUsrs ? "PREF_ON" :
|
WhichUsrs == Gbl.Timeline.WhichUsrs ? "PREF_ON" :
|
||||||
"PREF_OFF");
|
"PREF_OFF");
|
||||||
Frm_StartForm (ActSeeSocTmlGbl);
|
Frm_StartForm (ActSeeSocTmlGbl);
|
||||||
Par_PutHiddenParamUnsigned ("WhichUsrs",WhichUsrs);
|
Par_PutHiddenParamUnsigned ("WhichUsrs",WhichUsrs);
|
||||||
Ico_PutSettingIconLink (Icon[WhichUsrs],Txt_TIMELINE_WHICH_USERS[WhichUsrs]);
|
Ico_PutSettingIconLink (Icon[WhichUsrs],Txt_TIMELINE_WHICH_USERS[WhichUsrs]);
|
||||||
|
@ -1532,7 +1532,7 @@ static void TL_WriteNote (const struct TL_Note *SocNot,
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Right: author's name, time, summary and buttons *****/
|
/***** Right: author's name, time, summary and buttons *****/
|
||||||
fprintf (Gbl.F.Out,"<div class=\"TL_RIGHT_CONTAINER TL_RIGHT_WIDTH\">");
|
fprintf (Gbl.F.Out,"<div class=\"TL_RIGHT_CONT TL_RIGHT_WIDTH\">");
|
||||||
|
|
||||||
/* Write author's full name and nickname */
|
/* Write author's full name and nickname */
|
||||||
TL_WriteAuthorNote (&UsrDat);
|
TL_WriteAuthorNote (&UsrDat);
|
||||||
|
@ -1636,8 +1636,6 @@ static void TL_WriteNote (const struct TL_Note *SocNot,
|
||||||
/* End of right part */
|
/* End of right part */
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"<div class=\"TL_BOTTOM_LEFT\">");
|
|
||||||
|
|
||||||
/* Create unique id for new comment */
|
/* Create unique id for new comment */
|
||||||
Frm_SetUniqueId (IdNewComment);
|
Frm_SetUniqueId (IdNewComment);
|
||||||
|
|
||||||
|
@ -1645,11 +1643,11 @@ static void TL_WriteNote (const struct TL_Note *SocNot,
|
||||||
NumComments = TL_GetNumCommentsInNote (SocNot->NotCod);
|
NumComments = TL_GetNumCommentsInNote (SocNot->NotCod);
|
||||||
|
|
||||||
/* Put icon to add a comment */
|
/* Put icon to add a comment */
|
||||||
|
fprintf (Gbl.F.Out,"<div class=\"TL_BOTTOM_LEFT\">");
|
||||||
if (SocNot->Unavailable) // Unavailable notes can not be commented
|
if (SocNot->Unavailable) // Unavailable notes can not be commented
|
||||||
TL_PutIconCommentDisabled ();
|
TL_PutIconCommentDisabled ();
|
||||||
else
|
else
|
||||||
TL_PutIconToToggleCommentNote (IdNewComment);
|
TL_PutIconToToggleCommentNote (IdNewComment);
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/* Start container for buttons and comments */
|
/* Start container for buttons and comments */
|
||||||
|
@ -1658,21 +1656,21 @@ static void TL_WriteNote (const struct TL_Note *SocNot,
|
||||||
/* Start foot container */
|
/* Start foot container */
|
||||||
fprintf (Gbl.F.Out,"<div class=\"TL_FOOT TL_RIGHT_WIDTH\">");
|
fprintf (Gbl.F.Out,"<div class=\"TL_FOOT TL_RIGHT_WIDTH\">");
|
||||||
|
|
||||||
/* Fav zone */
|
/* Foot column 1: Fav zone */
|
||||||
fprintf (Gbl.F.Out,"<div id=\"fav_not_%s_%u\""
|
fprintf (Gbl.F.Out,"<div id=\"fav_not_%s_%u\""
|
||||||
" class=\"TL_FAV_NOT TL_FAV_NOT_WIDTH\">",
|
" class=\"TL_FAV_NOT TL_FAV_NOT_WIDTH\">",
|
||||||
Gbl.UniqueNameEncrypted,NumDiv);
|
Gbl.UniqueNameEncrypted,NumDiv);
|
||||||
TL_PutFormToFavUnfNote (SocNot,TL_SHOW_A_FEW_USRS);
|
TL_PutFormToFavUnfNote (SocNot,TL_SHOW_A_FEW_USRS);
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/* Share zone */
|
/* Foot column 2: Share zone */
|
||||||
fprintf (Gbl.F.Out,"<div id=\"sha_not_%s_%u\""
|
fprintf (Gbl.F.Out,"<div id=\"sha_not_%s_%u\""
|
||||||
" class=\"TL_SHA_NOT TL_SHA_NOT_WIDTH\">",
|
" class=\"TL_SHA_NOT TL_SHA_NOT_WIDTH\">",
|
||||||
Gbl.UniqueNameEncrypted,NumDiv);
|
Gbl.UniqueNameEncrypted,NumDiv);
|
||||||
TL_PutFormToShaUnsNote (SocNot,TL_SHOW_A_FEW_USRS);
|
TL_PutFormToShaUnsNote (SocNot,TL_SHOW_A_FEW_USRS);
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/* Put icon to remove this note */
|
/* Foot column 3: Icon to remove this note */
|
||||||
fprintf (Gbl.F.Out,"<div class=\"TL_REM\">");
|
fprintf (Gbl.F.Out,"<div class=\"TL_REM\">");
|
||||||
if (IAmTheAuthor)
|
if (IAmTheAuthor)
|
||||||
TL_PutFormToRemovePublication (SocNot->NotCod);
|
TL_PutFormToRemovePublication (SocNot->NotCod);
|
||||||
|
@ -1727,7 +1725,7 @@ static void TL_WriteTopMessage (TL_TopMessage_t TopMessage,long UsrCod)
|
||||||
UsrDat.UsrCod = UsrCod;
|
UsrDat.UsrCod = UsrCod;
|
||||||
if (Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat,Usr_DONT_GET_PREFS)) // Really we only need EncryptedUsrCod and FullName
|
if (Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat,Usr_DONT_GET_PREFS)) // Really we only need EncryptedUsrCod and FullName
|
||||||
{
|
{
|
||||||
fprintf (Gbl.F.Out,"<div class=\"TL_TOP_CONTAINER"
|
fprintf (Gbl.F.Out,"<div class=\"TL_TOP_CONT"
|
||||||
" TL_TOP_PUBLISHER TL_WIDTH\">");
|
" TL_TOP_PUBLISHER TL_WIDTH\">");
|
||||||
|
|
||||||
/***** Show user's name inside form to go to user's public profile *****/
|
/***** Show user's name inside form to go to user's public profile *****/
|
||||||
|
@ -1863,8 +1861,8 @@ static void TL_GetAndWritePost (long PstCod)
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Show image *****/
|
/***** Show image *****/
|
||||||
Med_ShowMedia (&Media,"TL_POST_MED_CONTAINER TL_RIGHT_WIDTH",
|
Med_ShowMedia (&Media,"TL_PST_MED_CONT TL_RIGHT_WIDTH",
|
||||||
"TL_POST_MED TL_RIGHT_WIDTH");
|
"TL_PST_MED TL_RIGHT_WIDTH");
|
||||||
|
|
||||||
/***** Free image *****/
|
/***** Free image *****/
|
||||||
Med_MediaDestructor (&Media);
|
Med_MediaDestructor (&Media);
|
||||||
|
@ -2343,7 +2341,7 @@ static void TL_PutFormToWriteNewPost (void)
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Right: author's name, time, summary and buttons *****/
|
/***** Right: author's name, time, summary and buttons *****/
|
||||||
fprintf (Gbl.F.Out,"<div class=\"TL_RIGHT_CONTAINER TL_RIGHT_WIDTH\">");
|
fprintf (Gbl.F.Out,"<div class=\"TL_RIGHT_CONT TL_RIGHT_WIDTH\">");
|
||||||
|
|
||||||
/* Write author's full name and nickname */
|
/* Write author's full name and nickname */
|
||||||
fprintf (Gbl.F.Out,"<div class=\"TL_RIGHT_AUTHOR TL_RIGHT_AUTHOR_WIDTH\">"
|
fprintf (Gbl.F.Out,"<div class=\"TL_RIGHT_AUTHOR TL_RIGHT_AUTHOR_WIDTH\">"
|
||||||
|
@ -2354,14 +2352,14 @@ static void TL_PutFormToWriteNewPost (void)
|
||||||
|
|
||||||
/***** Form to write the post *****/
|
/***** Form to write the post *****/
|
||||||
/* Start container */
|
/* Start container */
|
||||||
fprintf (Gbl.F.Out,"<div class=\"TL_FORM_NEW_POST TL_RIGHT_WIDTH\">");
|
fprintf (Gbl.F.Out,"<div class=\"TL_FORM_NEW_PST TL_RIGHT_WIDTH\">");
|
||||||
|
|
||||||
/* Start form to write the post */
|
/* Start form to write the post */
|
||||||
TL_FormStart (ActRcvSocPstGbl,ActRcvSocPstUsr);
|
TL_FormStart (ActRcvSocPstGbl,ActRcvSocPstUsr);
|
||||||
|
|
||||||
/* Textarea and button */
|
/* Textarea and button */
|
||||||
TL_PutTextarea (Txt_New_TIMELINE_post,
|
TL_PutTextarea (Txt_New_TIMELINE_post,
|
||||||
"TL_POST_TEXTAREA TL_RIGHT_WIDTH");
|
"TL_PST_TEXTAREA TL_RIGHT_WIDTH");
|
||||||
|
|
||||||
/* End form */
|
/* End form */
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
@ -2514,14 +2512,14 @@ static void TL_PutIconToToggleCommentNote (const char UniqueId[Frm_MAX_BYTES_ID
|
||||||
extern const char *Txt_Comment;
|
extern const char *Txt_Comment;
|
||||||
|
|
||||||
/***** Link to toggle on/off the form to comment a note *****/
|
/***** Link to toggle on/off the form to comment a note *****/
|
||||||
fprintf (Gbl.F.Out,"<div class=\"TL_ICO_COMMENT ICO_HIGHLIGHT\">"
|
fprintf (Gbl.F.Out,"<div id=\"%s_ico\" class=\"TL_ICO_COM_OFF\">"
|
||||||
"<a href=\"\""
|
"<a href=\"\""
|
||||||
" onclick=\"toggleDisplay('%s');return false;\">"
|
" onclick=\"toggleNewComment ('%s');return false;\">"
|
||||||
"<img src=\"%s/edit.svg\" alt=\"%s\" title=\"%s\""
|
"<img src=\"%s/edit.svg\" alt=\"%s\" title=\"%s\""
|
||||||
" class=\"CONTEXT_ICO_x16\" />"
|
" class=\"CONTEXT_ICO_16x16\" />"
|
||||||
"</a>"
|
"</a>"
|
||||||
"</div>",
|
"</div>",
|
||||||
UniqueId,
|
UniqueId,UniqueId,
|
||||||
Cfg_URL_ICON_PUBLIC,
|
Cfg_URL_ICON_PUBLIC,
|
||||||
Txt_Comment,Txt_Comment);
|
Txt_Comment,Txt_Comment);
|
||||||
}
|
}
|
||||||
|
@ -2535,7 +2533,7 @@ static void TL_PutIconCommentDisabled (void)
|
||||||
extern const char *Txt_Comment;
|
extern const char *Txt_Comment;
|
||||||
|
|
||||||
/***** Disabled icon to comment a note *****/
|
/***** Disabled icon to comment a note *****/
|
||||||
fprintf (Gbl.F.Out,"<div class=\"TL_ICO_COMMENT_DISABLED\">"
|
fprintf (Gbl.F.Out,"<div class=\"TL_ICO_COM_OFF TL_ICO_DISABLED\">"
|
||||||
"<img src=\"%s/edit.svg\""
|
"<img src=\"%s/edit.svg\""
|
||||||
" alt=\"%s\" title=\"%s\""
|
" alt=\"%s\" title=\"%s\""
|
||||||
" class=\"ICO16x16\" />"
|
" class=\"ICO16x16\" />"
|
||||||
|
@ -2557,12 +2555,12 @@ static void TL_PutHiddenFormToWriteNewCommentToNote (long NotCod,
|
||||||
|
|
||||||
/***** Start container *****/
|
/***** Start container *****/
|
||||||
fprintf (Gbl.F.Out,"<div id=\"%s\""
|
fprintf (Gbl.F.Out,"<div id=\"%s\""
|
||||||
" class=\"TL_FORM_NEW_COMMENT TL_RIGHT_WIDTH\""
|
" class=\"TL_FORM_NEW_COM TL_RIGHT_WIDTH\""
|
||||||
" style=\"display:none;\">",
|
" style=\"display:none;\">",
|
||||||
IdNewComment);
|
IdNewComment);
|
||||||
|
|
||||||
/***** Left: write author's photo (my photo) *****/
|
/***** Left: write author's photo (my photo) *****/
|
||||||
fprintf (Gbl.F.Out,"<div class=\"TL_COMMENT_PHOTO\">");
|
fprintf (Gbl.F.Out,"<div class=\"TL_COM_PHOTO\">");
|
||||||
ShowPhoto = Pho_ShowingUsrPhotoIsAllowed (&Gbl.Usrs.Me.UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowingUsrPhotoIsAllowed (&Gbl.Usrs.Me.UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (&Gbl.Usrs.Me.UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (&Gbl.Usrs.Me.UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -2571,7 +2569,7 @@ static void TL_PutHiddenFormToWriteNewCommentToNote (long NotCod,
|
||||||
|
|
||||||
/***** Right: form to write the comment *****/
|
/***** Right: form to write the comment *****/
|
||||||
/* Start right container */
|
/* Start right container */
|
||||||
fprintf (Gbl.F.Out,"<div class=\"TL_COMMENT_CONTAINER TL_COMMENT_WIDTH\">");
|
fprintf (Gbl.F.Out,"<div class=\"TL_COM_CONT TL_COMM_WIDTH\">");
|
||||||
|
|
||||||
/* Start form to write the post */
|
/* Start form to write the post */
|
||||||
TL_FormStart (ActRcvSocComGbl,ActRcvSocComUsr);
|
TL_FormStart (ActRcvSocComGbl,ActRcvSocComUsr);
|
||||||
|
@ -2579,7 +2577,7 @@ static void TL_PutHiddenFormToWriteNewCommentToNote (long NotCod,
|
||||||
|
|
||||||
/* Textarea and button */
|
/* Textarea and button */
|
||||||
TL_PutTextarea (Txt_New_TIMELINE_comment,
|
TL_PutTextarea (Txt_New_TIMELINE_comment,
|
||||||
"TL_COMMENT_TEXTAREA TL_COMMENT_WIDTH");
|
"TL_COM_TEXTAREA TL_COMM_WIDTH");
|
||||||
|
|
||||||
/* End form */
|
/* End form */
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
@ -2647,7 +2645,7 @@ static void TL_WriteCommentsInNote (const struct TL_Note *SocNot)
|
||||||
|
|
||||||
/***** Link to toggle on/off comments *****/
|
/***** Link to toggle on/off comments *****/
|
||||||
fprintf (Gbl.F.Out,"<div id=\"con_%s\""
|
fprintf (Gbl.F.Out,"<div id=\"con_%s\""
|
||||||
" class=\"TL_EXPAND_COMMENTS TL_RIGHT_WIDTH\""
|
" class=\"TL_EXPAND_COM TL_RIGHT_WIDTH\""
|
||||||
" style=\"display:none;\">", // Initially hidden
|
" style=\"display:none;\">", // Initially hidden
|
||||||
IdComments);
|
IdComments);
|
||||||
TL_PutIconToToggleComments (IdComments,"angle-down.svg",
|
TL_PutIconToToggleComments (IdComments,"angle-down.svg",
|
||||||
|
@ -2666,7 +2664,7 @@ static void TL_WriteCommentsInNote (const struct TL_Note *SocNot)
|
||||||
|
|
||||||
/***** Link to toggle on/off comments *****/
|
/***** Link to toggle on/off comments *****/
|
||||||
fprintf (Gbl.F.Out,"<div id=\"exp_%s\""
|
fprintf (Gbl.F.Out,"<div id=\"exp_%s\""
|
||||||
" class=\"TL_EXPAND_COMMENTS TL_RIGHT_WIDTH\">",
|
" class=\"TL_EXPAND_COM TL_RIGHT_WIDTH\">",
|
||||||
IdComments);
|
IdComments);
|
||||||
snprintf (Gbl.Title,sizeof (Gbl.Title),
|
snprintf (Gbl.Title,sizeof (Gbl.Title),
|
||||||
Txt_See_the_previous_X_COMMENTS,
|
Txt_See_the_previous_X_COMMENTS,
|
||||||
|
@ -2759,14 +2757,14 @@ static void TL_WriteComment (struct TL_Comment *SocCom,
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"<div class=\"TL_LEFT_PHOTO\">"
|
fprintf (Gbl.F.Out,"<div class=\"TL_LEFT_PHOTO\">"
|
||||||
"</div>"
|
"</div>"
|
||||||
"<div class=\"TL_RIGHT_CONTAINER TL_RIGHT_WIDTH\">"
|
"<div class=\"TL_RIGHT_CONT TL_RIGHT_WIDTH\">"
|
||||||
"<ul class=\"LIST_LEFT\">");
|
"<ul class=\"LIST_LEFT\">");
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Start list item *****/
|
/***** Start list item *****/
|
||||||
fprintf (Gbl.F.Out,"<li");
|
fprintf (Gbl.F.Out,"<li");
|
||||||
if (!ShowCommentAlone)
|
if (!ShowCommentAlone)
|
||||||
fprintf (Gbl.F.Out," class=\"TL_COMMENT\"");
|
fprintf (Gbl.F.Out," class=\"TL_COM\"");
|
||||||
fprintf (Gbl.F.Out,">");
|
fprintf (Gbl.F.Out,">");
|
||||||
|
|
||||||
if (SocCom->PubCod <= 0 ||
|
if (SocCom->PubCod <= 0 ||
|
||||||
|
@ -2782,7 +2780,7 @@ static void TL_WriteComment (struct TL_Comment *SocCom,
|
||||||
IAmTheAuthor = Usr_ItsMe (UsrDat.UsrCod);
|
IAmTheAuthor = Usr_ItsMe (UsrDat.UsrCod);
|
||||||
|
|
||||||
/***** Left: write author's photo *****/
|
/***** Left: write author's photo *****/
|
||||||
fprintf (Gbl.F.Out,"<div class=\"TL_COMMENT_PHOTO\">");
|
fprintf (Gbl.F.Out,"<div class=\"TL_COM_PHOTO\">");
|
||||||
ShowPhoto = Pho_ShowingUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowingUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -2790,7 +2788,7 @@ static void TL_WriteComment (struct TL_Comment *SocCom,
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Right: author's name, time, content, image and buttons *****/
|
/***** Right: author's name, time, content, image and buttons *****/
|
||||||
fprintf (Gbl.F.Out,"<div class=\"TL_COMMENT_CONTAINER TL_COMMENT_WIDTH\">");
|
fprintf (Gbl.F.Out,"<div class=\"TL_COM_CONT TL_COMM_WIDTH\">");
|
||||||
|
|
||||||
/* Write author's full name and nickname */
|
/* Write author's full name and nickname */
|
||||||
TL_WriteAuthorComment (&UsrDat);
|
TL_WriteAuthorComment (&UsrDat);
|
||||||
|
@ -2807,11 +2805,11 @@ static void TL_WriteComment (struct TL_Comment *SocCom,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Show image */
|
/* Show image */
|
||||||
Med_ShowMedia (&SocCom->Media,"TL_COMMENT_MED_CONTAINER TL_COMMENT_WIDTH",
|
Med_ShowMedia (&SocCom->Media,"TL_COM_MED_CONT TL_COMM_WIDTH",
|
||||||
"TL_COMMENT_MED TL_COMMENT_WIDTH");
|
"TL_COM_MED TL_COMM_WIDTH");
|
||||||
|
|
||||||
/* Start foot container */
|
/* Start foot container */
|
||||||
fprintf (Gbl.F.Out,"<div class=\"TL_FOOT TL_COMMENT_WIDTH\">");
|
fprintf (Gbl.F.Out,"<div class=\"TL_FOOT TL_COMM_WIDTH\">");
|
||||||
|
|
||||||
/* Fav zone */
|
/* Fav zone */
|
||||||
fprintf (Gbl.F.Out,"<div id=\"fav_com_%s_%u\""
|
fprintf (Gbl.F.Out,"<div id=\"fav_com_%s_%u\""
|
||||||
|
@ -2855,7 +2853,7 @@ static void TL_WriteAuthorComment (struct UsrData *UsrDat)
|
||||||
bool ItsMe = Usr_ItsMe (UsrDat->UsrCod);
|
bool ItsMe = Usr_ItsMe (UsrDat->UsrCod);
|
||||||
|
|
||||||
/***** Start container *****/
|
/***** Start container *****/
|
||||||
fprintf (Gbl.F.Out,"<div class=\"TL_COMMENT_AUTHOR TL_COMMENT_AUTHOR_WIDTH\">");
|
fprintf (Gbl.F.Out,"<div class=\"TL_COM_AUTHOR TL_COMM_AUTHOR_WIDTH\">");
|
||||||
|
|
||||||
/***** Show user's name inside form to go to user's public profile *****/
|
/***** Show user's name inside form to go to user's public profile *****/
|
||||||
Frm_StartFormUnique (ActSeeOthPubPrf);
|
Frm_StartFormUnique (ActSeeOthPubPrf);
|
||||||
|
|
Loading…
Reference in New Issue