Skip to content

Commit

Permalink
Remove prev/next <link>s (#587)
Browse files Browse the repository at this point in the history
* Remove prev/next <link>s

#285

* domain fhseidel.de

Remove or edit all links to the domain fhseidel.de.

#585

* Remove onload()

Remove onload() in the body tag of the templates.

#586

* Server error: 500 during "Check links

Server error: 500 during "Check links (xampp as of PHP 8.1)

#582

* Domain webdesign-keil.de

Remove links to webdesign-keil.de.
Correct links to Google Material Icons.

#588
  • Loading branch information
olape-git committed Apr 29, 2024
1 parent 9d39b39 commit 94fb7e4
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 29 deletions.
9 changes: 5 additions & 4 deletions cmsimple/classes/LinkChecker.php
Expand Up @@ -320,10 +320,11 @@ protected function makeHeadRequest($scheme, $host, $path)
break;
}
}
assert(isset($headers_tmp));
preg_match('#HTTP/[0-9\.]+\s+([0-9]+)#i', $headers_tmp, $status);
if (!empty($status[1])) {
return (int) $status[1];
if (!empty($headers_tmp)) {
preg_match('#HTTP/[0-9\.]+\s+([0-9]+)#i', $headers_tmp, $status);
if (!empty($status[1])) {
return (int) $status[1];
}
}
}
return false;
Expand Down
1 change: 1 addition & 0 deletions cmsimple/config.php
Expand Up @@ -14,6 +14,7 @@
$cf['mailform']['lf_only']="";
$cf['meta']['robots']="index, follow";
$cf['meta']['author']="";
$cf['head']['links']="";
$cf['locator']['show_homepage']="true";
$cf['folders']['content']="content/";
$cf['folders']['userfiles']="userfiles/";
Expand Down
1 change: 1 addition & 0 deletions cmsimple/languages/de.php
Expand Up @@ -94,6 +94,7 @@
$tx['help']['filebrowser_external']="Wenn Sie einen externen Datei-Browser verwenden möchten, z.B. hi_kcfinder, installieren Sie das Plugin und tragen Sie seinen Namen hier ein";
$tx['help']['functions_file']="Bitte nicht ändern";
$tx['help']['meta_author']="(Kann-Eingabe) Hier für Suchmaschinen den Autor der Texte Ihrer Site eintragen.";
$tx['help']['head_links']="Aktiviert die Paginierung (Links - Seitenumbruch) im Head.";
$tx['help']['backup_numberoffiles']="Nach jedem Ausloggen erzeugt das System eine Sicherungskopie der Content-Datei. Hier die Anzahl solcher Dateien eintragen, die das System automatisch aufbewahrt.";

$tx['help']['show_hidden_path_locator']="Angeklickt = Der Locator ('Sie sind hier'-Anzeige) zeigt auch den Pfad einer versteckten Seite.";
Expand Down
1 change: 1 addition & 0 deletions cmsimple/languages/en.php
Expand Up @@ -94,6 +94,7 @@
$tx['help']['filebrowser_external']="If you want to use an external file browser, e.g. hi_kcfinder, install the plugin and enter its name here.";
$tx['help']['functions_file']="Please do not change";
$tx['help']['meta_author']="(Optional) Enter here for the benefit of search engines the name of the author of your pages.";
$tx['help']['head_links']="Activates pagination (links - page break) in the head.";
$tx['help']['backup_numberoffiles']="After each logout a backup of the content file is generated. Enter the number of such files which the system automatically keeps.";

