This file contains hidden or 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 | |
/** | |
* Plugin Name: WH Custom Post Type | |
* Version: 0.2 | |
*/ | |
function add_wh_events() { | |
$labels = array( | |
'name' => 'Veranstaltungen', | |
'singular_name' => 'Veranstaltung', | |
'add_new' => 'Erstellen', |
This file contains hidden or 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
if ( $custom = get_post_custom() ) { | |
$location = ( isset($custom['location'][0] )) ? 'in ' . $custom['location'][0] : ''; | |
$eventdate = ( isset($custom['eventdate'][0] )) ? 'am ' . date_i18n(get_option( 'date_format' ), strtotime($custom['eventdate'][0])) : ''; | |
if ( !empty( $location ) || !empty ($location)) { | |
echo ' <h3 class="comments-area">Veranstaltung ' . $location . ' ' . $eventdate . '</h3>'; | |
} | |
} |
This file contains hidden or 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 | |
/** | |
* Plugin Name: WH Custom Post Type | |
* Version: 0.3 | |
*/ | |
function add_wh_events() { | |
$labels = array( | |
'name' => 'Veranstaltungen', | |
'singular_name' => 'Veranstaltung', | |
'add_new' => 'Erstellen', |
This file contains hidden or 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 | |
/** | |
* Plugin Name: WH Custom Post Type | |
* Version: 0.4 | |
*/ | |
function add_wh_events() { | |
$labels = array( | |
'name' => 'Veranstaltungen', | |
'singular_name' => 'Veranstaltung', | |
'add_new' => 'Erstellen', |
This file contains hidden or 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 | |
/** | |
* @package WH_Event_Widget | |
* @version 1.0.0 | |
*/ | |
/* | |
Plugin Name: WH Event Widget | |
Plugin URI: https://wordpress-handbuch.com | |
Description: Anzeige aktueller Veranstaltungen | |
Author: Johannes Mustermann |
This file contains hidden or 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_action( 'wp_enqueue_scripts', 'twentynineteen_child_enqueue_styles' ); | |
function twentynineteen_child_enqueue_styles() { | |
$parent_style = 'twentynineteen-style'; | |
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); | |
wp_enqueue_style( 'twentynineteen-child-style', | |
get_stylesheet_directory_uri() . '/style.css', | |
array( $parent_style ), | |
filemtime(get_stylesheet_directory() . '/style.css') | |
); |
This file contains hidden or 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
/* | |
Theme Name: WH HTML Theme | |
Theme URI: https://wordpress-handbuch.com | |
Author: WordPress-Handbuch | |
Author URI: https://wordpress-handbuch.com | |
Description: Just the meta tags for building a style.css file from the scratch | |
Version: 0.1 | |
License: GNU General Public License v2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
Text Domain: whhtmltheme |
This file contains hidden or 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
body { | |
background-color: #00ffff; | |
color: #0000ff; | |
} | |
.wp-block { | |
max-width: 300px; | |
} | |
.wp-block[data-align="wide"] { | |
max-width: 500px; | |
} |
This file contains hidden or 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 | |
/** | |
* WH HTML Vorlage functions and definitions | |
* | |
* @link @link https://developer.wordpress.org/themes/basics/theme-functions/ | |
* | |
* @package WH_HTML_Vorlage | |
*/ | |
/** |
This file contains hidden or 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 | |
/* | |
Plugin Name: WH Eyecatcher | |
Plugin URI: https://wordpress-handbuch.com/wh-eyecatcher | |
Description: Add a floating slogan to eyery page of your website | |
Version: 1.0.2 | |
Author: WordPress-Handbuch | |
Author URI: https://wordpress-handbuch.com | |
License: GPL v2 or later | |
Copyright 2019 Richard Eisenmenger |