_s: Formatting changes:

- Reduce element comments to either the element id or the first element
class.
- Tabs > Spaces.
- Improve adherence to formatting guidelines.
This commit is contained in:
obenland 2013-03-04 16:41:38 -08:00
parent c7f2b7a1ee
commit c4f2aa32ce
18 changed files with 301 additions and 307 deletions

View file

@ -122,12 +122,12 @@ add_action( 'after_setup_theme', '_s_register_custom_background' );
*/
function _s_widgets_init() {
register_sidebar( array(
'name' => __( 'Sidebar', '_s' ),
'id' => 'sidebar-1',
'name' => __( 'Sidebar', '_s' ),
'id' => 'sidebar-1',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
) );
}
add_action( 'widgets_init', '_s_widgets_init' );
@ -138,9 +138,9 @@ add_action( 'widgets_init', '_s_widgets_init' );
function _s_scripts() {
wp_enqueue_style( 'style', get_stylesheet_uri() );
wp_enqueue_script( 'navigation', get_template_directory_uri() . '/js/navigation.js', null, '20120206', true );
wp_enqueue_script( 'navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true );
wp_enqueue_script( 'skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array( ), '20130115', true );
wp_enqueue_script( 'skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );