fix template now base on dotty

This commit is contained in:
Jean-Christian Paul Denis 2021-08-28 21:29:29 +02:00
parent 2d5d611e56
commit 22cc7ce3bc
5 changed files with 243 additions and 145 deletions

View File

@ -3,7 +3,7 @@ todo
- Added passworded links - Added passworded links
- fix deprecated external service - fix deprecated external service
2021.08.28 2021.08.28 | ready for next release
- add dashboard icon - add dashboard icon
- clean PSR-2 codding style and short array - clean PSR-2 codding style and short array
- fix php 7.3+ and php 8.0.x compatibility - fix php 7.3+ and php 8.0.x compatibility
@ -12,6 +12,7 @@ todo
- merge index file sub parts - merge index file sub parts
- remove custom js - remove custom js
- fix widgets rendering - fix widgets rendering
- fix public template now based on dotty
2011.04.01 2011.04.01
- Changed version numbering - Changed version numbering

View File

@ -1,87 +1,50 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" {{tpl:extends parent="__layout.html"}}
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <tpl:Block name="head-title">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{tpl:BlogLanguage}}" lang="{{tpl:BlogLanguage}}"> <title>{{tpl:lang Links shortener}}} - {{tpl:BlogName encode_html="1"}}</title>
<head> </tpl:Block>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <tpl:Block name="html-head">
<meta name="MSSmartTagsPreventParsing" content="TRUE" /> {{tpl:parent}}
<meta name="ROBOTS" content="{{tpl:BlogMetaRobots}}" /> </tpl:Block>
<title>{{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf></title>
<meta name="description" lang="{{tpl:BlogLanguage}}" content="{{tpl:BlogDescription cut_string="180" encode_html="1"}}" />
<meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />
<meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" />
<meta name="date" scheme="W3CDTF" content="{{tpl:BlogUpdateDate iso8601="1"}}" />
<link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" />
<meta name="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf>" />
<meta name="dc.description" lang="{{tpl:BlogLanguage}}" content="{{tpl:BlogDescription encode_html="1"}}" />
<meta name="dc.language" content="{{tpl:BlogLanguage}}" />
<meta name="dc.publisher" content="{{tpl:BlogEditor encode_html="1"}}" />
<meta name="dc.rights" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />
<meta name="dc.date" scheme="W3CDTF" content="{{tpl:BlogUpdateDate iso8601="1"}}" />
<meta name="dc.type" content="text" />
<meta name="dc.format" content="text/html" />
<link rel="contents" title="{{tpl:lang Archives}}" href="{{tpl:BlogArchiveURL}}" />
<tpl:Categories>
<link rel="section" href="{{tpl:CategoryURL}}" title="{{tpl:CategoryTitle encode_html="1"}}" />
</tpl:Categories>
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:BlogFeedURL type="atom"}}" />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="{{tpl:BlogRSDURL}}" />
<link rel="meta" type="application/xbel+xml" title="Blogroll" href="{{tpl:BlogrollXbelLink}}" />
{{tpl:include src="_head.html"}}
</head>
<body class="dc-kutrl"> <tpl:Block name="body-tag">
<div id="page"> <body class="dc-kutrl">
</tpl:Block>
{{tpl:include src="_top.html"}} <tpl:Block name="main-content">
<tpl:Block name="main-content-before"></tpl:Block>
<div id="wrapper"> <tpl:Block name="content-info-header">
<header id="content-info">
<div id="main"> <tpl:Block name="content-info-header-title">
<div id="content"> <h2>{{tpl:lang Links shortener}}</h2>
</tpl:Block>
<div id="p0" class="post"> <tpl:Block name="content-info-header-content">
<h2 class="post-title">{{tpl:lang Links shortener}}</h2> <tpl:kutrlMsgIf has_message="1">
<tpl:kutrlMsgIf has_message"1"> <p>{{tpl:kutrlMsg}}</p>
<p><strong>{{tpl:kutrlMsg}}</strong></p> </tpl:kutrlMsgIf>
</tpl:kutrlMsgIf> </tpl:Block>
</header>
<tpl:kutrlPageIf is_active="1"> </tpl:Block>
<form name="dokutrl" method="post" action="{{tpl:kutrlPageURL}}"> <tpl:Block name="content-inner">
<p><label>{{tpl:lang Long link:}}<br /> <tpl:Block name="content-inner-before"></tpl:Block>
<input type="text" size="60" name="longurl" id="longurl" maxlength="255" value="" /> <div class="content-inner">
</label></p> <tpl:Block name="content-inner-content">
<p><label>{{tpl:kutrlHumanField}}<br /> <tpl:kutrlPageIf is_active="1">
<input type="text" size="60" name="hmf" id="hmf" maxlength="255" value="" /> <form name="dokutrl" method="post" action="{{tpl:kutrlPageURL}}">
</label></p> <p><label>{{tpl:lang Long link:}}<br />
<p> <input type="text" size="60" name="longurl" id="longurl" maxlength="255" value="" />
<input class="submit" type="submit" name="submiturl" value="{{tpl:lang Create}}" /> </label></p>
{{tpl:kutrlHumanFieldProtect}} <p><label>{{tpl:kutrlHumanField}}<br />
</p> <input type="text" size="60" name="hmf" id="hmf" maxlength="255" value="" />
</form> </label></p>
</tpl:kutrlPageIf> <p>
</div> <input class="submit" type="submit" name="submiturl" value="{{tpl:lang Create}}" />
{{tpl:kutrlHumanFieldProtect}}
</div> </p>
</div> <!-- End #main --> </form>
</tpl:kutrlPageIf>
<div id="sidebar"> </tpl:Block>
<div id="blognav"> </div> <!-- # End #content-inner -->
{{tpl:Widgets type="nav"}} <tpl:Block name="content-inner-after"></tpl:Block>
</div> <!-- End #blognav --> </tpl:Block>
<tpl:Block name="main-content-after"></tpl:Block>
<div id="blogextra"> </tpl:Block>
{{tpl:Widgets type="extra"}}
</div> <!-- End #blogextra -->
</div>
</div> <!-- End #wrapper -->
{{tpl:include src="_footer.html"}}
</div> <!-- End #page -->
</body>
</html>

