Skip to content

Instantly share code, notes, and snippets.

View Zodiac1978's full-sized avatar
🤔
Overthinking things since 1978

Torsten Landsiedel Zodiac1978

🤔
Overthinking things since 1978
View GitHub Profile
@Zodiac1978
Zodiac1978 / q.css
Created August 24, 2020 19:59 — forked from glueckpress/q.css
Localized quotation marks for <q> element.
/* Default quotation mark fallback:
* "This is a quotaion."
*/
q::before {
content: open-quote;
}
q::after {
content: close-quote;
}
@Zodiac1978
Zodiac1978 / wpseo-iconfix.php
Last active August 24, 2018 12:56 — forked from glueckpress/wpseo-iconfix.php
[WordPress] Nachdem der Schmerz, den wpSEO-Menüpunkt ansehen zu müssen zu groß wurde, hat @krafit das Icon im Admin-Menü ersetzt. Ich hab’s in ein Plugin gewickelt. Enthält eine Closure, deshalb ab PHP 5.3. Erfordert kleinere Anpassungen nach dem Update (https://wpseo.de/verlauf/) auf 4.5.
<?php
/**
* Plugin Name: wpSEO Icon Fix
* Description: Admin icon hack for wpSEO.
* Version: 2018.08
* Author: Simon Kraft, Caspar Hübinger, Torsten Landsiedel
* License: GNU General Public License v3
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
@Zodiac1978
Zodiac1978 / info.php
Created June 30, 2017 15:57 — forked from sergejmueller/info.php
Ausgabe des DocumentRoot-Verzeichnises. Notwendig als Ersatz für die nicht verfügbare Apache (.htaccess) DocumentRoot-Direktive. http://httpd.apache.org/docs/2.0/mod/core.html#documentroot
<?php echo rtrim($_SERVER['DOCUMENT_ROOT'], '/') ?>
<?php
function md_filter_curly_double_quotes( $translations, $text, $context, $domain ) {
if ( 'opening curly double quote' == $context && '&#8220;' == $text ) {
$translations = '&#8222;';
} else if ( 'closing curly double quote' == $context && '&#8221;' == $text ) {
$translations = '&#8220;';
}
return $translations;