関数 get_sidebar()
2014/12/25
定義ファイル :/blog/wp-includes/general-template.php 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | function get_sidebar( $name = null ) { do_action( 'get_sidebar', $name ); $templates = array(); $name = (string) $name; if ( '' !== $name ) $templates[] = "sidebar-{$name}.php"; $templates[] = 'sidebar.php'; // Backward compat code will be removed in a future release if ('' == locate_template($templates, true)) load_template( ABSPATH . WPINC . '/theme-compat/sidebar.php'); } |