Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (23 sloc) 774 Bytes
Plugin Name: Key Shortcut Formatter
Plugin URI:
Description: Takes a special DOM class and adds keyboard like graphics
Version: 0.1
Author: Jonas Grønås Drange
Author URI:
License: GPL v3
function javascript() {
$plugin_url = trailingslashit( get_bloginfo('wpurl') ).PLUGINDIR.'/'. dirname( plugin_basename(__FILE__) );
if (!is_admin()) {
wp_enqueue_script('myscript', $plugin_url . '/js.js');
function style() {
wp_register_style( 'key_shortcut_formatter', plugins_url('style.css', __FILE__) );
wp_enqueue_style( 'key_shortcut_formatter' );
add_action( 'wp_print_scripts', 'javascript' );
add_action( 'wp_enqueue_scripts', 'style' );
Jump to Line
Something went wrong with that request. Please try again.