Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

extra 2011 layout

By: Zeaks on Aug 5th, 2011  |  syntax: PHP  |  size: 1.09 KB  |  hits: 277  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. add_filter( 'twentyeleven_layouts', 'twentyeleven_layouts_wide' );
  2. add_action( 'twentyeleven_enqueue_layouts', 'twentyeleven_enqueue_layouts_wide' );
  3.  
  4. function twentyeleven_layouts_wide() {
  5.         $layout_options = array(
  6.                 'content-sidebar' => array(
  7.                         'value' => 'content-sidebar',
  8.                         'label' => __( 'Content on left', 'twentyeleven' ),
  9.                         'thumbnail' => get_template_directory_uri() . '/inc/images/content-sidebar.png',
  10.                 ),
  11.                 'sidebar-content' => array(
  12.                         'value' => 'sidebar-content',
  13.                         'label' => __( 'Content on right', 'twentyeleven' ),
  14.                         'thumbnail' => get_template_directory_uri() . '/inc/images/sidebar-content.png',
  15.                 ),
  16.                 'content-wide' => array(
  17.                         'value' => 'content-wide',
  18.                         'label' => __( 'Full width', 'twentyeleven' ),
  19.                         'thumbnail' => get_stylesheet_directory_uri() . '/images/content_wide.png',
  20.                 ),
  21.                 'content' => array(
  22.                         'value' => 'content',
  23.                         'label' => __( 'One-column, no sidebar', 'twentyeleven' ),
  24.                         'thumbnail' => get_template_directory_uri() . '/inc/images/content.png',
  25.                 ),
  26.         );
  27.  
  28.         return apply_filters( 'twentyeleven_layouts_wide', $layout_options );