WordPress.org

Making WordPress.org

Changeset 879


Ignore:
Timestamp:
09/29/14 07:04:04 (3 years ago)
Author:
coffee2code
Message:

Handbook plugin: add shortcodes for callout boxes:

  • Adds shortcodes [info], [tip], [alert], [warning]
  • Adds default styling

Fixes #1.
props DrewAPicture.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/handbook.php

    r800 r879  
    66 */ 
    77 
     8require_once dirname( __FILE__ ) . '/inc/callout-boxes.php'; 
    89require_once dirname( __FILE__ ) . '/inc/glossary.php'; 
    910require_once dirname( __FILE__ ) . '/inc/table-of-contents.php'; 
     
    2930        } 
    3031 
     32        add_action( 'wp_enqueue_scripts', array( __CLASS__, 'enqueue_styles' ) ); 
     33    } 
     34 
     35    static public function enqueue_styles() { 
     36        wp_enqueue_style( 'wporg-handbook-css', plugins_url( '/stylesheets/callout-boxes.css', __FILE__ ), array(), '20140928' ); 
    3137    } 
    3238 
Note: See TracChangeset for help on using the changeset viewer.