Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Merge pull request #121 from jmr06005/master
Browse files Browse the repository at this point in the history
PHP bug fixing
  • Loading branch information
jmr06005 committed Aug 7, 2015
2 parents f2767e1 + ca81b4c commit f445f44
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
58 changes: 29 additions & 29 deletions inc/ie-hacks.php
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
<?php
function htmlShiv(){
$template = get_template_directory_uri();
echo '<!--[if lt IE 9]>
<script src="' . $template . '/js/html5shiv/html5shiv.min.js"></script>
<script src="' . $template . '/js/html5shiv/html5shiv-printshiv.min.js"></script>
<![endif]-->';

//needed for IE7 grid hack
/*echo '<!--[if lt IE 8]>
<link href="'. $template .'/css/bootstrap.css" rel="stylesheet">
<![endif]-->'; */
}

add_action( 'wp_head', htmlShiv, 1 );

function ieBootstrap(){
$template = get_template_directory_uri();
echo '<!--[if lt IE 9]>
<script src="' . $template . '/js/respond.min.js"></script>
<![endif]-->';
/*
echo '<!--[if lt IE 8]>
<link href="'. $template .'/css/bootstrap-ie7.css.php" rel="stylesheet">
<![endif]-->';
*/
}
add_action( 'wp_head', ieBootstrap, 99 );

<?php
function htmlShiv(){
$template = get_template_directory_uri();
echo '<!--[if lt IE 9]>
<script src="' . $template . '/js/html5shiv/html5shiv.min.js"></script>
<script src="' . $template . '/js/html5shiv/html5shiv-printshiv.min.js"></script>
<![endif]-->';

//needed for IE7 grid hack
/*echo '<!--[if lt IE 8]>
<link href="'. $template .'/css/bootstrap.css" rel="stylesheet">
<![endif]-->'; */
}

add_action( 'wp_head', 'htmlShiv', 1 );

function ieBootstrap(){
$template = get_template_directory_uri();
echo '<!--[if lt IE 9]>
<script src="' . $template . '/js/respond.min.js"></script>
<![endif]-->';
/*
echo '<!--[if lt IE 8]>
<link href="'. $template .'/css/bootstrap-ie7.css.php" rel="stylesheet">
<![endif]-->';
*/
}
add_action( 'wp_head', 'ieBootstrap', 99 );

?>
18 changes: 9 additions & 9 deletions inc/site-title.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
if(strlen($secondary) > 0 && strlen($secondarylink) > 0){
if(substr($secondarylink,0,4) != 'http'){
$secondarylink = 'http://'.$secondarylink;
}
echo '<p id="uc-site-parent" class="'.$parentColor.'"><a href="'.$secondarylink.'">'.$secondary.'</a></p>';
}
?>
<h1 id="uc-site-title" class="<?php echo $headingColor; ?>"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php
if(strlen($secondary) > 0 && strlen($secondarylink) > 0){
if(substr($secondarylink,0,4) != 'http'){
$secondarylink = 'http://'.$secondarylink;
}
echo '<p id="uc-site-parent"><a href="'.$secondarylink.'">'.$secondary.'</a></p>';
}
?>
<h1 id="uc-site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>

0 comments on commit f445f44

Please sign in to comment.