This repository has been archived by the owner. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from jmr06005/master
PHP bug fixing
- Loading branch information
Showing
2 changed files
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |