Skip to content

Instantly share code, notes, and snippets.

View dartokloning's full-sized avatar

Darto KLoning dartokloning

View GitHub Profile
<?php
class WP_HTML_Compression {
protected $compress_css = true;
protected $compress_js = true;
protected $info_comment = true;
protected $remove_comments = true;
protected $html;
public function __construct($html) {
if (!empty($html)) {
@dartokloning
dartokloning / wordpress-plugin-iet_wp_tag_cloud.php
Created April 22, 2016 14:36 — forked from nfreear/wordpress-plugin-iet_wp_tag_cloud.php
Shortcode wrapper [tagcloud] around WordPress core function: `wp_tag_cloud` ♡ ©The Open University ♡ https://github.com/IET-OU
<?php
/*
Plugin Name: IET WP tag cloud
Plugin URI: https://github.com/IET-OU/oer-evidence-hub-org
Description: Shortcode wrapper [tagcloud] around WordPress core function: `wp_tag_cloud` [LACE]
Author: Nick Freear [@IET-OU]
Author URI: https://github.com/IET-OU
Version: 0.1
*/
@dartokloning
dartokloning / php character map generator
Created November 15, 2015 12:29 — forked from nviet/php character map generator
Generates a character map contains selected characters in a TrueType font to an image
<?php
/**
* PHP Character Map Generator
*
* Generates a character map contains selected characters in a TrueType font
* to an image. Require PHP 5 or higher with GD extension enabled
*
* Example:
* <code>
* <?php