fix template now base on dotty

master
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> <tpl:Block name="body-tag">
<meta name="description" lang="{{tpl:BlogLanguage}}" content="{{tpl:BlogDescription cut_string="180" encode_html="1"}}" /> <body class="dc-kutrl">
<meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" /> </tpl:Block>
<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/" /> <tpl:Block name="main-content">
<meta name="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:BlogName encode_html="1"}}<tpl:PaginationIf start="0"> - {{tpl:lang page}} {{tpl:PaginationCurrent}}</tpl:PaginationIf>" /> <tpl:Block name="main-content-before"></tpl:Block>
<meta name="dc.description" lang="{{tpl:BlogLanguage}}" content="{{tpl:BlogDescription encode_html="1"}}" /> <tpl:Block name="content-info-header">
<meta name="dc.language" content="{{tpl:BlogLanguage}}" /> <header id="content-info">
<meta name="dc.publisher" content="{{tpl:BlogEditor encode_html="1"}}" /> <tpl:Block name="content-info-header-title">
<meta name="dc.rights" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" /> <h2>{{tpl:lang Links shortener}}</h2>
<meta name="dc.date" scheme="W3CDTF" content="{{tpl:BlogUpdateDate iso8601="1"}}" /> </tpl:Block>
<meta name="dc.type" content="text" /> <tpl:Block name="content-info-header-content">
<meta name="dc.format" content="text/html" /> <tpl:kutrlMsgIf has_message="1">
<p>{{tpl:kutrlMsg}}</p>
<link rel="contents" title="{{tpl:lang Archives}}" href="{{tpl:BlogArchiveURL}}" /> </tpl:kutrlMsgIf>
<tpl:Categories> </tpl:Block>
<link rel="section" href="{{tpl:CategoryURL}}" title="{{tpl:CategoryTitle encode_html="1"}}" /> </header>
</tpl:Categories> </tpl:Block>
<tpl:Block name="content-inner">
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:BlogFeedURL type="atom"}}" /> <tpl:Block name="content-inner-before"></tpl:Block>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="{{tpl:BlogRSDURL}}" /> <div class="content-inner">
<link rel="meta" type="application/xbel+xml" title="Blogroll" href="{{tpl:BlogrollXbelLink}}" /> <tpl:Block name="content-inner-content">
<tpl:kutrlPageIf is_active="1">
{{tpl:include src="_head.html"}} <form name="dokutrl" method="post" action="{{tpl:kutrlPageURL}}">
</head> <p><label>{{tpl:lang Long link:}}<br />
<input type="text" size="60" name="longurl" id="longurl" maxlength="255" value="" />
<body class="dc-kutrl"> </label></p>
<div id="page"> <p><label>{{tpl:kutrlHumanField}}<br />
<input type="text" size="60" name="hmf" id="hmf" maxlength="255" value="" />
{{tpl:include src="_top.html"}} </label></p>
<p>
<div id="wrapper"> <input class="submit" type="submit" name="submiturl" value="{{tpl:lang Create}}" />
{{tpl:kutrlHumanFieldProtect}}
<div id="main"> </p>
<div id="content"> </form>
</tpl:kutrlPageIf>
<div id="p0" class="post"> </tpl:Block>
<h2 class="post-title">{{tpl:lang Links shortener}}</h2> </div> <!-- # End #content-inner -->
<tpl:kutrlMsgIf has_message"1"> <tpl:Block name="content-inner-after"></tpl:Block>
<p><strong>{{tpl:kutrlMsg}}</strong></p> </tpl:Block>
</tpl:kutrlMsgIf> <tpl:Block name="main-content-after"></tpl:Block>
</tpl:Block>
<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>

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 Links shortener}}} - {{tpl:BlogName encode_html="1"}}</title>
</tpl:Block>
<tpl:Block name="html-head">
{{tpl:parent}}
</tpl:Block>
<title>{{tpl:lang Document not found}} - {{tpl:BlogName encode_html="1"}}</title> <tpl:Block name="body-tag">
<meta name="copyright" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" /> <body class="dc-kutrl">
<meta name="author" content="{{tpl:BlogEditor encode_html="1"}}" /> </tpl:Block>
<link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" /> <tpl:Block name="main-content">
<meta name="dc.title" lang="{{tpl:BlogLanguage}}" content="{{tpl:lang URL not found}} - {{tpl:BlogName encode_html="1"}}" /> <tpl:Block name="main-content-before"></tpl:Block>
<meta name="dc.language" content="{{tpl:BlogLanguage}}" /> <tpl:Block name="content-info-header">
<meta name="dc.publisher" content="{{tpl:BlogEditor encode_html="1"}}" /> <header id="content-info">
<meta name="dc.rights" content="{{tpl:BlogCopyrightNotice encode_html="1"}}" /> <tpl:Block name="content-info-header-title">
<meta name="dc.type" content="text" /> <h2>{{tpl:lang URL not found}}</h2>
<meta name="dc.format" content="text/html" /> </tpl:Block>
<tpl:Block name="content-info-header-content">
<link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" /> <tpl:kutrlMsgIf has_message="1">
<link rel="contents" title="{{tpl:lang Archives}}" href="{{tpl:BlogArchiveURL}}" /> <p>{{tpl:kutrlMsg}}</p>
<link rel="alternate" type="application/atom+xml" title="Atom 1.0" href="{{tpl:BlogFeedURL type="atom"}}" /> </tpl:kutrlMsgIf>
</tpl:Block>
{{tpl:include src="_head.html"}} </header>
</head> </tpl:Block>
<tpl:Block name="content-inner">
<body class="dc-404 kutrl-404"> <tpl:Block name="content-inner-before"></tpl:Block>
<div id="page"> <div class="content-inner">
{{tpl:include src="_top.html"}} <tpl:Block name="content-inner-content">
<p>{{tpl:lang The URL you are looking for does not exist.}}</p>
<div id="wrapper"> <p><img src="{{tpl:BlogQmarkURL}}pf=kUtRL/default-templates/img/broken-link.png" alt="broken link" /></p>
<tpl:kutrlPageIf is_active="1">
<div id="main"> <p><a href="{{tpl:kutrlPageURL}}" title="kutrl">{{tpl:lang Create your own short URL}}</a></p>
<div id="content"> </tpl:kutrlPageIf>
</tpl:Block>
<div id="content-info"> </div> <!-- # End #content-inner -->
<h2>{{tpl:lang URL not found}}</h2> <tpl:Block name="content-inner-after"></tpl:Block>
</div> </tpl:Block>
<tpl:Block name="main-content-after"></tpl:Block>
<div class="content-inner"> </tpl:Block>
<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,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>