mirror of
https://ghproxy.net/https://github.com/AlxMedia/incolor.git
synced 2025-08-26 14:55:19 +08:00
1.0.5
This commit is contained in:
parent
dd84e6f158
commit
00febe08f7
7 changed files with 11 additions and 50 deletions
|
@ -72,7 +72,7 @@
|
||||||
|
|
||||||
<?php if ( get_theme_mod( 'credit', 'on' ) == 'on' ): ?>
|
<?php if ( get_theme_mod( 'credit', 'on' ) == 'on' ): ?>
|
||||||
<div id="credit">
|
<div id="credit">
|
||||||
<p><?php esc_html_e('Powered by','incolor'); ?> <a href="<?php esc_url( __( 'https://wordpress.org', 'incolor' ) ); ?>" rel="nofollow">WordPress</a>. <?php esc_html_e('Theme by','incolor'); ?> <a href="http://alx.media" rel="nofollow">Alx</a>.</p>
|
<p><?php esc_html_e('Powered by','incolor'); ?> <a href="<?php esc_url( _e( 'https://wordpress.org', 'incolor' ) ); ?>" rel="nofollow">WordPress</a>. <?php esc_html_e('Theme by','incolor'); ?> <a href="http://alx.media" rel="nofollow">Alx</a>.</p>
|
||||||
</div><!--/#credit-->
|
</div><!--/#credit-->
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
|
@ -443,7 +443,7 @@ if ( ! function_exists( 'incolor_related_posts' ) ) {
|
||||||
'ignore_sticky_posts' => 1,
|
'ignore_sticky_posts' => 1,
|
||||||
'orderby' => 'rand',
|
'orderby' => 'rand',
|
||||||
'post__not_in' => array($post->ID),
|
'post__not_in' => array($post->ID),
|
||||||
'posts_per_page' => 3
|
'posts_per_page' => 2
|
||||||
);
|
);
|
||||||
// Related by categories
|
// Related by categories
|
||||||
if ( get_theme_mod('related-posts') == 'categories' ) {
|
if ( get_theme_mod('related-posts') == 'categories' ) {
|
||||||
|
|
|
@ -6,39 +6,14 @@
|
||||||
<i class="fas fa-hand-point-right"></i><?php esc_html_e('You may also like...','incolor'); ?>
|
<i class="fas fa-hand-point-right"></i><?php esc_html_e('You may also like...','incolor'); ?>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<ul class="related-posts group">
|
<div class="category-featured-cards group">
|
||||||
|
|
||||||
<?php while ( $related->have_posts() ) : $related->the_post(); ?>
|
<?php while ( $related->have_posts() ) : $related->the_post(); ?>
|
||||||
<li class="related">
|
<?php get_template_part('content-featured-category'); ?>
|
||||||
<article class="related-post">
|
|
||||||
|
|
||||||
<div class="related-thumbnail">
|
|
||||||
<a href="<?php the_permalink(); ?>">
|
|
||||||
<?php if ( has_post_thumbnail() ): ?>
|
|
||||||
<?php the_post_thumbnail('incolor-medium'); ?>
|
|
||||||
<?php elseif ( get_theme_mod('placeholder') != 'off' ): ?>
|
|
||||||
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-play"></i></span>'; ?>
|
|
||||||
<?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-volume-up"></i></span>'; ?>
|
|
||||||
<?php if ( is_sticky() ) echo'<span class="thumb-icon small"><i class="fas fa-star"></i></span>'; ?>
|
|
||||||
</a>
|
|
||||||
</div><!--/.post-thumbnail-->
|
|
||||||
|
|
||||||
<div class="related-inner">
|
|
||||||
|
|
||||||
<h4 class="related-title">
|
|
||||||
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
|
|
||||||
</h4><!--/.post-title-->
|
|
||||||
|
|
||||||
</div><!--/.related-inner-->
|
|
||||||
|
|
||||||
</article>
|
|
||||||
</li><!--/.related-->
|
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
<?php wp_reset_postdata(); ?>
|
<?php wp_reset_postdata(); ?>
|
||||||
|
|
||||||
</ul><!--/.post-related-->
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php wp_reset_postdata(); ?>
|
<?php wp_reset_postdata(); ?>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Incolor\n"
|
"Project-Id-Version: Incolor\n"
|
||||||
"POT-Creation-Date: 2021-08-22 20:39+0200\n"
|
"POT-Creation-Date: 2021-08-23 11:04+0200\n"
|
||||||
"PO-Revision-Date: 2018-09-21 21:27+0100\n"
|
"PO-Revision-Date: 2018-09-21 21:27+0100\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
|
|
|
@ -87,6 +87,10 @@ Sidebar images
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 1.0.5 - 2021-08-23 =
|
||||||
|
* Improved related posts styling
|
||||||
|
* Fixed wordpress footer link
|
||||||
|
|
||||||
= 1.0.4 - 2021-08-22 =
|
= 1.0.4 - 2021-08-22 =
|
||||||
* Minor styling improvements to sidebar profile
|
* Minor styling improvements to sidebar profile
|
||||||
|
|
||||||
|
|
|
@ -134,10 +134,6 @@
|
||||||
.post-nav li a { min-height: 0; }
|
.post-nav li a { min-height: 0; }
|
||||||
.post-nav li.previous { border-top: 1px solid #444; }
|
.post-nav li.previous { border-top: 1px solid #444; }
|
||||||
|
|
||||||
.related-posts li { width: 50%; }
|
|
||||||
.related-posts li:nth-child(2) article { border-right-color: transparent; }
|
|
||||||
.related-posts li:nth-child(3) { display: none; }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------- *
|
/* ------------------------------------------------------------------------- *
|
||||||
|
|
16
style.css
16
style.css
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Theme Name: Incolor
|
Theme Name: Incolor
|
||||||
Theme URI: http://alx.media/themes/incolor/
|
Theme URI: http://alx.media/themes/incolor/
|
||||||
Version: 1.0.4
|
Version: 1.0.5
|
||||||
Requires at least: 5.0
|
Requires at least: 5.0
|
||||||
Requires PHP: 5.6
|
Requires PHP: 5.6
|
||||||
Tested up to: 5.8
|
Tested up to: 5.8
|
||||||
|
@ -934,20 +934,6 @@ body.category.paged .category-featured-cards { display: none; }
|
||||||
.author-bio .bio-name { color: #fff; font-size: 19px; font-weight: 600; margin: 10px 0; }
|
.author-bio .bio-name { color: #fff; font-size: 19px; font-weight: 600; margin: 10px 0; }
|
||||||
.author-bio .bio-desc { color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.5em; }
|
.author-bio .bio-desc { color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.5em; }
|
||||||
|
|
||||||
/* single : related posts
|
|
||||||
/* ------------------------------------ */
|
|
||||||
.related-posts { margin-bottom: 40px; }
|
|
||||||
.related-posts li { width: 33.33%; float: left; display: inline; }
|
|
||||||
.related-post { border-right: 1px solid transparent; }
|
|
||||||
.related-inner { padding: 0 20px 0 0; }
|
|
||||||
.related-title { margin-bottom: 10px; font-size: 17px; font-weight: 600; line-height: 1.4em; letter-spacing: 0; display: block; }
|
|
||||||
.related-title a { color: rgba(255,255,255,0.7); }
|
|
||||||
.related-title a:hover { color: #fff; }
|
|
||||||
.related-thumbnail { width: 100%; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; transition: all 1s ease; }
|
|
||||||
.related-thumbnail { position: relative; margin-bottom: 20px; }
|
|
||||||
.related-thumbnail img { display: block; width: 100%; height: auto; }
|
|
||||||
.related-thumbnail:hover .thumb-icon { background: #fff; color: #333; }
|
|
||||||
|
|
||||||
/* single : post-nav
|
/* single : post-nav
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
.post-nav li { width: 50%; display: inline; float: left; }
|
.post-nav li { width: 50%; display: inline; float: left; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue