Merge branch 'master' of gitlab.cosmocode.de:deutschlaender/sprintdoc-template into spis-master

# Conflicts:
#	lang/de/lang.php
This commit is contained in:
Silke Pisulla 2017-04-26 09:37:42 +02:00
commit fabd75acdf
25 changed files with 129 additions and 118 deletions

View file

@ -40,7 +40,7 @@
position: relative; position: relative;
z-index: 2; z-index: 2;
box-sizing: border-box; box-sizing: border-box;
background-color: @ini_background; background-color: @ini_background_site;
} }
p { p {

View file

@ -92,7 +92,7 @@
/* + + + wiki title + + + */ /* + + + wiki title + + + */
p.title { p.title {
background-color: @ini_background; background-color: @ini_background_site;
opacity: @header-font-opacity; opacity: @header-font-opacity;
color: @ini_text_webframe; color: @ini_text_webframe;
line-height: @line-height-default; line-height: @line-height-default;

View file

@ -56,7 +56,7 @@
&::after { &::after {
background-color: @ini_existing; background-color: @ini_existing;
background-image: url("svg.php?svg=pencil.svg&f=background_content"); background-image: url("svg.php?svg=pencil.svg&f=background");
border-color: @ini_existing; border-color: @ini_existing;
} }
} }

View file

@ -9,7 +9,7 @@
.level2 { .level2 {
p a.media { p a.media {
img { img {
border: 1px dotted @ini_background; border: 1px dotted @ini_background_site;
} }
&:hover, &:hover,

View file

@ -53,9 +53,9 @@
right: 0; right: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background: @ini_background; background: @ini_background_site;
background: -webkit-linear-gradient(left, @ini_background, @ini_background_content); background: -webkit-linear-gradient(left, @ini_background_site, @ini_background);
background: linear-gradient(left, @ini_background, @ini_background_content); background: linear-gradient(left, @ini_background_site, @ini_background);
z-index: 0; z-index: 0;
} }
} }

View file

@ -9,7 +9,7 @@
position: relative; position: relative;
min-height: @page-header_height; min-height: @page-header_height;
box-sizing: border-box; box-sizing: border-box;
background-color: @ini_background_content; background-color: @ini_background;
border-bottom: 1px solid @ini_border_light; border-bottom: 1px solid @ini_border_light;
padding: 1rem 1.8rem .2rem; padding: 1rem 1.8rem .2rem;
@ -23,7 +23,7 @@
} }
@media @screen_xs-lg { @media @screen_xs-lg {
background-color: @ini_background_content; background-color: @ini_background;
} }
> p { > p {

View file

@ -102,9 +102,9 @@
transition: @transition background-color, @transition border-color, @transition color; transition: @transition background-color, @transition border-color, @transition color;
@media @screen_min-md { @media @screen_min-md {
background-color: @ini_background; background-color: @ini_background_site;
border: 1px solid @noopentasks-border; border: 1px solid @noopentasks-border;
border-bottom-color: @ini_background; border-bottom-color: @ini_background_site;
border-radius: @ini_default_border_radius @ini_default_border_radius 0 0; // @ini_default_border_radius vs. @fix_border-radius border-radius: @ini_default_border_radius @ini_default_border_radius 0 0; // @ini_default_border_radius vs. @fix_border-radius
color: @ini_nav_menu_color; color: @ini_nav_menu_color;
margin-left: 4px; margin-left: 4px;
@ -138,15 +138,15 @@
text-decoration: none; text-decoration: none;
@media @screen_min-md { @media @screen_min-md {
background-color: @ini_background_content; background-color: @ini_background;
border-color: @ini_existing; border-color: @ini_existing;
color: @ini_existing; color: @ini_existing;
} }
@media @screen_max-md { @media @screen_max-md {
background-color: @ini_existing; background-color: @ini_existing;
border-color: @ini_background_content; border-color: @ini_background;
color: @ini_background_content; color: @ini_background;
} }
} }
} }
@ -156,16 +156,16 @@
> a { > a {
cursor: default; cursor: default;
background-color: @ini_background_content; background-color: @ini_background;
border-color: @ini_existing; border-color: @ini_existing;
border-bottom-color: @ini_background_content; border-bottom-color: @ini_background;
color: @ini_existing; color: @ini_existing;
@media @screen_max-md { @media @screen_max-md {
background-color: @ini_existing; background-color: @ini_existing;
border-bottom-color: @ini_existing; border-bottom-color: @ini_existing;
border-radius: 0; border-radius: 0;
color: @ini_background_content; color: @ini_background;
} }
} }
} }
@ -188,7 +188,7 @@
right: 0; right: 0;
display: none; display: none;
width: 100%; width: 100%;
background-color: @ini_background_content; background-color: @ini_background;
border: 1px solid @ini_existing; border: 1px solid @ini_existing;
@media @screen_min-xs { @media @screen_min-xs {

View file

@ -116,7 +116,7 @@ nav#dokuwiki__pagetools {
&:hover { &:hover {
ul { ul {
box-shadow: @box-shadow; // @box-shadow-offset; box-shadow: @box-shadow; // @box-shadow-offset;
background-color: @ini_background_content; background-color: @ini_background;
border-color: @wikiicons-border; border-color: @wikiicons-border;
li { li {
@ -142,7 +142,7 @@ nav#dokuwiki__pagetools {
svg { svg {
background-color: @ini_existing; background-color: @ini_existing;
border-color: @ini_existing; border-color: @ini_existing;
fill: @ini_background_content; fill: @ini_background;
} }
} }

View file

@ -46,7 +46,7 @@
margin-bottom: @headericons-margin-xxs; margin-bottom: @headericons-margin-xxs;
} }
> strong, > span,
> a { > a {
display: block; display: block;
width: auto; width: auto;
@ -68,6 +68,10 @@
@media @screen_max-md { @media @screen_max-md {
min-height: @toggle-size; min-height: @toggle-size;
} }
@media @screen_only-lg {
min-width: 2rem;
}
} }
&.user { &.user {
@ -78,7 +82,7 @@
position: relative; position: relative;
display: table-cell; display: table-cell;
background-color: @ini_background; background-color: @ini_background_site;
border: solid 1px @wikiicons-border; // @ini_border_light; border: solid 1px @wikiicons-border; // @ini_border_light;
border-radius: @ini_default_border_radius; // @ini_default_border_radius vs. @fix_border-radius border-radius: @ini_default_border_radius; // @ini_default_border_radius vs. @fix_border-radius
color: @ini_text_webframe; color: @ini_text_webframe;
@ -222,46 +226,6 @@
} }
} }
} // user } // user
&.user-task {
position: relative;
a {
position: relative;
overflow: visible;
white-space: normal;
text-indent: 0;
&::before {
content: '';
position: absolute;
}
}
.prefix {
.btn-prefix();
.icon-clipboard();
display: block;
font-size: 1.2rem;
text-align: center;
margin-bottom: -1px;
}
} // user-task
&.noopentasks {
strong {
background-color: @ini_background;
border-color: @noopentasks-border;
color: @ini_text_webframe;
}
.num {
background-color: @noopentasks-border; // fix
color: @noopentasks-color; // fix
margin-top: 1px;
}
}
} // li } // li
@ -317,4 +281,4 @@
} }
} // a } // a
} // ul } // ul
} // nav-usertools } // nav-usertools

