mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-13 12:14:06 +02:00
Version 15.88.1
This commit is contained in:
parent
334a49cde2
commit
72fd00332b
2049
css/swad15.84.2.css
2049
css/swad15.84.2.css
File diff suppressed because it is too large
Load Diff
|
@ -117,13 +117,14 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.88 (2016-01-01)"
|
||||
#define CSS_FILE "swad15.84.2.css"
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.88.1 (2016-01-01)"
|
||||
#define CSS_FILE "swad15.88.1.css"
|
||||
#define JS_FILE "swad15.77.7.js"
|
||||
|
||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
||||
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
||||
/*
|
||||
Version 15.88.1: Jan 01, 2016 Changes in layout of social timeline. (189854 lines)
|
||||
Version 15.88: Jan 01, 2016 New buttons in social timeline to share/unshare a social publishing. (189841 lines)
|
||||
2 changes necessary in database:
|
||||
INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1495','es','N','Compartir comentario social');
|
||||
|
|
|
@ -49,6 +49,7 @@
|
|||
/*****************************************************************************/
|
||||
|
||||
#define Soc_MAX_BYTES_SUMMARY 100
|
||||
#define Soc_NUM_PUBS_IN_TIMELINE 100
|
||||
|
||||
static const Act_Action_t Soc_DefaultActions[Soc_NUM_SOCIAL_NOTES] =
|
||||
{
|
||||
|
@ -173,8 +174,9 @@ void Soc_ShowUsrTimeline (long UsrCod)
|
|||
sprintf (Query,"SELECT PubCod,AuthorCod,PublisherCod,NotCod,UNIX_TIMESTAMP(TimePublish)"
|
||||
" FROM social_timeline"
|
||||
" WHERE PublisherCod='%ld'"
|
||||
" ORDER BY PubCod DESC LIMIT 10",
|
||||
UsrCod);
|
||||
" ORDER BY PubCod DESC LIMIT %u",
|
||||
UsrCod,
|
||||
Soc_NUM_PUBS_IN_TIMELINE);
|
||||
|
||||
/***** Show timeline *****/
|
||||
Soc_ShowTimeline (Query,ActUnk);
|
||||
|
@ -209,9 +211,10 @@ void Soc_ShowFollowingTimeline (void)
|
|||
" UNION"
|
||||
" SELECT FollowedCod FROM usr_follow WHERE FollowerCod='%ld')"
|
||||
" GROUP BY NotCod"
|
||||
" ORDER BY PubCod DESC LIMIT 10",
|
||||
" ORDER BY PubCod DESC LIMIT %u",
|
||||
Gbl.Usrs.Me.UsrDat.UsrCod,
|
||||
Gbl.Usrs.Me.UsrDat.UsrCod);
|
||||
Gbl.Usrs.Me.UsrDat.UsrCod,
|
||||
Soc_NUM_PUBS_IN_TIMELINE);
|
||||
if (mysql_query (&Gbl.mysql,Query))
|
||||
DB_ExitOnMySQLError ("can not create temporary table");
|
||||
|
||||
|
@ -387,7 +390,7 @@ static void Soc_WriteSocialNote (const struct SocialPublishing *SocPub,
|
|||
}
|
||||
|
||||
/***** Start list item *****/
|
||||
fprintf (Gbl.F.Out,"<li>");
|
||||
fprintf (Gbl.F.Out,"<li class=\"SOCIAL_PUB\">");
|
||||
|
||||
/***** Left: write author's photo *****/
|
||||
fprintf (Gbl.F.Out,"<div class=\"SOCIAL_LEFT_PHOTO\">");
|
||||
|
@ -827,7 +830,7 @@ static void Soc_PutFormToShareSocialPublishing (long PubCod)
|
|||
/***** Form to share social publishing *****/
|
||||
Act_FormStart (ActShaSocPub);
|
||||
Soc_PutHiddenParamPubCod (PubCod);
|
||||
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICON_HIGHLIGHT\">"
|
||||
fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICON ICON_HIGHLIGHT\">"
|
||||
"<input type=\"image\""
|
||||
" src=\"%s/share64x64.png\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
|
@ -850,7 +853,7 @@ static void Soc_PutFormToUnshareSocialPublishing (long PubCod)
|
|||
/***** Form to share social publishing *****/
|
||||
Act_FormStart (ActUnsSocPub);
|
||||
Soc_PutHiddenParamPubCod (PubCod);
|
||||
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICON_HIGHLIGHT\">"
|
||||
fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICON ICON_HIGHLIGHT\">"
|
||||
"<input type=\"image\""
|
||||
" src=\"%s/shared64x64.png\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
|
@ -873,7 +876,7 @@ static void Soc_PutFormToRemoveSocialPublishing (long PubCod)
|
|||
/***** Form to remove social publishing *****/
|
||||
Act_FormStart (ActReqRemSocPub);
|
||||
Soc_PutHiddenParamPubCod (PubCod);
|
||||
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICON_HIGHLIGHT\">"
|
||||
fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICON ICON_HIGHLIGHT\">"
|
||||
"<input type=\"image\""
|
||||
" src=\"%s/remove-on64x64.png\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
|
|
Loading…
Reference in New Issue
Block a user