This commit is contained in:
Alexander Agnarson 2019-07-26 19:59:15 +02:00
parent 0a3410136a
commit 8041776597
6 changed files with 64 additions and 31 deletions

View file

@ -678,18 +678,6 @@ if ( ! function_exists( 'boxstyle_html_js_class' ) ) {
add_action( 'wp_head', 'boxstyle_html_js_class', 1 );
/* Script for no-js / js class
/* ------------------------------------ */
if ( ! function_exists( 'boxstyle_html_js_class' ) ) {
function boxstyle_html_js_class () {
echo '<script>document.documentElement.className = document.documentElement.className.replace("no-js","js");</script>'. "\n";
}
}
add_action( 'wp_head', 'boxstyle_html_js_class', 1 );
/* Admin panel css
/* ------------------------------------ */
if ( ! function_exists( 'boxstyle_admin_panel_css' ) ) {
@ -731,10 +719,6 @@ if ( ! function_exists( 'boxstyle_plugins' ) ) {
array(
'name' => esc_html__( 'WP-PageNavi', 'boxstyle' ),
'slug' => 'wp-pagenavi',
),
array(
'name' => esc_html__( 'Responsive Lightbox', 'boxstyle' ),
'slug' => 'responsive-lightbox',
)
);
tgmpa( $plugins );
@ -852,3 +836,14 @@ if ( ! function_exists( 'boxstyle_flexslider_gallery' ) ) {
}
add_action( 'wp_enqueue_scripts', 'boxstyle_flexslider_gallery' );
/* Accessibility IE11 fix - https://git.io/vWdr2
/* ------------------------------------ */
function boxstyle_skip_link_focus_fix() {
?>
<script>
/(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1);
</script>
<?php
}
add_action( 'wp_print_footer_scripts', 'boxstyle_skip_link_focus_fix' );

View file

@ -132,7 +132,11 @@ a,
.child-menu .current_page_item > a,
.wp-pagenavi a { color: '.esc_attr( get_theme_mod('color-1') ).'; }
.themeform input[type="button"],
.themeform input[type="reset"],
.themeform input[type="submit"],
.themeform button[type="button"],
.themeform button[type="reset"],
.themeform button[type="submit"],
.s2,
#profile-curve,

View file

@ -12,6 +12,10 @@
<body <?php body_class(); ?>>
<?php if ( function_exists( 'wp_body_open' ) ) { wp_body_open(); } ?>
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'boxstyle' ); ?></a>
<div id="wrapper">
<div class="container" id="page">
@ -116,4 +120,4 @@
</div>
<?php endif; ?>
<div class="main-inner group">
<div class="main-inner group" id="content">

View file

@ -2,7 +2,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Boxstyle\n"
"POT-Creation-Date: 2019-02-17 14:34+0100\n"
"POT-Creation-Date: 2019-07-26 19:57+0200\n"
"PO-Revision-Date: 2018-09-21 21:27+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
@ -10,7 +10,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.2\n"
"X-Generator: Poedit 2.2.3\n"
"X-Poedit-KeywordsList: __;_e;_x;_ex;_n;_nx;_n_noop;_nx_noop;"
"translate_nooped_plural;number_format_i18n;date_i18n;esc_html__;esc_html_e;"
"esc_html_x;esc_attr__;esc_attr_e;esc_attr_x\n"
@ -133,26 +133,22 @@ msgstr ""
msgid "Footer 4"
msgstr ""
#: functions.php:720
#: functions.php:708
msgid "Alx Extensions"
msgstr ""
#: functions.php:724
#: functions.php:712
msgid "Meta Box"
msgstr ""
#: functions.php:728
#: functions.php:716
msgid "Regenerate Thumbnails"
msgstr ""
#: functions.php:732
#: functions.php:720
msgid "WP-PageNavi"
msgstr ""
#: functions.php:736
msgid "Responsive Lightbox"
msgstr ""
#: functions/meta-boxes.php:21
msgid "Page Options"
msgstr ""
@ -790,7 +786,11 @@ msgstr ""
msgid "Wave Style"
msgstr ""
#: header.php:94
#: header.php:17
msgid "Skip to content"
msgstr ""
#: header.php:98
msgid "Switch Color"
msgstr ""

View file

@ -2,7 +2,7 @@
Contributors: alxmedia
Requires at least: 5.0
Tested up to: 5.0
Version: 1.1.6
Version: 1.1.7
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
@ -81,6 +81,15 @@ Sidebar images
== Changelog ==
= 1.1.7 - 2019-07-26 =
* Added theme accessibility with skip links
* Added wp_body_open to header.php
* Fixed WP-PageNavi styling issue
* Fixed themeforms styling issue
* Updated language files
* Removed Responsive Lightbox as recommended plugin
* Removed duplicate code from functions.php
= 1.1.6 - 2019-03-11 =
* Updated to Kirki 3.0.38
* Changed all alxmedia.se links to alx.media

View file

@ -1,7 +1,7 @@
/*
Theme Name: Boxstyle
Theme URI: http://alx.media/themes/boxstyle/
Version: 1.1.6
Version: 1.1.7
Description: <a href="http://alx.media/themes/boxstyle/">Boxstyle</a> is a flexible personal blog theme with plenty of options. Optimized for all devices, this theme will stand out with a unique colorful left bar with social links and a header profile image, name and description. It includes a featured posts slider, a day and night mode switch and three different blog layouts: standard, grid and list. Set the theme to any width and accent color you wish. Disable or enable the wave style. Use a sidebar to the left or right, or disable it entirely - it is all up to you.
Author: Alexander Agnarson
Author URI: http://alx.media
@ -168,6 +168,7 @@ input, textarea, button, select, label { font-family: inherit; }
.themeform label { font-size: 14px; }
.themeform input::-moz-focus-inner,
.themeform button::-moz-focus-inner { border: 0; padding: 0; }
.themeform input[type="search"],
.themeform input[type="text"],
.themeform input[type="password"],
.themeform input[type="email"],
@ -186,6 +187,7 @@ input, textarea, button, select, label { font-family: inherit; }
.themeform input[type="checkbox"] { -moz-appearance: checkbox; -webkit-appearance: checkbox; }
.themeform input[type="radio"] { -moz-appearance: radio; -webkit-appearance: radio; }
.themeform label { font-weight: 600; color: #333; }
.themeform input[type="search"],
.themeform input[type="text"],
.themeform input[type="password"],
.themeform input[type="email"],
@ -194,6 +196,7 @@ input, textarea, button, select, label { font-family: inherit; }
.themeform input[type="number"],
.themeform select,
.themeform textarea { background: #fff; border: 2px solid #eee; color: #777; display: block; max-width: 100%; outline: none; padding: 7px 8px; }
.themeform input[type="search"]:focus,
.themeform input[type="text"]:focus,
.themeform input[type="password"]:focus,
.themeform input[type="email"]:focus,
@ -203,9 +206,17 @@ input, textarea, button, select, label { font-family: inherit; }
.themeform select:focus,
.themeform textarea:focus { border-color: #ddd; color: #333; -webkit-box-shadow: 0 0 3px rgba(0,0,0,0.1); box-shadow: 0 0 3px rgba(0,0,0,0.1); }
.themeform label .required { color: #198cff; }
.themeform input[type="button"],
.themeform input[type="reset"],
.themeform input[type="submit"],
.themeform button[type="button"],
.themeform button[type="reset"],
.themeform button[type="submit"] { background: #198cff; color: #fff; padding: 8px 14px; font-weight: 600; display: inline-block; border: none; cursor: pointer; -webkit-border-radius: 3px; border-radius: 3px; }
.themeform input[type="button"]:hover,
.themeform input[type="reset"]:hover,
.themeform input[type="submit"]:hover,
.themeform button[type="button"]:hover,
.themeform button[type="reset"]:hover,
.themeform button[type="submit"]:hover { background: #333; }
.themeform.searchform div { position: relative; }
@ -1377,7 +1388,7 @@ li #reply-title { font-size: 0; margin: 0!important; padding: 0; height: 0; bord
/* ------------------------------------ */
.wp-pagenavi { text-align: right; font-weight: 600; line-height: 20px; float: none; margin-right: -2px; text-align: center; }
.wp-pagenavi a,
.wp-pagenavi span { color: #aaa; font-size: 16px; padding: 7px 8px; display: inline; margin: 0 2px; }
.wp-pagenavi span { color: #aaa; font-size: 16px; padding: 7px 8px; display: inline-block; margin: 0 2px 10px; }
.wp-pagenavi span.pages { font-size: 17px; font-weight: 300; display: block; margin-bottom: 1em!important; border: none!important; }
.wp-pagenavi span.pages:before { content: "\f15c"; font-family: FontAwesome; margin-right: 6px; }
.wp-pagenavi span.extend { border: none!important; border-bottom: 3px solid transparent; border-top: 1px solid transparent; }
@ -1523,3 +1534,13 @@ user-select: none;
.owl-theme .owl-controls.clickable .owl-page:hover span{ filter: Alpha(Opacity=100);/*IE7 fix*/ opacity: 1; }
.owl-theme .owl-controls .owl-page span.owl-numbers{ height: auto; width: auto; color: #FFF; padding: 2px 10px; font-size: 12px; -webkit-border-radius: 30px; -moz-border-radius: 30px; border-radius: 30px; }
.owl-item.loading{ min-height: 150px; background: url(AjaxLoader.gif) no-repeat center center; }
/* ------------------------------------------------------------------------- *
* Accessibility
/* ------------------------------------------------------------------------- */
/* Text meant only for screen readers. */
.screen-reader-text{ border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute!important; width: 1px; word-wrap: normal!important; }
.screen-reader-text:focus { background-color: #fff; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1); clip: auto!important; clip-path: none; color: #333; display: block; font-size: 14px; font-size: 0.875rem; font-weight: bold; height: auto; right: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }
/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus{ outline: 0; }