twentyeleven_layouts

Return an array of layout options registered for Twenty Eleven.

Description

twentyeleven_layouts(); 

Usage

  1. if ( !function_exists( 'twentyeleven_layouts' ) ) { 
  2. require_once '/inc/theme-options.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = twentyeleven_layouts(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/theme-options.php  
  1. function twentyeleven_layouts() { 
  2. $layout_options = array( 
  3. 'content-sidebar' => array( 
  4. 'value' => 'content-sidebar',  
  5. 'label' => __( 'Content on left', 'twentyeleven' ),  
  6. 'thumbnail' => get_template_directory_uri() . '/inc/images/content-sidebar.png',  
  7. ),  
  8. 'sidebar-content' => array( 
  9. 'value' => 'sidebar-content',  
  10. 'label' => __( 'Content on right', 'twentyeleven' ),  
  11. 'thumbnail' => get_template_directory_uri() . '/inc/images/sidebar-content.png',  
  12. ),  
  13. 'content' => array( 
  14. 'value' => 'content',  
  15. 'label' => __( 'One-column, no sidebar', 'twentyeleven' ),  
  16. 'thumbnail' => get_template_directory_uri() . '/inc/images/content.png',  
  17. ),  
  18. ); 
  19.  
  20. return apply_filters( 'twentyeleven_layouts', $layout_options );