Improve unsplash attribution link style

This commit is contained in:
Dale Davies
2022-06-03 23:27:28 +01:00
parent 52666c18fa
commit 19e98c0789
4 changed files with 3 additions and 4 deletions

View File

@@ -79,7 +79,7 @@ function load_cache_unsplash_data() {
$description = $photo->description;
}
$unsplashdata = new stdClass();
$unsplashdata->attribution = '<a target="_blank" rel="noopener" href="'.$photo->links['html'].'">'.$description.'</a> by <a target="_blank" rel="noopener" href="'.$photo->user['links']['html'].'">'.$photo->user['name'].'</a>';
$unsplashdata->attribution = '<a target="_blank" rel="noopener" href="'.$photo->links['html'].'">'.$description.' by '.$photo->user['name'].'</a>';
$unsplashdata->imagedatauri = 'data: '.(new finfo(FILEINFO_MIME_TYPE))->buffer($response).';base64,'.base64_encode($response);
return $unsplashdata;
});

View File

@@ -78,7 +78,6 @@ body {
a {
color: inherit;
text-decoration: none;
border-bottom: 1px dotted #ffffff70;
}
}

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{# noindex}}<meta name="robots" content="noindex">{{/ noindex}}
<link rel="stylesheet" href="/assets/css/styles.9077780cf1d7c1a7fc4e.min.css">
<link rel="stylesheet" href="/assets/css/styles.0c1a47459cd078d3c71d.min.css">
<link rel="stylesheet" href="/background-css.php">
<link rel="stylesheet" href="/assets/css/weather-icons.min.css">
<link rel="icon" type="image/png" href="/favicon.png">