Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created February 28, 2017 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshfeck/e3b87a04a18f9569c0dae555e5736705 to your computer and use it in GitHub Desktop.
Save joshfeck/e3b87a04a18f9569c0dae555e5736705 to your computer and use it in GitHub Desktop.
fixes for the alsa theme
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<title><?php
if ( is_single() ) { single_post_title(); }
elseif ( is_home() || is_front_page() ) { bloginfo('name'); print ' | '; bloginfo('description'); get_page_number(); }
elseif ( is_page() ) { single_post_title(''); }
elseif ( is_search() ) { bloginfo('name'); print ' | Search results for ' . wp_specialchars($s); get_page_number(); }
elseif ( is_404() ) { bloginfo('name'); print ' | Not Found'; }
else { bloginfo('name'); wp_title('|'); get_page_number(); }
?></title>
<!-- ****** faviconit.com favicons ****** -->
<link rel="shortcut icon" href="/favicon.ico">
<link rel="icon" sizes="16x16 32x32 64x64" href="/wp-content/themes/asla/faviconit/favicon.ico">
<link rel="icon" type="image/png" sizes="196x196" href="/wp-content/themes/asla/faviconit/favicon-192.png">
<link rel="icon" type="image/png" sizes="160x160" href="/wp-content/themes/asla/faviconit/favicon-160.png">
<link rel="icon" type="image/png" sizes="96x96" href="/wp-content/themes/asla/faviconit/favicon-96.png">
<link rel="icon" type="image/png" sizes="64x64" href="/wp-content/themes/asla/faviconit/favicon-64.png">
<link rel="icon" type="image/png" sizes="32x32" href="/wp-content/themes/asla/faviconit/favicon-32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/wp-content/themes/asla/faviconit/favicon-16.png">
<link rel="apple-touch-icon" href="/wp-content/themes/asla/faviconit/favicon-57.png">
<link rel="apple-touch-icon" sizes="114x114" href="/wp-content/themes/asla/faviconit/favicon-114.png">
<link rel="apple-touch-icon" sizes="72x72" href="/wp-content/themes/asla/faviconit/favicon-72.png">
<link rel="apple-touch-icon" sizes="144x144" href="/wp-content/themes/asla/faviconit/favicon-144.png">
<link rel="apple-touch-icon" sizes="60x60" href="/wp-content/themes/asla/faviconit/favicon-60.png">
<link rel="apple-touch-icon" sizes="120x120" href="/wp-content/themes/asla/faviconit/favicon-120.png">
<link rel="apple-touch-icon" sizes="76x76" href="/wp-content/themes/asla/faviconit/favicon-76.png">
<link rel="apple-touch-icon" sizes="152x152" href="/wp-content/themes/asla/faviconit/favicon-152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/wp-content/themes/asla/faviconit/favicon-180.png">
<meta name="msapplication-TileColor" content="#FFFFFF">
<meta name="msapplication-TileImage" content="/wp-content/themes/asla/faviconit/favicon-144.png">
<meta name="msapplication-config" content="/wp-content/themes/asla/faviconit/browserconfig.xml">
<!-- ****** faviconit.com favicons ****** -->
<meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/bootstrap_style.css" />
<link rel="stylesheet" type="text/css" href="http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php // wp_head(); ?>
<link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>" title="<?php printf( __( '%s latest posts', 'hbd-theme' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />
<link rel="alternate" type="application/rss+xml" href="<?php bloginfo('comments_rss2_url') ?>" title="<?php printf( __( '%s latest comments', 'hbd-theme' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<!--<script src="https://code.jquery.com/jquery-3.0.0.min.js"></script> -->
<!--<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/scripts.js"></script>-->
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/bootstrap.min.js"></script>
<script src="https://use.typekit.net/wrp2mdp.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
<?php wp_head(); ?>
<script>
jQuery(document).on('click','.navbar-collapse.in',function(e) {
if( jQuery(e.target).is('a') && jQuery(e.target).attr('class') != 'dropdown-toggle' ) {
jQuery(this).collapse('hide');
}
});
</script>
</head>
<body>
<div id="wrapper" class="hfeed">
<nav class="navbar navbar-inverse navbar-static-top" role="navigation" id="mobile_nav">
<div class="container">
<div class="navbar-header">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo content_url();?>/uploads/2016/06/asla_logo-w.png" class="mobile_logo" /></a>
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<?php
wp_nav_menu( array( 'theme_location' => 'primary') ); ?>
<?php
wp_nav_menu( array( 'theme_location' => 'secondary') ); ?>
</div>
</nav>
</div>
<div class="left_nav_bar">
<div class="left_nav_bar_top">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( home_url( '/' ) ); ?>/wp-content/uploads/2016/03/asla_logo.png" /></a>
<p>
<?php
wp_nav_menu( array('container_class' => 'menu-top',
'theme_location' => 'primary') ); ?>
</p>
</div>
<div class="left_nav_bar_bottom">
<nav id="desktop_nav">
<?php
wp_nav_menu( array('container_class' => 'menu-footer',
'theme_location' => 'secondary') ); ?>
</nav>
</div>
</div>
<div id="main">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment