mirror of https://github.com/acanas/swad-core.git
Version 16.54
This commit is contained in:
parent
22511aeec5
commit
cd992925bc
|
@ -71,9 +71,12 @@ static void Cal_PutIconToPrintCalendar (void);
|
|||
|
||||
void Cal_PutIconsToSelectFirstDayOfWeek (void)
|
||||
{
|
||||
extern const char *Hlp_PROFILE_Preferences_calendar;
|
||||
extern const char *Txt_Calendar;
|
||||
|
||||
Lay_StartRoundFrame (NULL,Txt_Calendar,Cal_PutIconsFirstDayOfWeek,NULL);
|
||||
Lay_StartRoundFrame (NULL,Txt_Calendar,
|
||||
Cal_PutIconsFirstDayOfWeek,
|
||||
Hlp_PROFILE_Preferences_calendar);
|
||||
Cal_ShowFormToSelFirstDayOfWeek (ActChg1stDay,"ICON40x40B");
|
||||
Lay_EndRoundFrame ();
|
||||
}
|
||||
|
|
|
@ -156,13 +156,14 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.53.1 (2016-11-13)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.54 (2016-11-13)"
|
||||
#define CSS_FILE "swad16.51.css"
|
||||
#define JS_FILE "swad16.46.1.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 16.54: Nov 13, 2016 Contextual help on user's preferences. (206722 lines)
|
||||
Version 16.53.1: Nov 13, 2016 Contextual help on user's photo. (206686 lines)
|
||||
Version 16.53: Nov 13, 2016 Contextual help on surveys. (206681 lines)
|
||||
Version 16.52: Nov 12, 2016 Code refactoring in frames to include contextual help. (206653 lines)
|
||||
|
|
17
swad_help.c
17
swad_help.c
|
@ -49,6 +49,23 @@ const char *Hlp_STATS_Surveys_questions =
|
|||
const char *Hlp_PROFILE_Photo =
|
||||
"https://github.com/acanas/swad-core/wiki/PROFILE.Photo";
|
||||
|
||||
const char *Hlp_PROFILE_Preferences_language =
|
||||
"https://github.com/acanas/swad-core/wiki/PROFILE.Preferences#language";
|
||||
const char *Hlp_PROFILE_Preferences_calendar =
|
||||
"https://github.com/acanas/swad-core/wiki/PROFILE.Preferences#calendar";
|
||||
const char *Hlp_PROFILE_Preferences_icons =
|
||||
"https://github.com/acanas/swad-core/wiki/PROFILE.Preferences#icons";
|
||||
const char *Hlp_PROFILE_Preferences_theme =
|
||||
"https://github.com/acanas/swad-core/wiki/PROFILE.Preferences#theme";
|
||||
const char *Hlp_PROFILE_Preferences_menu =
|
||||
"https://github.com/acanas/swad-core/wiki/PROFILE.Preferences#menu";
|
||||
const char *Hlp_PROFILE_Preferences_columns =
|
||||
"https://github.com/acanas/swad-core/wiki/PROFILE.Preferences#columns";
|
||||
const char *Hlp_PROFILE_Preferences_privacy =
|
||||
"https://github.com/acanas/swad-core/wiki/PROFILE.Preferences#privacy";
|
||||
const char *Hlp_PROFILE_Preferences_notifications =
|
||||
"https://github.com/acanas/swad-core/wiki/PROFILE.Preferences#notifications";
|
||||
|
||||
/*****************************************************************************/
|
||||
/***************************** Private constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -72,10 +72,12 @@ static void Ico_PutIconsIconSet (void);
|
|||
|
||||
void Ico_PutIconsToSelectIconSet (void)
|
||||
{
|
||||
extern const char *Hlp_PROFILE_Preferences_icons;
|
||||
extern const char *Txt_Icons;
|
||||
Ico_IconSet_t IconSet;
|
||||
|
||||
Lay_StartRoundFrame (NULL,Txt_Icons,Ico_PutIconsIconSet,NULL);
|
||||
Lay_StartRoundFrame (NULL,Txt_Icons,
|
||||
Ico_PutIconsIconSet,Hlp_PROFILE_Preferences_icons);
|
||||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 auto;\">"
|
||||
"<tr>");
|
||||
for (IconSet = (Ico_IconSet_t) 0;
|
||||
|
|
|
@ -307,11 +307,13 @@ void Mnu_WriteMenuThisTab (void)
|
|||
|
||||
void Mnu_PutIconsToSelectMenu (void)
|
||||
{
|
||||
extern const char *Hlp_PROFILE_Preferences_menu;
|
||||
extern const char *Txt_Menu;
|
||||
extern const char *Txt_MENU_NAMES[Mnu_NUM_MENUS];
|
||||
Mnu_Menu_t Menu;
|
||||
|
||||
Lay_StartRoundFrame (NULL,Txt_Menu,Mnu_PutIconsMenu,NULL);
|
||||
Lay_StartRoundFrame (NULL,Txt_Menu,
|
||||
Mnu_PutIconsMenu,Hlp_PROFILE_Preferences_menu);
|
||||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 auto;\">"
|
||||
"<tr>");
|
||||
for (Menu = (Mnu_Menu_t) 0;
|
||||
|
|
|
@ -1871,6 +1871,7 @@ void Ntf_MarkAllNotifAsSeen (void)
|
|||
|
||||
void Ntf_PutFormChangeNotifSentByEMail (void)
|
||||
{
|
||||
extern const char *Hlp_PROFILE_Preferences_notifications;
|
||||
extern const char *The_ClassForm[The_NUM_THEMES];
|
||||
extern const char *Txt_Save_changes;
|
||||
extern const char *Txt_Notifications;
|
||||
|
@ -1880,7 +1881,9 @@ void Ntf_PutFormChangeNotifSentByEMail (void)
|
|||
Ntf_NotifyEvent_t NotifyEvent;
|
||||
|
||||
/***** Start frame *****/
|
||||
Lay_StartRoundFrame (NULL,Txt_Notifications,Ntf_PutIconsNotif,NULL);
|
||||
Lay_StartRoundFrame (NULL,Txt_Notifications,
|
||||
Ntf_PutIconsNotif,
|
||||
Hlp_PROFILE_Preferences_notifications);
|
||||
|
||||
/***** Start form *****/
|
||||
Act_FormStart (ActChgNtfPrf);
|
||||
|
|
|
@ -67,13 +67,15 @@ static void Pre_UpdateSideColsOnUsrDataTable (void);
|
|||
|
||||
void Pre_EditPrefs (void)
|
||||
{
|
||||
extern const char *Hlp_PROFILE_Preferences_language;
|
||||
extern const char *Txt_Language;
|
||||
|
||||
/***** Language, first day of week *****/
|
||||
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:16px 0;\">"
|
||||
"<tr>"
|
||||
"<td>");
|
||||
Lay_StartRoundFrame (NULL,Txt_Language,Pre_PutIconsLanguage,NULL);
|
||||
Lay_StartRoundFrame (NULL,Txt_Language,
|
||||
Pre_PutIconsLanguage,Hlp_PROFILE_Preferences_language);
|
||||
fprintf (Gbl.F.Out,"<div style=\"height:42px;\">");
|
||||
Pre_PutSelectorToSelectLanguage (); // 1. Language
|
||||
fprintf (Gbl.F.Out,"</div>");
|
||||
|
@ -376,11 +378,14 @@ Txt_Language_t Pre_GetParamLanguage (void)
|
|||
|
||||
static void Pre_PutIconsToSelectSideCols (void)
|
||||
{
|
||||
extern const char *Hlp_PROFILE_Preferences_columns;
|
||||
extern const char *Txt_Columns;
|
||||
extern const char *Txt_LAYOUT_SIDE_COLUMNS[4];
|
||||
unsigned SideCols;
|
||||
|
||||
Lay_StartRoundFrame (NULL,Txt_Columns,Pre_PutIconsSideColumns,NULL);
|
||||
Lay_StartRoundFrame (NULL,Txt_Columns,
|
||||
Pre_PutIconsSideColumns,
|
||||
Hlp_PROFILE_Preferences_columns);
|
||||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 auto;\">"
|
||||
"<tr>");
|
||||
for (SideCols = 0;
|
||||
|
|
|
@ -89,6 +89,7 @@ void Pri_PutLinkToChangeMyPrivacy (void)
|
|||
|
||||
void Pri_EditMyPrivacy (void)
|
||||
{
|
||||
extern const char *Hlp_PROFILE_Preferences_privacy;
|
||||
extern const char *Txt_Please_review_your_privacy_preferences;
|
||||
extern const char *Txt_Privacy;
|
||||
extern const char *Txt_Photo;
|
||||
|
@ -101,7 +102,8 @@ void Pri_EditMyPrivacy (void)
|
|||
Lay_ShowAlert (Lay_WARNING,Txt_Please_review_your_privacy_preferences);
|
||||
|
||||
/***** Start table *****/
|
||||
Lay_StartRoundFrame (NULL,Txt_Privacy,Pri_PutIconsPrivacy,NULL);
|
||||
Lay_StartRoundFrame (NULL,Txt_Privacy,
|
||||
Pri_PutIconsPrivacy,Hlp_PROFILE_Preferences_privacy);
|
||||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 auto;\">");
|
||||
|
||||
/***** Edit photo visibility *****/
|
||||
|
|
|
@ -251,10 +251,12 @@ static void The_PutIconsTheme (void);
|
|||
|
||||
void The_PutIconsToSelectTheme (void)
|
||||
{
|
||||
extern const char *Hlp_PROFILE_Preferences_theme;
|
||||
extern const char *Txt_Theme_SKIN;
|
||||
The_Theme_t Theme;
|
||||
|
||||
Lay_StartRoundFrame (NULL,Txt_Theme_SKIN,The_PutIconsTheme,NULL);
|
||||
Lay_StartRoundFrame (NULL,Txt_Theme_SKIN,
|
||||
The_PutIconsTheme,Hlp_PROFILE_Preferences_theme);
|
||||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 auto;\">"
|
||||
"<tr>");
|
||||
for (Theme = (The_Theme_t) 0;
|
||||
|
|
Loading…
Reference in New Issue