View File

@ -4,64 +4,44 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="MSSmartTagsPreventParsing" content="TRUE" /> <meta name="MSSmartTagsPreventParsing" content="TRUE" />
<meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX,NOARCHIVE"}}" /> {{tpl:extends parent="__layout.html"}}
<tpl:Block name="head-title">
<title>{{tpl:lang Document not found}} - {{tpl:BlogName encode_html="1"}}</title> <title>{{tpl:lang Links shortener}}} - {{tpl:BlogName encode_html="1"}}</title>
<meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" /> </tpl:Block>
<meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" /> <tpl:Block name="html-head">
{{tpl:parent}}
<link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" /> </tpl:Block>
<meta name="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:lang URL not found}} - {{tpl:BlogName encode_html="1"}}" />
<meta name="dc.language" content="{{tpl:BlogLanguage}}" />
<meta name="dc.publisher" content="{{tpl:BlogEditor encode_html="1"}}" />
<meta name="dc.rights" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />
<meta name="dc.type" content="text" />
<meta name="dc.format" content="text/html" />
<link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" />
<link rel="contents" title="{{tpl:lang Archives}}" href="{{tpl:BlogArchiveURL}}" />
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:BlogFeedURL type="atom"}}" />
{{tpl:include src="_head.html"}}
</head>
<body class="dc-404 kutrl-404"> <tpl:Block name="body-tag">
<div id="page"> <body class="dc-kutrl">
{{tpl:include src="_top.html"}} </tpl:Block>
<div id="wrapper"> <tpl:Block name="main-content">
<tpl:Block name="main-content-before"></tpl:Block>
<div id="main"> <tpl:Block name="content-info-header">
<div id="content"> <header id="content-info">
<tpl:Block name="content-info-header-title">
<div id="content-info"> <h2>{{tpl:lang URL not found}}</h2>
<h2>{{tpl:lang URL not found}}</h2> </tpl:Block>
</div> <tpl:Block name="content-info-header-content">
<tpl:kutrlMsgIf has_message="1">
<div class="content-inner"> <p>{{tpl:kutrlMsg}}</p>
<p>{{tpl:lang The URL you are looking for does not exist.}}</p> </tpl:kutrlMsgIf>
<p><img src="{{tpl:BlogQmarkURL}}pf=kUtRL/default-templates/img/broken-link.png" alt="broken link" /></p> </tpl:Block>
<tpl:kutrlPageIf is_active="1"> </header>
<p><a href="{{tpl:kutrlPageURL}}" title="kutrl">{{tpl:lang Create your own short URL}}</a></p> </tpl:Block>
</tpl:kutrlPageIf> <tpl:Block name="content-inner">
</div> <tpl:Block name="content-inner-before"></tpl:Block>
<div class="content-inner">
</div> <tpl:Block name="content-inner-content">
</div> <p>{{tpl:lang The URL you are looking for does not exist.}}</p>
<p><img src="{{tpl:BlogQmarkURL}}pf=kUtRL/default-templates/img/broken-link.png" alt="broken link" /></p>
<div id="sidebar"> <tpl:kutrlPageIf is_active="1">
<div id="blognav"> <p><a href="{{tpl:kutrlPageURL}}" title="kutrl">{{tpl:lang Create your own short URL}}</a></p>
{{tpl:Widgets type="nav"}} </tpl:kutrlPageIf>
</div> <!-- End #blognav --> </tpl:Block>
</div> <!-- # End #content-inner -->
<div id="blogextra"> <tpl:Block name="content-inner-after"></tpl:Block>
{{tpl:Widgets type="extra"}} </tpl:Block>
</div> <!-- End #blogextra --> <tpl:Block name="main-content-after"></tpl:Block>
</div> </tpl:Block>
</div> <!-- End #wrapper -->
{{tpl:include src="_footer.html"}}
</div> <!-- End #page -->
</body>
</html>

