X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Ficonbar.c;h=9a93203987c7d5c38a505d5ed9e3676b99c7f831;hb=9a4968dd53adc0276215b0f6aab6841da1e11bbf;hp=c3adb4ed23b80f05f73e2e78a15b50b1576fd5f2;hpb=6e41148be6aa5a82c7a0d44558ef2ca3b806d69a;p=citadel.git diff --git a/webcit/iconbar.c b/webcit/iconbar.c index c3adb4ed2..9a9320398 100644 --- a/webcit/iconbar.c +++ b/webcit/iconbar.c @@ -40,11 +40,12 @@ void do_iconbar(void) { * configuration somewhere. */ int ib_displayas = 0; /* pictures and text, pictures, text */ - int ib_logo = 1; /* Site logo */ + int ib_logo = 0; /* Site logo */ int ib_summary = 0; /* Summary page icon */ int ib_inbox = 0; /* Inbox icon */ int ib_calendar = 0; /* Calendar icon */ int ib_contacts = 0; /* Contacts icon */ + int ib_notes = 0; /* Notes icon */ int ib_tasks = 0; /* Tasks icon */ int ib_rooms = 1; /* Rooms icon */ int ib_users = 1; /* Users icon */ @@ -67,6 +68,7 @@ void do_iconbar(void) { if (!strcasecmp(key, "ib_inbox")) ib_inbox = atoi(value); if (!strcasecmp(key, "ib_calendar")) ib_calendar = atoi(value); if (!strcasecmp(key, "ib_contacts")) ib_contacts = atoi(value); + if (!strcasecmp(key, "ib_notes")) ib_notes = atoi(value); if (!strcasecmp(key, "ib_tasks")) ib_tasks = atoi(value); if (!strcasecmp(key, "ib_rooms")) ib_rooms = atoi(value); if (!strcasecmp(key, "ib_users")) ib_users = atoi(value); @@ -91,7 +93,7 @@ void do_iconbar(void) { wprintf("" "" + "TARGET=\"workspace\">

" ); if (ib_displayas != IB_TEXTONLY) { wprintf(""); } - wprintf("\n"); + wprintf("

\n"); } if (ib_inbox) { - wprintf("" + wprintf("

" "" @@ -116,11 +118,11 @@ void do_iconbar(void) { if (ib_displayas != IB_PICONLY) { wprintf("Mail
"); } - wprintf("
\n"); + wprintf("

\n"); } if (ib_calendar) { - wprintf("" + wprintf("

" "" @@ -132,11 +134,11 @@ void do_iconbar(void) { if (ib_displayas != IB_PICONLY) { wprintf("Calendar
"); } - wprintf("
\n"); + wprintf("

\n"); } if (ib_contacts) { - wprintf("" + wprintf("

" "" @@ -148,11 +150,27 @@ void do_iconbar(void) { if (ib_displayas != IB_PICONLY) { wprintf("Contacts
"); } - wprintf("
\n"); + wprintf("

\n"); + } + + if (ib_notes) { + wprintf("

" + "" + ); + if (ib_displayas != IB_TEXTONLY) { + wprintf("
"); + } + if (ib_displayas != IB_PICONLY) { + wprintf("Notes
"); + } + wprintf("

\n"); } if (ib_tasks) { - wprintf("" + wprintf("

" "" @@ -164,11 +182,11 @@ void do_iconbar(void) { if (ib_displayas != IB_PICONLY) { wprintf("Tasks
"); } - wprintf("
\n"); + wprintf("

\n"); } if (ib_rooms) { - wprintf("" + wprintf("

" "" ); @@ -179,11 +197,11 @@ void do_iconbar(void) { if (ib_displayas != IB_PICONLY) { wprintf("Rooms
"); } - wprintf("
\n"); + wprintf("

\n"); } if (ib_users) { - wprintf("" + wprintf("

" "" ); @@ -194,15 +212,15 @@ void do_iconbar(void) { if (ib_displayas != IB_PICONLY) { wprintf("Users
"); } - wprintf("
\n"); + wprintf("

\n"); } if (ib_chat) { - wprintf("" + wprintf("

" "" ); if (ib_displayas != IB_TEXTONLY) { @@ -212,11 +230,11 @@ void do_iconbar(void) { if (ib_displayas != IB_PICONLY) { wprintf("Chat
"); } - wprintf("
\n"); + wprintf("

\n"); } if (ib_advanced) { - wprintf("" + wprintf("

" ""); } - wprintf("\n"); + wprintf("

\n"); } if (ib_logoff) { - wprintf("" + wprintf("

" "" ); @@ -244,26 +262,27 @@ void do_iconbar(void) { if (ib_displayas != IB_PICONLY) { wprintf("Log off
"); } - wprintf("
\n"); + wprintf("

\n"); } wprintf( - "" + "

" "customize this menu" - "
\n" + "

\n" ); if (ib_citadel) if (ib_displayas != IB_TEXTONLY) wprintf( - "" + "

" "powered by
powered by
\"CITADEL/UX\"
" - "\n" + "SRC=\"/static/citadel-logo.gif\" ALT=\"CITADEL\">" + "
CITADEL" + "

\n" ); wprintf("\n"); @@ -285,11 +304,12 @@ void display_customize_iconbar(void) { * configuration somewhere. */ int ib_displayas = IB_PICTEXT; /* pictures and text, pictures, text */ - int ib_logo = 1; /* Site logo */ + int ib_logo = 0; /* Site logo */ int ib_summary = 0; /* Summary page icon */ int ib_inbox = 0; /* Inbox icon */ int ib_calendar = 0; /* Calendar icon */ int ib_contacts = 0; /* Contacts icon */ + int ib_notes = 0; /* Notes icon */ int ib_tasks = 0; /* Tasks icon */ int ib_rooms = 1; /* Rooms icon */ int ib_users = 1; /* Users icon */ @@ -312,6 +332,7 @@ void display_customize_iconbar(void) { if (!strcasecmp(key, "ib_inbox")) ib_inbox = atoi(value); if (!strcasecmp(key, "ib_calendar")) ib_calendar = atoi(value); if (!strcasecmp(key, "ib_contacts")) ib_contacts = atoi(value); + if (!strcasecmp(key, "ib_notes")) ib_notes = atoi(value); if (!strcasecmp(key, "ib_tasks")) ib_tasks = atoi(value); if (!strcasecmp(key, "ib_rooms")) ib_rooms = atoi(value); if (!strcasecmp(key, "ib_users")) ib_users = atoi(value); @@ -396,8 +417,21 @@ void display_customize_iconbar(void) { (ib_contacts ? "CHECKED" : "") ); -#ifdef WEBCIT_WITH_CALENDAR_SERVICE wprintf("" + "" + "" + "\" \"" + "" + "Notes
" + "Your personal notes." + "\n", + (ib_notes ? "CHECKED" : "") + ); + +#ifdef WEBCIT_WITH_CALENDAR_SERVICE + wprintf("" "" "" @@ -410,7 +444,7 @@ void display_customize_iconbar(void) { (ib_calendar ? "CHECKED" : "") ); - wprintf("" + wprintf("" "" "" "" + wprintf("" "" "" "" + wprintf("" "" "" "" + wprintf("" "" "" "" + wprintf("" "" "" @@ -475,7 +509,7 @@ void display_customize_iconbar(void) { (ib_advanced ? "CHECKED" : "") ); - wprintf("" + wprintf("" "" "" @@ -488,12 +522,12 @@ void display_customize_iconbar(void) { "\n", (ib_logoff ? "CHECKED" : "") ); - wprintf("" + wprintf("" "" "" "\" \"" + "SRC=\"/static/citadel-logo.gif\" ALT=\" \">" "" "Citadel logo
" "Displays the "Powered by Citadel" graphic" @@ -524,6 +558,7 @@ void commit_iconbar(void) { "ib_inbox", "ib_calendar", "ib_contacts", + "ib_notes", "ib_tasks", "ib_rooms", "ib_users",