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
<div class="bg"> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 520 300" shape-rendering="geometricPrecision" text-rendering="geometricPrecision"> | |
<style> | |
#group-25-group { | |
-webkit-animation: 4s linear forwards group-25_scale; | |
animation: 4s linear forwards group-25_scale | |
} | |
#group-25 { |
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
-- Create database: `prefix_zichtnieuws` | |
CREATE DATABASE IF NOT EXISTS `prefix_zichtnieuws` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; | |
USE `prefix_zichtnieuws`; | |
-- Create table `comments` including it's structure | |
DROP TABLE IF EXISTS `comments`; | |
CREATE TABLE IF NOT EXISTS `comments` ( | |
`ID` bigint(20) unsigned NOT NULL, | |
`post_id` bigint(20) NOT NULL, | |
`author_name` varchar(100) NOT NULL, |
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 | |
/** | |
* Strips url from obsolete stuff, for prettier display | |
* @param string $url The url | |
* @return string The cleaned up & pretty url for displaying | |
*/ | |
function studio_strip_url( $url ) { | |
return rtrim( str_replace(array( 'https://', 'http://', 'mailto:', 'tel:', 'www.' ), '', $url), '/' ); | |
} |
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
<html> | |
<head> | |
<!-- Chrome, Firefox OS and Opera --> | |
<meta name="theme-color" content="#177EB2"> | |
<!-- Windows Phone --> | |
<meta name="msapplication-navbutton-color" content="#177EB2"> | |
<!-- iOS Safari --> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="apple-mobile-web-app-status-bar-style" content="default"> | |
</head> |
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 | |
/** | |
* Registers all ShortCode_* methods | |
*/ | |
static public function Register_ShortCodes() { | |
// part of string to search for | |
$keyword = 'ShortCode_'; | |
// loop all class methods | |
foreach( get_class_methods(__CLASS__) as $method ) { |
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 | |
/** | |
* Modify TinyMCE | |
* | |
* @param array $in | |
* @return array $in | |
*/ | |
function my_tiny_mce_before_init( $in ) { | |
# customize the buttons |
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 | |
wp_die('You pasted the code without reading it...'); |
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 | |
filter_gettext( function($key, $translation, $domain) { | |
if( $key == $translation ) { } | |
if( $domain =='' ) { $domain = 'domain'; } | |
return __($key, $domain); | |
}); |
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 custom_admin_color_scheme() { | |
wp_admin_css_color( | |
'scheme_name', | |
__('Scheme Name', 'domain'), | |
admin_url("/css/colors/scheme_name/colors.css"), | |
array('#07273E', '#14568A', '#07273E', '#07273E'), | |
array('base' => '#e5f8ff', 'focus' => '#fff', 'current' => '#fff') | |
); | |
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_filter( 'enter_title_here', function( $title ) { | |
if( get_post_type() == 'page' ) { | |
$title = __('Vul een paginatitel in', 'domain'); | |
} elseif( get_post_type() == 'post' ) { | |
$title = __('Vul een korte en bondige titel in', 'domain'); | |
} | |
return $title; | |
}); |
NewerOlder