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

PHP bug fixing #121

Merged
merged 1 commit into from
Aug 7, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>