View File

@ -0,0 +1,67 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{tpl:BlogLanguage}}" lang="{{tpl:BlogLanguage}}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="MSSmartTagsPreventParsing" content="TRUE" />
<meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX,NOARCHIVE"}}" />
<title>{{tpl:lang Document not found}} - {{tpl:BlogName encode_html="1"}}</title>
<meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />
<meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" />
<link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" />
<meta name="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:lang URL not found}} - {{tpl:BlogName encode_html="1"}}" />
<meta name="dc.language" content="{{tpl:BlogLanguage}}" />
<meta name="dc.publisher" content="{{tpl:BlogEditor encode_html="1"}}" />
<meta name="dc.rights" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />
<meta name="dc.type" content="text" />
<meta name="dc.format" content="text/html" />
<link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" />
<link rel="contents" title="{{tpl:lang Archives}}" href="{{tpl:BlogArchiveURL}}" />
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:BlogFeedURL type="atom"}}" />
{{tpl:include src="_head.html"}}
</head>
<body class="dc-404 kutrl-404">
<div id="page">
{{tpl:include src="_top.html"}}
<div id="wrapper">
<div id="main">
<div id="content">
<div id="content-info">
<h2>{{tpl:lang URL not found}}</h2>
</div>
<div class="content-inner">
<p>{{tpl:lang The URL you are looking for does not exist.}}</p>
<p><img src="{{tpl:BlogQmarkURL}}pf=kUtRL/default-templates/img/broken-link.png" alt="broken link" /></p>
<tpl:kutrlPageIf is_active="1">
<p><a href="{{tpl:kutrlPageURL}}" title="kutrl">{{tpl:lang Create your own short URL}}</a></p>
</tpl:kutrlPageIf>
</div>
</div>
</div>
<div id="sidebar">
<div id="blognav">
{{tpl:Widgets type="nav"}}
</div> <!-- End #blognav -->
<div id="blogextra">
{{tpl:Widgets type="extra"}}
</div> <!-- End #blogextra -->
</div>
</div> <!-- End #wrapper -->
{{tpl:include src="_footer.html"}}
</div> <!-- End #page -->
</body>
</html>