$tx['help']['show_hidden_path_locator']="Whether the path of the hidden page is shown in the locator.";
Expand Down
1 change: 1 addition & 0 deletions cmsimple/metaconfig.php
Expand Up @@ -9,6 +9,7 @@
$mcf['language']['2nd_lang_names']="hidden";
$mcf['mailform']['captcha']="bool";
$mcf['mailform']['lf_only']="+bool";
$mcf['head']['links']="+bool";
$mcf['locator']['show_homepage']="bool";
$mcf['folders']['content']="hidden";
$mcf['folders']['userfiles']="hidden";
Expand Down
6 changes: 4 additions & 2 deletions cmsimple/tplfuncs.php
Expand Up @@ -70,8 +70,10 @@ function head()
. "\n"
. '<!-- plugins: ' . $plugins . ' -->' . "\n";
}
$o .= XH_renderPrevLink() . XH_renderNextLink()
. '<link rel="stylesheet" href="' . XH_pluginStylesheet()
if ($cf['head']['links'] == 'true') {
$o .= XH_renderPrevLink() . XH_renderNextLink() . PHP_EOL;
}
$o .= '<link rel="stylesheet" href="' . XH_pluginStylesheet()
. '" type="text/css">' . PHP_EOL
. $hjs
. '<link rel="stylesheet" href="' . $pth['file']['stylesheet']
Expand Down
20 changes: 6 additions & 14 deletions content/content.htm
Expand Up @@ -46,7 +46,7 @@ <h2>Settings / Administration</h2>
<p>At first you’ll have to change the default password:</p>
<p><code>Admin menu ⇒ Settings ⇒ Password</code></p>
<p class="xh_warning">Always change the default password first!</p>
<p>This is the most important step to prevent unauthorized access to the CMS.<br>Detailed tips can be found <a href="https://wiki.cmsimple-xh.org/?for-users/first-steps/basic-settings#id3_change-default-password" target="_blank" rel="noopener">here</a> or <a href="https://cmsimplexh.webdesign-keil.de/?Fachthemen/Sicheres_Passwort_erstellen_und_anwenden" target="_blank" rel="noopener">here</a>.</p>
<p>This is the most important step to prevent unauthorized access to the CMS.<br>Detailed tips can be found <a href="https://wiki.cmsimple-xh.org/?for-users/first-steps/basic-settings#id3_change-default-password" target="_blank" rel="noopener">here</a>.</p>
<p>Now you can configure the CMS according to your needs (<a href="https://wiki.cmsimple-xh.org/?for-users/first-steps/basic-settings" target="_blank" rel="noopener">tips</a>).<br>The most important place to do that is:</p>
<p><code>Admin menu ⇒ Settings ⇒ Configuration</code></p>
<p>Here you should activate the contact form. Enter your e-mail address (section mailform) and select your preferred language for the backend. You should also check all the other settings.</p>
Expand All @@ -68,7 +68,6 @@ <h2>Help / Instructions / Links</h2>
<p>Since CMSimple_XH is an OpenSource project where only enthusiastic developers work on without getting payed in their free time there is also no central place where all information is collected at one point. There is also no manager, no board or the like. Following you’ll find a summary of links, which could be important for questions about the CMS:</p>
<p><a href="https://www.cmsimple-xh.org/" target="_blank" rel="noopener noreferrer">CMSimple_XH PROJECTS WEBSITE</a> – general information and downloads</p>
<p><a href="https://wiki.cmsimple-xh.org/" target="_blank" rel="noopener noreferrer">CMSimple_XH WIKI</a> – general and professional topics</p>
<p><a href="https://cmsimplexh.webdesign-keil.de/" target="_blank" rel="noopener noreferrer">CMSimple_XH DOCUMENTATION</a> – general and professional topics</p>
<p><a title="cmsimpleforum" href="https://cmsimpleforum.com/" target="_blank" rel="noopener">CMSimple_XH DISCUSSION BOARD</a> – the most up-to-date and comprehensive information source</p>
<p><a href="https://github.com/cmsimple-xh/cmsimple-xh" target="_blank" rel="noopener noreferrer">CMSimple_XH at Github</a> – Source code for developers</p>
<!--XH_ml2:Start-DE-->
Expand Down Expand Up @@ -100,7 +99,7 @@ <h2>Einstellungen/ Administration</h2>
<p>Die erste Anlaufstelle für dich:</p>
<p><code>Admin-Menü ⇒ Einstellungen ⇒ Passwort</code></p>
<p class="xh_warning">Ändere unbedingt zuerst das Standard-Passwort!</p>
<p>Das ist der wichtigste Schritt, damit kein Unbefugter Zutritt zum CMS erhält.<br>Ausführliche <a href="https://wiki.cmsimple-xh.org/de/?fuer-anwender/erste-schritte/grundeinstellungen#id3_standardpasswort-ndern" target="_blank" rel="noopener noreferrer">Tipps dazu findest du hier</a> oder <a href="https://cmsimplexh.webdesign-keil.de/?Fachthemen/Sicheres_Passwort_erstellen_und_anwenden" target="_blank" rel="noopener noreferrer">auch hier</a>.</p>
<p>Das ist der wichtigste Schritt, damit kein Unbefugter Zutritt zum CMS erhält.<br>Ausführliche <a href="https://wiki.cmsimple-xh.org/de/?fuer-anwender/erste-schritte/grundeinstellungen#id3_standardpasswort-ndern" target="_blank" rel="noopener noreferrer">Tipps dazu findest du hier</a>.</p>
<p>Konfiguriere nun das CMS nach deinen Bedürfnissen (<a href="https://wiki.cmsimple-xh.org/de/?fuer-anwender/erste-schritte/grundeinstellungen" target="_blank" rel="noopener noreferrer">Tipps</a>).<br>Die wichtigsten Stellen dazu sind :</p>
<p><code>Admin-Menü ⇒ Einstellungen ⇒ Konfiguration</code></p>
<p>Hier solltest du vor allem das Kontaktformular aktivieren, d.h. deine E-Mail-Adresse eintragen (unter Punkt E-Mail-Formular), deine bevorzugte Sprache für das Backend wählen und auch alle anderen Punkte beachten.</p>
Expand All @@ -122,7 +121,6 @@ <h2>Hilfe/ Anleitungen/ Links</h2>
<p>Da CMSimple_XH ein OpenSource-Projekt ist – an dem nur begeisterte Entwickler ohne Bezahlung in ihrer Freizeit arbeiten – gibt es auch keine zentrale Stelle an der alle Informationen an einem Punkt zusammengefasst sind. Es gibt auch keinen Chef, keinen Vorstand oder Ähnliches. Hier eine Zusammenstellung von Links, die bei Fragen zum CMS wichtig sein könnten:</p>
<p><a href="https://www.cmsimple-xh.org/de/" target="_blank" rel="noopener noreferrer">CMSimple_XH PROJEKTSEITE</a> – allgemeine Infos und Downloads</p>
<p><a href="https://wiki.cmsimple-xh.org/de/" target="_blank" rel="noopener noreferrer">CMSimple_XH WIKI</a> – allgemeine und fachliche Themen</p>
<p><a href="https://cmsimplexh.webdesign-keil.de/" target="_blank" rel="noopener noreferrer">CMSimple_XH DOKU</a> – allgemeine und fachliche Themen</p>
<p><a href="https://cmsimpleforum.com" target="_blank" rel="noopener noreferrer">CMSimple_XH FORUM</a> – die aktuellste und umfangreichste Informationsquelle</p>
<p><a href="https://github.com/cmsimple-xh/cmsimple-xh" target="_blank" rel="noopener noreferrer">CMSimple_XH auf Github</a> – Entwicklerseite</p>
<!--XH_ml1:Content-->
Expand Down Expand Up @@ -296,7 +294,6 @@ <h1>Templates</h1>
<h2>More information about templates</h2>
<p><strong>Tips and tricks</strong> regarding installation and usage of templates:<br><a href="https://wiki.cmsimple-xh.org/?for-users/working-with-the-cms/change-look" target="_blank" rel="noopener noreferrer">CMSimple_XH Wiki</a></p>
<p><strong>The template repository<br></strong>is still under construction, but some templates can already be found there:<br><a href="https://www.cmsimple-xh.org/?Template-Repository" target="_blank" rel="noopener">CMSimple_XH Template Repository</a></p>
<p><strong>Collection of template providers:</strong><br><a href="https://cmsimplexh.webdesign-keil.de/?CMSimple_XH_Referenzlisten/Templateanbieter" target="_blank" rel="noopener noreferrer">CMSimple_XH Documentation</a></p>
<p><strong>Templates</strong> are often presented and discussed <strong>in our discussion board</strong>:<br><a href="https://cmsimpleforum.com/viewforum.php?f=13" target="_blank" rel="noopener noreferrer">CMSimple_XH Forum</a></p>
<p>On the following pages you can see some template samples.</p>
<!--XH_ml2:Templates-DE-->
Expand Down Expand Up @@ -324,7 +321,6 @@ <h1>Templates</h1>
<h2>Mehr zu Templates</h2>
<p><strong>Tipps und Hinweise</strong> zur Installation und Verwendung von Templates:<br><a href="https://wiki.cmsimple-xh.org/de/?fuer-anwender/arbeiten-mit-dem-cms/aussehen-aendern" target="_blank" rel="noopener noreferrer">CMSimple_XH Wiki</a></p>
<p><strong>Das Template-Repository<br></strong>befindet sich noch im Aufbau, aber einige Templates sind dort schon zu finden:<br><a href="https://www.cmsimple-xh.org/de/?Template-Repository" target="_blank" rel="noopener">CMSimple_XH Template Repository</a></p>
<p><strong>Übersichten von Template-Anbietern:</strong><br><a href="https://cmsimplexh.webdesign-keil.de/?CMSimple_XH_Referenzlisten/Templateanbieter" target="_blank" rel="noopener noreferrer">CMSimple_XH Dokumentation</a></p>
<p><strong>Templates</strong> werden auch oft <strong>im Forum</strong> vorgestellt und besprochen:<br><a href="https://cmsimpleforum.com/viewforum.php?f=13" target="_blank" rel="noopener noreferrer">CMSimple_XH Forum</a></p>
<p>Die folgenden Seiten (siehe Menü) demonstrieren einige Templates.</p>
<!--XH_ml2:TEMPLATE fhs-simple-2019-->
Expand Down Expand Up @@ -587,7 +583,7 @@ <h1>The template “overlay_03”</h1>
<h2>Fonts</h2>
<p>Standard font: Open Sans Condensed by <a href="https://fonts.google.com/" target="_blank" rel="noopener noreferrer">Google-Fonts</a>.<br>Font formats: font-style: normal (font-weight: 300 and 700) and font-style: italic (font-weight: 300).</p>
<h2>Icons</h2>
<p><a title="Zur Webseite" href="https://fonts.google.com/icons?selected=Material+Icons" target="_blank" rel="noopener noreferrer">Google Material Icons</a></p>
<p><a title="Zur Webseite" href="https://fonts.google.com/icons" target="_blank" rel="noopener noreferrer">Google Material Icons</a></p>
<h2>Images</h2>
<p><span>Background image: </span><a title="Website" href="https://unsplash.com/" target="_blank" rel="noopener noreferrer">unsplash.com</a></p>
<h2>License</h2>
Expand All @@ -605,7 +601,7 @@ <h1><img src="./userfiles/images/flags/de.gif" alt="de" width="16" height="12">
<h2>Schriften</h2>
<p>Standard-Schriftart: "Open Sans Condensed" von <a href="https://fonts.google.com/" target="_blank" rel="noopener noreferrer">Google-Fonts</a>.<br>Schriftformate: font-style: normal (font-weight: 300 und 700) und font-style: italic (font-weight: 300).</p>
<h2>Icons</h2>
<p><a title="Zur Webseite" href="https://fonts.google.com/icons?selected=Material+Icons" target="_blank" rel="noopener noreferrer">Google Material Icons</a></p>
<p><a title="Zur Webseite" href="https://fonts.google.com/icons" target="_blank" rel="noopener noreferrer">Google Material Icons</a></p>
<h2>Bilder</h2>
<p><span>Hintergrundbild: </span><a title="Website" href="https://unsplash.com/" target="_blank" rel="noopener noreferrer">unsplash.com</a></p>
<h2>Lizenz</h2>
Expand Down Expand Up @@ -781,8 +777,6 @@ <h1>Plugins</h1>
<h2>More information about plugins</h2>
<p><strong>Tips and tricks</strong> regarding installation and usage of plugins:<br><a href="https://wiki.cmsimple-xh.org/?for-users/working-with-the-cms/plugins" target="_blank" rel="noopener noreferrer">CMSimple_XH Wiki</a></p>
<p><strong>The plugin repository<br></strong>is still under construction, but some plugins can already be found there:<br><a href="https://www.cmsimple-xh.org/?Plugin-Repository" target="_blank" rel="noopener">CMSimple_XH Plugin Repository</a></p>
<p><strong>Collection of plugin providers:</strong><br><a href="https://cmsimplexh.webdesign-keil.de/?CMSimple_XH_Referenzlisten/Pluginanbieter" target="_blank" rel="noopener noreferrer">CMSimple_XH Documentation</a></p>
<p>A pretty current and detailed <strong>list of available plugins</strong>:<br><a href="https://cmsimplexh.webdesign-keil.de/?Erweiterungen_-_Plugins_und_anderes" target="_blank" rel="noopener noreferrer">CMSimple_XH Documentation</a></p>
<p><strong>Plugins in the discussion board:</strong><br><a href="https://cmsimpleforum.com/viewforum.php?f=12" target="_blank" rel="noopener noreferrer">CMSimple_XH Forum</a></p>
<p> </p>
<!--XH_ml2:Plugins-DE-->
Expand Down Expand Up @@ -810,8 +804,6 @@ <h1>Plugins</h1>
<h2>Mehr zu Plugins</h2>
<p><strong>Tipps und Hinweise</strong> zur Installation und Verwendung von Plugins:<br><a href="https://wiki.cmsimple-xh.org/de/?fuer-anwender/arbeiten-mit-dem-cms/plugins" target="_blank" rel="noopener noreferrer">CMSimple_XH Wiki</a></p>
<p><strong>Das Plugin-Repository<br></strong>befindet sich noch im Aufbau, aber einige Plugins sind dort schon zu finden:<br><a href="https://www.cmsimple-xh.org/de/?Plugin-Repository" target="_blank" rel="noopener">CMSimple_XH Plugin Repository</a></p>
<p><strong>Übersichten von Plugin-Anbietern:</strong><br><a href="https://cmsimplexh.webdesign-keil.de/?CMSimple_XH_Referenzlisten/Pluginanbieter" target="_blank" rel="noopener noreferrer">CMSimple_XH Dokumentation</a></p>
<p>Eine ziemlich aktuelle und ausführliche <strong>Liste verfügbarer Plugins:</strong><br><a href="https://cmsimplexh.webdesign-keil.de/?Erweiterungen_-_Plugins_und_anderes" target="_blank" rel="noopener noreferrer">CMSimple_XH Dokumentation</a></p>
<p><strong>Plugins im Forum:</strong><br><a href="https://cmsimpleforum.com/viewforum.php?f=12" target="_blank" rel="noopener noreferrer">CMSimple_XH Forum</a></p>
<!--XH_ml1:Languages-->
<?php
Expand All @@ -836,7 +828,7 @@ <h1>Languages</h1>
<p>The standard download of CMSimple_XH comes with English and German language files only (for the backend).</p>
<p>German language files are included because the German language user’s community is by far the largest and practically all of the developer’s team is German speaking.</p>
<p>Information and links to language files for other languages can be found <a href="https://www.cmsimple-xh.org/?Downloads#id5_language-packages" target="_blank" rel="noopener noreferrer">here</a>.</p>
<p>How you show <em>the content</em> of your website in other languages?<br><a href="https://cmsimplexh-doku017.keil-portal.de/?Beschreibung-der-Funktionalitaeten/Administration-des-CMS/Mehrsprachiges-CMS" target="_blank" rel="noopener noreferrer">Have a look here.</a></p>
<p>How you show <em>the content</em> of your website in other languages?<br><a href="https://wiki.cmsimple-xh.org/?for-users/working-with-the-cms/multilingual-website" target="_blank" rel="noopener noreferrer">Have a look here.</a></p>
<!--XH_ml2:Sprachen-DE-->
<?php
$page_data[]=array(
Expand All @@ -859,7 +851,7 @@ <h1>Languages</h1>
<h1>Sprachen</h1>
<p>Der Standard-Download von CMSimple_XH enthält als Systemsprachen für das Backend nur Englisch und Deutsch. Obwohl die Haupt-Sprache eigentlich Englisch ist, sind doch die meisten Benutzer, die meisten Forum-Mitglieder und praktisch alle Mitglieder des Entwicklerteams deutschsprachig.</p>
<p>Falls du für andere Sprachen Unterstützung benötigst, findest du Informationen und Sprachpakete zum Download auf der <a href="https://www.cmsimple-xh.org/de/?Downloads#id5_sprachpakete" target="_blank" rel="noopener noreferrer">CMSimple_XH-Projektseite</a>.</p>
<p>Wie du auch die Inhalte deiner Website mehrsprachig für deine Besucher darstellen kannst, <a href="https://cmsimplexh-doku017.keil-portal.de/?Beschreibung-der-Funktionalitaeten/Administration-des-CMS/Mehrsprachiges-CMS" target="_blank" rel="noopener noreferrer">wird hier beschrieben</a>.</p>
<p>Wie du auch die Inhalte deiner Website mehrsprachig für deine Besucher darstellen kannst, <a href="https://wiki.cmsimple-xh.org/de/?fuer-anwender/arbeiten-mit-dem-cms/website-mehrsprachig" target="_blank" rel="noopener noreferrer">wird hier beschrieben</a>.</p>
<!--XH_ml1:Menu Levels-->
<?php
$page_data[]=array(
Expand Down
4 changes: 2 additions & 2 deletions templates/fhs-simple-2019/stylesheet.css
@@ -1,8 +1,8 @@
/***
fhs-simple-2019
version 2.0 - 2020/1
version 2.1 - 2024/4
template-stylesheet for CMSimple_XH ≥ 1.7
© 2019 fhs - www.fhseidel.de
© 2024 fhs - www.cmsimple-xh.org/?fhseidel
***/

/*** fonts ***/
Expand Down
10 changes: 5 additions & 5 deletions templates/fhs-simple-2019/template.htm
Expand Up @@ -2,9 +2,9 @@
<?php
// ***
// fhs-simple
// version 2.0 - 2020/1
// version 2.1 - 2024/4
// template for CMSimple_XH ≥ 1.7
// © 2019 fhs - www.fhseidel.de
// © 2024 fhs - www.cmsimple-xh.org/?fhseidel
// ***

// if jQuery4CMSimple is installed, include its jQuery library
Expand Down Expand Up @@ -37,7 +37,7 @@
<meta name="theme-color" content="#ffffff">
</head>

<body<?=onload();?>>
<body <?=XH_ADM ? onload() : '';?>>
<header class="row-full-width" id="header">
<nav class="langMenu"><?=languagemenu();?></nav>
<div class="row">
Expand Down Expand Up @@ -108,9 +108,9 @@ <h2><?php
<div class="row">
<p class="copyright">
<?php if (function_exists('poweredbylink')):?>
<i class="fa fa-copyright fa-fw"></i> <?=date("Y");?> Your Company<br><span class="smaller"><?=poweredbylink()?> &middot; <a href="http://fhseidel.de/" target="_blank">Template by fhs</a></span></p>
<i class="fa fa-copyright fa-fw"></i> <?=date("Y");?> Your Company<br><span class="smaller"><?=poweredbylink()?> &middot; <a href="https://www.cmsimple-xh.org/?fhseidel" target="_blank">Template by fhs</a></span></p>
<?php else:?>
<i class="fa fa-copyright fa-fw"></i> <?=date("Y");?> Your Company<span class="smaller"><br>Powered by <a href="http://www.cmsimple-xh.org/" target="_blank">CMSimple_XH</a><br><a href="http://fhseidel.de/" target="_blank">Template by fhs</a></span></p>
<i class="fa fa-copyright fa-fw"></i> <?=date("Y");?> Your Company<span class="smaller"><br>Powered by <a href="https://www.cmsimple-xh.org/" target="_blank">CMSimple_XH</a><br><a href="https://www.cmsimple-xh.org/?fhseidel" target="_blank">Template by fhs</a></span></p>
<?php endif?>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion templates/fhs-simple-2019/templateinfo.htm
@@ -1,2 +1,2 @@
© 2020 v2.0 by <a href='http://fhseidel.de' target='_blank'>fhs</a><br>
© 2020 v2.1 by <a href='https://www.cmsimple-xh.org/?fhseidel' target='_blank'>fhs</a><br>
A simple template with basic template functions for CMSimple_XH ≥ 1.7.3

0 comments on commit 94fb7e4

Please sign in to comment.