This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Code Styles */ | |
pre { | |
border-left: 9px solid #990000; | |
padding: 10px; | |
margin: 20px; | |
width: 95%; | |
line-height: 1.1em; | |
white-space: pre-wrap; | |
white-space: -moz-pre-wrap; | |
white-space: -o-pre-wrap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// 1. --> Wordpress Settings // | |
// 2. --> SHORTCODES // | |
// 3. --> Plugin Settings // | |
// 4. --> Theme Settings // | |
// 1. --> Wordpress Settings // | |
// Remove junk from head |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ab, aber, abgesehen, alle, allein, aller, alles, als, am, an, andere, anderen, anderenfalls, anderer, anderes, anstatt, auch, auf, aus, aussen, außen, ausser, außer, ausserdem, außerdem, außerhalb, ausserhalb, behalten, bei, beide, beiden, beider, beides, beinahe, bevor, bin, bis, bist, bitte, da, daher, danach, dann, darueber, darüber, darueberhinaus, darüberhinaus, darum, das, dass, daß, dem, den, der, des, deshalb, die, diese, diesem, diesen, dieser, dieses, dort, duerfte, duerften, duerftest, duerftet, dürfte, dürften, dürftest, dürftet, durch, durfte, durften, durftest, durftet, ein, eine, einem, einen, einer, eines, einige, einiger, einiges, entgegen, entweder, erscheinen, es, etwas, fast, fertig, fort, fuer, für, gegen, gegenueber, gegenüber, gehalten, geht, gemacht, gemaess, gemäß, genug, getan, getrennt, gewesen, gruendlich, gründlich, habe, haben, habt, haeufig, häufig, hast, hat, hatte, hatten, hattest, hattet, hier, hindurch, hintendran, hinter, hinunter, ich, ihm, ihnen, ihr, ihre, ihrem, ihren, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Add featured image to RSS feed | |
function j0e_imagetoRSS($content) { | |
global $post; | |
if ( has_post_thumbnail( $post->ID ) ){ | |
$content = ' | |
' . get_the_post_thumbnail( $post->ID, 'medium', array( 'style' => 'float:left; margin:0 10px 10px 0;' ) ) . ' | |
' . $content; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Änderungsdatum automatisch einfügen | |
function j0e_change_date($content) { | |
if ( (is_single() && get_post_type() == 'post') || is_page() ) { | |
$artikel_erstellt = get_the_date('U'); | |
$artikel_aktualisiert = get_post_modified_time('U'); | |
// Nur ausgeben, wenn Aktualisierung älter als einen Tag ist | |
if (($artikel_aktualisiert - $artikel_erstellt) > 86400) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Vollständiger Artikel auf https://j0e.org/forum/thread/anfuehrungszeichen/ | |
; Deutsche Anführungszeichen unten und oben -> auf ALT+1 und Alt+2 | |
!1::Send „ ; Alt+1 anstatt Alt+0132 | |
!2::Send “ ; Alt+2 anstatt Alt+0147 | |
; Französische Anführungszeichen, Chevrons oder Guillemets -> auf ALT+3 und Alt+4 | |
!3::Send » ; Alt+3 anstatt Alt+0187 | |
!4::Send « ; Alt+4 anstatt Alt+0171 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Astra Theme: Display only last modified date in the post metadata. | |
* | |
*/ | |
function j0e_post_date( $output ) { | |
$output = ''; | |
$format = apply_filters( 'astra_post_date_format', '' ); | |
$modified_date = esc_html( get_the_modified_date( $format ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WordPress .htaccess von Jochen Gererstorfer | |
# https://j0e.org/wordpress-htaccess/ | |
# http zu https weiterleiten | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
</IfModule> |
OlderNewer