View file

@ -71,8 +71,8 @@
.diffnav { .diffnav {
a { a {
background-color: @ini_background; background-color: @ini_background_site;
border: solid 1px @ini_background; border: solid 1px @ini_background_site;
border-radius: @ini_default_border_radius; border-radius: @ini_default_border_radius;
color: @ini_nav_menu_color; color: @ini_nav_menu_color;
transition: @transition background-color, @transition color, @transition border-color; transition: @transition background-color, @transition color, @transition border-color;
@ -88,7 +88,7 @@
&:active { &:active {
background-color: @ini_nav_menu_color; background-color: @ini_nav_menu_color;
border: solid 1px @ini_nav_menu_color; border: solid 1px @ini_nav_menu_color;
color: @ini_background; color: @ini_background_site;
&::before { &::before {
background-color: inherit; background-color: inherit;
@ -114,7 +114,7 @@
} }
th { th {
background-color: @ini_background_content; background-color: @ini_background;
color: @ini_text; color: @ini_text;
padding-top: 10px; padding-top: 10px;
padding-bottom: 10px; padding-bottom: 10px;

View file

@ -12,7 +12,7 @@
@font_family_screen: arial, sans-serif; @font_family_screen: arial, sans-serif;
@font_family_print: "Times New Roman", serif; @font_family_print: "Times New Roman", serif;
@nav_direct_background: @ini_background_content; @nav_direct_background: @ini_background;
@nav_direct_color: @ini_existing; @nav_direct_color: @ini_existing;
@background_darker: rgba(230,230,230, .2); @background_darker: rgba(230,230,230, .2);
@ -73,12 +73,12 @@
/* edit mode */ /* edit mode */
@highlight-odd-ini_text: fade(@ini_background_content, 95%); @highlight-odd-ini_text: fade(@ini_background, 95%);
@highlight-even-ini_text: fade(@ini_text, 5%); @highlight-even-ini_text: fade(@ini_text, 5%);
@color-editBox: #252525; // editmode for tables, revision states @color-editBox: #252525; // editmode for tables, revision states
//@nolinkedicon-ini_background: fade(@ini_background, 10%); //@nolinkedicon-ini_background: fade(@ini_background_site, 10%);
//@opacity-ini_nav_menu_color: fade(@ini_nav_menu_color, 40%); //@opacity-ini_nav_menu_color: fade(@ini_nav_menu_color, 40%);

View file

@ -7,7 +7,7 @@
html, body { html, body {
background-color: @ini_background; background-color: @ini_background_site;
} }
@ -45,7 +45,7 @@ html, body {
font-size: @font-size-small; font-size: @font-size-small;
border: solid @ini_background_alt; border: solid @ini_background_alt;
border-width: 1px 1px 0; border-width: 1px 1px 0;
background-color: @ini_background; background-color: @ini_background_site;
color: @ini_text_alt; color: @ini_text_alt;
padding: .1em .35em; padding: .1em .35em;
border-top-left-radius: 2px; border-top-left-radius: 2px;
@ -59,7 +59,7 @@ html, body {
clear: both; clear: both;
overflow: hidden; overflow: hidden;
word-wrap: break-word; word-wrap: break-word;
background: @ini_background_content; background: @ini_background;
color: inherit; color: inherit;
padding: @page_padding-top @margin-default @margin-default; padding: @page_padding-top @margin-default @margin-default;
@ -520,7 +520,7 @@ button img {
hr { hr {
border-top: solid @ini_border; border-top: solid @ini_border;
border-bottom: solid @ini_background; border-bottom: solid @ini_background_site;
border-width: 1px 0; border-width: 1px 0;
height: 0; height: 0;
text-align: center; text-align: center;

View file

@ -42,7 +42,7 @@
padding: .8em 0 1em 1em; padding: .8em 0 1em 1em;
span.outkey { span.outkey {
background-color: @ini_background_content; background-color: @ini_background;
color: inherit; color: inherit;
font-size: 90%; font-size: 90%;

View file

@ -24,7 +24,7 @@
button { button {
min-height: 1rem; min-height: 1rem;
height: 1.8em; height: 1.8em;
background-color: @ini_background_content; background-color: @ini_background;
border-top: solid 1px @ini_button_background; border-top: solid 1px @ini_button_background;
border-color: @ini_border; border-color: @ini_border;
border-radius: 0 0 @fix_border-radius @fix_border-radius; border-radius: 0 0 @fix_border-radius @fix_border-radius;
@ -41,7 +41,7 @@
&:active { &:active {
background-color: @ini_existing; background-color: @ini_existing;
border-color: @ini_existing; border-color: @ini_existing;
color: @ini_background_content; color: @ini_background;
} }
} }
} }

View file

@ -11,7 +11,7 @@ ul.page-attributes {
strong { strong {
overflow: hidden; overflow: hidden;
background-color: @ini_background; background-color: @ini_background_site;
border-color: @noopentasks-border; border-color: @noopentasks-border;
color: @ini_text_webframe; color: @ini_text_webframe;
} }
@ -24,3 +24,60 @@ ul.page-attributes {
} }
} }
} }
#dokuwiki__usertools.nav-usertools {
ul {
li {
&.user-task {
position: relative;
a {
overflow: visible;
white-space: normal; // Is this still needed?
text-indent: 0;
&::before {
content: ''; // remove when fontello is removed from usertools
}
}
svg {
width: 20px;
margin-top: 2px;
@media @screen_max-md {
margin-top: 4px;
}
}
&:hover {
:not(.noopentasks) {
svg path {
fill: @ini_background;
}
}
}
.noopentasks {
background-color: @ini_background;
border-color: @noopentasks-border;
color: @ini_text_webframe;
.num {
background-color: @noopentasks-border; // fix
color: @noopentasks-color; // fix
margin-top: 1px;
}
}
@media @screen_max-sm {
display: none;
}
} // user-task
} // li
} // ul
}
.plugin__do_usertasks_list {
z-index: 5;
}

View file

@ -16,7 +16,7 @@
button, button,
input.button { input.button {
min-height: 1rem; min-height: 1rem;
background-color: @ini_background_content; background-color: @ini_background;
border-top: solid 1px @ini_button_background; border-top: solid 1px @ini_button_background;
border-color: @ini_border; border-color: @ini_border;
border-radius: 0 0 @fix_border-radius @fix_border-radius; border-radius: 0 0 @fix_border-radius @fix_border-radius;
@ -31,7 +31,7 @@
&:active { &:active {
background-color: @ini_existing; background-color: @ini_existing;
border-color: @ini_existing; border-color: @ini_existing;
color: @ini_background_content; color: @ini_background;
} }
} }
} }

View file

@ -49,7 +49,7 @@
min-height: @height-context-bar; min-height: @height-context-bar;
box-sizing: border-box; box-sizing: border-box;
box-shadow: @box-shadow; box-shadow: @box-shadow;
background-color: @ini_background_content; background-color: @ini_background;
border-radius: 0 0 @ini_default_border_radius @ini_default_border_radius; border-radius: 0 0 @ini_default_border_radius @ini_default_border_radius;
font-size: @font-size-default; font-size: @font-size-default;
padding: .8em 1em .5em; padding: .8em 1em .5em;

View file

@ -63,9 +63,9 @@
&:focus, &:focus,
&:active { &:active {
background-color: @ini_existing; background-color: @ini_existing;
background-image: url("svg.php?svg=file-export.svg&f=background_content"); background-image: url("svg.php?svg=file-export.svg&f=background");
border-color: @ini_existing; border-color: @ini_existing;
color: @ini_background_content; color: @ini_background;
text-decoration: none; text-decoration: none;
} }
} }

View file

@ -35,7 +35,7 @@ div#dwpl-ti-container {
&.selected { &.selected {
position: relative; position: relative;
z-index: 1; z-index: 1;
background-color: @ini_background_content; background-color: @ini_background;
color: @ini_text; color: @ini_text;
} }
} }
@ -48,7 +48,7 @@ div#dwpl-ti-container {
z-index: 0; z-index: 0;
overflow: auto; overflow: auto;
box-shadow: @box-shadow; box-shadow: @box-shadow;
background-color: @ini_background_content; background-color: @ini_background;
border: solid 1px @ini_border; border: solid 1px @ini_border;
border-radius: 0; border-radius: 0;
margin-top: -1px; margin-top: -1px;

View file

@ -52,7 +52,7 @@
svg { svg {
width: 26px; width: 26px;
height: 26px; height: 26px;
border: solid 1px @ini_background_content; border: solid 1px @ini_background;
border-radius: @ini_default_border_radius; border-radius: @ini_default_border_radius;
fill: @ini_existing; fill: @ini_existing;
transition: @transition background-color, @transition border-color, @transition fill; transition: @transition background-color, @transition border-color, @transition fill;
@ -71,10 +71,10 @@
svg { svg {
background-color: @ini_existing; background-color: @ini_existing;
border-color: @ini_existing; border-color: @ini_existing;
fill: @ini_background_content; fill: @ini_background;
path { path {
fill: @ini_background_content; fill: @ini_background;
} }
} }
} }

View file

@ -36,7 +36,7 @@
img { img {
margin: 0; margin: 0;
display: block; display: block;
border: 1px dotted @ini_background; border: 1px dotted @ini_background_site;
position: relative; position: relative;
z-index: 1; z-index: 1;
} }

View file

@ -23,6 +23,7 @@ $lang['head_menu_status'] = 'Seitenstatus';
$lang['head_breadcrumb'] = 'Standortanzeiger'; $lang['head_breadcrumb'] = 'Standortanzeiger';
$lang['head_menu_trace'] = 'Zuletzt Angesehen'; $lang['head_menu_trace'] = 'Zuletzt Angesehen';
$lang['head_meta_box'] = 'Metainformationen zur Seite'; $lang['head_meta_box'] = 'Metainformationen zur Seite';
$lang['head_menu_starred'] = 'gemerkte Seite';
$lang['jump_to_quicksearch'] = 'Springe zur Schnellsuche'; $lang['jump_to_quicksearch'] = 'Springe zur Schnellsuche';
@ -31,13 +32,17 @@ $lang['meta_box_tags_none'] = 'Keine Tags verknüpft';
$lang['js']['meta_box_toc_none'] = 'kein Inhaltsverzeichnis vorhanden'; $lang['js']['meta_box_toc_none'] = 'kein Inhaltsverzeichnis vorhanden';
$lang['tab_tags'] = 'Tags'; $lang['tab_tags'] = 'Tags';
$lang['tab_issues'] = 'Issues';
$lang['quality_trigger'] = 'Seitenanalyse ein- bzw. ausblenden'; $lang['quality_trigger'] = 'Seitenanalyse ein- bzw. ausblenden';
$lang['prefix_tasks'] = 'offene Aufgaben: '; $lang['prefix_tasks'] = 'offene Aufgaben: ';
$lang['prefix_tasks_user'] = 'Ihre offenen Aufgaben: ';
$lang['prefix_tasks_page'] = 'offene Aufgaben auf dieser Seite: '; $lang['prefix_tasks_page'] = 'offene Aufgaben auf dieser Seite: ';
$lang['prefix_tasks_user'] = 'Ihre offenen Aufgaben: ';
$lang['tasks_page_none'] = 'keine offenen Aufgaben für diese Seite'; $lang['tasks_page_none'] = 'keine offenen Aufgaben für diese Seite';
$lang['tasks_page_intime'] = 'Es gibt %1$d offenen Aufgaben für diese Seite.';
$lang['tasks_page_late'] = 'Es gibt %1$d offenen Aufgaben für diese Seite, %2$d sind zu spät.';
$lang['discussion'] = 'Diskussion'; $lang['discussion'] = 'Diskussion';
$lang['back_to_article'] = 'Zurück zum Artikel'; $lang['back_to_article'] = 'Zurück zum Artikel';
@ -55,14 +60,14 @@ $lang['image_detail'] = 'Detailinformationen zum Bild';
$lang['__site_width__'] = 'Content - Breite (in %)'; $lang['__site_width__'] = 'Content - Breite (in %)';
$lang['__background__'] = 'Website - Hintergrundfarbe'; $lang['__background_site__'] = 'Website - Hintergrundfarbe';
$lang['__text_webframe__'] = 'Claim, Titel, Footer (unverlinkt), Navigation (unverlinkt) - Schriftfarbe'; $lang['__text_webframe__'] = 'Claim, Titel, Footer (unverlinkt), Navigation (unverlinkt) - Schriftfarbe';
$lang['__nav_menu_color__'] = 'Navigation (verlinkt), Footer (verlinkt), Pagetools Icons, Tabbox - Schriftfarbe'; $lang['__nav_menu_color__'] = 'Navigation (verlinkt), Footer (verlinkt), Pagetools Icons, Tabbox - Schriftfarbe';
$lang['__nav_menu_hover_color__'] = 'Navigation (hover) - Schriftfarbe, Rahmenfarbe; Wiki Icons - Schriftfarbe; Wiki Icons (hover) - Hintergrundfarbe'; $lang['__nav_menu_hover_color__'] = 'Navigation (hover) - Schriftfarbe, Rahmenfarbe; Wiki Icons - Schriftfarbe; Wiki Icons (hover) - Hintergrundfarbe';
$lang['__nav_menu_hover_bg__'] = 'Navigation (hover) - Hintergrundfarbe; Wiki Icons - Hintergrundfarbe; Wiki Icons (hover) - Schriftfarbe'; $lang['__nav_menu_hover_bg__'] = 'Navigation (hover) - Hintergrundfarbe; Wiki Icons - Hintergrundfarbe; Wiki Icons (hover) - Schriftfarbe';
$lang['__background_content__'] = 'Content, Breadcrumb, Pagetools (hover) - Hintergrundfarbe'; $lang['__background__'] = 'Content, Breadcrumb, Pagetools (hover) - Hintergrundfarbe';
$lang['__text__'] = 'Content: Text - Schriftfarbe'; $lang['__text__'] = 'Content: Text - Schriftfarbe';
$lang['__background_neu__'] = 'Content neutral (nicht zu unterschiedlich zum Content-Hintergrund) - Hintergrundfarbe'; $lang['__background_neu__'] = 'Content neutral (nicht zu unterschiedlich zum Content-Hintergrund) - Hintergrundfarbe';

View file

@ -37,13 +37,12 @@ $lang['tab_issues'] = 'Issues';
$lang['quality_trigger'] = 'toggle page analysis'; $lang['quality_trigger'] = 'toggle page analysis';
$lang['prefix_tasks'] = 'open tasks: '; $lang['prefix_tasks'] = 'open tasks: ';
$lang['prefix_tasks_user'] = 'your open tasks: ';
$lang['prefix_tasks_page'] = 'open tasks for this page: '; $lang['prefix_tasks_page'] = 'open tasks for this page: ';
$lang['prefix_tasks_user'] = 'Your open tasks: ';
$lang['tasks_page_none'] = 'There are no open tasks for this page.'; $lang['tasks_page_none'] = 'There are no open tasks for this page.';
$lang['tasks_page_intime'] = 'There are %1$d open tasks on this page.'; $lang['tasks_page_intime'] = 'There are %1$d open tasks on this page.';
$lang['tasks_page_late'] = 'There are %1$d open tasks on this page, %2$d are late.'; $lang['tasks_page_late'] = 'There are %1$d open tasks on this page, %2$d are late.';
$lang['tasks_user_none'] = 'You have no open tasks.';
$lang['tasks_user_intime'] = 'You have %1$d open tasks.';
$lang['discussion'] = 'Discussion'; $lang['discussion'] = 'Discussion';
$lang['back_to_article'] = 'Back to article'; $lang['back_to_article'] = 'Back to article';
@ -55,21 +54,20 @@ $lang['osm_zoom_link_title'] = 'external link opens new window';
$lang['image_detail'] = 'image details'; $lang['image_detail'] = 'image details';
/** /**
* colors * colors
*/ */
$lang['__site_width__'] = 'content - width (in %)'; $lang['__site_width__'] = 'content - width (in %)';
$lang['__background__'] = 'website - background color'; $lang['__background_site__'] = 'website - background color';
$lang['__text_webframe__'] = 'claim, title, footer (unlinked), navigation (unlinked) - font color'; $lang['__text_webframe__'] = 'claim, title, footer (unlinked), navigation (unlinked) - font color';
$lang['__nav_menu_color__'] = 'navigation (link), footer (link), pagetools icons, tabbox - font color'; $lang['__nav_menu_color__'] = 'navigation (link), footer (link), pagetools icons, tabbox - font color';
$lang['__nav_menu_hover_color__'] = 'navigation (hover) - font color, border color; wiki icons - font color; wiki icons (hover) - background color'; $lang['__nav_menu_hover_color__'] = 'navigation (hover) - font color, border color; wiki icons - font color; wiki icons (hover) - background color';
$lang['__nav_menu_hover_bg__'] = 'navigation (hover) - background color; wiki icons - background color; wiki icons (hover) - font color'; $lang['__nav_menu_hover_bg__'] = 'navigation (hover) - background color; wiki icons - background color; wiki icons (hover) - font color';
$lang['__background_content__'] = 'content, breadcrumb, pagetools (hover) - background color'; $lang['__background__'] = 'content, breadcrumb, pagetools (hover) - background color';
$lang['__text__'] = 'content: text - font color'; $lang['__text__'] = 'content: text - font color';
$lang['__background_neu__'] = 'Content neutral (not too different from the content background) - background color'; $lang['__background_neu__'] = 'Content neutral (not too different from the content background) - background color';

View file

@ -135,7 +135,7 @@ __site_width__ = "73%" ; @ini_site_width
; alternative text and background colors ; alternative text and background colors
__background__ = "#ECECEC" ; @ini_background (guaranteed for every plugin) __background_site__ = "#ECECEC" ; @ini_background_site
__text_webframe__ = "#696969" ; @ini_text_webframe __text_webframe__ = "#696969" ; @ini_text_webframe
@ -145,7 +145,7 @@ __nav_menu_color__ = "#696969" ; @ini_nav_menu_color
__nav_menu_hover_color__ = "#286da8" ; @ini_nav_menu_hover_color __nav_menu_hover_color__ = "#286da8" ; @ini_nav_menu_hover_color
__nav_menu_hover_bg__ = "#FFF" ; @ini_nav_menu_hover_bg __nav_menu_hover_bg__ = "#FFF" ; @ini_nav_menu_hover_bg
__background_content__ = "#FFF" ; @ini_background_content __background __ = "#FFF" ; @ini_background (guaranteed for every plugin)
__text__ = "#252525" ; @ini_text (guaranteed for every plugin) __text__ = "#252525" ; @ini_text (guaranteed for every plugin)
__background_neu__ = "#ffffff" ; @ini_background_neu (guaranteed for every plugin) __background_neu__ = "#ffffff" ; @ini_background_neu (guaranteed for every plugin)

View file

@ -23,25 +23,12 @@
/** @var \helper_plugin_do $doplugin */ /** @var \helper_plugin_do $doplugin */
$doplugin = plugin_load('helper','do'); $doplugin = plugin_load('helper','do');
if ($doplugin !== null && isset($_SERVER['REMOTE_USER'])) { if ($doplugin !== null && isset($_SERVER['REMOTE_USER'])) {
$tasks = $doplugin->loadTasks(array('status' => array('undone'),'user' => $_SERVER['REMOTE_USER'])); $icon = $doplugin->tpl_getUserTasksIconHTML();
$num = count($tasks); if ($icon) {
if ($num === 0) { echo '<li class="user-task">' . $icon . '</li>';
$title = tpl_getLang('tasks_user_none');
} else {
$title = sprintf(tpl_getLang('tasks_user_intime'), $num);
} }
}
$doInner = "<span class=\"prefix\">".tpl_getLang('prefix_tasks_user')." </span><span class=\"num\">".count($tasks)."</span>"; ?>
$userpage = $doplugin->getConf('userpage');
if ($userpage && $_SERVER['REMOTE_USER'] && $num > 0) {
$linktarget = sprintf($userpage, $_SERVER['REMOTE_USER']) . ':' . 'dashboard';
$linktarget = str_replace('::', ':', $linktarget);
echo '<li class="user-task" title="'.$title.'"><a href="'.wl($linktarget).'">'.$doInner.'</a></li>';
} else {
echo '<li class="user-task" title="'.$title.'"><strong>'.$doInner.'</strong></li>';
}
} ?>
</ul> </ul>
</nav><!-- #dokuwiki__usertools --> </nav><!-- #dokuwiki__usertools -->