mirror of
https://ghproxy.net/https://github.com/AlxMedia/blogside.git
synced 2025-08-26 08:53:46 +08:00
Multiple other required fixes
This commit is contained in:
parent
1ae2f90e81
commit
22b18ba5f4
8 changed files with 53 additions and 109 deletions
|
@ -4,12 +4,8 @@
|
|||
|
||||
<?php get_template_part('inc/page-title'); ?>
|
||||
|
||||
<?php if ((category_description() != '') && !is_paged()) : ?>
|
||||
<div class="pad pad-top group">
|
||||
<div class="notebox">
|
||||
<?php echo category_description(); ?>
|
||||
</div>
|
||||
</div><!--/.pad-->
|
||||
<?php if ( ! is_paged() ) : ?>
|
||||
<?php the_archive_description( '<div class="pad pad-top group"><div class="notebox">', '</div></div>' ); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
|
|
@ -66,14 +66,14 @@
|
|||
<div class="grid one-half">
|
||||
|
||||
<?php if ( get_theme_mod('footer-logo') ): ?>
|
||||
<img id="footer-logo" src="<?php echo esc_url( get_theme_mod('footer-logo') ); ?>" alt="<?php get_bloginfo('name'); ?>">
|
||||
<img id="footer-logo" src="<?php echo esc_url( get_theme_mod('footer-logo') ); ?>" alt="<?php echo esc_attr( get_bloginfo('name')); ?>">
|
||||
<?php endif; ?>
|
||||
|
||||
<div id="copyright">
|
||||
<?php if ( get_theme_mod( 'copyright' ) ): ?>
|
||||
<p><?php echo esc_html( get_theme_mod( 'copyright' ) ); ?></p>
|
||||
<?php else: ?>
|
||||
<p><?php bloginfo(); ?> © <?php echo date( 'Y' ); ?>. <?php esc_html_e( 'All Rights Reserved.', 'blogline' ); ?></p>
|
||||
<p><?php bloginfo(); ?> © <?php echo esc_html( date_i18n( esc_html__( 'Y', 'blogline' ) ) ); ?>. <?php esc_html_e( 'All Rights Reserved.', 'blogline' ); ?></p>
|
||||
<?php endif; ?>
|
||||
</div><!--/#copyright-->
|
||||
|
||||
|
|
|
@ -1,44 +0,0 @@
|
|||
/*
|
||||
post-formats.js
|
||||
|
||||
License: GNU General Public License v3.0
|
||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
Copyright: (c) 2013 Jermaine Maree, http://jermainemaree.com
|
||||
*/
|
||||
|
||||
jQuery(document).ready(function($) {
|
||||
|
||||
// Hide post format sections
|
||||
function hide_statuses() {
|
||||
$('#format-audio,#format-aside,#format-chat,#format-gallery,#format-image,#format-link,#format-quote,#format-status,#format-video').hide();
|
||||
}
|
||||
|
||||
// Post Formats
|
||||
if($("#post-formats-select").length) {
|
||||
// Hide post format sections
|
||||
hide_statuses();
|
||||
|
||||
// Supported post formats
|
||||
var post_formats = ['audio','aside','chat','gallery','image','link','quote','status','video'];
|
||||
|
||||
// Get selected post format
|
||||
var selected_post_format = $("input[name='post_format']:checked").val();
|
||||
|
||||
// Show post format meta box
|
||||
if(jQuery.inArray(selected_post_format,post_formats) != '-1') {
|
||||
$('#format-'+selected_post_format).show();
|
||||
}
|
||||
|
||||
// Hide/show post format meta box when option changed
|
||||
$("input[name='post_format']:radio").change(function() {
|
||||
// Hide post format sections
|
||||
hide_statuses();
|
||||
// Shoe selected section
|
||||
if(jQuery.inArray($(this).val(),post_formats) != '-1') {
|
||||
$('#format-'+$(this).val()).show();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
});
|
|
@ -82,42 +82,6 @@ function blogline_get_meta_box( $meta_boxes ) {
|
|||
),
|
||||
);
|
||||
|
||||
/* Format: audio
|
||||
/* ------------------------------------ */
|
||||
$meta_boxes[] = array(
|
||||
'id' => 'format-audio',
|
||||
'title' => esc_html__( 'Format: Audio', 'blogline' ),
|
||||
'post_types' => array( 'post' ),
|
||||
'context' => 'advanced',
|
||||
'priority' => 'high',
|
||||
'autosave' => false,
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => $prefix . 'audio_url',
|
||||
'type' => 'text',
|
||||
'name' => esc_html__( 'Audio URL', 'blogline' ),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
/* Format: video
|
||||
/* ------------------------------------ */
|
||||
$meta_boxes[] = array(
|
||||
'id' => 'format-video',
|
||||
'title' => esc_html__( 'Format: Video', 'blogline' ),
|
||||
'post_types' => array( 'post' ),
|
||||
'context' => 'advanced',
|
||||
'priority' => 'high',
|
||||
'autosave' => false,
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => $prefix . 'video_url',
|
||||
'type' => 'text',
|
||||
'name' => esc_html__( 'Video URL', 'blogline' ),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
return $meta_boxes;
|
||||
}
|
||||
add_filter( 'rwmb_meta_boxes', 'blogline_get_meta_box' );
|
|
@ -6,8 +6,8 @@ $featured = new WP_Query(
|
|||
'update_post_meta_cache' => false,
|
||||
'update_post_term_cache' => false,
|
||||
'ignore_sticky_posts' => 1,
|
||||
'posts_per_page' => get_theme_mod('featured-posts-count','3'),
|
||||
'cat' => get_theme_mod('featured-category','')
|
||||
'posts_per_page' => absint( get_theme_mod('featured-posts-count','3') ),
|
||||
'cat' => absint( get_theme_mod('featured-category','') )
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
|
|
@ -42,13 +42,13 @@
|
|||
<h1><i class="fa fa-tags"></i><?php esc_html_e('Tagged:','blogline'); ?> <span><?php echo single_tag_title('', false); ?></span></h1>
|
||||
|
||||
<?php elseif ( is_day() ): ?>
|
||||
<h1><i class="fa fa-calendar"></i><?php esc_html_e('Daily Archive:','blogline'); ?> <span><?php echo get_the_time('F j, Y'); ?></span></h1>
|
||||
<h1><i class="fa fa-calendar"></i><?php esc_html_e('Daily Archive:','blogline'); ?> <span><?php echo esc_html( get_the_time('F j, Y') ); ?></span></h1>
|
||||
|
||||
<?php elseif ( is_month() ): ?>
|
||||
<h1><i class="fa fa-calendar"></i><?php esc_html_e('Monthly Archive:','blogline'); ?> <span><?php echo get_the_time('F Y'); ?></span></h1>
|
||||
<h1><i class="fa fa-calendar"></i><?php esc_html_e('Monthly Archive:','blogline'); ?> <span><?php echo esc_html( get_the_time('F Y') ); ?></span></h1>
|
||||
|
||||
<?php elseif ( is_year() ): ?>
|
||||
<h1><i class="fa fa-calendar"></i><?php esc_html_e('Yearly Archive:','blogline'); ?> <span><?php echo get_the_time('Y'); ?></span></h1>
|
||||
<h1><i class="fa fa-calendar"></i><?php esc_html_e('Yearly Archive:','blogline'); ?> <span><?php echo esc_html( get_the_time('Y') ); ?></span></h1>
|
||||
|
||||
<?php elseif ( has_post_format('audio') ): ?>
|
||||
<h1><i class="fa fa-volume-up"></i><?php esc_html_e('Type:','blogline'); ?> <span><?php esc_html_e('Audio','blogline'); ?></span></h1>
|
||||
|
|
28
readme.txt
28
readme.txt
|
@ -2,10 +2,10 @@
|
|||
Contributors: alxmedia
|
||||
Requires at least: 4.9
|
||||
Tested up to: 4.9
|
||||
Version: 1.0.3
|
||||
License: GPLv2 or later
|
||||
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
||||
Tags: one-column, two-columns, right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready
|
||||
Version: 1.0.4
|
||||
License: GPLv3
|
||||
License URI: http://www.gnu.org/licenses/gpl-3.0
|
||||
Tags: blog, one-column, two-columns, right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, custom-logo, custom-header, custom-background
|
||||
|
||||
== Description ==
|
||||
|
||||
|
@ -20,6 +20,7 @@ Blogline is a responsive 100% high resolution theme for personal blogs. Unique t
|
|||
|
||||
== Copyright ==
|
||||
|
||||
Blogline WordPress Theme, Copyright 2018 AlxMedia
|
||||
Blogline is distributed under the terms of the GNU GPL
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
|
@ -34,8 +35,8 @@ GNU General Public License for more details.
|
|||
|
||||
Blogline bundles the following third-party resources:
|
||||
|
||||
Font Awesome icons, Copyright Dave Gandy
|
||||
License: SIL Open Font License, version 1.1.
|
||||
Font Awesome, Copyright Dave Gandy
|
||||
License: SIL OFL 1.1 (Fonts); MIT (CSS)
|
||||
Source: http://fontawesome.com/
|
||||
|
||||
Titillium font, Copyright Accademia di Belle Arti di Urbino
|
||||
|
@ -54,12 +55,27 @@ FitVids, Copyright Chris Coyier
|
|||
License: WTFPL
|
||||
Source: http://fitvidsjs.com/
|
||||
|
||||
Kirki, Copyright Aristeides Stathopoulos
|
||||
License: MIT
|
||||
Source: https://github.com/aristath/kirki
|
||||
|
||||
Screenshot images
|
||||
License: CC0 1.0 Universal (CC0 1.0)
|
||||
Source: http://pixabay.com/
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 1.0.4 - 2018-09-08 =
|
||||
* Moved plugin territory features to companion plugin
|
||||
* Added missing style.css tags
|
||||
* Updated style.css edit warning
|
||||
* Updated .pot language file
|
||||
* Fixed gallery widget styling
|
||||
* Fixed translation issues
|
||||
* Fixed missing escaping issues
|
||||
* Fixed broken layout options
|
||||
* Added missing credits in readme
|
||||
|
||||
= 1.0.3 - 2018-07-20 =
|
||||
* Added support for custom-logo
|
||||
* Added support for custom-header
|
||||
|
|
32
style.css
32
style.css
|
@ -1,11 +1,11 @@
|
|||
/*
|
||||
Theme Name: Blogline
|
||||
Theme URI: http://alxmedia.se/themes/blogline/
|
||||
Version: 1.0.3
|
||||
Version: 1.0.4
|
||||
Description: <a href="http://alxmedia.se/themes/blogline/">Blogline</a> is a responsive 100% high resolution theme for personal blogs. Unique toggle sidebars give a great browsing and reading experience on both tablet and mobile. The feature list is long: Unlimited accent colors, unlimited widget areas, 0-1 sidebars to the left or right that can be uniquely specified for each page or post, 300px fixed width sidebar, 0-4 footer widget columns, almost zero layout images, related posts and post nav, 5 post formats, good SEO, 2 flexible custom widgets, localisation support, social links, logo upload and many more useful admin panel features.
|
||||
Author: Alexander Agnarson
|
||||
Author URI: http://alxmedia.se
|
||||
Tags: one-column, two-columns, right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready
|
||||
Tags: blog, one-column, two-columns, right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, custom-logo, custom-header, custom-background
|
||||
Text Domain: blogline
|
||||
|
||||
Copyright: (c) 2018 Alexander "Alx" Agnarson
|
||||
|
@ -15,9 +15,9 @@ Text Domain: blogline
|
|||
|
||||
/*
|
||||
WARNING! DO NOT EDIT THIS FILE!
|
||||
To make it easy to update your theme, you should not edit the styles in this file. Instead use the custom.css
|
||||
file or a child theme to add your styles. You can copy a style from this file and paste it in custom.css
|
||||
or the child theme's style.css and it will override the style in this file. You have been warned! :)
|
||||
To make it easy to update your theme, you should not edit the styles in this file. Instead use a child theme
|
||||
to add your styles. You can copy a style from this file and paste it in the child theme's style.css and it
|
||||
will override the style in this file. You have been warned! :)
|
||||
*/
|
||||
|
||||
/* ------------------------------------------------------------------------- *
|
||||
|
@ -270,10 +270,14 @@ input, textarea, button, select, label { font-family: inherit; }
|
|||
.entry table th { font-weight: 600; text-align: center; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 10px 5px; }
|
||||
|
||||
/* default gallery */
|
||||
.entry .gallery { clear: both; overflow: hidden; width: 100%; margin: 15px 0!important; }
|
||||
.entry .gallery img { display: block; width: 100%; height: auto; border-width: 1px 2px!important; border-color: transparent!important; }
|
||||
.entry .gallery .gallery-item { position: relative; overflow: hidden; border-color: transparent; margin-top: 0!important; }
|
||||
.entry .gallery .gallery-caption { background: rgba(255,255,255,0.8); color: #333; font-size: 13px; line-height: 1.4em; padding: 10px 0; text-align: left; text-indent: 10px; font-style: normal; margin: 0; bottom: -44px; left: 2px; right: 2px; overflow: hidden; position: absolute; text-overflow: ellipsis; white-space: nowrap; width: 100%;
|
||||
.entry .gallery,
|
||||
.widget .gallery { clear: both; overflow: hidden; width: 100%; margin: 15px 0!important; }
|
||||
.entry .gallery img,
|
||||
.widget .gallery img { display: block; width: 100%; height: auto; border-width: 1px 2px!important; border-color: transparent!important; }
|
||||
.entry .gallery .gallery-item,
|
||||
.widget .gallery .gallery-item { position: relative; overflow: hidden; border-color: transparent; margin-top: 0!important; }
|
||||
.entry .gallery .gallery-caption,
|
||||
.widget .gallery .gallery-caption { background: rgba(255,255,255,0.8); color: #333; font-size: 13px; line-height: 1.4em; padding: 10px 0; text-align: left; text-indent: 10px; font-style: normal; margin: 0; bottom: -44px; left: 2px; right: 2px; overflow: hidden; position: absolute; text-overflow: ellipsis; white-space: nowrap; width: 100%;
|
||||
transition: all .2s ease;
|
||||
-o-transition: all .2s ease;
|
||||
-moz-transition: all .2s ease;
|
||||
|
@ -283,7 +287,15 @@ transition: all .2s ease;
|
|||
.entry .gallery-columns-6 .gallery-caption,
|
||||
.entry .gallery-columns-7 .gallery-caption,
|
||||
.entry .gallery-columns-8 .gallery-caption,
|
||||
.entry .gallery-columns-9 .gallery-caption { display: none!important; }
|
||||
.entry .gallery-columns-9 .gallery-caption,
|
||||
.widget .gallery-columns-2 .gallery-caption,
|
||||
.widget .gallery-columns-3 .gallery-caption,
|
||||
.widget .gallery-columns-4 .gallery-caption,
|
||||
.widget .gallery-columns-5 .gallery-caption,
|
||||
.widget .gallery-columns-6 .gallery-caption,
|
||||
.widget .gallery-columns-7 .gallery-caption,
|
||||
.widget .gallery-columns-8 .gallery-caption,
|
||||
.widget .gallery-columns-9 .gallery-caption { display: none!important; }
|
||||
|
||||
/* base : headings
|
||||
/* ------------------------------------ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue