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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Box Shadow</title> | |
<style> | |
.box { | |
height: 150px; | |
width: 300px; | |
margin: 20px; |
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
/** | |
* 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 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 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 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 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>'; |
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
name: PHP_CodeSniffer | |
on: pull_request | |
jobs: | |
phpcs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 3.
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
Block,"__experimentalBorder.__experimentalSkipSerialization","__experimentalBorder.color","__experimentalBorder.radius","__experimentalBorder.style","__experimentalBorder.width","__experimentalLayout","__experimentalSelector","__unstablePasteTextInline","align","alignWide","anchor","className","color.__experimentalDuotone","color.__experimentalSkipSerialization","color.background","color.gradients","color.link","color.text","customClassName","html","inserter","multiple","reusable","spacing.margin","spacing.padding","typography.__experimentalFontFamily","typography.__experimentalFontStyle","typography.__experimentalFontWeight","typography.__experimentalLetterSpacing","typography.__experimentalTextDecoration","typography.__experimentalTextTransform","typography.fontSize","typography.lineHeight", | |
"Archives","—","—","—","—","—","—","—","—","true","—","—","—","—","—","—","—","—","—","—","false","—","—","—","—","—","—","—","—","—","—","—","—","—", | |
"Audio","—","—","—","—","—","—","—","—","true","—","true","—","—","— |
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
#compdef assh | |
# assh autocompletion for oh-my-zsh | |
# Requires: assh installed | |
# Author: Dominik Schilling (@ocean90) | |
# Install: | |
# Copy the file to ~/.oh-my-zsh/plugins/assh/_assh and add assh to the plugins list in your ~/.zshrc file. | |
# Resources: |
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 | |
/** | |
* Setzt die Seitenbasis für die Permalinkgenerierung auf /seite/ (Standard: /page/). | |
* | |
* @author Dominik Schilling | |
* @license GPLv2 | |
* @link http://wpgrafie.de/141/ | |
* | |
* @version 0.1 | |
*/ |
NewerOlder