Update twentyfifteen & twentysixteen

Using the new social icon and call it using the default social() function.
This commit is contained in:
danpros 2024-02-26 19:33:56 +07:00
commit 2afc6a234c
6 changed files with 64 additions and 29 deletions

View file

@ -274,6 +274,12 @@
<input type="text" name="-config-social.tiktok" class="form-control" id="social.tiktok" value="<?php echo config('social.tiktok');?>" placeholder="https://tiktok.com/@username"> <input type="text" name="-config-social.tiktok" class="form-control" id="social.tiktok" value="<?php echo config('social.tiktok');?>" placeholder="https://tiktok.com/@username">
</div> </div>
</div> </div>
<div class="form-group row">
<label for="social.youtube" class="col-sm-2 col-form-label">Youtube</label>
<div class="col-sm-10">
<input type="text" name="-config-social.youtube" class="form-control" id="social.youtube" value="<?php echo config('social.youtube');?>" placeholder="https://www.youtube.com/user/username">
</div>
</div>
<div class="form-group row"> <div class="form-group row">
<div class="col-sm-10"> <div class="col-sm-10">
<button type="submit" class="btn btn-primary"><?php echo i18n('Save_Config');?></button> <button type="submit" class="btn btn-primary"><?php echo i18n('Save_Config');?></button>

View file

@ -892,6 +892,18 @@ a:focus {
content: "\f220"; content: "\f220";
} }
.social-navigation a[href*="tiktok.com"]:before {
content:"\f108";
}
.social-navigation a[href*="linkedin.com"]:before {
content:"\f207";
}
.social-navigation a.social-logo-mastodon:before {
content:"\f10a";
}
.secondary-toggle { .secondary-toggle {
background-color: transparent; background-color: transparent;
border: 1px solid #eaeaea; border: 1px solid #eaeaea;
@ -6145,4 +6157,9 @@ ul.month {
display:block; display:block;
box-shadow: none; box-shadow: none;
border: none; border: none;
}
.social-logo a {
height:35px;
width:35px;
} }

View file

@ -893,6 +893,18 @@ a:focus {
content: "\f220"; content: "\f220";
} }
.social-navigation a[href*="tiktok.com"]:before {
content:"\f108";
}
.social-navigation a[href*="linkedin.com"]:before {
content:"\f207";
}
.social-navigation a.social-logo-mastodon:before {
content:"\f10a";
}
.secondary-toggle { .secondary-toggle {
background-color: transparent; background-color: transparent;
border: 1px solid #eaeaea; border: 1px solid #eaeaea;
@ -6152,4 +6164,9 @@ ul.month {
display:block; display:block;
box-shadow: none; box-shadow: none;
border: none; border: none;
}
.social-logo a {
height:35px;
width:35px;
} }

View file

@ -42,34 +42,12 @@
<aside class="widget widget_meta"> <aside class="widget widget_meta">
<h2 class="widget-title"><?php echo i18n("About");?></h2> <h2 class="widget-title"><?php echo i18n("About");?></h2>
<p><?php echo blog_description() ?></p> <p><?php echo blog_description() ?></p>
</aside> </aside>
<?php if(!empty(config('social.twitter')) || !empty(config('social.facebook'))):?>
<nav id="social-navigation" class="social-navigation" role="navigation"> <nav id="social-navigation" class="social-navigation" role="navigation">
<div class="menu-social-links-container"> <div class="menu-social-links-container">
<ul id="menu-social-links" class="menu"> <?php echo social();?>
<?php if(!empty(config('social.twitter'))):?>
<li class="menu-item">
<a href="<?php echo config('social.twitter');?>">
<span class="screen-reader-text">Twitter</span>
</a>
</li>
<?php endif;?>
<?php if(!empty(config('social.facebook'))):?>
<li class="menu-item">
<a href="<?php echo config('social.facebook');?>">
<span class="screen-reader-text">Facebook</span>
</a>
</li>
<?php endif;?>
<li class="menu-item">
<a href="<?php echo site_url();?>feed/rss">
<span class="screen-reader-text">RSS</span>
</a>
</li>
</ul>
</div> </div>
</nav> </nav>
<?php endif;?>
<aside class="widget search"> <aside class="widget search">
<form><input type="search" name="search" class="form-control" placeholder="<?php echo i18n('Type_to_search');?>"></form> <form><input type="search" name="search" class="form-control" placeholder="<?php echo i18n('Type_to_search');?>"></form>
</aside> </aside>

View file

@ -1027,6 +1027,18 @@ a:active {
content: "\f413"; content: "\f413";
} }
.social-navigation a[href*="tiktok.com"]:before {
content:"\f108";
}
.social-navigation a[href*="linkedin.com"]:before {
content:"\f207";
}
.social-navigation a.social-logo-mastodon:before {
content:"\f10a";
}
.post-navigation { .post-navigation {
border-top: 4px solid #1a1a1a; border-top: 4px solid #1a1a1a;
border-bottom: 4px solid #1a1a1a; border-bottom: 4px solid #1a1a1a;
@ -4071,4 +4083,13 @@ ul.month {
display:block; display:block;
box-shadow: none; box-shadow: none;
border: none; border: none;
}
.social-logo a {
height:35px;
width:35px;
}
.social-logo a:before {
line-height: 33px!important;
} }

View file

@ -121,11 +121,7 @@
</nav><!-- .main-navigation --> </nav><!-- .main-navigation -->
<nav aria-label="Footer Social Links Menu" role="navigation" class="social-navigation"> <nav aria-label="Footer Social Links Menu" role="navigation" class="social-navigation">
<div class="menu-social-links-container"> <div class="menu-social-links-container">
<ul class="social-links-menu" id="menu-social-links"> <?php echo social();?>
<?php if(!empty(config('social.twitter'))):?><li><a href="<?php echo config('social.twitter');?>"><span class="screen-reader-text">Twitter</span></a></li><?php endif;?>
<?php if(!empty(config('social.facebook'))):?><li><a href="<?php echo config('social.facebook');?>"><span class="screen-reader-text">Facebook</span></a></li><?php endif;?>
<li><a href="<?php echo site_url();?>feed/rss"><span class="screen-reader-text">RSS</span></a></li>
</ul>
</div> </div>
</nav> </nav>
<div class="site-info"> <div class="site-info">