Making WordPress.org


Ignore:
Timestamp:
05/02/2014 09:43:28 PM (12 years ago)
Author:
coffee2code
Message:

Code Reference: Various template and style improvements. props nicolealleyinteractivecom

  • Add plugin and theme handbook templates
  • Refactor templates
  • Refactor SCSS/CSS
  • SCSS/CSS cleanups
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/functions.php

    r566 r591  
    4040
    4141add_action( 'init', __NAMESPACE__ . '\\init' );
    42 
     42add_filter( 'handbook_post_types', __NAMESPACE__ . '\\filter_handbook_post_types' );
    4343
    4444function init() {
     
    5858}
    5959
     60/**
     61* handbook post_type filter function
     62*/
     63function filter_handbook_post_types( $types ) {
     64    return array( 'theme', 'plugin' );
     65}
    6066
    6167/**
     
    246252        ),
    247253        'public'                => true,
     254        // Hierarchical x 2 to enable (.+) rather than ([^/]+) for rewrites.
    248255        'hierarchical'          => true,
    249256        'rewrite'               => array( 'slug' => 'reference/files', 'hierarchical' => true ),
     
    300307    wp_enqueue_style( 'open-sans', '//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,400,300,600' );
    301308    wp_enqueue_style( 'wporg-developer-style', get_stylesheet_uri(), array(), '2' );
    302     wp_enqueue_style( 'wp-dev-sass-compiled', get_template_directory_uri() . '/main.css', array( 'wporg-developer-style' ), '20140425' );
     309    wp_enqueue_style( 'wp-dev-sass-compiled', get_template_directory_uri() . '/stylesheets/main.css', array( 'wporg-developer-style' ), '20140425' );
    303310    wp_enqueue_script( 'wporg-developer-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );
    304311    wp_enqueue_script( 'wporg-developer-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
Note: See TracChangeset for help on using the changeset viewer.