Skip to content

Instantly share code, notes, and snippets.

View ThomasKujawa's full-sized avatar

Thomas Kujawa ThomasKujawa

View GitHub Profile
@ThomasKujawa
ThomasKujawa / functions.php
Created April 12, 2024 08:56
Wordpress: Stati der Beiträge farblich hervorheben
add_action('admin_footer','posts_status_color');
function posts_status_color(){
?>
<style>
.status-draft{background: #fc9 !important;}
.status-pending{background: #cff !important;}
.status-publish{/* so lassen wie es ist */}
.status-future{background: #cf9 !important;}
.status-private{background:#f99;}
</style>
@ThomasKujawa
ThomasKujawa / sortable-tag-count.php
Last active January 2, 2024 19:00
Sortable Tag Count Column
<?php
/**
* Plugin Name: Sortable Tag Count
* Plugin URI: https://www.fachkraeftesicherer.de
* Description: Adds a sortable column to the posts and pages admin with the tag count.
* Author: <a href="https://thomas.fachkraeftesicherer.de" target="_blank">Thomas</a> und <a href="https://www.thomaszwirner.de/" target="_blank">Thomas</a>
* Author URI: https://thomas.fachkraeftesicherer.de
* Version: 1.0.3
* Requires PHP: 8.0
* Text Domain: sortable-tag-count
@ThomasKujawa
ThomasKujawa / regexp.txt
Created March 21, 2022 16:05 — forked from cerlestes/regexp.txt
Regular Expression für Deutsche Telefonvorwahlen (regular expression for german telephone area codes)
# Quelle: https://www.bundesnetzagentur.de/DE/Sachgebiete/Telekommunikation/Unternehmen_Institutionen/Nummerierung/Rufnummern/ONRufnr/ON_Einteilung_ONB/ON_ONB_ONKz_ONBGrenzen_node.html
# Quelle: https://www.bundesnetzagentur.de/DE/Sachgebiete/Telekommunikation/Unternehmen_Institutionen/Nummerierung/Rufnummern/Rufnummern_node.html
# Quelle: https://www.billiger-telefonieren.de/thema/handy-vorwahlen/
# Zweistellige Großstädte
30|40|69|89|
# Dreistellige Vorwahlen
20[12389]|21[24]|228|234|335|340|3[3-9][15]|906|[2-9][1-9]1|
# Vierstellig Neue Bundesländer
3(?:
Verifying my Blockstack ID is secured with the address 176Tx11epHKxfP5h9XLA7nGtm6yRopzRCZ https://explorer.blockstack.org/address/176Tx11epHKxfP5h9XLA7nGtm6yRopzRCZ
Verifying that "thomaskujawa.id" is my Blockstack ID. https://onename.com/thomaskujawa
@ThomasKujawa
ThomasKujawa / thumbnailcaption.php
Last active July 4, 2016 19:32
Wordpress | Toolbox | Thumbnail with Caption
<?php
/*
Module Name: Thumbnail with caption
Module URI: http://www.transformationpowertools.com/wordpress/wordpress-post-thumbnails-with-caption
Description: show thumbnail with caption, if available, wrapped with '.wp-caption thumb-caption' div; show just the thumbnail otherwise for featured images in the loop [Frontend]
Author: Michael aka alchymyth
Author URI: http://www.transformationpowertools.com/wordpress/author/alchymyth
*/
@ThomasKujawa
ThomasKujawa / nach_more.php
Created December 11, 2014 18:48
Wordpress | Toolbox | #AD nach MORE-Break
<?php
/*
Module Name: Werbung nach dem more break
Module URI: http://linuxundich.de/webhosting/anzeige-nach-dem-more-break-einer-wordpress-seite-automatisch-einfugen/
Description: Fügt nach dem MORE-Break Werbung oder Shortcode ein. [Frontend]
Author: Christoph Langner
Author URI: http://linuxundich.de/author/christoph/
*/
@ThomasKujawa
ThomasKujawa / images_in_rss.php
Last active February 4, 2016 09:59
Wordpress | Toolbox | Featured Images automatisch im WordPress Feed anzeigen
<?php
/*
Module Name: Featured Images automatisch im WordPress Feed anzeigen
Module URI: http://wp-ezine.com/featured-images-automatisch-im-wordpress-feed-anzeigen_469900.html
Description: fügt die Featured Images zum RSS Feed hinzu [Frontend]
Author: Karl-Heinz Klug
Author URI: http://wp-ezine.com/author/karl
*/
@ThomasKujawa
ThomasKujawa / autorenbox.css
Created November 18, 2014 18:30
Wordpress | Toolbox | Autorenbox | css
/* Author Info Box */
.author-info {
position: relative;
background: #f2f2f2;
border: 1px solid #ddd;
padding: 10px;
margin: 20px 0px;
border-radius: 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
@ThomasKujawa
ThomasKujawa / autorenbox.php
Created November 18, 2014 18:28
Wordpress | Toolbox | Autorenbox
<?php
/*
Module Name: WordPress Author Box.
Module URI: http://www.drweb.de/magazin/wordpress-autorenbox-ohne-plugin-erstellen/
Description: Call this function with &lt;?php andys_author_box(); ?&gt; wherever you want to display the box (posts and/or pages) [Frontend]
Author: "Andreas Hecht" | Lizenz GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
Author URI: http://www.hechtmediaarts.com
*/
/* Sicherheitsabfrage */