View File

@ -0,0 +1,87 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{tpl:BlogLanguage}}" lang="{{tpl:BlogLanguage}}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="MSSmartTagsPreventParsing" content="TRUE" />
<meta name="ROBOTS" content="{{tpl:BlogMetaRobots}}" />
<title>{{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf></title>
<meta name="description" lang="{{tpl:BlogLanguage}}" content="{{tpl:BlogDescription cut_string="180" encode_html="1"}}" />
<meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />
<meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" />
<meta name="date" scheme="W3CDTF" content="{{tpl:BlogUpdateDate iso8601="1"}}" />
<link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" />
<meta name="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf>" />
<meta name="dc.description" lang="{{tpl:BlogLanguage}}" content="{{tpl:BlogDescription encode_html="1"}}" />
<meta name="dc.language" content="{{tpl:BlogLanguage}}" />
<meta name="dc.publisher" content="{{tpl:BlogEditor encode_html="1"}}" />
<meta name="dc.rights" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" />
<meta name="dc.date" scheme="W3CDTF" content="{{tpl:BlogUpdateDate iso8601="1"}}" />
<meta name="dc.type" content="text" />
<meta name="dc.format" content="text/html" />
<link rel="contents" title="{{tpl:lang Archives}}" href="{{tpl:BlogArchiveURL}}" />
<tpl:Categories>
<link rel="section" href="{{tpl:CategoryURL}}" title="{{tpl:CategoryTitle encode_html="1"}}" />
</tpl:Categories>
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:BlogFeedURL type="atom"}}" />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="{{tpl:BlogRSDURL}}" />
<link rel="meta" type="application/xbel+xml" title="Blogroll" href="{{tpl:BlogrollXbelLink}}" />
{{tpl:include src="_head.html"}}
</head>
<body class="dc-kutrl">
<div id="page">
{{tpl:include src="_top.html"}}
<div id="wrapper">
<div id="main">
<div id="content">
<div id="p0" class="post">
<h2 class="post-title">{{tpl:lang Links shortener}}</h2>
<tpl:kutrlMsgIf has_message"1">
<p><strong>{{tpl:kutrlMsg}}</strong></p>
</tpl:kutrlMsgIf>
<tpl:kutrlPageIf is_active="1">
<form name="dokutrl" method="post" action="{{tpl:kutrlPageURL}}">
<p><label>{{tpl:lang Long link:}}<br />
<input type="text" size="60" name="longurl" id="longurl" maxlength="255" value="" />
</label></p>
<p><label>{{tpl:kutrlHumanField}}<br />
<input type="text" size="60" name="hmf" id="hmf" maxlength="255" value="" />
</label></p>
<p>
<input class="submit" type="submit" name="submiturl" value="{{tpl:lang Create}}" />
{{tpl:kutrlHumanFieldProtect}}
</p>
</form>
</tpl:kutrlPageIf>
</div>
</div>
</div> <!-- End #main -->
<div id="sidebar">
<div id="blognav">
{{tpl:Widgets type="nav"}}
</div> <!-- End #blognav -->
<div id="blogextra">
{{tpl:Widgets type="extra"}}
</div> <!-- End #blogextra -->
</div>
</div> <!-- End #wrapper -->
{{tpl:include src="_footer.html"}}
</div> <!-- End #page -->
</body>
</html>