Added Bluesky to social accounts

As Twitter is becoming more and more of a muckraker, the alternative should be shown here as well.
This commit is contained in:
Robert Pfotenhauer 2024-11-19 11:02:33 +01:00
commit 56f5460839
5 changed files with 15 additions and 0 deletions

View file

@ -29,6 +29,7 @@ blog.path = "blog"
blog.string = "Blog"
; Social account
social.bluesky = ""
social.twitter = ""
social.facebook = ""
social.instagram = ""

View file

@ -397,6 +397,9 @@ span.required {
<input name="blog_copyright" value="" placeholder="(c) Your name.">
<br/>
<br/>
<label for="social_bluesky">Bluesky Link:</label>
<input name="social_bluesky" type="url" value="" placeholder="https://bsky.app/profile/username.bsky.social">
<br/>
<label for="social_twitter">Twitter Link:</label>
<input name="social_twitter" type="url" value="" placeholder="https://twitter.com/gohtmly">
<br/>

View file

@ -199,6 +199,12 @@
<br>
<h4><?php echo i18n('Social_Media');?></h4>
<hr>
<div class="form-group row">
<label for="social.bluesky" class="col-sm-2 col-form-label">Bluesky</label>
<div class="col-sm-10">
<input type="text" name="-config-social.bluesky" class="form-control" id="social.bluesky" value="<?php echo config('social.bluesky');?>" placeholder="https://bsky.app/profile/username.bsky.social">
</div>
</div>
<div class="form-group row">
<label for="social.twitter" class="col-sm-2 col-form-label">Twitter</label>
<div class="col-sm-10">

View file

@ -12,6 +12,7 @@
"blog.enable",
"blog.path",
"blog.string",
"social.bluesky",
"social.twitter",
"social.facebook",
"social.instagram",

View file

@ -2469,6 +2469,7 @@ function tab($p)
// Social links
function social($class = null)
{
$bluesky = config('social.bluesky');
$twitter = config('social.twitter');
$facebook = config('social.facebook');
$instagram = config('social.instagram');
@ -2482,6 +2483,9 @@ function social($class = null)
$social .= '<div class="social-logo ' . $class . '">';
$social .= '<link rel="stylesheet" id="social-logo-style" href="'. site_url() .'system/resources/css/social-logos.css" type="text/css" media="all">';
if (!empty($bluesky)) {
$social .= '<a class="social-logo-bluesky" href="' . $bluesky . '" target="_blank" rel="nofollow"><span class="screen-reader-text">Bluesky</span></a>';
}
if (!empty($twitter)) {
$social .= '<a class="social-logo-x" href="' . $twitter . '" target="_blank" rel="nofollow"><span class="screen-reader-text">Twitter</span></a>';
}