diff --git a/Template.php b/Template.php index 85163ac..32f4920 100644 --- a/Template.php +++ b/Template.php @@ -135,6 +135,11 @@ class Template { } else { // main navigation, loaded from standard sidebar, fixed up by javascript $nav = ''; } @@ -189,9 +194,10 @@ class Template { * @param array $attributes * @param int $w * @param int $h + * @param bool $crop * @return string */ - public static function getResizedImgTag($tag, $attributes, $w, $h) { + public static function getResizedImgTag($tag, $attributes, $w, $h, $crop = true) { $attr = ''; $medias = array(); @@ -214,7 +220,7 @@ class Template { if($media === '') return ''; // replace the array - $media = ml($media, array('w' => $w, 'h' => $h, 'crop' => 1), true, '&'); + $media = ml($media, array('w' => $w, 'h' => $h, 'crop' => (int) $crop), true, '&'); $attributes[$attr] = $media; // return the full tag @@ -244,7 +250,7 @@ class Template { 'src' => array('wiki:logo-wide.png', 'wiki:logo.png'), 'alt' => $title, ), - 0, 0 + 0, 50, false ); $mobile = self::getResizedImgTag( 'img', diff --git a/css/area_header.less b/css/area_header.less index 97029be..60293a3 100755 --- a/css/area_header.less +++ b/css/area_header.less @@ -213,6 +213,7 @@ .header-compact { #dokuwiki__header { min-height: 2.7rem; + margin-bottom: 0.5rem; .main-title.desktop-only p.claim, p.claim { @@ -234,7 +235,11 @@ .main-title.desktop-only, .logo { - padding-top: 0.4rem + padding-top: 0.4rem; + } + + .logo img { + height: 3.6rem; } } diff --git a/css/area_main-sidebar-tabs.less b/css/area_main-sidebar-tabs.less index 9674def..0dc889d 100644 --- a/css/area_main-sidebar-tabs.less +++ b/css/area_main-sidebar-tabs.less @@ -4,16 +4,24 @@ border-bottom: 1px solid @ini_nav_menu_color; + white-space: nowrap; + li { display: inline-block; border: 1px solid @ini_nav_menu_color; padding: 0.25em 0.5em; margin-bottom: -1px; + margin-left: 0.5em; border-top-right-radius: @fix_border-radius; border-top-left-radius: @fix_border-radius; &.active { border-bottom: 1px solid @ini_background_site; + font-weight: bold; } } } + +.wide-content #dokuwiki__aside ul.sidebar-tabs { + visibility: hidden; +} diff --git a/css/plugins/sitemapnavi.less b/css/plugins/sitemapnavi.less index 75c6f3f..cd6026d 100644 --- a/css/plugins/sitemapnavi.less +++ b/css/plugins/sitemapnavi.less @@ -1,10 +1,17 @@ #plugin__sitemapnavi { - padding-left: @nav-margin*2.5; padding-bottom: @nav-margin; margin-bottom: @nav-margin; border-bottom: 1px solid @ini_nav_menu_color; + label { + padding-left: 0.5em; + } + li { line-height: @line-height-bigger; } } + +.wide-content #plugin__sitemapnavi { + display: none; +} diff --git a/js/sidebar.js b/js/sidebar.js index 09f9206..a5193c4 100644 --- a/js/sidebar.js +++ b/js/sidebar.js @@ -144,6 +144,9 @@ jQuery(function () { } }); + + // fade in the navigation (was hidden until now + $main.css({opacity: 0, visibility: "visible"}).animate({opacity: 1}, 200); }, /** diff --git a/lang/it/lang.php b/lang/it/lang.php new file mode 100644 index 0000000..f6287f8 --- /dev/null +++ b/lang/it/lang.php @@ -0,0 +1,104 @@ + .li'] = 'Primo livello degli elementi di elenco'; + +$lang['header_layout'] = 'Regola il layout dell\'intestazione:'; +$lang['header_layout_o_header-default'] = 'layout di intestazione generoso per un lungo titolo e una tagline'; +$lang['header_layout_o_header-compact'] = 'layout di intestazione compatto per un breve titolo e tagline nascosta'; + diff --git a/lang/it/style.txt b/lang/it/style.txt new file mode 100644 index 0000000..07f41e3 --- /dev/null +++ b/lang/it/style.txt @@ -0,0 +1 @@ +Se vuoi cambiare la favicon, usa semplicemente il Gestore Media per caricare un ''favicon.ico'' nel ''wiki'' o nel namespace di root e verrà automaticamente usato. Se si utilizza un wiki chiuso, si consiglia di rendere leggibile per chiunque lo spazio dei nomi ''wiki'' (o root) nelle impostazioni ACL o il proprio favicon non verrà mostrato agli utenti che hanno effettuato il logout. diff --git a/svg.php b/svg.php index dc5eb8f..0b33c47 100644 --- a/svg.php +++ b/svg.php @@ -2,6 +2,7 @@ namespace dokuwiki\template\sprintdoc; +define('NOSESSION', 1); if(!defined('DOKU_INC')) define('DOKU_INC', dirname(__FILE__) . '/../../../'); require_once(DOKU_INC . 'inc/init.php'); diff --git a/template.info.txt b/template.info.txt index eb4f219..0f10eae 100755 --- a/template.info.txt +++ b/template.info.txt @@ -1,7 +1,7 @@ base sprintdoc author Jana Deutschlaender email dokuwiki@cosmocode.de -date 2019-03-11 +date 2019-03-21 name sprintDoc Template desc modern, responsive template that integrates multiple plugins url https://www.dokuwiki.org/template:sprintdoc