-
Notifications
You must be signed in to change notification settings - Fork 0
Update theme-compat header and footer #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Changes from all commits
e57ac78
ae96e22
8b0cbb9
281b8fc
d25935c
bf1c800
7f0b143
4f91c3d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,44 +18,34 @@ | |
| <!DOCTYPE html> | ||
| <html <?php language_attributes(); ?>> | ||
| <head> | ||
| <link rel="profile" href="https://gmpg.org/xfn/11" /> | ||
| <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" /> | ||
|
|
||
| <title><?php echo wp_get_document_title(); ?></title> | ||
|
|
||
| <link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" /> | ||
| <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> | ||
|
|
||
| <?php if ( file_exists( get_stylesheet_directory() . '/images/kubrickbgwide.jpg' ) ) { ?> | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removes (check for) Kubrick background image |
||
| <style type="text/css" media="screen"> | ||
|
|
||
| <meta charset="<?php bloginfo( 'charset' ); ?>" /> | ||
| <title><?php echo wp_get_document_title(); ?></title> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <link rel="profile" href="https://gmpg.org/xfn/11" /> | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| <style> :where(#header) { padding-left: 5%; padding-right: 5%; } </style> | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It could be a small amount of space instead, such as |
||
| <link rel="stylesheet" href="<?php echo esc_url( get_stylesheet_uri() ); ?>" media="all" /> | ||
| <?php | ||
| // Checks to see whether it needs a sidebar. | ||
| if ( empty( $withcomments ) && ! is_single() ) { | ||
| ?> | ||
| #page { background: url("<?php bloginfo( 'stylesheet_directory' ); ?>/images/kubrickbg-<?php bloginfo( 'text_direction' ); ?>.jpg") repeat-y top; border: none; } | ||
| <?php } else { // No sidebar. ?> | ||
| #page { background: url("<?php bloginfo( 'stylesheet_directory' ); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; } | ||
| <?php } ?> | ||
|
|
||
| </style> | ||
| <?php } ?> | ||
|
|
||
| <?php | ||
| if ( is_singular() ) { | ||
| wp_enqueue_script( 'comment-reply' ); | ||
| } | ||
| ?> | ||
|
|
||
| <?php wp_head(); ?> | ||
| if ( is_singular() && pings_open() ) { | ||
| echo '<link rel="pingback" href="' . esc_url( get_bloginfo( 'pingback_url' ) ) . '" />' . "\n"; | ||
| } | ||
| if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { | ||
| wp_enqueue_script( 'comment-reply' ); | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. retains the |
||
| } | ||
| ?> | ||
| <?php wp_head(); ?> | ||
| </head> | ||
|
|
||
| <body <?php body_class(); ?>> | ||
| <?php wp_body_open(); ?> | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. adds |
||
| <div id="page"> | ||
|
|
||
| <div id="header" role="banner"> | ||
| <div id="headerimg"> | ||
| <h1><a href="<?php echo home_url(); ?>/"><?php bloginfo( 'name' ); ?></a></h1> | ||
| <div class="description"><?php bloginfo( 'description' ); ?></div> | ||
| <?php if ( get_bloginfo( 'name' ) ) : ?> | ||
| <div id="header" role="banner"> | ||
| <div id="headerimg"> | ||
| <h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. escapes |
||
| <div class="description"><?php bloginfo( 'description' ); ?></div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <hr /> | ||
| <hr aria-hidden="true" /> | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. retains horizontal rule for visual separation, but hides it from screen readers because it has no semantic value |
||
| <?php | ||
| endif; | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removes horizontal rule, footer, and the design credit (which does not fit the active theme)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trac 50171 did not remove the design credit, but the changes proposed in this PR would remove some vestiges of the Kubrick design.