Skip to content

Commit d2ecc6b

Browse files
authored
Merge pull request #3 from L-Rehman/replace_hardcoded_urls
Replace hardcoded links with function
2 parents 68645fa + fbaacbe commit d2ecc6b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

header.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ functionality_storage: "denied",
5151

5252
<meta charset="<?php bloginfo( 'charset' ); ?>">
5353
<meta name="viewport" content="width=device-width, initial-scale=1">
54-
<link rel="profile" href="http://gmpg.org/xfn/11">
54+
<link rel="profile" href="https://gmpg.org/xfn/11">
5555
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
5656

5757
<?php wp_head(); ?>
@@ -74,14 +74,14 @@ functionality_storage: "denied",
7474
<!-- WordPress HTML -->
7575
<header id="masthead" class="site-header" role="banner">
7676
<div class="site-branding">
77-
<a href="https://finds.org.uk" title="Go to the homepage"><img src="https://finds.org.uk/assets/logos/pas.jpg"
77+
<a href="<?= get_base_url(); ?>" title="Go to the homepage"><img src="<?= get_base_url(); ?>/assets/logos/pas.jpg"
7878
alt="The Scheme's logo"
7979
width="213" height="104"/></a>
8080
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
8181
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
8282
</div><!-- .site-branding -->
8383

84-
<div class="breadcrumbs" xmlns:v="http://rdf.data-vocabulary.org/#">
84+
<div class="breadcrumbs" xmlns:v="https://rdf.data-vocabulary.org/#">
8585
You are here:
8686
<?php if(function_exists('bcn_display'))
8787
{
@@ -104,8 +104,8 @@ functionality_storage: "denied",
104104
echo
105105

106106
'<div class="site-sponsorship">
107-
<a href="http://www.hlf.org.uk" title="The Heritage Lottery Fund website"><img class="sponsors-hlf"
108-
src="https://finds.org.uk/assets/logos/HLF_english_compact_pantone_150px.jpg"
107+
<a href="https://www.hlf.org.uk" title="The Heritage Lottery Fund website"><img class="sponsors-hlf"
108+
src="<?= get_base_url(); ?>/assets/logos/HLF_english_compact_pantone_150px.jpg"
109109
alt="The Heritage Lottery Fund logo"/></a>
110110
</div><!-- .site-sponsorship -->';
111111
}

0 commit comments

Comments
 (0)