' . __( 'Pages:', '_s' ),
- 'after' => '
',
- ) );
- ?>
-
-
-
-
-
- '', '' ); ?>
- diff --git a/functions.php b/functions.php index 8d4e604e..eb4682de 100644 --- a/functions.php +++ b/functions.php @@ -83,9 +83,6 @@ function _s_scripts() { if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); - - if ( is_singular() && wp_attachment_is_image() ) - wp_enqueue_script( '_s-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' ); } add_action( 'wp_enqueue_scripts', '_s_scripts' ); diff --git a/image.php b/image.php deleted file mode 100644 index beab1d71..00000000 --- a/image.php +++ /dev/null @@ -1,78 +0,0 @@ - - -
- - diff --git a/inc/extras.php b/inc/extras.php index cbcdb08e..211e9ee1 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -34,22 +34,6 @@ function _s_body_classes( $classes ) { } add_filter( 'body_class', '_s_body_classes' ); -/** - * Filter in a link to a content ID attribute for the next/previous image links - * on image attachment pages. - */ -function _s_enhanced_image_navigation( $url, $id ) { - if ( ! is_attachment() && ! wp_attachment_is_image( $id ) ) - return $url; - - $image = get_post( $id ); - if ( ! empty( $image->post_parent ) && $image->post_parent != $id ) - $url .= '#main'; - - return $url; -} -add_filter( 'attachment_link', '_s_enhanced_image_navigation', 10, 2 ); - /** * Filters wp_title to print a neat