๐
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 | |
| /** | |
| * Template Name: Google+ Feed | |
| */ | |
| /** | |
| * A WordPress page template for a Google+ feed. | |
| * | |
| * @author Dominik Schilling |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Box Shadow</title> | |
| <style> | |
| .box { | |
| height: 150px; | |
| width: 300px; | |
| margin: 20px; |
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
| blueprint: | |
| homeassistant: | |
| min_version: 2024.10.0 | |
| name: Z2M - Hue Dimmer switch v2 (929002398602) (MQTT trigger) | |
| description: | |
| "Controller automation for actions triggered by Philips Hue Dimmer switch v2 using Zigbee2MQTT. | |
| Use the controller name as defined in Z2M e.g. (Livingroom Switch). | |
| Version 2024.12.08" | |
| # Based on different Blueprints. See sources. | |
| domain: automation |
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
| /** | |
| * Add a X-XSS-Protection = 0 header for post previews to allow | |
| * Webkit browsers to render iframe and flash objects. | |
| * @see: http://core.trac.wordpress.org/ticket/20148 | |
| * | |
| * @param $headers array Already added header items. | |
| * @param $object WP The query variables. | |
| * | |
| * @return array | |
| */ |
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
| #!/bin/bash | |
| # Checks WordPress core for unused images. | |
| # Requires ack2: http://beyondgrep.com/ | |
| # | |
| # The script needs to be placed inside the WordPress root | |
| # directory or add the path to the WordPress directory via a | |
| # parameter. Example: $ ./wp-search-images ~/Sites/WordPress/ | |
| # | |
| # Define the image paths in img_paths[] | |
| # |
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: Filename-based cache busting | |
| * Version: 0.3 | |
| * Description: Filename-based cache busting for WordPress scripts/styles. | |
| * Author: Dominik Schilling | |
| * Author URI: https://dominikschilling.de/ | |
| * Plugin URI: https://gist.github.com/ocean90/1966227/ | |
| * | |
| * License: GPLv2 or later |
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
| /** | |
| * For site admins: Print some debug infos into backend footer. | |
| * - Time | |
| * - DB Queries | |
| * - Memory Usage | |
| * - Cache Hts/Misses | |
| * - Active Plugins | |
| * | |
| * @param string $text Existing footer text. | |
| * |
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
| /** | |
| * Hook into the backend and load scripts and | |
| * init metabox. | |
| */ | |
| function ds_gist2wordpress_admin() { | |
| add_action( 'wp_ajax_gist', 'ds_gistify' ); | |
| add_action( 'admin_print_scripts-post.php', 'ds_gist_js' ); | |
| add_action( 'admin_print_scripts-post-new.php', 'ds_gist_js' ); |
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: Auto-embeds Disabler | |
| * Version: 0.1 | |
| * Description: Disables the auto-embeds function in WordPress 3.5 | |
| * Author: Dominik Schilling | |
| * Author URI: http://wphelper.de/ | |
| * Plugin URI: http://wpgrafie.de/1078/ | |
| * | |
| * |
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 | |
| if ( ds_is_taxonomy_assigned_to_post_type( 'schnipsel' ) ) | |
| echo '<h3>Schnipsel Archiv</h3>'; | |
| else | |
| echo '<h3>Archiv</h3>'; |
NewerOlder