Loading max.xq +2 −2 Original line number Diff line number Diff line Loading @@ -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, ()) } Loading rxq/config.xqm +1 −1 Original line number Diff line number Diff line Loading @@ -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" }; Loading rxq/html.xqm +13 −13 Original line number Diff line number Diff line Loading @@ -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) }) Loading Loading @@ -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:) Loading ui/css/max.css +2 −1 Original line number Diff line number Diff line Loading @@ -171,7 +171,7 @@ mark { background-color: rgba(200, 200, 200, 0.4); } footer.copyright { footer { text-align: center; position:fixed; bottom:0; Loading @@ -179,6 +179,7 @@ footer.copyright { width:100%; background-color:black; } .footer-logos { width: 100px; } Loading ui/images/logos/biblissima.png −12.8 KiB (8.28 KiB) Loading image diff... Loading
max.xq +2 −2 Original line number Diff line number Diff line Loading @@ -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, ()) } Loading
rxq/config.xqm +1 −1 Original line number Diff line number Diff line Loading @@ -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" }; Loading
rxq/html.xqm +13 −13 Original line number Diff line number Diff line Loading @@ -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) }) Loading Loading @@ -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:) Loading
ui/css/max.css +2 −1 Original line number Diff line number Diff line Loading @@ -171,7 +171,7 @@ mark { background-color: rgba(200, 200, 200, 0.4); } footer.copyright { footer { text-align: center; position:fixed; bottom:0; Loading @@ -179,6 +179,7 @@ footer.copyright { width:100%; background-color:black; } .footer-logos { width: 100px; } Loading