Commit 0f4ad869 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

ajustements footer / menu + renommage template par défaut

parent fac1df9f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -82,10 +82,10 @@ function max:page($project, $page){
                        let $content := max.html:getHTMLFragment($project, $page)

                        let $contentWithFooter :=
                            <main>
                            <div>
                                {$content}
                                {max.html:getFooter($project)}
                            </main>
                            </div>

                        return max.html:render($project, $page, $contentWithFooter, ())
                    }
+1 −1
Original line number Diff line number Diff line
@@ -213,7 +213,7 @@ declare function max.config:getProjectDocumentTOCXSL($projectId){
declare function max.config:getProjectLayoutTemplate($projectId) {
  if(doc($max.config:CONFIGURATION_FILE)//edition[@xml:id=$projectId]/layout)
    then "../" || doc($max.config:CONFIGURATION_FILE)//edition[@xml:id=$projectId]/layout/@template
    else "../ui/templates/"||max.config:getXMLFormat($projectId) ||"_responsive.html"
    else "../ui/templates/"||max.config:getXMLFormat($projectId) ||".html"
};


+13 −13
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ declare function max.html:render(
                    'textOptions' : $textOptions,
                    'head' : $head,
                    'content' : $wrapped,
                    'copyright' : max.html:getCopyrightFooter($projectId),
(:                    'copyright' : max.html:getCopyrightFooter($projectId),:)
                    'jsImports' : $jsImports,
                    'data' : max.config:getProjectData($projectId)
                    })
@@ -254,18 +254,18 @@ declare function max.html:getFooter($project){
};

(:builds and returns default MaX HTML copyright footer:)
declare function max.html:getCopyrightFooter($project){
    try {
        let $copyrightFooterPath := max.util:maxHome() || "/editions/" || $project || "/" || $max.cons:EDITION_COPYRIGHT_FOOTER_PATH
        let $content := fetch:xml($copyrightFooterPath, map {'chop' : false()})
        return $content
    }
    catch * {
        <footer>
          Réalisé avec <a href="https://git.unicaen.fr/pdn-certic/MaX" target="_blank">MaX</a> © 2020 Université de Caen Normandie
        </footer>
    }
};
(:declare function max.html:getCopyrightFooter($project){:)
(:    try {:)
(:        let $copyrightFooterPath := max.util:maxHome() || "/editions/" || $project || "/" || $max.cons:EDITION_COPYRIGHT_FOOTER_PATH:)
(:        let $content := fetch:xml($copyrightFooterPath, map {'chop' : false()}):)
(:        return $content:)
(:    }:)
(:    catch * {:)
(:        <footer>:)
(:          Réalisé avec <a href="https://git.unicaen.fr/pdn-certic/MaX" target="_blank">MaX</a> © 2020 Université de Caen Normandie:)
(:        </footer>:)
(:    }:)
(:};:)


(:get text navigation bar for a specific route:)
+2 −1
Original line number Diff line number Diff line
@@ -171,7 +171,7 @@ mark {
  background-color: rgba(200, 200, 200, 0.4);
}

footer.copyright {
footer {
  text-align: center;
  position:fixed;
  bottom:0;
@@ -179,6 +179,7 @@ footer.copyright {
  width:100%;
  background-color:black;
}

.footer-logos {
  width: 100px;
}
−12.8 KiB (8.28 KiB)
Loading image diff...
Loading