Google Mails has somehting like this in the select labels dropdown.
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 | |
function demo_enqueue_scripts() { | |
wp_enqueue_style( 'twentysixteen', get_template_directory_uri() . '/style.css' ); | |
wp_enqueue_style( 'demo', get_stylesheet_directory_uri() . '/style.css', array( 'demo_enqueue_scripts' ) ); | |
} | |
add_action( 'wp_enqueue_scripts', 'uitgelichteafbeelding_enqueue_scripts' ); | |
function demo_init() { |
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 | |
class AseTheme { | |
public function __construct() { | |
add_action( 'after_setup_theme', array( $this, 'after_setup_theme' ) ); | |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); | |
// ... | |
} |
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
server { | |
listen 80; | |
server_name *.dev; | |
root /Users/remco/Websites/$host/; | |
access_log /usr/local/etc/nginx/logs/default.access.log main; | |
location / { | |
include /Users/remco/Websites/php-fpm.conf; |
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
# jQuery UI Droppable in iframe element | |
* http://jqueryui.com/draggable/ | |
* http://jqueryui.com/droppable/ | |
* http://stackoverflow.com/a/12171319 |
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
jQuery( document ).ready( function( $ ) { | |
// Image | |
// @see https://github.com/WordPress/WordPress/blob/4.1/wp-includes/js/media-editor.js#L721-L739 | |
$( '.pronamic-image-control' ).on( 'click', '.set-post-image', function( event ) { | |
event.preventDefault(); | |
var $imageControl = $( event.delegateTarget ); | |
var config = $imageControl.data( 'image-control' ); |
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 | |
class PronamicSponsorsPlugin { | |
/** | |
* Constructs and initalizes an sponsor plugin | |
* | |
* @param string $file | |
*/ | |
public function __construct( $file ) { | |
$this->file = $file; |
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 ( is_post_type_archive() ) { | |
$object = get_queried_object(); | |
if ( isset( $object->rewrite ) && is_array( $object->rewrite ) && isset( $object->rewrite['slug'] ) ) { | |
$slug = $object->rewrite['slug']; | |
$page = get_page_by_path( $slug ); |