Initial commit of Radcliffe 2
This commit is contained in:
parent
f45cdfebe2
commit
ffa589af27
68 changed files with 13949 additions and 0 deletions
34
radcliffe-2/404.php
Normal file
34
radcliffe-2/404.php
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying 404 pages (not found)
|
||||
*
|
||||
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<section class="error-404 not-found">
|
||||
<header class="page-header">
|
||||
<h1 class="page-title"><?php esc_html_e( 'Oops! That page can’t be found.', 'radcliffe-2' ); ?></h1>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<div class="page-content">
|
||||
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'radcliffe-2' ); ?></p>
|
||||
|
||||
<?php get_search_form(); ?>
|
||||
|
||||
|
||||
</div><!-- .page-content -->
|
||||
</section><!-- .error-404 -->
|
||||
|
||||
</main><!-- #main -->
|
||||
</div><!-- #primary -->
|
||||
|
||||
<?php
|
||||
get_sidebar();
|
||||
get_footer();
|
54
radcliffe-2/archive.php
Normal file
54
radcliffe-2/archive.php
Normal file
|
@ -0,0 +1,54 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying archive pages
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php
|
||||
if ( have_posts() ) : ?>
|
||||
|
||||
<header class="page-header">
|
||||
<?php
|
||||
the_archive_title( '<h1 class="page-title">', '</h1>' );
|
||||
the_archive_description( '<div class="archive-description">', '</div>' );
|
||||
?>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<?php
|
||||
/* Start the Loop */
|
||||
while ( have_posts() ) : the_post();
|
||||
|
||||
/*
|
||||
* Include the Post-Format-specific template for the content.
|
||||
* If you want to override this in a child theme, then include a file
|
||||
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
|
||||
*/
|
||||
get_template_part( 'template-parts/content', get_post_format() );
|
||||
|
||||
endwhile;
|
||||
|
||||
the_posts_navigation( array(
|
||||
'prev_text' => radcliffe_2_get_svg( array( 'icon' => 'previous' ) ) . esc_html__( 'Older Posts', 'radcliffe-2' ),
|
||||
'next_text' => esc_html__( 'Newer Posts', 'radcliffe-2' ) . radcliffe_2_get_svg( array( 'icon' => 'next' ) ),
|
||||
) );
|
||||
|
||||
else :
|
||||
|
||||
get_template_part( 'template-parts/content', 'none' );
|
||||
|
||||
endif; ?>
|
||||
|
||||
</main><!-- #main -->
|
||||
</div><!-- #primary -->
|
||||
|
||||
<?php
|
||||
get_sidebar();
|
||||
get_footer();
|
16
radcliffe-2/assets/css/customizer.css
Normal file
16
radcliffe-2/assets/css/customizer.css
Normal file
|
@ -0,0 +1,16 @@
|
|||
#accordion-section-radcliffe_2_hero_area,
|
||||
#accordion-section-radcliffe_2_contact_info,
|
||||
#accordion-section-style_pack_theme_options {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
li#accordion-section-radcliffe_2_hero_area:after,
|
||||
li#accordion-section-radcliffe_2_contact_info:after,
|
||||
li#accordion-section-style_pack_theme_options:after {
|
||||
color: #f7bc30;
|
||||
content: "\f155";
|
||||
font: 400 16px/1 dashicons;
|
||||
position: absolute;
|
||||
top: 13px;
|
||||
right: 36px;
|
||||
}
|
67
radcliffe-2/assets/images/icons.svg
Normal file
67
radcliffe-2/assets/images/icons.svg
Normal file
|
@ -0,0 +1,67 @@
|
|||
<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs>
|
||||
<symbol id="icon-search" viewBox="0 0 32 32">
|
||||
<title>search</title>
|
||||
<path d="M29.4 26.6l-7.4-7.4c1.2-1.8 2-4 2-6.2 0-6-5-11-11-11s-11 5-11 11 5 11 11 11c2.4 0 4.4-0.8 6.2-2l7.4 7.4 2.8-2.8zM5 13c0-4.4 3.6-8 8-8s8 3.6 8 8-3.6 8-8 8-8-3.6-8-8z"></path>
|
||||
</symbol>
|
||||
<symbol id="icon-previous" viewBox="0 0 32 32">
|
||||
<title>previous</title>
|
||||
<path d="M26 14h-13.2l4.6-4.6-2.8-2.8-9.4 9.4 9.4 9.4 2.8-2.8-4.6-4.6h13.2z"></path>
|
||||
</symbol>
|
||||
<symbol id="icon-next" viewBox="0 0 32 32">
|
||||
<title>next</title>
|
||||
<path d="M6 14h13.2l-4.6-4.6 2.8-2.8 9.4 9.4-9.4 9.4-2.8-2.8 4.6-4.6h-13.2z"></path>
|
||||
</symbol>
|
||||
<symbol id="icon-tag" viewBox="0 0 32 32">
|
||||
<title>tag</title>
|
||||
<path d="M22.6 8.6c-0.4-0.4-0.8-0.6-1.4-0.6h-15.2c-1 0-2 1-2 2v12c0 1.2 1 2 2 2h15.2c0.6 0 1-0.2 1.4-0.6l7.4-7.4-7.4-7.4zM20 18c-1 0-2-1-2-2s1-2 2-2 2 1 2 2-1 2-2 2z"></path>
|
||||
</symbol>
|
||||
<symbol id="icon-category" viewBox="0 0 32 32">
|
||||
<title>category</title>
|
||||
<path d="M26 10h-10l-1.4-2.8c-0.4-0.8-1-1.2-1.8-1.2h-6.8c-1 0-2 1-2 2v16c0 1.2 1 2 2 2h20c1.2 0 2-0.8 2-2v-12c0-1.2-0.8-2-2-2z"></path>
|
||||
</symbol>
|
||||
<symbol id="icon-expand" viewBox="0 0 32 32">
|
||||
<title>expand</title>
|
||||
<path d="M16 25.4l-13.4-13.4 2.8-2.8 10.6 10.6 10.6-10.6 2.8 2.8z"></path>
|
||||
</symbol>
|
||||
<symbol id="icon-menu" viewBox="0 0 32 32">
|
||||
<title>menu</title>
|
||||
<path d="M0 28h32v-4h-32v4zM0 4v4h32v-4h-32zM0 18h32v-4h-32v4z"></path>
|
||||
</symbol>
|
||||
<symbol id="icon-location" viewBox="0 0 16 16">
|
||||
<title>location</title>
|
||||
<path d="M11.5 3.5c-2-2-5.1-2-7.1 0s-2 5.1 0 7.1L8 14.1l3.5-3.5c2-2 2-5.2 0-7.1zM9.4 8.4c-.8.8-2 .8-2.8 0-.8-.8-.8-2 0-2.8.8-.8 2-.8 2.8 0 .8.8.8 2 0 2.8z"></path>
|
||||
</symbol>
|
||||
<symbol id="icon-phone" viewBox="0 0 16 16">
|
||||
<title>phone</title>
|
||||
<path d="M10 1H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h4c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zM8.5 14h-1c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h1c.3 0 .5.2.5.5s-.2.5-.5.5zm2.5-2H5V3h6v9z"></path>
|
||||
</symbol>
|
||||
<symbol id="icon-mail" viewBox="0 0 16 16">
|
||||
<title>mail</title>
|
||||
<path d="M12 3H4c-1.1 0-2 .9-2 2v5c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm1 3.2L8 9.1 3 6.2V5l5 2.9L13 5v1.2z"></path>
|
||||
</symbol>
|
||||
<symbol id="icon-time" viewBox="0 0 16 16">
|
||||
<title>time</title>
|
||||
<path d="M8 2C4.7 2 2 4.7 2 8s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6zm2.5 9.5L7.2 8.3V4h1.5v3.7l2.8 2.8-1 1z"></path>
|
||||
</symbol>
|
||||
<symbol id="icon-cart" viewBox="0 0 16 16">
|
||||
<title>cart</title>
|
||||
<path d="M11,12c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S11.6,12,11,12z M5,12c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1 S5.6,12,5,12z M11,10H5V9h5.6c0.8,0,1.5-0.5,1.9-1.3L14,4H5V3c0-0.6-0.4-1-1-1H2v1h2v7c0,0.6,0.4,1,1,1h6h1C12,10.4,11.6,10,11,10z"></path>
|
||||
</symbol>
|
||||
<symbol id="icon-zoom" viewBox="0 0 16 16">
|
||||
<title>zoom</title>
|
||||
<path d="M7,4H6v2H4v1h2v2h1V7h2V6H7V4z M11,9.6c0.6-0.9,1-2,1-3.1C12,3.5,9.5,1,6.5,1S1,3.5,1,6.5S3.5,12,6.5,12 c1.2,0,2.2-0.4,3.1-1l3.7,3.7l1.4-1.4L11,9.6z M6.5,10.5c-2.2,0-4-1.8-4-4s1.8-4,4-4s4,1.8,4,4S8.7,10.5,6.5,10.5z"/>
|
||||
</symbol>
|
||||
<symbol id="icon-edit" viewBox="0 0 16 16">
|
||||
<title>edit</title>
|
||||
<g>
|
||||
<path d="M12.6,6.9l0.5-0.5c0.8-0.8,0.8-2,0-2.8l-0.7-0.7c-0.8-0.8-2-0.8-2.8,0L9.1,3.4L12.6,6.9z"/>
|
||||
<polygon points="8.4,4.1 2,10.5 2,14 5.5,14 11.9,7.6"/>
|
||||
</g>
|
||||
</symbol>
|
||||
<symbol id="icon-close" viewBox="0 0 32 32">
|
||||
<title>close</title>
|
||||
<path d="M25.4 9.4l-2.8-2.8-6.6 6.6-6.6-6.6-2.8 2.8 6.6 6.6-6.6 6.6 2.8 2.8 6.6-6.6 6.6 6.6 2.8-2.8-6.6-6.6z"></path>
|
||||
</symbol>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 3.4 KiB |
39
radcliffe-2/assets/js/customizer.js
Normal file
39
radcliffe-2/assets/js/customizer.js
Normal file
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* File customizer.js.
|
||||
*
|
||||
* Theme Customizer enhancements for a better user experience.
|
||||
*
|
||||
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
|
||||
*/
|
||||
|
||||
( function( $ ) {
|
||||
|
||||
// Site title and description.
|
||||
wp.customize( 'blogname', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.site-title a' ).text( to );
|
||||
} );
|
||||
} );
|
||||
wp.customize( 'blogdescription', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.site-description' ).text( to );
|
||||
} );
|
||||
} );
|
||||
|
||||
// Header text color.
|
||||
wp.customize( 'header_text', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
if ( false === to ) {
|
||||
$( '.site-title, .site-description' ).css( {
|
||||
'clip': 'rect(1px, 1px, 1px, 1px)',
|
||||
'position': 'absolute'
|
||||
} );
|
||||
} else {
|
||||
$( '.site-title, .site-description' ).css( {
|
||||
'clip': 'auto',
|
||||
'position': 'relative'
|
||||
} );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
} )( jQuery );
|
35
radcliffe-2/assets/js/logo/customize-controls.js
Normal file
35
radcliffe-2/assets/js/logo/customize-controls.js
Normal file
|
@ -0,0 +1,35 @@
|
|||
/**
|
||||
* File customize-controls.js.
|
||||
*
|
||||
* Brings logo resizing technology to the Customizer.
|
||||
*
|
||||
* Contains handlers to change Customizer controls.
|
||||
*/
|
||||
;( function( $ ) {
|
||||
'use strict';
|
||||
|
||||
var api = wp.customize;
|
||||
|
||||
api.bind( 'ready', function() {
|
||||
$( window ).load( function() {
|
||||
if ( false == api.control( 'custom_logo' ).setting() ) {
|
||||
// api.control( 'logo_size' ).deactivate();
|
||||
$( '#customize-control-logo_size' ).hide();
|
||||
}
|
||||
} );
|
||||
} );
|
||||
|
||||
// Check logo changes
|
||||
api( 'custom_logo', function ( value ){
|
||||
value.bind ( function ( to ) {
|
||||
if ( '' === to ) {
|
||||
api.control( 'logo_size' ).deactivate();
|
||||
} else {
|
||||
$( '#customize-control-logo_size' ).show();
|
||||
api.control( 'logo_size' ).activate();
|
||||
api.control( 'logo_size' ).setting( 50 );
|
||||
api.control( 'logo_size' ).setting.preview();
|
||||
}
|
||||
} );
|
||||
} );
|
||||
} )( jQuery );
|
144
radcliffe-2/assets/js/logo/customize-preview.js
Normal file
144
radcliffe-2/assets/js/logo/customize-preview.js
Normal file
|
@ -0,0 +1,144 @@
|
|||
/**
|
||||
* File customize-preview.js.
|
||||
*
|
||||
* Brings logo resizing technology to the Customizer.
|
||||
*
|
||||
* Contains handlers to make Customizer preview changes asynchronously.
|
||||
*/
|
||||
( function( $ ) {
|
||||
|
||||
var api = wp.customize;
|
||||
var Logo = new RadcliffeLogo();
|
||||
var initial = null;
|
||||
|
||||
api( 'custom_logo', function( value ) {
|
||||
handleLogoDetection( value() );
|
||||
value.bind( handleLogoDetection );
|
||||
} );
|
||||
|
||||
api( 'logo_size', function( value ) {
|
||||
Logo.resize( value() );
|
||||
value.bind( Logo.resize );
|
||||
} );
|
||||
|
||||
api( 'ready', function() {
|
||||
initial = api( 'custom_logo' )._value;
|
||||
} );
|
||||
|
||||
function handleLogoDetection( to, initial ) {
|
||||
if ( '' === to ) {
|
||||
Logo.remove();
|
||||
} else if ( undefined === initial ) {
|
||||
Logo.add();
|
||||
} else {
|
||||
Logo.change();
|
||||
}
|
||||
initial = to;
|
||||
}
|
||||
|
||||
function RadcliffeLogo() {
|
||||
var intId = 0;
|
||||
var hasLogo = null;
|
||||
var min = 48;
|
||||
|
||||
var self = {
|
||||
resize: function( to ) {
|
||||
if ( hasLogo ) {
|
||||
var img = new Image();
|
||||
var logo = $( '.custom-logo' );
|
||||
|
||||
var size = {
|
||||
width: parseInt( logo.attr( 'width' ), 10 ),
|
||||
height: parseInt( logo.attr( 'height' ), 10 ),
|
||||
}
|
||||
|
||||
var max = new Object();
|
||||
max.width = $.isNumeric( logo.css( 'max-width' ) ) ? parseInt( logo.css( 'max-width' ), 10 ) : size.width;
|
||||
max.height = $.isNumeric( logo.css( 'max-height' ) ) ? parseInt( logo.css( 'max-height' ), 10 ) : size.height;
|
||||
|
||||
img.onload = function() {
|
||||
var output = new Object();
|
||||
|
||||
if ( size.width >= size.height ) {
|
||||
// landscape or square, calculate height as short side
|
||||
output = logo_min_max( size.height, size.width, max.height, max.width, to, min );
|
||||
size = {
|
||||
height: output.a,
|
||||
width: output.b,
|
||||
}
|
||||
} else if ( size.width < size.height ){
|
||||
// portrait, calculate height as long side
|
||||
output = logo_min_max( size.width, size.height, max.width, max.height, to, min );
|
||||
size = {
|
||||
height: output.b,
|
||||
width: output.a,
|
||||
}
|
||||
}
|
||||
|
||||
logo.css( {
|
||||
width: size.width,
|
||||
height: size.height,
|
||||
} );
|
||||
}
|
||||
|
||||
img.src = logo.attr( 'src' );
|
||||
}
|
||||
},
|
||||
|
||||
add: function() {
|
||||
intID = setInterval( function() {
|
||||
var logo = $( '.custom-logo[src]' );
|
||||
if ( logo.length ) {
|
||||
clearInterval( intID );
|
||||
hasLogo = true;
|
||||
}
|
||||
}, 500 );
|
||||
},
|
||||
|
||||
change: function() {
|
||||
var oldlogo = $( '.custom-logo' ).attr( 'src' );
|
||||
intID = setInterval( function() {
|
||||
var logo = $( '.custom-logo' ).attr( 'src' );
|
||||
if ( logo != oldlogo ) {
|
||||
clearInterval( intID );
|
||||
hasLogo = true;
|
||||
self.resize( 50 );
|
||||
}
|
||||
}, 100 );
|
||||
},
|
||||
|
||||
remove: function() {
|
||||
hasLogo = null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
}
|
||||
|
||||
// a is short side, b is long side
|
||||
// x is short css max, y is long css max
|
||||
// p is percent, m is minimum short side
|
||||
function logo_min_max( a, b, amax, bmax, p, m ){
|
||||
var ppp,
|
||||
ratio,
|
||||
max = new Object(),
|
||||
size = new Object();
|
||||
|
||||
ratio = ( b / a );
|
||||
max.b = ( bmax >= b ) ? b : bmax;
|
||||
max.a = ( amax >= ( max.b / ratio ) ) ? Math.floor( max.b / ratio ) : amax;
|
||||
|
||||
// number of pixels per percentage point
|
||||
ppp = ( max.a - m ) / 100;
|
||||
|
||||
// at 0%, the minimum is set, scale up from there
|
||||
size.a = Math.floor( m + ( p * ppp ) );
|
||||
// long side is calculated from the image ratio
|
||||
size.b = Math.floor( size.a * ratio );
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
} )( jQuery );
|
109
radcliffe-2/assets/js/navigation.js
Normal file
109
radcliffe-2/assets/js/navigation.js
Normal file
|
@ -0,0 +1,109 @@
|
|||
/**
|
||||
* File navigation.js.
|
||||
*
|
||||
* Handles toggling the navigation menu for small screens and enables TAB key
|
||||
* navigation support for dropdown menus.
|
||||
*/
|
||||
|
||||
( function( $ ) {
|
||||
var masthead, menuToggle, siteNavContain, siteNavigation;
|
||||
|
||||
function initMainNavigation( container ) {
|
||||
|
||||
// Add dropdown toggle that displays child menu items.
|
||||
var dropdownToggle = $( '<button />', { 'class': 'dropdown-toggle', 'aria-expanded': false } )
|
||||
.append( screenReaderText.icon_expand )
|
||||
.append( $( '<span />', { 'class': 'screen-reader-text', text: screenReaderText.expand } ) );
|
||||
|
||||
container.find( '.menu-item-has-children > a, .page_item_has_children > a' ).after( dropdownToggle );
|
||||
|
||||
// Set the active submenu dropdown toggle button initial state.
|
||||
container.find( '.current-menu-ancestor > button' )
|
||||
.addClass( 'toggled' )
|
||||
.attr( 'aria-expanded', 'true' )
|
||||
.find( '.screen-reader-text' )
|
||||
.text( screenReaderText.collapse );
|
||||
// Set the active submenu initial state.
|
||||
container.find( '.current-menu-ancestor > .sub-menu' ).addClass( 'toggled' );
|
||||
|
||||
container.find( '.dropdown-toggle' ).click( function( e ) {
|
||||
var _this = $( this ),
|
||||
screenReaderSpan = _this.find( '.screen-reader-text' );
|
||||
|
||||
e.preventDefault();
|
||||
_this.toggleClass( 'toggled' );
|
||||
_this.next( '.children, .sub-menu' ).toggleClass( 'toggled' );
|
||||
|
||||
_this.attr( 'aria-expanded', _this.attr( 'aria-expanded' ) === 'false' ? 'true' : 'false' );
|
||||
|
||||
screenReaderSpan.text( screenReaderSpan.text() === screenReaderText.expand ? screenReaderText.collapse : screenReaderText.expand );
|
||||
});
|
||||
}
|
||||
|
||||
initMainNavigation( $( '.main-navigation' ) );
|
||||
|
||||
masthead = $( '#masthead' );
|
||||
menuToggle = masthead.find( '.menu-toggle' );
|
||||
siteNavContain = masthead.find( '.main-navigation' );
|
||||
siteNavigation = masthead.find( '.main-navigation > div > ul' );
|
||||
|
||||
// Enable menuToggle.
|
||||
( function() {
|
||||
|
||||
// Return early if menuToggle is missing.
|
||||
if ( ! menuToggle.length ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Add an initial value for the attribute.
|
||||
menuToggle.attr( 'aria-expanded', 'false' );
|
||||
|
||||
menuToggle.on( 'click.radcliffe_2', function() {
|
||||
siteNavContain.toggleClass( 'toggled' );
|
||||
|
||||
$( this ).attr( 'aria-expanded', siteNavContain.hasClass( 'toggled' ) );
|
||||
} );
|
||||
} )();
|
||||
|
||||
// Fix sub-menus for touch devices and better focus for hidden submenu items for accessibility.
|
||||
( function() {
|
||||
if ( ! siteNavigation.length || ! siteNavigation.children().length ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Toggle `focus` class to allow submenu access on tablets.
|
||||
function toggleFocusClassTouchScreen() {
|
||||
if ( 'none' === $( '.menu-toggle' ).css( 'display' ) ) {
|
||||
|
||||
$( document.body ).on( 'touchstart.radcliffe_2', function( e ) {
|
||||
if ( ! $( e.target ).closest( '.main-navigation li' ).length ) {
|
||||
$( '.main-navigation li' ).removeClass( 'focus' );
|
||||
}
|
||||
} );
|
||||
|
||||
siteNavigation.find( '.menu-item-has-children > a, .page_item_has_children > a' )
|
||||
.on( 'touchstart.radcliffe_2', function( e ) {
|
||||
var el = $( this ).parent( 'li' );
|
||||
|
||||
if ( ! el.hasClass( 'focus' ) ) {
|
||||
e.preventDefault();
|
||||
el.toggleClass( 'focus' );
|
||||
el.siblings( '.focus' ).removeClass( 'focus' );
|
||||
}
|
||||
} );
|
||||
|
||||
} else {
|
||||
siteNavigation.find( '.menu-item-has-children > a, .page_item_has_children > a' ).unbind( 'touchstart.radcliffe_2' );
|
||||
}
|
||||
}
|
||||
|
||||
if ( 'ontouchstart' in window ) {
|
||||
$( window ).on( 'resize.radcliffe_2', toggleFocusClassTouchScreen );
|
||||
toggleFocusClassTouchScreen();
|
||||
}
|
||||
|
||||
siteNavigation.find( 'a' ).on( 'focus.radcliffe_2 blur.radcliffe_2', function() {
|
||||
$( this ).parents( '.menu-item, .page_item' ).toggleClass( 'focus' );
|
||||
} );
|
||||
} )();
|
||||
} )( jQuery );
|
64
radcliffe-2/assets/js/radcliffe-2.js
Normal file
64
radcliffe-2/assets/js/radcliffe-2.js
Normal file
|
@ -0,0 +1,64 @@
|
|||
/**
|
||||
*
|
||||
* This is the main JavaScript file for Radcliffe.
|
||||
*/
|
||||
|
||||
( function( $ ) {
|
||||
|
||||
var $window = $( window );
|
||||
|
||||
// Toggle search form.
|
||||
function searchToggle() {
|
||||
$( '.search-toggle' ).on( 'click', function() {
|
||||
$( this ).toggleClass( 'active' );
|
||||
$( '.header-search' ).slideToggle();
|
||||
$( '.header-search .s' ).focus();
|
||||
return false;
|
||||
} );
|
||||
}
|
||||
|
||||
// Manage full-screen featured images.
|
||||
function fullScreenImages() {
|
||||
var $entryBackground = $( '.entry-thumbnail' ),
|
||||
$heroArea = $( '.hero-area' ),
|
||||
$windowWidth = $window.width();
|
||||
|
||||
if ( $entryBackground ) {
|
||||
$entryBackground.height( Math.round( $windowWidth / 1.33 ) + 'px' );
|
||||
}
|
||||
|
||||
if ( $heroArea && $windowWidth > '768' ) { // Set a fixed height for larger screens
|
||||
$heroArea.css( { 'height' : Math.round( $windowWidth / 1.33 ) + 'px', 'min-height' : 'auto' } );
|
||||
}
|
||||
else if ( $heroArea ) { // Set a min-height for smaller screens
|
||||
$heroArea.css( { 'min-height' : Math.round( $windowWidth / 1.33 ) + 'px', 'height' : 'auto' } );
|
||||
}
|
||||
|
||||
$entryBackground.height( Math.round( $windowWidth / 1.33 ) + 'px' );
|
||||
}
|
||||
|
||||
// Add SVG image zoom icon
|
||||
function imageZoomIcon() {
|
||||
$( '.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger' )
|
||||
.empty()
|
||||
.append( screenReaderText.icon_zoom );
|
||||
}
|
||||
|
||||
// Initialize init on page load.
|
||||
$( document ).on( 'ready', function() {
|
||||
searchToggle();
|
||||
fullScreenImages();
|
||||
imageZoomIcon();
|
||||
});
|
||||
|
||||
// ...and on each subsequent Infinite Scroll load, as well.
|
||||
$( document ).on( 'post-load', function() {
|
||||
fullScreenImages();
|
||||
});
|
||||
|
||||
// On window resize.
|
||||
$( window ).on( 'resize', function() {
|
||||
fullScreenImages();
|
||||
});
|
||||
|
||||
} )( jQuery );
|
31
radcliffe-2/assets/js/skip-link-focus-fix.js
Normal file
31
radcliffe-2/assets/js/skip-link-focus-fix.js
Normal file
|
@ -0,0 +1,31 @@
|
|||
/**
|
||||
* File skip-link-focus-fix.js.
|
||||
*
|
||||
* Helps with accessibility for keyboard only users.
|
||||
*
|
||||
* Learn more: https://git.io/vWdr2
|
||||
*/
|
||||
(function() {
|
||||
var isIe = /(trident|msie)/i.test( navigator.userAgent );
|
||||
|
||||
if ( isIe && document.getElementById && window.addEventListener ) {
|
||||
window.addEventListener( 'hashchange', function() {
|
||||
var id = location.hash.substring( 1 ),
|
||||
element;
|
||||
|
||||
if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
element = document.getElementById( id );
|
||||
|
||||
if ( element ) {
|
||||
if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
|
||||
element.tabIndex = -1;
|
||||
}
|
||||
|
||||
element.focus();
|
||||
}
|
||||
}, false );
|
||||
}
|
||||
})();
|
94
radcliffe-2/assets/js/style-packs-customizer.js
Normal file
94
radcliffe-2/assets/js/style-packs-customizer.js
Normal file
|
@ -0,0 +1,94 @@
|
|||
/**
|
||||
* File style-packs-customizer.js.
|
||||
*
|
||||
* Contains the customizer bindings for style packs.
|
||||
*/
|
||||
|
||||
( function( $ ) {
|
||||
|
||||
// Style packs data.
|
||||
var config = stylePacksData;
|
||||
var body = document.body;
|
||||
|
||||
loadPreviewStylesheets();
|
||||
|
||||
// Active style pack.
|
||||
wp.customize( 'active_style_pack', function( value ) {
|
||||
var currentStyle = value();
|
||||
value.bind( function( to ) {
|
||||
removeCustomStyles();
|
||||
if ( 'default' === to ) {
|
||||
removeStyle( currentStyle );
|
||||
} else {
|
||||
applyStyle( to, currentStyle );
|
||||
}
|
||||
fireEvent( 'change', {
|
||||
from: currentStyle,
|
||||
to: to
|
||||
} );
|
||||
body.classList.remove( getBodyClass( currentStyle ) );
|
||||
body.classList.add( getBodyClass( to ) );
|
||||
currentStyle = to;
|
||||
} );
|
||||
} );
|
||||
|
||||
function fireEvent( evt, payload ) {
|
||||
$( document ).trigger( ['style_packs', evt].join( '.' ), payload );
|
||||
}
|
||||
|
||||
function createLink( id, uri ) {
|
||||
var link = document.createElement( 'link' );
|
||||
link.setAttribute( 'rel', 'stylesheet' );
|
||||
link.setAttribute( 'id', id );
|
||||
link.setAttribute( 'href', uri );
|
||||
return link;
|
||||
}
|
||||
|
||||
function getBodyClass( style ) {
|
||||
return stylePacksData.body_class_format.replace( '%s', style );
|
||||
}
|
||||
|
||||
function applyStyle( style, prevStyle ) {
|
||||
if ( prevStyle ) {
|
||||
removeStyle( prevStyle );
|
||||
}
|
||||
|
||||
var styleData = config.styles[ style ];
|
||||
|
||||
if ( styleData ) {
|
||||
link = createLink( styleData.id, styleData.uri );
|
||||
document.head.appendChild( link );
|
||||
}
|
||||
|
||||
_.each( config.fonts[ style ], function( uri, id ) {
|
||||
var link = createLink( id, uri );
|
||||
document.head.appendChild( link );
|
||||
} );
|
||||
}
|
||||
|
||||
function removeStyle( style ) {
|
||||
if ( 'default' !== style ) {
|
||||
if ( config.styles[ style ] ) {
|
||||
$( 'head #' + config.styles[ style ].id ).remove();
|
||||
}
|
||||
_.each( config.fonts[ style ], function( uri, id ) {
|
||||
$( 'head #' + id ).remove();
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
||||
function loadPreviewStylesheets() {
|
||||
var style = config.preview_style, data = config.styles[ style ];
|
||||
_.each( config.fonts[ style ], function( uri, id ) {
|
||||
document.head.appendChild( createLink( id, uri ) );
|
||||
} );
|
||||
if ( data ) {
|
||||
document.head.appendChild( createLink( data.id, data.uri ) );
|
||||
}
|
||||
}
|
||||
|
||||
function removeCustomStyles() {
|
||||
$( '#custom-colors-css, #custom-background-css, #jetpack-custom-fonts-css', document.head ).remove();
|
||||
}
|
||||
|
||||
} )( jQuery );
|
101
radcliffe-2/comments.php
Normal file
101
radcliffe-2/comments.php
Normal file
|
@ -0,0 +1,101 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying comments
|
||||
*
|
||||
* This is the template that displays the area of the page that contains both the current comments
|
||||
* and the comment form.
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
/*
|
||||
* If the current post is protected by a password and
|
||||
* the visitor has not yet entered the password we will
|
||||
* return early without loading the comments.
|
||||
*/
|
||||
if ( post_password_required() ) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="comments" class="comments-area">
|
||||
<?php
|
||||
// You can start editing here -- including this comment!
|
||||
if ( have_comments() ) : ?>
|
||||
<div class="comments-wrapper">
|
||||
<h2 class="comments-title">
|
||||
<?php
|
||||
$comment_count = get_comments_number();
|
||||
if ( 1 === $comment_count ) {
|
||||
printf(
|
||||
/* translators: 1: title. */
|
||||
esc_html_e( 'One thought on “%1$s”', 'radcliffe-2' ),
|
||||
'<span>' . get_the_title() . '</span>'
|
||||
);
|
||||
} else {
|
||||
printf( // WPCS: XSS OK.
|
||||
/* translators: 1: comment count number, 2: title. */
|
||||
esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $comment_count, 'comments title', 'radcliffe-2' ) ),
|
||||
number_format_i18n( $comment_count ),
|
||||
'<span>' . get_the_title() . '</span>'
|
||||
);
|
||||
}
|
||||
?>
|
||||
</h2><!-- .comments-title -->
|
||||
|
||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
|
||||
<nav id="comment-nav-above" class="navigation comment-navigation">
|
||||
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'radcliffe-2' ); ?></h2>
|
||||
<div class="nav-links">
|
||||
|
||||
<div class="nav-previous"><?php previous_comments_link( radcliffe_2_get_svg( array( 'icon' => 'previous' ) ) . esc_html__( 'Older Comments', 'radcliffe-2' ) ); ?></div>
|
||||
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'radcliffe-2' ). radcliffe_2_get_svg( array( 'icon' => 'next' ) ) ); ?></div>
|
||||
|
||||
</div><!-- .nav-links -->
|
||||
</nav><!-- #comment-nav-above -->
|
||||
<?php endif; // Check for comment navigation. ?>
|
||||
|
||||
<ol class="comment-list">
|
||||
<?php
|
||||
wp_list_comments( array(
|
||||
'style' => 'ol',
|
||||
'short_ping' => true,
|
||||
'callback' => 'radcliffe_2_comment',
|
||||
) );
|
||||
?>
|
||||
</ol><!-- .comment-list -->
|
||||
|
||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
|
||||
<nav id="comment-nav-below" class="navigation comment-navigation">
|
||||
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'radcliffe-2' ); ?></h2>
|
||||
<div class="nav-links">
|
||||
|
||||
<div class="nav-previous"><?php previous_comments_link( radcliffe_2_get_svg( array( 'icon' => 'previous' ) ) . esc_html__( 'Older Comments', 'radcliffe-2' ) ); ?></div>
|
||||
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'radcliffe-2' ). radcliffe_2_get_svg( array( 'icon' => 'next' ) ) ); ?></div>
|
||||
|
||||
</div><!-- .nav-links -->
|
||||
</nav><!-- #comment-nav-below -->
|
||||
<?php
|
||||
endif; // Check for comment navigation.
|
||||
?>
|
||||
|
||||
</div><!-- .comments-wrapper -->
|
||||
|
||||
<?php
|
||||
endif; // Check for have_comments().
|
||||
?>
|
||||
<div class="respond">
|
||||
<div class="respond-wrapper">
|
||||
<?php
|
||||
// If comments are closed and there are comments, let's leave a little note, shall we?
|
||||
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
|
||||
|
||||
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'radcliffe-2' ); ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php comment_form(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- #comments -->
|
121
radcliffe-2/contact-info/contact-info-customize-preview.js
Normal file
121
radcliffe-2/contact-info/contact-info-customize-preview.js
Normal file
|
@ -0,0 +1,121 @@
|
|||
/**
|
||||
* File contact-info-area-customize-preview.js.
|
||||
*
|
||||
* Allows previewing of the background overlay opacity control.
|
||||
*/
|
||||
( function( $ ) {
|
||||
|
||||
// Don't show the CTA if everything is empty
|
||||
$css = '.contact-info-area.contact-info-no-address.contact-info-no-phone.contact-info-no-email.contact-info-no-hours, .contact-info-area.contact-info-footer-display,';
|
||||
$css += ".contact-info-no-address .contact-info-address,";
|
||||
$css += ".contact-info-no-phone .contact-info-phone,";
|
||||
$css += ".contact-info-no-email .contact-info-email,";
|
||||
$css += ".contact-info-no-hours .contact-info-hours,";
|
||||
$css += '#masthead .contact-info-area.contact-info-header-no-display,';
|
||||
$css += '#content + .contact-info-area.contact-info-footer-no-display';
|
||||
$css += '{ display: none; }'
|
||||
|
||||
$( '<style type="text/css">' + $css + '</style>' ).appendTo( 'head' );
|
||||
|
||||
// Contact info in Footer or Header toggle
|
||||
wp.customize( 'radcliffe_2_contact_info_location', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
if ( 'header' === to ) {
|
||||
$( '.contact-info-area' ).addClass( 'contact-info-footer-no-display' ).removeClass( 'contact-info-header-no-display' );
|
||||
} else {
|
||||
$( '.contact-info-area' ).addClass( 'contact-info-header-no-display' ).removeClass( 'contact-info-footer-no-display' );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
|
||||
// Update the contact info address in real time...
|
||||
wp.customize( 'radcliffe_2_contact_info_address', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.contact-info-area .contact-info-address .contact-info-label' ).text( to );
|
||||
|
||||
if ( '' === to ) {
|
||||
$( '.contact-info-area' ).addClass( 'contact-info-no-address' );
|
||||
$( '.contact-info-area .contact-info-address' ).hide();
|
||||
} else {
|
||||
$( '.contact-info-area' ).removeClass( 'contact-info-no-address' );
|
||||
$( '.contact-info-area .contact-info-address' ).show();
|
||||
}
|
||||
} );
|
||||
} );
|
||||
|
||||
// Update the contact info phone in real time...
|
||||
wp.customize( 'radcliffe_2_contact_info_phone', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.contact-info-area .contact-info-phone .contact-info-label' ).text( to );
|
||||
|
||||
if ( '' === to ) {
|
||||
$( '.contact-info-area' ).addClass( 'contact-info-no-phone' );
|
||||
$( '.contact-info-area .contact-info-phone' ).hide();
|
||||
} else {
|
||||
$( '.contact-info-area' ).removeClass( 'contact-info-no-phone' );
|
||||
$( '.contact-info-area .contact-info-phone' ).show();
|
||||
}
|
||||
} );
|
||||
} );
|
||||
|
||||
// Update the contact info email in real time...
|
||||
wp.customize( 'radcliffe_2_contact_info_email', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.contact-info-area .contact-info-email .contact-info-label' ).text( to );
|
||||
|
||||
if ( '' === to ) {
|
||||
$( '.contact-info-area' ).addClass( 'contact-info-no-email' );
|
||||
$( '.contact-info-area .contact-info-email' ).hide();
|
||||
} else {
|
||||
$( '.contact-info-area' ).removeClass( 'contact-info-no-email' );
|
||||
$( '.contact-info-area .contact-info-email' ).show();
|
||||
}
|
||||
} );
|
||||
} );
|
||||
|
||||
// Update the contact info hours in real time...
|
||||
wp.customize( 'radcliffe_2_contact_info_hours', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.contact-info-area .contact-info-hours .contact-info-hours-text' ).text( to );
|
||||
|
||||
if ( '' === to ) {
|
||||
$( '.contact-info-area' ).addClass( 'contact-info-no-hours' );
|
||||
$( '.contact-info-area .contact-info-hours' ).hide();
|
||||
} else {
|
||||
$( '.contact-info-area' ).removeClass( 'contact-info-no-hours' );
|
||||
$( '.contact-info-area .contact-info-hours' ).show();
|
||||
}
|
||||
} );
|
||||
} );
|
||||
|
||||
/*
|
||||
// Update the contact info address in real time...
|
||||
wp.customize( 'radcliffe_2_contact_info_address', function( value ) {
|
||||
value.bind( function( newval ) {
|
||||
$( '.contact-info-address .contact-info-label' ).html( newval );
|
||||
} );
|
||||
} );
|
||||
|
||||
// Update the contact info phone in real time...
|
||||
wp.customize( 'radcliffe_2_contact_info_phone', function( value ) {
|
||||
value.bind( function( newval ) {
|
||||
$( '.contact-info-phone .contact-info-label' ).html( newval );
|
||||
} );
|
||||
} );
|
||||
|
||||
// Update the contact info email in real time...
|
||||
wp.customize( 'radcliffe_2_contact_info_email', function( value ) {
|
||||
value.bind( function( newval ) {
|
||||
$( '.contact-info-email .contact-info-label' ).html( newval );
|
||||
} );
|
||||
} );
|
||||
|
||||
// Update the contact info hours in real time...
|
||||
wp.customize( 'radcliffe_2_contact_info_hours', function( value ) {
|
||||
value.bind( function( newval ) {
|
||||
$( '.contact-info-hours .contact-info-hours-text' ).html( newval );
|
||||
} );
|
||||
} );
|
||||
*/
|
||||
|
||||
} )( jQuery );
|
125
radcliffe-2/contact-info/contact-info-customizer.php
Normal file
125
radcliffe-2/contact-info/contact-info-customizer.php
Normal file
|
@ -0,0 +1,125 @@
|
|||
<?php
|
||||
/**
|
||||
* Radcliffe 2 Theme Customizer - Contact Info
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
function radcliffe_2_contact_info_customize_register( $wp_customize ) {
|
||||
/* Add Section for Contact Info */
|
||||
$wp_customize->add_section( 'radcliffe_2_contact_info', array(
|
||||
'title' => esc_html__( 'Contact Info', 'radcliffe-2' ),
|
||||
'description' => esc_html__( 'Display your location, hours, and contact information.', 'radcliffe-2' ),
|
||||
'priority' => 13,
|
||||
) );
|
||||
|
||||
/* Display in Header */
|
||||
$wp_customize->add_setting( 'radcliffe_2_contact_info_location', array(
|
||||
'default' => 'header',
|
||||
'sanitize_callback' => 'radcliffe_2_contact_info_sanitize_location',
|
||||
'transport' => 'postMessage',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control( 'radcliffe_2_contact_info_location', array(
|
||||
'label' => esc_html__( 'Where would you like to display your contact information?', 'radcliffe-2' ),
|
||||
'section' => 'radcliffe_2_contact_info',
|
||||
'type' => 'radio',
|
||||
'choices' => array(
|
||||
'header' => esc_html__( 'In the header', 'radcliffe-2' ),
|
||||
'footer' => esc_html__( 'In the footer', 'radcliffe-2' ),
|
||||
),
|
||||
) );
|
||||
|
||||
/* Address */
|
||||
$wp_customize->add_setting( 'radcliffe_2_contact_info_address', array(
|
||||
'sanitize_callback' => 'sanitize_text_field',
|
||||
'transport' => 'postMessage',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control( 'radcliffe_2_contact_info_address', array(
|
||||
'label' => esc_html__( 'Address', 'radcliffe-2' ),
|
||||
'section' => 'radcliffe_2_contact_info',
|
||||
'type' => 'textarea',
|
||||
'input_attrs' => array(
|
||||
'placeholder' => esc_attr__( '123 Main St, Somewhere XY, 98765', 'radcliffe-2' ),
|
||||
),
|
||||
) );
|
||||
|
||||
/* Phone */
|
||||
$wp_customize->add_setting( 'radcliffe_2_contact_info_phone', array(
|
||||
'sanitize_callback' => 'sanitize_text_field',
|
||||
'transport' => 'postMessage',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control( 'radcliffe_2_contact_info_phone', array(
|
||||
'label' => esc_html__( 'Phone', 'radcliffe-2' ),
|
||||
'section' => 'radcliffe_2_contact_info',
|
||||
'type' => 'text',
|
||||
'input_attrs' => array(
|
||||
'placeholder' => esc_attr__( '(555) 123-4567', 'radcliffe-2' ),
|
||||
),
|
||||
) );
|
||||
|
||||
/* Email */
|
||||
$wp_customize->add_setting( 'radcliffe_2_contact_info_email', array(
|
||||
'sanitize_callback' => 'sanitize_email',
|
||||
'transport' => 'postMessage',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control( 'radcliffe_2_contact_info_email', array(
|
||||
'label' => esc_html__( 'Email', 'radcliffe-2' ),
|
||||
'section' => 'radcliffe_2_contact_info',
|
||||
'type' => 'email',
|
||||
'input_attrs' => array(
|
||||
'placeholder' => esc_attr__( 'email@example.com', 'radcliffe-2' ),
|
||||
),
|
||||
) );
|
||||
|
||||
/* Hours */
|
||||
$wp_customize->add_setting( 'radcliffe_2_contact_info_hours', array(
|
||||
'sanitize_callback' => 'sanitize_text_field',
|
||||
'transport' => 'postMessage',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control( 'radcliffe_2_contact_info_hours', array(
|
||||
'label' => esc_html__( 'Hours', 'radcliffe-2' ),
|
||||
'section' => 'radcliffe_2_contact_info',
|
||||
'type' => 'textarea',
|
||||
'input_attrs' => array(
|
||||
'placeholder' => esc_attr__( 'M-F: 9-5pm - Weekends: 10-4pm', 'radcliffe-2' ),
|
||||
),
|
||||
) );
|
||||
}
|
||||
add_action( 'customize_register', 'radcliffe_2_contact_info_customize_register' );
|
||||
|
||||
/**
|
||||
* Sanitize the checkbox.
|
||||
*
|
||||
* @param boolean $input.
|
||||
* @return boolean
|
||||
*/
|
||||
function radcliffe_2_contact_info_sanitize_checkbox( $input ) {
|
||||
return ( 1 == $input ? true : false );
|
||||
}
|
||||
|
||||
/**
|
||||
* Sanitize the Contact Info location value.
|
||||
*
|
||||
* @param string $display.
|
||||
* @return string.
|
||||
*/
|
||||
function radcliffe_2_contact_info_sanitize_location( $display ) {
|
||||
if ( ! in_array( $display, array( 'header', 'footer' ) ) ) {
|
||||
$display = 'header';
|
||||
}
|
||||
return $display;
|
||||
}
|
||||
|
||||
/**
|
||||
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
|
||||
*/
|
||||
function radcliffe_2_contact_info_customize_preview_js() {
|
||||
wp_enqueue_script( 'radcliffe-2-contact-info-customizer', get_template_directory_uri() . '/contact-info/contact-info-customize-preview.js', array( 'jquery', 'customize-preview' ), '20170907', true );
|
||||
}
|
||||
add_action( 'customize_preview_init', 'radcliffe_2_contact_info_customize_preview_js' );
|
||||
|
120
radcliffe-2/contact-info/contact-info-functions.php
Normal file
120
radcliffe-2/contact-info/contact-info-functions.php
Normal file
|
@ -0,0 +1,120 @@
|
|||
<?php
|
||||
if ( ! function_exists( 'radcliffe_2_contact_info' ) ) :
|
||||
/**
|
||||
* Prints HTML with contact information.
|
||||
*/
|
||||
function radcliffe_2_contact_info( $section ) {
|
||||
$location = get_theme_mod( 'radcliffe_2_contact_info_location', 'header' );
|
||||
$address = get_theme_mod( 'radcliffe_2_contact_info_address', '' );
|
||||
$phone = get_theme_mod( 'radcliffe_2_contact_info_phone', '' );
|
||||
$email = get_theme_mod( 'radcliffe_2_contact_info_email', '' );
|
||||
$hours = get_theme_mod( 'radcliffe_2_contact_info_hours', '' );
|
||||
|
||||
// If Address, Phone, Email and Hours are empty, return.
|
||||
if ( ( ! $address && ! is_customize_preview() ) &&
|
||||
( ! $phone && ! is_customize_preview() ) &&
|
||||
( ! $email && ! is_customize_preview() ) &&
|
||||
( ! $hours && ! is_customize_preview() ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// If we are in the Header Section and the option is disabled, return.
|
||||
if ( 'header' === $section && 'header' !== $location && ! is_customize_preview() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// If we are in the Footer Section and the option is disabled, return.
|
||||
if ( 'footer' === $section && 'footer' !== $location && ! is_customize_preview() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Let's set up some stuff for the Customizer preview
|
||||
$class = '';
|
||||
if ( is_customize_preview() ) {
|
||||
if ( ! $address ) {
|
||||
$class .= ' contact-info-no-address';
|
||||
}
|
||||
if ( ! $phone ) {
|
||||
$class .= ' contact-info-no-phone';
|
||||
}
|
||||
if ( ! $email ) {
|
||||
$class .= ' contact-info-no-email';
|
||||
}
|
||||
if ( ! $hours ) {
|
||||
$class .= ' contact-info-no-hours';
|
||||
}
|
||||
if ( 'footer' === $location ) {
|
||||
$class .= ' contact-info-header-no-display';
|
||||
} else if ( 'header' === $location ) {
|
||||
$class .= ' contact-info-footer-no-display';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div class="contact-info-area <?php echo $class; ?>">
|
||||
<div class="contact-info-wrapper">
|
||||
<?php if ( $address || is_customize_preview() ) : ?>
|
||||
<span class="contact-info-address">
|
||||
<a href="<?php echo esc_url( radcliffe_2_map_link( $address ) ); ?>" target="_blank">
|
||||
<?php echo radcliffe_2_get_svg( array( 'icon' => 'location', 'title' => esc_html__( 'Location', 'radcliffe-2' ) ) ); ?>
|
||||
<span class="contact-info-label"><?php echo esc_html( $address ); ?></span>
|
||||
</a>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( $phone || is_customize_preview() ) : ?>
|
||||
<span class="contact-info-phone">
|
||||
<a href="tel:<?php echo esc_html( $phone ); ?>">
|
||||
<?php echo radcliffe_2_get_svg( array( 'icon' => 'phone', 'title' => esc_html__( 'Phone', 'radcliffe-2' ) ) ); ?>
|
||||
<span class="contact-info-label"><?php echo esc_html( $phone ); ?></span>
|
||||
</a>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( $email || is_customize_preview() ) : ?>
|
||||
<span class="contact-info-email">
|
||||
<a href="mailto:<?php echo sanitize_email( $email ); ?>">
|
||||
<?php echo radcliffe_2_get_svg( array( 'icon' => 'mail', 'title' => esc_html__( 'E-mail', 'radcliffe-2' ) ) ); ?>
|
||||
<span class="contact-info-label"><?php echo sanitize_email( $email ); ?></span>
|
||||
</a>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( $hours || is_customize_preview() ) : ?>
|
||||
<span class="contact-info-hours">
|
||||
<?php echo radcliffe_2_get_svg( array( 'icon' => 'time', 'title' => esc_html__( 'Hours', 'radcliffe-2' ) ) ); ?>
|
||||
<span class="contact-info-hours-text"><?php echo esc_html( $hours ); ?></span>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</div><!-- .contact-info-wrapper -->
|
||||
</div><!-- .contact-info-area -->
|
||||
|
||||
<?php
|
||||
}
|
||||
endif;
|
||||
|
||||
/**
|
||||
* Encode an address for a Google Maps link.
|
||||
*/
|
||||
function radcliffe_2_urlencode_address( $address ) {
|
||||
$address = strtolower( $address );
|
||||
$address = preg_replace( "/\s+/", " ", trim( $address ) ); // Get rid of any unwanted whitespace.
|
||||
$address = str_ireplace( " ", "+", $address ); // Use + not %20.
|
||||
urlencode( $address );
|
||||
|
||||
return $address;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a link with a specific address to Google Maps.
|
||||
*/
|
||||
function radcliffe_2_map_link( $address ) {
|
||||
return esc_url( 'http://maps.google.com/maps?q=' . radcliffe_2_urlencode_address( $address ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Customizer additions.
|
||||
*/
|
||||
require get_template_directory() . '/contact-info/contact-info-customizer.php';
|
36
radcliffe-2/footer.php
Normal file
36
radcliffe-2/footer.php
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying the footer
|
||||
*
|
||||
* Contains the closing of the #content div and all content after.
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
</div><!-- #content -->
|
||||
|
||||
<?php radcliffe_2_contact_info( 'footer' ); ?>
|
||||
|
||||
<footer id="colophon" class="site-footer">
|
||||
<div class="site-info">
|
||||
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'radcliffe-2' ) ); ?>"><?php
|
||||
/* translators: %s: CMS name, i.e. WordPress. */
|
||||
printf( esc_html__( 'Proudly powered by %s', 'radcliffe-2' ), 'WordPress' );
|
||||
?></a>
|
||||
<span class="sep"> | </span>
|
||||
<?php
|
||||
/* translators: 1: Theme name, 2: Theme author. */
|
||||
printf( esc_html__( 'Theme: %1$s by %2$s.', 'radcliffe-2' ), 'Radcliffe 2', '<a href="http://www.andersnoren.se" rel="designer">Anders Norén</a>' );
|
||||
?>
|
||||
</div><!-- .site-info -->
|
||||
</footer><!-- #colophon -->
|
||||
</div><!-- #page -->
|
||||
|
||||
<?php wp_footer(); ?>
|
||||
|
||||
</body>
|
||||
</html>
|
224
radcliffe-2/functions.php
Normal file
224
radcliffe-2/functions.php
Normal file
|
@ -0,0 +1,224 @@
|
|||
<?php
|
||||
/**
|
||||
* Radcliffe 2 functions and definitions
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/theme-functions/
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'radcliffe_2_setup' ) ) :
|
||||
/**
|
||||
* Sets up theme defaults and registers support for various WordPress features.
|
||||
*
|
||||
* Note that this function is hooked into the after_setup_theme hook, which
|
||||
* runs before the init hook. The init hook is too late for some features, such
|
||||
* as indicating support for post thumbnails.
|
||||
*/
|
||||
function radcliffe_2_setup() {
|
||||
/*
|
||||
* Make theme available for translation.
|
||||
* Translations can be filed in the /languages/ directory.
|
||||
* If you're building a theme based on _s, use a find and replace
|
||||
* to change 'radcliffe-2' to the name of your theme in all the template files.
|
||||
*/
|
||||
load_theme_textdomain( 'radcliffe-2', get_template_directory() . '/languages' );
|
||||
|
||||
// Add default posts and comments RSS feed links to head.
|
||||
add_theme_support( 'automatic-feed-links' );
|
||||
|
||||
/*
|
||||
* Let WordPress manage the document title.
|
||||
* By adding theme support, we declare that this theme does not use a
|
||||
* hard-coded <title> tag in the document head, and expect WordPress to
|
||||
* provide it for us.
|
||||
*/
|
||||
add_theme_support( 'title-tag' );
|
||||
|
||||
/*
|
||||
* Enable support for Post Thumbnails on posts and pages.
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
|
||||
*/
|
||||
add_theme_support( 'post-thumbnails' );
|
||||
add_image_size( 'radcliffe-post-image', 2000, 1500 );
|
||||
|
||||
// This theme uses wp_nav_menu() in one location.
|
||||
register_nav_menus( array(
|
||||
'menu-1' => esc_html__( 'Header', 'radcliffe-2' ),
|
||||
) );
|
||||
|
||||
/*
|
||||
* Switch default core markup for search form, comment form, and comments
|
||||
* to output valid HTML5.
|
||||
*/
|
||||
add_theme_support( 'html5', array(
|
||||
'search-form',
|
||||
'comment-form',
|
||||
'comment-list',
|
||||
'gallery',
|
||||
'caption',
|
||||
) );
|
||||
|
||||
// Add theme support for Custom Logo.
|
||||
add_theme_support( 'custom-logo', array(
|
||||
'width' => 1200,
|
||||
'height' => 900,
|
||||
'flex-width' => true,
|
||||
'flex-height' => true,
|
||||
'header-text' => array( 'site-title', 'site-description' ),
|
||||
) );
|
||||
|
||||
// Set up the WordPress core custom background feature.
|
||||
add_theme_support( 'custom-background', apply_filters( 'radcliffe_2_custom_background_args', array(
|
||||
'default-color' => 'ffffff',
|
||||
'default-image' => '',
|
||||
) ) );
|
||||
|
||||
// Add theme support for selective refresh for widgets.
|
||||
add_theme_support( 'customize-selective-refresh-widgets' );
|
||||
}
|
||||
endif;
|
||||
add_action( 'after_setup_theme', 'radcliffe_2_setup' );
|
||||
|
||||
/**
|
||||
* Set the content width in pixels, based on the theme's design and stylesheet.
|
||||
*
|
||||
* Priority 0 to make it available to lower priority callbacks.
|
||||
*
|
||||
* @global int $content_width
|
||||
*/
|
||||
function radcliffe_2_content_width() {
|
||||
$GLOBALS['content_width'] = apply_filters( 'radcliffe_2_content_width', 740 );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'radcliffe_2_content_width', 0 );
|
||||
|
||||
/**
|
||||
* Register widget area.
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
|
||||
*/
|
||||
function radcliffe_2_widgets_init() {
|
||||
register_sidebar( array(
|
||||
'name' => esc_html__( 'Footer 1', 'radcliffe-2' ),
|
||||
'id' => 'sidebar-1',
|
||||
'description' => '',
|
||||
'before_widget' => '<section id="%1$s" class="widget %2$s">',
|
||||
'after_widget' => '</section>',
|
||||
'before_title' => '<h2 class="widget-title">',
|
||||
'after_title' => '</h2>',
|
||||
) );
|
||||
|
||||
register_sidebar( array(
|
||||
'name' => esc_html__( 'Footer 2', 'radcliffe-2' ),
|
||||
'id' => 'sidebar-2',
|
||||
'description' => '',
|
||||
'before_widget' => '<section id="%1$s" class="widget %2$s">',
|
||||
'after_widget' => '</section>',
|
||||
'before_title' => '<h2 class="widget-title">',
|
||||
'after_title' => '</h2>',
|
||||
) );
|
||||
|
||||
register_sidebar( array(
|
||||
'name' => esc_html__( 'Footer 3', 'radcliffe-2' ),
|
||||
'id' => 'sidebar-3',
|
||||
'description' => '',
|
||||
'before_widget' => '<section id="%1$s" class="widget %2$s">',
|
||||
'after_widget' => '</section>',
|
||||
'before_title' => '<h2 class="widget-title">',
|
||||
'after_title' => '</h2>',
|
||||
) );
|
||||
}
|
||||
add_action( 'widgets_init', 'radcliffe_2_widgets_init' );
|
||||
|
||||
/**
|
||||
* Enqueue scripts and styles.
|
||||
*/
|
||||
function radcliffe_2_scripts() {
|
||||
wp_enqueue_style( 'radcliffe-2-style', get_stylesheet_uri() );
|
||||
|
||||
wp_enqueue_script( 'radcliffe-2-navigation', get_template_directory_uri() . '/assets/js/navigation.js', array(), '20151215', true );
|
||||
|
||||
wp_localize_script( 'radcliffe-2-navigation', 'screenReaderText', array(
|
||||
'expand' => esc_html__( 'Expand child menu', 'radcliffe-2' ),
|
||||
'collapse' => esc_html__( 'Collapse child menu', 'radcliffe-2' ),
|
||||
'icon_expand' => radcliffe_2_get_svg( array( 'icon' => 'expand' ) ),
|
||||
'icon_zoom' => radcliffe_2_get_svg( array( 'icon' => 'zoom' ) ),
|
||||
) );
|
||||
|
||||
wp_enqueue_script( 'radcliffe-2-skip-link-focus-fix', get_template_directory_uri() . '/assets/js/skip-link-focus-fix.js', array(), '20151215', true );
|
||||
|
||||
wp_enqueue_script( 'radcliffe-2', get_template_directory_uri() . '/assets/js/radcliffe-2.js', array( 'jquery' ), '20170629', true );
|
||||
|
||||
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
|
||||
wp_enqueue_script( 'comment-reply' );
|
||||
}
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'radcliffe_2_scripts' );
|
||||
|
||||
/**
|
||||
* Enqueue stylesheet inside the Customizer.
|
||||
*/
|
||||
function radcliffe_2_custom_customize_enqueue() {
|
||||
wp_enqueue_style( 'customizer-css', get_stylesheet_directory_uri() . '/assets/css/customizer.css' );
|
||||
}
|
||||
add_action( 'customize_controls_enqueue_scripts', 'radcliffe_2_custom_customize_enqueue' );
|
||||
|
||||
|
||||
/**
|
||||
* Add a pingback url auto-discovery header for singularly identifiable articles.
|
||||
*/
|
||||
function radcliffe_2_pingback_header() {
|
||||
if ( is_singular() && pings_open() ) {
|
||||
echo '<link rel="pingback" href="', esc_url( get_bloginfo( 'pingback_url' ) ), '">';
|
||||
}
|
||||
}
|
||||
add_action( 'wp_head', 'radcliffe_2_pingback_header' );
|
||||
|
||||
/**
|
||||
* Custom template tags for this theme.
|
||||
*/
|
||||
require get_template_directory() . '/inc/template-tags.php';
|
||||
|
||||
/**
|
||||
* Additional features to allow styling of the templates.
|
||||
*/
|
||||
require get_template_directory() . '/inc/template-functions.php';
|
||||
|
||||
/**
|
||||
* Style packs.
|
||||
*/
|
||||
require get_template_directory() . '/inc/style-packs-core.php';
|
||||
require get_template_directory() . '/inc/style-packs.php';
|
||||
|
||||
/**
|
||||
* Customizer additions.
|
||||
*/
|
||||
require get_template_directory() . '/inc/customizer.php';
|
||||
|
||||
/**
|
||||
* SVG icons functions and filters.
|
||||
*/
|
||||
require get_parent_theme_file_path( '/inc/icon-functions.php' );
|
||||
|
||||
/**
|
||||
* Load Jetpack compatibility file.
|
||||
*/
|
||||
require get_template_directory() . '/inc/jetpack.php';
|
||||
|
||||
/**
|
||||
* Load Hero Area code.
|
||||
*/
|
||||
require get_template_directory() . '/hero-area/hero-area-functions.php';
|
||||
|
||||
/**
|
||||
* Load Contact Info code.
|
||||
*/
|
||||
require get_template_directory() . '/contact-info/contact-info-functions.php';
|
||||
|
||||
/**
|
||||
* Load WooCommerce compatibility file.
|
||||
*/
|
||||
if ( class_exists( 'WooCommerce' ) ) {
|
||||
require get_template_directory() . '/inc/woocommerce.php';
|
||||
}
|
92
radcliffe-2/header.php
Normal file
92
radcliffe-2/header.php
Normal file
|
@ -0,0 +1,92 @@
|
|||
<?php
|
||||
/**
|
||||
* The header for our theme
|
||||
*
|
||||
* This is the template that displays all of the <head> section and everything up until <div id="content">
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
?><!doctype html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="profile" href="http://gmpg.org/xfn/11">
|
||||
|
||||
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
|
||||
<body <?php body_class(); ?>>
|
||||
<div id="page" class="site">
|
||||
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'radcliffe-2' ); ?></a>
|
||||
|
||||
<header id="masthead" class="site-header">
|
||||
<?php radcliffe_2_contact_info( 'header' ); ?>
|
||||
|
||||
<?php if ( get_header_image() ) : ?>
|
||||
<div class="header-image">
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
|
||||
<img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
|
||||
</a>
|
||||
</div><!-- #header-image -->
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="header-wrapper">
|
||||
<div class="site-branding">
|
||||
<?php the_custom_logo(); ?>
|
||||
|
||||
<div class="site-branding-text">
|
||||
<?php
|
||||
if ( is_front_page() && is_home() ) : ?>
|
||||
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
|
||||
<?php else : ?>
|
||||
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
$description = get_bloginfo( 'description', 'display' );
|
||||
if ( $description || is_customize_preview() ) : ?>
|
||||
<p class="site-description"><?php echo $description; /* WPCS: xss ok. */ ?></p>
|
||||
<?php
|
||||
endif; ?>
|
||||
</div><!-- .site-branding-text -->
|
||||
|
||||
</div><!-- .site-branding -->
|
||||
|
||||
</div><!-- .header-wrapper -->
|
||||
|
||||
<div class="menu-wrapper">
|
||||
<?php if ( has_nav_menu( 'menu-1' ) ) : ?>
|
||||
<nav id="site-navigation" class="main-navigation">
|
||||
<button class="menu-toggle" aria-controls="header-menu" aria-expanded="false">
|
||||
<?php
|
||||
echo radcliffe_2_get_svg( array( 'icon' => 'menu' ) );
|
||||
echo radcliffe_2_get_svg( array( 'icon' => 'close' ) );
|
||||
esc_html_e( 'Menu', 'radcliffe-2' );
|
||||
?>
|
||||
</button>
|
||||
<?php
|
||||
wp_nav_menu( array(
|
||||
'theme_location' => 'menu-1',
|
||||
'menu_id' => 'header-menu',
|
||||
) );
|
||||
?>
|
||||
</nav><!-- #site-navigation -->
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Add Woocommerce Cart to header if Woocommerce exists
|
||||
if ( class_exists( 'WooCommerce' ) ) {
|
||||
radcliffe_2_woocommerce_header_cart();
|
||||
} ?>
|
||||
|
||||
<?php radcliffe_2_social_menu(); ?>
|
||||
</div><!-- .menu-wrapper -->
|
||||
</header><!-- #masthead -->
|
||||
|
||||
<?php radcliffe_2_hero_area(); ?>
|
||||
|
||||
<div id="content" class="site-content">
|
117
radcliffe-2/hero-area/hero-area-customize-preview.js
Normal file
117
radcliffe-2/hero-area/hero-area-customize-preview.js
Normal file
|
@ -0,0 +1,117 @@
|
|||
/**
|
||||
* File hero-area-customize-preview.js.
|
||||
*
|
||||
* Allows previewing of all the options in real time
|
||||
*/
|
||||
( function( $ ) {
|
||||
|
||||
// Don't show the CTA if everything is empty
|
||||
$( '<style type="text/css">.hero-area.hero-no-title.hero-no-content.hero-no-buttontext.hero-no-buttonlink { display: none !important; } </style>' ).appendTo( 'head' );
|
||||
|
||||
// Checkbox toggle
|
||||
wp.customize( 'radcliffe_2_hero_area_display', function( value ) {
|
||||
|
||||
// Check to see if CTA is set to hidden; if yes, hide in the Customizer, too.
|
||||
if( false === wp.customize.settings.values.radcliffe_2_hero_area_display ) {
|
||||
$( '.hero-area' ).hide();
|
||||
}
|
||||
|
||||
value.bind( function( to ) {
|
||||
if ( false === to ) {
|
||||
$( '.hero-area' ).hide();
|
||||
} else {
|
||||
$( '.hero-area' ).show();
|
||||
}
|
||||
} );
|
||||
} );
|
||||
|
||||
// CTA Title
|
||||
wp.customize( 'radcliffe_2_hero_area_title', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.hero-area-title' ).text( to );
|
||||
|
||||
if ( '' === to ) {
|
||||
$( '.hero-area' ).addClass( 'hero-no-title' );
|
||||
} else {
|
||||
$( '.hero-area' ).removeClass( 'hero-no-title' );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
|
||||
// CTA Content
|
||||
wp.customize( 'radcliffe_2_hero_area_content', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.hero-area-content' ).html( to );
|
||||
|
||||
if ( '' === to ) {
|
||||
$( '.hero-area' ).addClass( 'hero-no-content' );
|
||||
} else {
|
||||
$( '.hero-area' ).removeClass( 'hero-no-content' );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
|
||||
// CTA Button Text
|
||||
wp.customize( 'radcliffe_2_hero_area_button_text', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.hero-area-button a' ).text( to );
|
||||
|
||||
if ( '' === to ) {
|
||||
$( '.hero-area' ).addClass( 'hero-no-buttontext' );
|
||||
} else {
|
||||
$( '.hero-area' ).removeClass( 'hero-no-buttontext' );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
|
||||
// CTA Button Link
|
||||
wp.customize( 'radcliffe_2_hero_area_button_url', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.hero-area-button a' ).attr( 'href', to );
|
||||
|
||||
if ( '' === to ) {
|
||||
$( '.hero-area' ).addClass( 'hero-no-buttonlink' );
|
||||
} else {
|
||||
$( '.hero-area' ).removeClass( 'hero-no-buttonlink' );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
|
||||
// CTA Background Image
|
||||
wp.customize( 'radcliffe_2_hero_area_background', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
if ( "" === to ) {
|
||||
$( '.hero-area' ).removeClass( 'has-post-thumbnail' ).css( 'background-image', 'none' );
|
||||
} else {
|
||||
$( '.hero-area' ).addClass( 'has-post-thumbnail' ).css( 'background-image', 'url(' + to + ')');
|
||||
}
|
||||
} );
|
||||
} );
|
||||
|
||||
// CTA Background Overlay Opacity
|
||||
|
||||
// Set up our preview CSS using increments of 10, up to 90
|
||||
$css = '';
|
||||
for ( $i = 0; $i <= 90; $i += 10 ) {
|
||||
$css += '.background-opacity-' + $i + '.hero-area:before { opacity: ' + ( $i/100 ) + '; }';
|
||||
}
|
||||
$( '<style type="text/css">' + $css + '</style>' ).appendTo( 'head' );
|
||||
|
||||
// We can't append CSS to a :before element via JavaScript, since it's not in the DOM
|
||||
// So let's preview using classes instead!
|
||||
wp.customize( 'radcliffe_2_hero_overlay_opacity', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
$( '.hero-area' ).each( function() {;
|
||||
// Lets get rid of any existing classes
|
||||
var prefix = 'background-opacity-';
|
||||
var classes = this.className.split( ' ' ).filter( function( c ) {
|
||||
return c.lastIndexOf( prefix, 0 ) !== 0;
|
||||
} );
|
||||
this.className = classes.join( ' ' ).trim();
|
||||
} );
|
||||
|
||||
$( '.hero-area' ).addClass( 'background-opacity-' + to );
|
||||
} );
|
||||
} );
|
||||
|
||||
} )( jQuery );
|
144
radcliffe-2/hero-area/hero-area-customizer.php
Normal file
144
radcliffe-2/hero-area/hero-area-customizer.php
Normal file
|
@ -0,0 +1,144 @@
|
|||
<?php
|
||||
/**
|
||||
* Radcliffe 2 Theme Customizer - Hero Area
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
function radcliffe_2_hero_area_customize_register( $wp_customize ) {
|
||||
/* Add Section for Hero Area */
|
||||
$wp_customize->add_section( 'radcliffe_2_hero_area', array(
|
||||
'title' => esc_html__( 'Featured Prompt', 'radcliffe-2' ),
|
||||
'description' => esc_html__( 'Use this area to promote your most important message to site visitors. You can use a headline, a brief description and prominent link to help drive visitors where you’d like them to go.', 'radcliffe-2' ),
|
||||
'priority' => 12,
|
||||
) );
|
||||
|
||||
/* Display on Front Page */
|
||||
$wp_customize->add_setting( 'radcliffe_2_hero_area_display', array(
|
||||
'sanitize_callback' => 'radcliffe_2_hero_area_sanitize_checkbox',
|
||||
'transport' => 'postMessage',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control( 'radcliffe_2_hero_area_display', array(
|
||||
'label' => esc_html__( 'Display on the Front Page', 'radcliffe-2' ),
|
||||
'section' => 'radcliffe_2_hero_area',
|
||||
'type' => 'checkbox',
|
||||
) );
|
||||
|
||||
/* Title */
|
||||
$wp_customize->add_setting( 'radcliffe_2_hero_area_title', array(
|
||||
'sanitize_callback' => 'sanitize_text_field',
|
||||
'transport' => 'postMessage',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control( 'radcliffe_2_hero_area_title', array(
|
||||
'label' => esc_html__( 'Title', 'radcliffe-2' ),
|
||||
'section' => 'radcliffe_2_hero_area',
|
||||
'type' => 'text',
|
||||
'input_attrs' => array(
|
||||
'placeholder' => esc_attr__( 'Write a headline', 'radcliffe-2' ),
|
||||
),
|
||||
) );
|
||||
|
||||
/* Content */
|
||||
$wp_customize->add_setting( 'radcliffe_2_hero_area_content', array(
|
||||
'sanitize_callback' => 'wp_kses_post',
|
||||
'transport' => 'postMessage',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control( 'radcliffe_2_hero_area_content', array(
|
||||
'label' => esc_html__( 'Description', 'radcliffe-2' ),
|
||||
'section' => 'radcliffe_2_hero_area',
|
||||
'type' => 'textarea',
|
||||
'input_attrs' => array(
|
||||
'placeholder' => esc_attr__( 'Write some compelling text to encourage people to click the button below', 'radcliffe-2' ),
|
||||
),
|
||||
) );
|
||||
|
||||
/* Button Text */
|
||||
$wp_customize->add_setting( 'radcliffe_2_hero_area_button_text', array(
|
||||
'sanitize_callback' => 'sanitize_text_field',
|
||||
'transport' => 'postMessage',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control( 'radcliffe_2_hero_area_button_text', array(
|
||||
'label' => esc_html__( 'Button Text', 'radcliffe-2' ),
|
||||
'section' => 'radcliffe_2_hero_area',
|
||||
'type' => 'text',
|
||||
'input_attrs' => array(
|
||||
'placeholder' => esc_attr__( 'Click Me!', 'radcliffe-2' ),
|
||||
),
|
||||
) );
|
||||
|
||||
/* Button URL */
|
||||
$wp_customize->add_setting( 'radcliffe_2_hero_area_button_url', array(
|
||||
'sanitize_callback' => 'esc_url_raw',
|
||||
'transport' => 'postMessage',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control( 'radcliffe_2_hero_area_button_url', array(
|
||||
'label' => esc_html__( 'Button URL Link', 'radcliffe-2' ),
|
||||
'section' => 'radcliffe_2_hero_area',
|
||||
'type' => 'url',
|
||||
'input_attrs' => array(
|
||||
'placeholder' => esc_attr__( 'http://www.example.com/', 'radcliffe-2' ),
|
||||
),
|
||||
|
||||
) );
|
||||
|
||||
/* Background Image */
|
||||
$wp_customize->add_setting( 'radcliffe_2_hero_area_background', array(
|
||||
'sanitize_callback' => 'esc_url_raw',
|
||||
'transport' => 'postMessage',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'radcliffe_2_hero_area_background', array(
|
||||
'label' => esc_html__( 'Background Image', 'radcliffe-2' ),
|
||||
'section' => 'radcliffe_2_hero_area',
|
||||
) ) );
|
||||
|
||||
/* Background Image Overlay Opacity */
|
||||
$wp_customize->add_setting( 'radcliffe_2_hero_overlay_opacity', array(
|
||||
'default' => 40,
|
||||
'type' => 'theme_mod',
|
||||
'transport' => 'postMessage',
|
||||
'sanitize_callback' => 'absint',
|
||||
'sanitize_js_callback' => 'absint',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control( 'radcliffe_2_hero_overlay_opacity', array(
|
||||
'label' => esc_html__( 'Background Overlay', 'radcliffe-2' ),
|
||||
'description' => esc_html__( 'Adjust the darkness of the overlay over the background image.', 'radcliffe-2' ),
|
||||
'section' => 'radcliffe_2_hero_area',
|
||||
'type' => 'range',
|
||||
'input_attrs' => array(
|
||||
'step' => 10,
|
||||
'min' => 0,
|
||||
'max' => 90,
|
||||
'aria-valuemin' => 0,
|
||||
'aria-valuemax' => 90,
|
||||
'aria-valuenow' => 40,
|
||||
'aria-orientation' => 'horizontal',
|
||||
),
|
||||
) );
|
||||
}
|
||||
add_action( 'customize_register', 'radcliffe_2_hero_area_customize_register' );
|
||||
|
||||
/**
|
||||
* Sanitize the checkbox.
|
||||
*
|
||||
* @param boolean $input.
|
||||
* @return boolean
|
||||
*/
|
||||
function radcliffe_2_hero_area_sanitize_checkbox( $input ) {
|
||||
return ( 1 == $input ? true : false );
|
||||
}
|
||||
|
||||
/**
|
||||
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
|
||||
*/
|
||||
function radcliffe_2_hero_customize_preview_js() {
|
||||
wp_enqueue_script( 'radcliffe-2-hero-customizer', get_template_directory_uri() . '/hero-area/hero-area-customize-preview.js', array( 'jquery', 'customize-preview' ), '20170823', true );
|
||||
}
|
||||
add_action( 'customize_preview_init', 'radcliffe_2_hero_customize_preview_js' );
|
||||
|
102
radcliffe-2/hero-area/hero-area-functions.php
Normal file
102
radcliffe-2/hero-area/hero-area-functions.php
Normal file
|
@ -0,0 +1,102 @@
|
|||
<?php
|
||||
if ( ! function_exists( 'radcliffe_2_hero_area' ) ) :
|
||||
/**
|
||||
* Prints HTML with contact information.
|
||||
*/
|
||||
function radcliffe_2_hero_area() {
|
||||
$display = get_theme_mod( 'radcliffe_2_hero_area_display', '' );
|
||||
$title = get_theme_mod( 'radcliffe_2_hero_area_title', '' );
|
||||
$content = get_theme_mod( 'radcliffe_2_hero_area_content', '' );
|
||||
$button = get_theme_mod( 'radcliffe_2_hero_area_button_text', '' );
|
||||
$url = get_theme_mod( 'radcliffe_2_hero_area_button_url', '' );
|
||||
$image = get_theme_mod( 'radcliffe_2_hero_area_background', '' );
|
||||
$class = 'hero-area';
|
||||
|
||||
// If we are not on the front page, return.
|
||||
if ( ! is_front_page() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// If the display option is unchecked, return.
|
||||
if ( ! $display && ! is_customize_preview() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// If all the options are empty, return.
|
||||
if ( ( ! $title && ! $content && ! $button && ! $url ) && ! is_customize_preview() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// If we are in the Customize preview and stuff's empty, add classes
|
||||
if ( is_customize_preview() ) {
|
||||
if ( ! $title ) {
|
||||
$class .= ' hero-no-title';
|
||||
}
|
||||
if ( ! $content ) {
|
||||
$class .= ' hero-no-content';
|
||||
}
|
||||
if ( ! $button ) {
|
||||
$class .= ' hero-no-buttontext';
|
||||
}
|
||||
if ( ! $url ) {
|
||||
$class .= ' hero-no-buttonlink';
|
||||
}
|
||||
}
|
||||
|
||||
// Add extra class if there's an image background.
|
||||
if ( $image ) {
|
||||
$class .= ' has-post-thumbnail';
|
||||
} ?>
|
||||
|
||||
<div class="<?php echo $class; ?>" <?php radcliffe_2_hero_area_background_image(); ?>>
|
||||
<div class="hero-area-wrapper">
|
||||
<?php if ( $title || is_customize_preview() ) : ?>
|
||||
<h2 class="hero-area-title"><?php echo esc_html( $title ); ?></h2>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( $content || is_customize_preview() ) : ?>
|
||||
<div class="hero-area-content"><?php echo wp_kses_post( $content ); ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( ( $url && $button ) || is_customize_preview() ) : ?>
|
||||
<div class="hero-area-button">
|
||||
<a class="button" href="<?php echo esc_url( $url ); ?>"><?php echo esc_html( $button ); ?></a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div><!-- .hero-area-wrapper -->
|
||||
</div><!-- .hero-area -->
|
||||
|
||||
<?php
|
||||
}
|
||||
endif;
|
||||
|
||||
/**
|
||||
* Add uploaded image as background image.
|
||||
*/
|
||||
function radcliffe_2_hero_area_background_image() {
|
||||
$image = get_theme_mod( 'radcliffe_2_hero_area_background', '' );
|
||||
|
||||
if ( ! $image ) {
|
||||
return;
|
||||
}
|
||||
|
||||
printf( 'style="background-image: url(\'%s\');"', esc_url( $image ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Add inline CSS needed for overlay opacity
|
||||
*
|
||||
* @see wp_add_inline_style()
|
||||
*/
|
||||
function radcliffe_2_hero_opacity_css() {
|
||||
$opacity = get_theme_mod( 'radcliffe_2_hero_overlay_opacity', '40' );
|
||||
$css = '.hero-area:before { opacity: ' . $opacity/100 . '; }';
|
||||
|
||||
wp_add_inline_style( 'radcliffe-2-style', $css );
|
||||
}
|
||||
add_filter( 'wp_enqueue_scripts', 'radcliffe_2_hero_opacity_css' );
|
||||
|
||||
/**
|
||||
* Customizer additions.
|
||||
*/
|
||||
require get_template_directory() . '/hero-area/hero-area-customizer.php';
|
72
radcliffe-2/inc/customizer.php
Normal file
72
radcliffe-2/inc/customizer.php
Normal file
|
@ -0,0 +1,72 @@
|
|||
<?php
|
||||
/**
|
||||
* Radcliffe 2 Theme Customizer
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
/**
|
||||
* Add postMessage support for site title and description for the Theme Customizer.
|
||||
*
|
||||
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
|
||||
*/
|
||||
function radcliffe_2_customize_register( $wp_customize ) {
|
||||
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
|
||||
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
|
||||
$wp_customize->get_setting( 'header_text' )->transport = 'postMessage';
|
||||
|
||||
$wp_customize->selective_refresh->add_partial( 'blogname', array(
|
||||
'selector' => '.site-title a',
|
||||
'render_callback' => 'radcliffe_2_customize_partial_blogname',
|
||||
) );
|
||||
|
||||
$wp_customize->selective_refresh->add_partial( 'blogdescription', array(
|
||||
'selector' => '.site-description',
|
||||
'render_callback' => 'radcliffe_2_customize_partial_blogdescription',
|
||||
) );
|
||||
|
||||
// Set placeholders for Site Title and Tagline
|
||||
$wp_customize->get_control( 'blogname' )->input_attrs = array(
|
||||
'placeholder' => esc_attr__( 'Enter a name for your site', 'radcliffe-2' ),
|
||||
);
|
||||
$wp_customize->get_control( 'blogdescription' )->input_attrs = array(
|
||||
'placeholder' => esc_attr__( 'A short phrase describing your site', 'radcliffe-2' ),
|
||||
);
|
||||
|
||||
// Reorder Radcliffe 2 Customizer Panels
|
||||
$wp_customize->get_section( 'title_tagline' )->priority = 11;
|
||||
$wp_customize->get_section( 'style_pack_theme_options' )->priority = 14;
|
||||
|
||||
}
|
||||
add_action( 'customize_register', 'radcliffe_2_customize_register' );
|
||||
|
||||
/**
|
||||
* Render the site title for the selective refresh partial.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function radcliffe_2_customize_partial_blogname() {
|
||||
bloginfo( 'name' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Render the site tagline for the selective refresh partial.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function radcliffe_2_customize_partial_blogdescription() {
|
||||
bloginfo( 'description' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
|
||||
*/
|
||||
function radcliffe_2_customize_preview_js() {
|
||||
wp_enqueue_script( 'radcliffe-2-customizer', get_template_directory_uri() . '/assets/js/customizer.js', array( 'customize-preview' ), '20151215', true );
|
||||
}
|
||||
add_action( 'customize_preview_init', 'radcliffe_2_customize_preview_js' );
|
||||
|
||||
/**
|
||||
* Logo Resizer Awesomeness - Bringing logo resizing to the Customizer since 2017
|
||||
*/
|
||||
require get_template_directory() . '/inc/logo-resizer.php';
|
98
radcliffe-2/inc/headstart/en.json
Normal file
98
radcliffe-2/inc/headstart/en.json
Normal file
|
@ -0,0 +1,98 @@
|
|||
{
|
||||
"settings": {
|
||||
"options": {
|
||||
"show_on_front": "page",
|
||||
"featured-content": false,
|
||||
"jetpack_content_post_details_categories": "",
|
||||
"default_comment_status": "closed"
|
||||
},
|
||||
"theme_mods": {
|
||||
"0": false,
|
||||
"custom_css_post_id": -1,
|
||||
"nav_menu_locations": {
|
||||
"menu-1": "primary"
|
||||
},
|
||||
"background_color": "ffffff",
|
||||
"colors_manager": {
|
||||
"colors": {
|
||||
"bg": "#ffffff",
|
||||
"txt": "",
|
||||
"link": "#ca2017"
|
||||
},
|
||||
"cached": false
|
||||
},
|
||||
"radcliffe_2_contact_info_location": "header",
|
||||
"radcliffe_2_contact_info_hours": "",
|
||||
"radcliffe_2_hero_area_display": false,
|
||||
"radcliffe_2_hero_area_content": "We are here to serve your needs. And if you’d like to learn more, let’s get started.",
|
||||
"radcliffe_2_hero_area_background": "https:\/\/headstartdata.files.wordpress.com\/2017\/09\/were-open-sign.jpg",
|
||||
"radcliffe_2_contact_info_address": "",
|
||||
"header_image": "remove-header",
|
||||
"radcliffe_2_hero_area_button_url": "\/blog",
|
||||
"radcliffe_2_hero_area_title": "Are you ready for more?",
|
||||
"radcliffe_2_hero_area_button_text": "I’m Ready",
|
||||
"radcliffe_2_contact_info_phone": "",
|
||||
"radcliffe_2_contact_info_email": "",
|
||||
"active_style_pack": "default",
|
||||
"custom_logo": "",
|
||||
"logo_size": 20,
|
||||
"radcliffe_2_hero_overlay_opacity": 40
|
||||
},
|
||||
"headstart": {
|
||||
"mapped_id_options": [],
|
||||
"mapped_id_theme_mods": [],
|
||||
"keep_submenu_items": true
|
||||
}
|
||||
},
|
||||
"content": [
|
||||
{
|
||||
"post_title": "Home",
|
||||
"post_content": "<p>For a starter guide to WordPress.com and to learn more about this theme go to:<\/p><p style=\"text-align: center;\"><a href=\"https:\/\/wordpress.com\/theme\/radcliffe-2\">https:\/\/wordpress.com\/theme\/radcliffe-2<\/a><\/p><p>You're now ready to make the text on this page your own. Open the page editor by clicking on the <strong>‘Edit’<\/strong> button 👇below to change the text on this page.<\/p>",
|
||||
"post_excerpt": "",
|
||||
"post_status": "publish",
|
||||
"menu_order": 1,
|
||||
"comment_status": "closed",
|
||||
"ping_status": "closed",
|
||||
"post_type": "page",
|
||||
"hs_custom_meta": "_hs_front_page",
|
||||
"hs_sharing": 0,
|
||||
"hs_like_status": 0,
|
||||
"page_template": "default",
|
||||
"hs_old_id": 100
|
||||
},
|
||||
{
|
||||
"post_title": "Blog",
|
||||
"post_content": "This is the page where users will find your site's blog",
|
||||
"post_status": "publish",
|
||||
"menu_order": 2,
|
||||
"comment_status": "closed",
|
||||
"ping_status": "closed",
|
||||
"post_type": "page",
|
||||
"hs_custom_meta": "_hs_blog_page",
|
||||
"hs_sharing": 0,
|
||||
"hs_like_status": 0,
|
||||
"hs_old_id": 101
|
||||
},
|
||||
{
|
||||
"post_title": "The Journey Begins",
|
||||
"post_content": "Thanks for joining me! <blockquote>Good company in a journey makes the way seem shorter. — Izaak Walton<\/blockquote><img class=\"wp-image-7 size-full\" src=\"https://twentysixteendemo.files.wordpress.com/2015/11/post.png\" alt=\"post\" width=\"1000\" height=\"563\" \/>",
|
||||
"post_status": "publish",
|
||||
"comment_status": "open",
|
||||
"ping_status": "open",
|
||||
"post_type": "post",
|
||||
"hs_custom_meta": "_hs_first_post",
|
||||
"hs_sharing": 0,
|
||||
"hs_like_status": 0,
|
||||
"hs_old_id": 102
|
||||
}
|
||||
],
|
||||
"images": [
|
||||
"https:\/\/headstartdata.files.wordpress.com\/2017\/08\/open.jpg",
|
||||
"https:\/\/headstartdata.files.wordpress.com\/2017\/09\/bolivia-2209804_1920.jpg",
|
||||
"https:\/\/headstartdata.files.wordpress.com\/2017\/09\/lotus-flower-logo.png",
|
||||
"https:\/\/headstartdata.files.wordpress.com\/2017\/08\/building-and-cloud.jpg",
|
||||
"https:\/\/headstartdata.files.wordpress.com\/2017\/09\/pattern-stardust.png",
|
||||
"https:\/\/headstartdata.files.wordpress.com\/2017\/09\/pattern-wood1.png",
|
||||
"https:\/\/headstartdata.files.wordpress.com\/2017\/09\/pattern-knit-feathers1.png"
|
||||
]
|
||||
}
|
128
radcliffe-2/inc/icon-functions.php
Normal file
128
radcliffe-2/inc/icon-functions.php
Normal file
|
@ -0,0 +1,128 @@
|
|||
<?php
|
||||
/**
|
||||
* SVG icons related functions and filters
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
/**
|
||||
* Add SVG definitions to the footer.
|
||||
*/
|
||||
function radcliffe_2_include_svg_icons() {
|
||||
// Define SVG sprite file.
|
||||
$svg_icons = get_parent_theme_file_path( '/assets/images/icons.svg' );
|
||||
|
||||
// If it exists, include it.
|
||||
if ( file_exists( $svg_icons ) ) {
|
||||
require_once( $svg_icons );
|
||||
}
|
||||
}
|
||||
add_action( 'wp_footer', 'radcliffe_2_include_svg_icons', 9999 );
|
||||
|
||||
/**
|
||||
* Return SVG markup.
|
||||
*
|
||||
* @param array $args {
|
||||
* Parameters needed to display an SVG.
|
||||
*
|
||||
* @type string $icon Required SVG icon filename.
|
||||
* @type string $title Optional SVG title.
|
||||
* @type string $desc Optional SVG description.
|
||||
* }
|
||||
* @return string SVG markup.
|
||||
*/
|
||||
function radcliffe_2_get_svg( $args = array() ) {
|
||||
// Make sure $args are an array.
|
||||
if ( empty( $args ) ) {
|
||||
return esc_html__( 'Please define default parameters in the form of an array.', 'radcliffe-2' );
|
||||
}
|
||||
|
||||
// Define an icon.
|
||||
if ( false === array_key_exists( 'icon', $args ) ) {
|
||||
return esc_html__( 'Please define an SVG icon filename.', 'radcliffe-2' );
|
||||
}
|
||||
|
||||
// Set defaults.
|
||||
$defaults = array(
|
||||
'icon' => '',
|
||||
'title' => '',
|
||||
'desc' => '',
|
||||
);
|
||||
|
||||
// Parse args.
|
||||
$args = wp_parse_args( $args, $defaults );
|
||||
|
||||
// Set aria hidden.
|
||||
$aria_hidden = ' aria-hidden="true"';
|
||||
|
||||
// Set ARIA.
|
||||
$aria_labelledby = '';
|
||||
|
||||
/*
|
||||
* Radcliffe 2 doesn't use the SVG title or description attributes; non-decorative icons are described with .screen-reader-text.
|
||||
*
|
||||
* However, child themes can use the title and description to add information to non-decorative SVG icons to improve accessibility.
|
||||
*
|
||||
* Example 1 with title: <?php echo radcliffe_2_get_svg( array( 'icon' => 'arrow-right', 'title' => esc_html__( 'This is the title', 'textdomain' ) ) ); ?>
|
||||
*
|
||||
* Example 2 with title and description: <?php echo radcliffe_2_get_svg( array( 'icon' => 'arrow-right', 'title' => esc_html__( 'This is the title', 'textdomain' ), 'desc' => esc_html__( 'This is the description', 'textdomain' ) ) ); ?>
|
||||
*
|
||||
* See https://www.paciellogroup.com/blog/2013/12/using-aria-enhance-svg-accessibility/.
|
||||
*/
|
||||
if ( $args['title'] ) {
|
||||
$aria_hidden = '';
|
||||
$unique_id = uniqid();
|
||||
$aria_labelledby = ' aria-labelledby="title-' . $unique_id . '"';
|
||||
|
||||
if ( $args['desc'] ) {
|
||||
$aria_labelledby = ' aria-labelledby="title-' . $unique_id . ' desc-' . $unique_id . '"';
|
||||
}
|
||||
}
|
||||
|
||||
// Begin SVG markup.
|
||||
$svg = '<svg class="icon icon-' . esc_attr( $args['icon'] ) . '"' . $aria_hidden . $aria_labelledby . ' role="img">';
|
||||
|
||||
// Display the title.
|
||||
if ( $args['title'] ) {
|
||||
$svg .= '<title id="title-' . $unique_id . '">' . esc_html( $args['title'] ) . '</title>';
|
||||
|
||||
// Display the desc only if the title is already set.
|
||||
if ( $args['desc'] ) {
|
||||
$svg .= '<desc id="desc-' . $unique_id . '">' . esc_html( $args['desc'] ) . '</desc>';
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Display the icon.
|
||||
*
|
||||
* The whitespace around `<use>` is intentional - it is a work around to a keyboard navigation bug in Safari 10.
|
||||
*
|
||||
* See https://core.trac.wordpress.org/ticket/38387.
|
||||
*/
|
||||
$svg .= ' <use href="#icon-' . esc_html( $args['icon'] ) . '" xlink:href="#icon-' . esc_html( $args['icon'] ) . '"></use> ';
|
||||
$svg .= '</svg>';
|
||||
|
||||
return $svg;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add dropdown icon if menu item has children.
|
||||
*
|
||||
* @param string $title The menu item's title.
|
||||
* @param object $item The current menu item.
|
||||
* @param array $args An array of wp_nav_menu() arguments.
|
||||
* @param int $depth Depth of menu item. Used for padding.
|
||||
* @return string $title The menu item's title with dropdown icon.
|
||||
*/
|
||||
function radcliffe_2_dropdown_icon_to_menu_link( $title, $item, $args, $depth ) {
|
||||
if ( 'menu-1' === $args->theme_location ) {
|
||||
foreach ( $item->classes as $value ) {
|
||||
if ( 'menu-item-has-children' === $value || 'page_item_has_children' === $value ) {
|
||||
$title = $title . radcliffe_2_get_svg( array( 'icon' => 'expand' ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $title;
|
||||
}
|
||||
add_filter( 'nav_menu_item_title', 'radcliffe_2_dropdown_icon_to_menu_link', 10, 4 );
|
723
radcliffe-2/inc/jetpack-fonts.php
Normal file
723
radcliffe-2/inc/jetpack-fonts.php
Normal file
|
@ -0,0 +1,723 @@
|
|||
<?php
|
||||
/* Custom Fonts: Radcliffe 2 */
|
||||
|
||||
add_filter( 'typekit_add_font_category_rules', function( $category_rules ) {
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'b,
|
||||
strong',
|
||||
array(
|
||||
array( 'property' => 'font-weight', 'value' => '700' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'dfn,
|
||||
cite,
|
||||
em,
|
||||
i',
|
||||
array(
|
||||
array( 'property' => 'font-style', 'value' => 'italic' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'small',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '0.8em' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'sub,
|
||||
sup',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '0.75em' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'code,
|
||||
kbd,
|
||||
samp,
|
||||
tt,
|
||||
var',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => 'Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace' ),
|
||||
array( 'property' => 'font-size', 'value' => '16px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'code,
|
||||
kbd,
|
||||
pre,
|
||||
samp',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => 'Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace' ),
|
||||
array( 'property' => 'font-size', 'value' => '15px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'optgroup',
|
||||
array(
|
||||
array( 'property' => 'font-weight', 'value' => '700' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'body,
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => 'Palatino,"Palatino Linotype","Palatino LT STD","Book Antiqua",Times,"Times New Roman",serif' ),
|
||||
array( 'property' => 'font-size', 'value' => '16px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '400' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;' ),
|
||||
array( 'property' => 'font-weight', 'value' => '600' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'h1',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '40px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'h2',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '30px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'h3',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '25px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'h4',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '20px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'h5,
|
||||
h6',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '15px' ),
|
||||
array( 'property' => 'line-height', 'value' => '2.4em' ),
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'.widget-title,
|
||||
.archive .page-title,
|
||||
.comment-header',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.header-search .s,
|
||||
.entry-meta,
|
||||
.site-footer,
|
||||
.main-navigation a,
|
||||
.entry-footer,
|
||||
.post-navigation a span,
|
||||
.comment-actions,
|
||||
.comment-navigation,
|
||||
#wp-calendar tfoot a,
|
||||
form,
|
||||
input,
|
||||
button,
|
||||
.button,
|
||||
input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"],
|
||||
#infinite-handle span',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.main-navigation a',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '15px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '700' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'blockquote',
|
||||
array(
|
||||
array( 'property' => 'font-style', 'value' => 'italic' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'th',
|
||||
array(
|
||||
array( 'property' => 'font-weight', 'value' => 'bold' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.main-navigation ul ul a',
|
||||
array(
|
||||
array( 'property' => 'font-weight', 'value' => '400' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.menu-toggle',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '16px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '600' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.menu-toggle .icon',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '20px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.post-navigation a span',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '14px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '600' ),
|
||||
array( 'property' => 'font-style', 'value' => 'normal' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.comment-navigation a,
|
||||
.posts-navigation a',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '14px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '700' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.post-navigation a',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => 'Georgia, "Times New Roman", serif' ),
|
||||
array( 'property' => 'font-size', 'value' => '20px' ),
|
||||
array( 'property' => 'font-style', 'value' => 'italic' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.comment-navigation a',
|
||||
array(
|
||||
array( 'property' => 'font-weight', 'value' => '700' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'button,
|
||||
.button,
|
||||
input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"]',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '14px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'.site-title',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => 'Georgia, "Times New Roman", serif' ),
|
||||
array( 'property' => 'font-size', 'value' => '40px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '600' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'.site-title',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '60px' ),
|
||||
),
|
||||
array( 'only screen and (min-width: 600px)' )
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.site-description',
|
||||
array(
|
||||
array( 'property' => 'font-style', 'value' => 'italic' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.header-search .s',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '36px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '300' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.site-footer',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '14px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.widget,
|
||||
.contact-info-area',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '14px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.site-info',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '14px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '600' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'#wp-calendar tfoot a',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '14px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '700' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'#wp-calendar thead th',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '18px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '600' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.search-form .search-field',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '18px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'.widget-title',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '16px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'.entry-title',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => 'Palatino,"Palatino Linotype","Palatino LT STD","Book Antiqua",Times,"Times New Roman",serif' ),
|
||||
array( 'property' => 'font-size', 'value' => '40px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '600' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'.entry-title',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '60px' ),
|
||||
),
|
||||
array( 'only screen and (min-width: 600px)' )
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.entry-meta,
|
||||
.entry-meta a',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '12px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '600' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.page-content,
|
||||
.entry-content,
|
||||
.entry-summary',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '18px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.entry-footer',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '16px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'.author-title',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '25px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'.archive .page-title,
|
||||
.search .page-title,
|
||||
.error404 .page-title',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '16px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '600' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'.comments-title,
|
||||
.comment-reply-title',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '24px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '600' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.comment-header cite',
|
||||
array(
|
||||
array( 'property' => 'font-style', 'value' => 'normal' ),
|
||||
array( 'property' => 'font-weight', 'value' => '700' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.comment-header span',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '13px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '700' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.comment-content',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '18px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.comment-actions a',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '14px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '700' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'form label,
|
||||
.comment-respond .logged-in-as,
|
||||
.comment-respond .comment-notes',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '14px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.hero-area-wrapper',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '18px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.hero-area-wrapper',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '20px' ),
|
||||
),
|
||||
array( 'only screen and (min-width: 600px)' )
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'.hero-title-area',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '24px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'.hero-title-area',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '40px' ),
|
||||
),
|
||||
array( 'only screen and (min-width: 600px)' )
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.hero-area .button',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '16px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.hero-area .button',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '30px' ),
|
||||
),
|
||||
array( 'only screen and (min-width: 600px)' )
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'#infinite-handle span',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '18px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '700' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'#infinite-handle span',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '22px' ),
|
||||
),
|
||||
array( 'only screen and (min-width: 600px)' )
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.main-navigation.toggled ul a',
|
||||
array(
|
||||
array( 'property' => 'font-weight', 'value' => '600' ),
|
||||
),
|
||||
array( 'only screen and (max-width: 768px)' )
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'body,
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '20px' ),
|
||||
),
|
||||
array( 'only screen and (min-width: 600px)' )
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.page-content,
|
||||
.entry-content,
|
||||
.entry-summary',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '20px' ),
|
||||
),
|
||||
array( 'only screen and (min-width: 600px)' )
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.entry-meta,
|
||||
.entry-meta a',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '16px' ),
|
||||
),
|
||||
array( 'only screen and (min-width: 600px)' )
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'form label,
|
||||
.comment-respond .logged-in-as,
|
||||
.comment-respond .comment-notes',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '18px' ),
|
||||
),
|
||||
array( 'only screen and (min-width: 600px)' )
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.widget',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '18px' ),
|
||||
),
|
||||
array( 'only screen and (min-width: 600px)' )
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'#inifnite-handle span',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '22px' ),
|
||||
),
|
||||
array( 'only screen and (min-width: 600px)' )
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.comments-title,
|
||||
.comment-reply-title',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '28px' ),
|
||||
),
|
||||
array( 'only screen and (min-width: 600px)' )
|
||||
);
|
||||
|
||||
// Woocommerce
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.woocommerce-breadcrumb,
|
||||
.woocommerce-result-count,
|
||||
.woocommerce-ordering,
|
||||
.woocommerce-ordering select,
|
||||
table.shop_table_responsive,
|
||||
.woocommerce-store-notice',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'ul.products li.product a.added_to_cart,
|
||||
.woocommerce-checkout .checkout .payment_box p,
|
||||
.woocommerce-checkout .checkout [for="payment_method_paypal"]>a',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;' ),
|
||||
array( 'property' => 'font-size', 'value' => '14px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.woocommerce-tabs ul.tabs li a',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;' ),
|
||||
array( 'property' => 'font-size', 'value' => '14px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '700' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'ul.products li.product .price,
|
||||
.single-product div.product .commentlist .comment-text .meta,
|
||||
.woocommerce-breadcrumb,
|
||||
.woocommerce-result-count,
|
||||
.woocommerce-ordering,
|
||||
.woocommerce-ordering select',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;' ),
|
||||
array( 'property' => 'font-size', 'value' => '16px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.onsale',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;' ),
|
||||
array( 'property' => 'font-weight', 'value' => '700' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.single-product div.product .entry-summary .price,
|
||||
.single-product div.product .product_meta,
|
||||
.woocommerce-pagination .page-numbers li,
|
||||
.woocommerce.widget .amount,
|
||||
.woocommerce.widget .reviewer,
|
||||
.woocommerce.widget .total,
|
||||
.woocommerce.widget .quantity',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;' ),
|
||||
array( 'property' => 'font-size', 'value' => '16px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '600' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.single-product div.product .entry-summary .price del,
|
||||
.woocommerce-cart .cart-subtotal th:not([data-title="Subtotal"]),
|
||||
.woocommerce-MyAccount-navigation ul ul a,
|
||||
.site-header-cart .count,
|
||||
.site-header-cart ul ul a',
|
||||
array(
|
||||
array( 'property' => 'font-weight', 'value' => '400' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.woocommerce-MyAccount-content address',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;' ),
|
||||
array( 'property' => 'font-style', 'value' => 'normal' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.single-product div.product .reset_variations,
|
||||
.single-product div.product .commentlist .comment-text .description',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;' ),
|
||||
array( 'property' => 'font-size', 'value' => '15px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.woocommerce-MyAccount-navigation a,
|
||||
.site-header-cart .cart-contents',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;' ),
|
||||
array( 'property' => 'font-size', 'value' => '13px' ),
|
||||
array( 'property' => 'font-weight', 'value' => '700' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'.single-product div.product .woocommerce-Reviews-title,
|
||||
.single-product div.product .comment-reply-title,
|
||||
.woocommerce-checkout .checkout [for="payment_method_paypal"],
|
||||
.upsells.products>h2:first-of-type,
|
||||
.related.products>h2:first-of-type',
|
||||
array(
|
||||
array( 'property' => 'font-family', 'value' => '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;' ),
|
||||
array( 'property' => 'font-weight', 'value' => '800' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
||||
'.woocommerce.widget_product_search .woocommerce-product-search .search-field',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '18px' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'ul.products li.product .woocommerce-loop-product__title',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '20px' ),
|
||||
array( 'property' => 'text-transform', 'value' => 'normal' ),
|
||||
)
|
||||
);
|
||||
|
||||
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
||||
'.woocommerce-cart .cart_totals h2',
|
||||
array(
|
||||
array( 'property' => 'font-size', 'value' => '22px' ),
|
||||
)
|
||||
);
|
||||
|
||||
return $category_rules;
|
||||
} );
|
123
radcliffe-2/inc/jetpack.php
Normal file
123
radcliffe-2/inc/jetpack.php
Normal file
|
@ -0,0 +1,123 @@
|
|||
<?php
|
||||
/**
|
||||
* Jetpack Compatibility File
|
||||
*
|
||||
* @link https://jetpack.com/
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
/**
|
||||
* Jetpack setup function.
|
||||
*
|
||||
* See: https://jetpack.com/support/infinite-scroll/
|
||||
* See: https://jetpack.com/support/responsive-videos/
|
||||
*/
|
||||
function radcliffe_2_jetpack_setup() {
|
||||
// Add theme support for Infinite Scroll.
|
||||
add_theme_support( 'infinite-scroll', array(
|
||||
'container' => 'main',
|
||||
'render' => 'radcliffe_2_infinite_scroll_render',
|
||||
'footer' => 'page',
|
||||
'wrapper' => false,
|
||||
'footer_widgets' => array( 'sidebar-1', 'sidebar-2', 'sidebar-3' ),
|
||||
) );
|
||||
|
||||
// Add theme support for Responsive Videos.
|
||||
add_theme_support( 'jetpack-responsive-videos' );
|
||||
|
||||
// Add theme support for Content Options.
|
||||
add_theme_support( 'jetpack-content-options', array(
|
||||
'author-bio' => true,
|
||||
'avatar-default' => false,
|
||||
'post-details' => array(
|
||||
'stylesheet' => 'radcliffe-2-style',
|
||||
'date' => '.posted-on',
|
||||
'categories' => '.cat-links',
|
||||
'tags' => '.tags-links',
|
||||
'author' => '.byline',
|
||||
'comment' => '.comments-link',
|
||||
),
|
||||
'featured-images' => array(
|
||||
'archive' => true,
|
||||
'post' => true,
|
||||
'page' => true,
|
||||
'fallback' => true,
|
||||
'fallback-default' => false,
|
||||
),
|
||||
) );
|
||||
|
||||
// Add theme support for Social Menus
|
||||
add_theme_support( 'jetpack-social-menu', 'svg' );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'radcliffe_2_jetpack_setup' );
|
||||
|
||||
/**
|
||||
* Custom render function for Infinite Scroll.
|
||||
*/
|
||||
function radcliffe_2_infinite_scroll_render() {
|
||||
while ( have_posts() ) {
|
||||
the_post();
|
||||
if ( is_search() ) :
|
||||
get_template_part( 'template-parts/content', 'search' );
|
||||
else :
|
||||
get_template_part( 'template-parts/content', get_post_format() );
|
||||
endif;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom function to check for a post thumbnail;
|
||||
* If Jetpack is not available, fall back to has_post_thumbnail()
|
||||
*/
|
||||
function radcliffe_2_has_post_thumbnail( $post = null ) {
|
||||
if ( function_exists( 'jetpack_has_featured_image' ) ) {
|
||||
return jetpack_has_featured_image( $post );
|
||||
} else {
|
||||
return has_post_thumbnail( $post );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return early if Author Bio is not available.
|
||||
*/
|
||||
function radcliffe_2_author_bio() {
|
||||
if ( ! function_exists( 'jetpack_author_bio' ) ) {
|
||||
get_template_part( 'template-parts/content', 'author' );
|
||||
} else {
|
||||
jetpack_author_bio();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Author Bio Avatar Size.
|
||||
*/
|
||||
function radcliffe_2_author_bio_avatar_size() {
|
||||
return 60; // in px
|
||||
}
|
||||
add_filter( 'jetpack_author_bio_avatar_size', 'radcliffe_2_author_bio_avatar_size' );
|
||||
|
||||
/**
|
||||
* Custom function to get the URL of a post thumbnail;
|
||||
* If Jetpack is not available, fall back to wp_get_attachment_image_src()
|
||||
*/
|
||||
function radcliffe_2_get_attachment_image_src( $post_id, $post_thumbnail_id, $size ) {
|
||||
if ( function_exists( 'jetpack_featured_images_fallback_get_image_src' ) ) {
|
||||
return jetpack_featured_images_fallback_get_image_src( $post_id, $post_thumbnail_id, $size );
|
||||
} else {
|
||||
$attachment = wp_get_attachment_image_src( $post_thumbnail_id, $size ); // Attachment array
|
||||
$url = $attachment[0]; // Attachment URL
|
||||
return $url;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return early if Social Menu is not available.
|
||||
*/
|
||||
function radcliffe_2_social_menu() {
|
||||
if ( ! function_exists( 'jetpack_social_menu' ) ) {
|
||||
return;
|
||||
} else {
|
||||
jetpack_social_menu();
|
||||
}
|
||||
}
|
141
radcliffe-2/inc/logo-resizer.php
Normal file
141
radcliffe-2/inc/logo-resizer.php
Normal file
|
@ -0,0 +1,141 @@
|
|||
<?php
|
||||
/**
|
||||
* Add postMessage support for site title and description for the Theme Customizer.
|
||||
*
|
||||
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
|
||||
*/
|
||||
function logo_awesomeness_customize_register( $wp_customize ) {
|
||||
// Logo Resizer additions
|
||||
$wp_customize->add_setting( 'logo_size', array(
|
||||
'default' => 50,
|
||||
'type' => 'theme_mod',
|
||||
'theme_supports' => 'custom-logo',
|
||||
'transport' => 'postMessage',
|
||||
'sanitize_callback' => 'absint',
|
||||
'sanitize_js_callback' => 'absint',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control( 'logo_size', array(
|
||||
'label' => esc_html__( 'Logo Size' ),
|
||||
'section' => 'title_tagline',
|
||||
'priority' => 9,
|
||||
'type' => 'range',
|
||||
'settings' => 'logo_size',
|
||||
'input_attrs' => array(
|
||||
'step' => 5,
|
||||
'min' => 0,
|
||||
'max' => 100,
|
||||
'aria-valuemin' => 0,
|
||||
'aria-valuemax' => 100,
|
||||
'aria-valuenow' => 50,
|
||||
'aria-orientation' => 'horizontal',
|
||||
),
|
||||
) );
|
||||
}
|
||||
add_action( 'customize_register', 'logo_awesomeness_customize_register' );
|
||||
|
||||
/**
|
||||
* Add support for logo resizing by filtering `get_custom_logo`
|
||||
*/
|
||||
function logo_awesomeness_customize_logo_resize( $html ) {
|
||||
$size = get_theme_mod( 'logo_size' );
|
||||
$custom_logo_id = get_theme_mod( 'custom_logo' );
|
||||
// set the short side minimum
|
||||
$min = 48;
|
||||
|
||||
// don't use empty() because we can still use a 0
|
||||
if ( is_numeric( $size ) && is_numeric( $custom_logo_id ) ) {
|
||||
|
||||
// we're looking for $img['width'] and $img['height'] of original image
|
||||
$logo = wp_get_attachment_metadata( $custom_logo_id );
|
||||
if ( ! $logo ) return $html;
|
||||
|
||||
// get the logo support size
|
||||
$sizes = get_theme_support( 'custom-logo' );
|
||||
|
||||
// Check for max height and width, default to image sizes if none set in theme
|
||||
$max['height'] = isset( $sizes[0]['height'] ) ? $sizes[0]['height'] : $logo['height'];
|
||||
$max['width'] = isset( $sizes[0]['width'] ) ? $sizes[0]['width'] : $logo['width'];
|
||||
|
||||
// landscape or square
|
||||
if ( $logo['width'] >= $logo['height'] ) {
|
||||
$output = logo_awesomeness_min_max( $logo['height'], $logo['width'], $max['height'], $max['width'], $size, $min );
|
||||
$img = array(
|
||||
'height' => $output['short'],
|
||||
'width' => $output['long']
|
||||
);
|
||||
// portrait
|
||||
} else if ( $logo['width'] < $logo['height'] ) {
|
||||
$output = logo_awesomeness_min_max( $logo['width'], $logo['height'], $max['width'], $max['height'], $size, $min );
|
||||
$img = array(
|
||||
'height' => $output['long'],
|
||||
'width' => $output['short']
|
||||
);
|
||||
}
|
||||
|
||||
// add the CSS
|
||||
$css = '
|
||||
<style>
|
||||
.custom-logo {
|
||||
height: ' . $img['height'] . 'px;
|
||||
max-height: ' . $max['height'] . 'px;
|
||||
max-width: ' . $max['width'] . 'px;
|
||||
width: ' . $img['width'] . 'px;
|
||||
}
|
||||
</style>';
|
||||
|
||||
$html = $css . $html;
|
||||
}
|
||||
|
||||
return $html;
|
||||
}
|
||||
add_filter( 'get_custom_logo', 'logo_awesomeness_customize_logo_resize' );
|
||||
|
||||
/* Helper function to determine the max size of the logo */
|
||||
function logo_awesomeness_min_max( $short, $long, $short_max, $long_max, $percent, $min ){
|
||||
$ratio = ( $long / $short );
|
||||
$max['long'] = ( $long_max >= $long ) ? $long : $long_max;
|
||||
$max['short'] = ( $short_max >= ( $max['long'] / $ratio ) ) ? floor( $max['long'] / $ratio ) : $short_max;
|
||||
|
||||
$ppp = ( $max['short'] - $min ) / 100;
|
||||
|
||||
$size['short'] = round( $min + ( $percent * $ppp ) );
|
||||
$size['long'] = round( $size['short'] / ( $short / $long ) );
|
||||
|
||||
return $size;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
|
||||
*/
|
||||
function logo_awesomeness_customize_preview_js() {
|
||||
wp_enqueue_script( 'logo-awesomeness-customizer', get_template_directory_uri() . '/assets/js/logo/customize-preview.js', array( 'jquery', 'customize-preview' ), '201709081119', true );
|
||||
}
|
||||
add_action( 'customize_preview_init', 'logo_awesomeness_customize_preview_js' );
|
||||
|
||||
/**
|
||||
* JS handlers for Customizer Controls
|
||||
*/
|
||||
function logo_awesomeness_customize_controls_js() {
|
||||
wp_enqueue_script( 'logo-awesomeness-customizer-controls', get_template_directory_uri() . '/assets/js/logo/customize-controls.js', array( 'jquery', 'customize-controls' ), '20171020', true );
|
||||
}
|
||||
add_action( 'customize_controls_enqueue_scripts', 'logo_awesomeness_customize_controls_js' );
|
||||
|
||||
/**
|
||||
* Adds CSS to the Customizer controls.
|
||||
*/
|
||||
function logo_awesomeness_customize_css() {
|
||||
wp_add_inline_style( 'customize-controls', '#customize-control-logo_size input[type=range] { width: 100%; }' );
|
||||
}
|
||||
add_action( 'customize_controls_enqueue_scripts', 'logo_awesomeness_customize_css' );
|
||||
|
||||
/**
|
||||
* Testing function to remove logo_size theme mod
|
||||
*/
|
||||
function logo_awesomeness_remove_theme_mod() {
|
||||
if ( isset( $_GET['remove_logo_size'] ) && 'true' == $_GET['remove_logo_size'] ){
|
||||
set_theme_mod( 'logo_size', '' );
|
||||
}
|
||||
}
|
||||
add_action( 'wp_loaded', 'logo_awesomeness_remove_theme_mod' );
|
330
radcliffe-2/inc/style-packs-core.php
Normal file
330
radcliffe-2/inc/style-packs-core.php
Normal file
|
@ -0,0 +1,330 @@
|
|||
<?php
|
||||
/**
|
||||
* Style Packs core functionality
|
||||
*/
|
||||
|
||||
class Style_Packs_Core {
|
||||
|
||||
var $config;
|
||||
var $theme_version;
|
||||
var $style;
|
||||
|
||||
static $instance;
|
||||
|
||||
public function __construct( $config=array() ) {
|
||||
self::$instance = $this;
|
||||
if ( is_array( $config['styles'] ) && ! empty( $config['styles'] ) ) {
|
||||
add_action( 'after_setup_theme', array( $this, 'init' ) );
|
||||
add_action( 'customize_register', array( $this, 'customize_register' ) );
|
||||
add_action( 'customize_preview_init', array( $this, 'customize_preview' ) );
|
||||
add_filter( 'body_class', array( $this, 'add_body_class' ) );
|
||||
$this->theme_version = wp_get_theme()->get( 'Version' );
|
||||
$this->config = wp_parse_args( $config, array(
|
||||
'body_class_format' => 'style-pack-%s',
|
||||
'styles_directory' => 'styles',
|
||||
'js_directory' => 'js',
|
||||
'style_thumbs' => array(),
|
||||
'style_descriptions' => array(),
|
||||
'default_headers' => array(),
|
||||
'fonts' => array(),
|
||||
) );
|
||||
if ( ! empty( $this->config['default_headers'] ) ) {
|
||||
add_filter( 'theme_mod_header_image', array( $this, 'header_image_mod_filter' ), 30 );
|
||||
add_action( 'after_setup_theme', array( $this, 'setup_default_header_images' ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function init() {
|
||||
$this->style = get_theme_mod( 'active_style_pack' );
|
||||
if ( is_customize_preview() ) {
|
||||
$preview_style = $this->get_preview_style();
|
||||
if ( ! empty( $preview_style ) ) {
|
||||
$this->style = $preview_style;
|
||||
}
|
||||
} else if ( ! empty( $this->style ) ) {
|
||||
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_fonts' ), 20 );
|
||||
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_style' ), 20 );
|
||||
}
|
||||
}
|
||||
|
||||
public function get_preview_style() {
|
||||
if ( is_customize_preview() ) {
|
||||
global $wp_customize;
|
||||
$data = $wp_customize->changeset_data();
|
||||
$theme = wp_get_theme();
|
||||
$mod = sprintf( '%s::active_style_pack', $theme->get_template() );
|
||||
if ( array_key_exists( $mod, $data ) && is_array( $data[ $mod ] ) ) {
|
||||
$mod_data = $data[ $mod ];
|
||||
if ( isset( $mod_data['type'] ) && 'theme_mod' === $mod_data['type'] ) {
|
||||
return $mod_data['value'];
|
||||
}
|
||||
}
|
||||
}
|
||||
return $this->style;
|
||||
}
|
||||
|
||||
public function enqueue_style() {
|
||||
if ( array_key_exists( $this->style, $this->config['styles'] ) ) {
|
||||
$stylesheet = $this->get_stylesheet_uri( $this->style );
|
||||
wp_enqueue_style( $this->get_style_pack_id( $this->style ), $stylesheet, array(), $this->theme_version );
|
||||
}
|
||||
}
|
||||
|
||||
private function get_stylesheet_uri( $style ) {
|
||||
return sprintf( '%s/%s/%s.css', get_template_directory_uri(), $this->config['styles_directory'], $style );
|
||||
}
|
||||
|
||||
private function get_style_pack_id( $style ) {
|
||||
return sprintf( '%s-style-pack', $style );
|
||||
}
|
||||
|
||||
private function get_font_id( $name ) {
|
||||
return sanitize_title( $name );
|
||||
}
|
||||
|
||||
public function enqueue_fonts() {
|
||||
if ( is_array( $this->config['fonts'] ) && array_key_exists( $this->style, $this->config['fonts'] ) ) {
|
||||
$fonts = $this->config['fonts'][ $this->style ];
|
||||
foreach( $fonts as $font => $url ) {
|
||||
wp_enqueue_style( $this->get_font_id( $font ), $url, array(), null );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function customize_register( $wp_customize ) {
|
||||
$wp_customize->add_section( 'style_pack_theme_options', array(
|
||||
'title' => esc_html__( 'Style Packs', 'style-packs-theme' )
|
||||
) );
|
||||
|
||||
$wp_customize->add_setting( 'active_style_pack', array(
|
||||
'sanitize_callback' => array( $this, 'sanitize_style_pack_setting' ),
|
||||
'transport' => 'postMessage',
|
||||
'default' => 'default',
|
||||
) );
|
||||
|
||||
$pack_choices = array_merge( array(
|
||||
'default' => esc_html__( 'Default', 'style-packs-theme' ),
|
||||
), $this->config['styles'] );
|
||||
|
||||
$pack_control_options = array(
|
||||
'label' => esc_html__( 'Active Style', 'style-packs-theme' ),
|
||||
'section' => 'style_pack_theme_options',
|
||||
'choices' => $pack_choices,
|
||||
);
|
||||
|
||||
if ( $this->has_thumbs_config() ) {
|
||||
$pack_control_options['choices'] = $this->style_pack_customizer_thumbnails( $pack_choices );
|
||||
$wp_customize->add_control( new Style_Pack_Customize_Control_Radio_Image( $wp_customize, 'active_style_pack', $pack_control_options ) );
|
||||
} else {
|
||||
$pack_control_options['type'] = 'radio';
|
||||
$wp_customize->add_control( 'active_style_pack', $pack_control_options );
|
||||
}
|
||||
}
|
||||
|
||||
public function has_thumbs_config() {
|
||||
$config = $this->config['style_thumbs'];
|
||||
return ! empty( $config ) && isset( $config['width'] ) && isset( $config['height'] );
|
||||
}
|
||||
|
||||
public function style_pack_customizer_thumbnails( $choices ) {
|
||||
$config = $this->config['style_thumbs'];
|
||||
if ( ! empty( $config ) && isset( $config['width'] ) && isset( $config['height'] ) ) {
|
||||
$base = sprintf( '%s/%s', get_template_directory(), $this->config['styles_directory'] );
|
||||
$ext_regex = '%\.(jpe?g|png)$%i';
|
||||
$files = preg_grep( $ext_regex, scandir( $base ) );
|
||||
if ( ! empty( $files ) ) {
|
||||
foreach ( $files as $file ) {
|
||||
$id = preg_replace( $ext_regex, '', $file );
|
||||
if ( array_key_exists( $id, $choices ) ) {
|
||||
$uri = sprintf( '%s/%s/%s', get_stylesheet_directory_uri(), $this->config['styles_directory'], $file );
|
||||
$choices[ $id ] = sprintf( '<img alt="%s" title="%s" width="%d" height="%d" src="%s" />', esc_attr( $id ), esc_attr( $choices[ $id ] ), esc_attr( $config['width'] ), esc_attr( $config['height'] ), esc_url( $uri ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return $choices;
|
||||
}
|
||||
|
||||
public function sanitize_style_pack_setting( $input ) {
|
||||
if ( ! in_array( $input, array_keys( $this->config['styles'] ) ) ) {
|
||||
$input = 'default';
|
||||
}
|
||||
return $input;
|
||||
}
|
||||
|
||||
public function customize_preview() {
|
||||
$customizer_js_uri = sprintf( '%s/%s/style-packs-customizer.js', get_template_directory_uri(), $this->config['js_directory'] );
|
||||
wp_enqueue_script( 'style-packs-customizer', $customizer_js_uri, array( 'customize-preview' ), $this->theme_version, true );
|
||||
|
||||
$style_pack_stylesheets = array();
|
||||
$style_pack_fonts = array();
|
||||
|
||||
foreach ( array_keys( $this->config['styles'] ) as $style ) {
|
||||
$style_data = $style_pack_stylesheets[ $style ] = array(
|
||||
'id' => sprintf( '%s-css', $this->get_style_pack_id( $style ) ),
|
||||
'uri' => $this->get_stylesheet_uri( $style ),
|
||||
);
|
||||
}
|
||||
|
||||
foreach( $this->config['fonts'] as $style => $fonts ) {
|
||||
if ( ! empty( $fonts ) ) {
|
||||
$style_pack_fonts[ $style ] = array();
|
||||
foreach( $fonts as $font => $uri ) {
|
||||
$style_pack_fonts[ $style ][ sprintf( '%s-css', $this->get_font_id( $font ) ) ] = $uri;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$style_packs_data = array(
|
||||
'body_class_format' => $this->config['body_class_format'],
|
||||
'preview_style' => $this->get_preview_style(),
|
||||
'styles' => $style_pack_stylesheets,
|
||||
'fonts' => $style_pack_fonts,
|
||||
);
|
||||
|
||||
wp_localize_script( 'style-packs-customizer', 'stylePacksData', $style_packs_data );
|
||||
}
|
||||
|
||||
public function add_body_class( $classes ) {
|
||||
$style = 'default';
|
||||
if ( is_customize_preview() ) {
|
||||
$preview_style = $this->get_preview_style();
|
||||
if ( ! empty( $preview_style ) ) {
|
||||
$style = $preview_style;
|
||||
}
|
||||
} else if ( ! empty( $this->style ) ) {
|
||||
$style = $this->style;
|
||||
}
|
||||
$classes[] = sprintf( $this->config['body_class_format'], $style );
|
||||
return $classes;
|
||||
}
|
||||
|
||||
public function header_image_mod_filter( $url ) {
|
||||
if ( ! is_customize_preview() ) {
|
||||
if ( is_string( $url ) && 'default' !== $this->style && isset( $this->config['default_headers'][ $this->style ] ) ) {
|
||||
$default_header = sprintf( get_theme_support( 'custom-header', 'default-image' ), get_template_directory_uri(), get_stylesheet_directory_uri() );
|
||||
if ( empty( $default_header ) || $url === $default_header ) {
|
||||
$url = $this->get_style_header_image_url( $this->style );
|
||||
}
|
||||
}
|
||||
}
|
||||
return $url;
|
||||
}
|
||||
|
||||
public function get_style_header_image_url( $style ) {
|
||||
if ( array_key_exists( $style, $this->config['default_headers'] ) && ! empty( $this->config['default_headers'][ $style ] ) ) {
|
||||
return sprintf( '%s/%s/%s', get_stylesheet_directory_uri(), $this->config['styles_directory'], $this->config['default_headers'][ $style ] );
|
||||
} else {
|
||||
$default_header = get_theme_support( 'custom-header', 'default-image' );
|
||||
if ( ! empty( $default_header ) ) {
|
||||
return sprintf( $default_header, get_template_directory_uri(), get_stylesheet_directory_uri() );
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public function setup_default_header_images() {
|
||||
$headers = array();
|
||||
foreach( $this->config['default_headers'] as $style => $image ) {
|
||||
$image = sprintf( '%%s/%s/%s', $this->config['styles_directory'], $image );
|
||||
$headers[ sprintf( '%s-style-header', $style ) ] = array(
|
||||
'url' => $image,
|
||||
'thumbnail_url' => $image,
|
||||
'description' => sprintf( __( '%s Header Image', 'style-packs-theme' ), $this->config['styles'][ $style ]),
|
||||
);
|
||||
}
|
||||
register_default_headers( $headers );
|
||||
}
|
||||
|
||||
static function get_description( $style ) {
|
||||
if ( array_key_exists( $style, self::$instance->config['style_descriptions'] ) ) {
|
||||
return self::$instance->config['style_descriptions'][ $style ];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ( class_exists( 'WP_Customize_Control' ) ) :
|
||||
|
||||
class Style_Pack_Customize_Control_Radio_Image extends WP_Customize_Control {
|
||||
|
||||
public $type = 'style-pack-option';
|
||||
|
||||
public function render_content() { ?>
|
||||
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
|
||||
<?php
|
||||
$config = Style_Packs_Core::$instance->config;
|
||||
foreach( $this->choices as $key => $val ) :
|
||||
$name = sprintf( '_customize-style-pack-option-%s', $this->id );
|
||||
$desc = Style_Packs_Core::get_description( $key );
|
||||
$has_thumb = preg_match( '%^<img%', $val ); ?>
|
||||
<label<?php echo ! $has_thumb ? ' class="style-pack-radio__no-thumb"' : ''; ?>>
|
||||
<?php if ( $has_thumb ) : ?>
|
||||
<input type="radio" name="<?php echo esc_attr( $name ); ?>" value="<?php echo esc_attr( $key ); ?>" <?php $this->link(); checked( $this->value() ); ?>>
|
||||
<?php echo wp_kses( $val, array( 'img' => array( 'alt' => array(), 'title' => array(), 'width' => array(), 'height' => array(), 'src' => array() ) ) ); ?><br>
|
||||
<?php else: ?>
|
||||
<input type="radio" name="<?php echo esc_attr( $name ); ?>" value="<?php echo esc_attr( $key ); ?>" <?php $this->link(); checked( $this->value() ); ?>> <?php echo wp_kses( $val, array() ); ?><br>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
if ( ! empty( $desc ) ) :
|
||||
if ( 'default' === $key ) {
|
||||
if ( array_key_exists( $key, $config['styles'] ) ) {
|
||||
$title = $config['styles'][ $key ];
|
||||
} else {
|
||||
$title = esc_html__( 'Default' );
|
||||
}
|
||||
} else {
|
||||
$title = $config['styles'][ $key ];
|
||||
}
|
||||
?>
|
||||
<p class="style-pack-description">
|
||||
<strong><?php echo esc_html( $title ) ?></strong><br/>
|
||||
<span><?php echo wp_kses( $desc, array() ); ?></span>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
</label>
|
||||
<?php
|
||||
endforeach;
|
||||
}
|
||||
|
||||
public function enqueue() {
|
||||
add_action( 'customize_controls_print_styles', array( $this, 'print_styles' ) );
|
||||
}
|
||||
|
||||
public function print_styles() { ?>
|
||||
<style type="text/css">
|
||||
.customize-control-style-pack-option label input[type="radio"] + img {
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
margin: 0.5em 0;
|
||||
line-height: 1;
|
||||
}
|
||||
.customize-control-style-pack-option label input[type="radio"]:checked + img {
|
||||
outline: solid 6px rgba(0,0,0,0.12);
|
||||
}
|
||||
.customize-control-style-pack-option label.style-pack-radio__no-thumb {
|
||||
margin: 1.1em 0;
|
||||
display: block;
|
||||
}
|
||||
.customize-control-style-pack-option label.style-pack-radio__no-thumb input + .style-pack-description {
|
||||
margin-top: -1.5em;
|
||||
}
|
||||
.customize-control-style-pack-option .style-pack-description {
|
||||
padding-left: 1.8em;
|
||||
margin-top: 0.2em;
|
||||
max-width: 250px;
|
||||
}
|
||||
@media ( max-width: 780px ) {
|
||||
.customize-control-style-pack-option .style-pack-description {
|
||||
padding-left: 2.4em;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
endif;
|
56
radcliffe-2/inc/style-packs.php
Normal file
56
radcliffe-2/inc/style-packs.php
Normal file
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
/**
|
||||
* Style Packs configuration.
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
new Style_Packs_Core( array(
|
||||
|
||||
// Format to use for active style pack body class
|
||||
'body_class_format' => 'style-pack-%s',
|
||||
|
||||
// Style packs directory
|
||||
'styles_directory' => 'styles',
|
||||
|
||||
// Javascripts directory
|
||||
'js_directory' => 'assets/js',
|
||||
|
||||
// Use thumbnails
|
||||
'style_thumbs' => array(
|
||||
'width' => 285/2,
|
||||
'height' => 200/2,
|
||||
),
|
||||
|
||||
// Style declarations
|
||||
'styles' => array(
|
||||
'default' => esc_html__( 'Radcliffe Perfect', 'radcliffe-2' ),
|
||||
'modern' => esc_html__( 'Modern Bauhaus', 'radcliffe-2' ),
|
||||
'vintage' => esc_html__( 'Vintage Paper', 'radcliffe-2' ),
|
||||
'colorful' => esc_html__( 'Upbeat Pop', 'radcliffe-2' ),
|
||||
),
|
||||
|
||||
// Style descriptions
|
||||
'style_descriptions' => array(
|
||||
'default' => esc_html__( 'A bright, versatile canvas, offering a crisp reading experience for visitors.', 'radcliffe-2' ),
|
||||
'modern' => esc_html__( 'The power of minimalism, embodied in a clean black-and-white design.', 'radcliffe-2' ),
|
||||
'vintage' => esc_html__( 'Timeless, simple elegance, with classic fonts and a touch of sepia.', 'radcliffe-2' ),
|
||||
'colorful' => esc_html__( 'For an extra layer of playfulness, from bold color palettes to a vibrant font.', 'radcliffe-2' ),
|
||||
),
|
||||
|
||||
// Font loading for style packs
|
||||
'fonts' => array(
|
||||
'vintage' => array(
|
||||
'Libre Baskerville' => 'https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400italic,700',
|
||||
),
|
||||
'modern' => array(
|
||||
'Montserrat' => 'https://fonts.googleapis.com/css?family=Montserrat:400,400italic,700,700italic',
|
||||
'Source Sans Pro' => 'https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic,700,700italic',
|
||||
),
|
||||
'colorful' => array(
|
||||
'Karla' => 'https://fonts.googleapis.com/css?family=Karla:400,400italic,700,700italic',
|
||||
'Inconsolata' => 'https://fonts.googleapis.com/css?family=Inconsolata:400,700',
|
||||
),
|
||||
),
|
||||
|
||||
) );
|
196
radcliffe-2/inc/style-wpcom.css
Normal file
196
radcliffe-2/inc/style-wpcom.css
Normal file
|
@ -0,0 +1,196 @@
|
|||
/* = Styles for WordPress.com
|
||||
----------------------------------------------- */
|
||||
|
||||
/* About Page */
|
||||
.page .grofile {
|
||||
padding: 1.3334em !important;
|
||||
}
|
||||
|
||||
/* Milestone Widget */
|
||||
.milestone-content {
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
.widget .milestone-countdown,
|
||||
.widget .milestone-message {
|
||||
color: #404040;
|
||||
}
|
||||
.widget .milestone-countdown {
|
||||
border: 1px solid #7f8c8d;
|
||||
}
|
||||
.milestone-message {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Good Reads */
|
||||
.widget_goodreads div[class^="gr_custom_each_container"] {
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.15);
|
||||
padding: 0.785em 0 0.857em;
|
||||
}
|
||||
div[class^="gr_custom_book_container"] {
|
||||
float: left;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
/* Author Grid Widget */
|
||||
.widget_author_grid {
|
||||
overflow: hidden;
|
||||
}
|
||||
.widget_author_grid ul {
|
||||
margin: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
.widget_author_grid ul li {
|
||||
border-top: none;
|
||||
float: left;
|
||||
margin: 0 3px 3px 0;
|
||||
}
|
||||
|
||||
/* Authors Widget */
|
||||
.widget_authors ul {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
}
|
||||
.widget_authors img {
|
||||
width: 60px;
|
||||
}
|
||||
|
||||
/* Recent Comments */
|
||||
.recentcommentsavatar {
|
||||
border-bottom: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.recentcommentsavatartop {
|
||||
border-bottom: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.recentcommentstexttop,
|
||||
.recentcommentstextend {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* Contact Info */
|
||||
.widget_contact_info #contact-map {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
/* Authors */
|
||||
.widget_authors img {
|
||||
margin-right: 12px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.widget_authors li > ul {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/* Flickr */
|
||||
.widget_flickr #flickr_badge_uber_wrapper,
|
||||
.widget_flickr #flickr_badge_wrapper {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
}
|
||||
.widget_flickr #flickr_badge_wrapper {
|
||||
margin: 0;
|
||||
}
|
||||
.widget_flickr br {
|
||||
display: none;
|
||||
}
|
||||
.widget_flickr td {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.widget_flickr a,
|
||||
.widget_flickr img {
|
||||
display: block;
|
||||
}
|
||||
.widget_flickr a {
|
||||
border-bottom: 0;
|
||||
float: left;
|
||||
height: 72px;
|
||||
margin: 0 4px 4px 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.widget_flickr a img {
|
||||
height: 100%;
|
||||
}
|
||||
.widget_flickr #flickr_badge_uber_wrapper td a:last-child {
|
||||
color: #e1122a;
|
||||
clear: both;
|
||||
display: block;
|
||||
float: none;
|
||||
height: auto;
|
||||
padding: 24px 0 0;
|
||||
}
|
||||
.widget_flickr #flickr_badge_uber_wrapper td a:last-child:after {
|
||||
content: "\2192";
|
||||
margin-left: 6px;
|
||||
}
|
||||
|
||||
/* Social Media widget */
|
||||
.widget_wpcom_social_media_icons_widget ul > li {
|
||||
border-top: 0;
|
||||
}
|
||||
.widget_wpcom_social_media_icons_widget li {
|
||||
margin-right: 0.75em !important;
|
||||
}
|
||||
.widget_wpcom_social_media_icons_widget a {
|
||||
font-size: 24px;
|
||||
font-size: 2.4rem;
|
||||
}
|
||||
|
||||
/* Ratings */
|
||||
.pd-rating {
|
||||
line-height: 1;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
div.sharedaddy h3.sd-title,
|
||||
div#jp-relatedposts h3.jp-relatedposts-headline {
|
||||
font-family: "Open Sans", Helvetica, Arial, sans-serif;
|
||||
font-size: 14px;
|
||||
font-size: 1.4rem;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.sd-title,
|
||||
.jp-relatedposts-post-title {
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.rating-msg {
|
||||
color: #7c736b !important;
|
||||
font-size: 14px !important;
|
||||
}
|
||||
|
||||
/* Jetpack subscription form */
|
||||
.comment-subscription-form {
|
||||
margin: 0;
|
||||
}
|
||||
.comment-subscription-form label,
|
||||
.post-subscription-form label {
|
||||
font-size: 12px;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 400;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
|
||||
/* Follow Blog widget */
|
||||
.widget_blog_subscription input[type="text"] {
|
||||
padding: 0.7em !important;
|
||||
}
|
||||
|
||||
/* Related posts */
|
||||
.jp-relatedposts-post-a {
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
div#jp-relatedposts div.jp-relatedposts-items-visual h4.jp-relatedposts-post-title,
|
||||
div#jp-relatedposts div.jp-relatedposts-items p {
|
||||
font-size: 16px;
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
|
||||
/* Stats */
|
||||
#wpstats {
|
||||
display: none;
|
||||
}
|
68
radcliffe-2/inc/template-functions.php
Normal file
68
radcliffe-2/inc/template-functions.php
Normal file
|
@ -0,0 +1,68 @@
|
|||
<?php
|
||||
/**
|
||||
* Additional features to allow styling of the templates
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
/**
|
||||
* Adds custom classes to the array of body classes.
|
||||
*
|
||||
* @param array $classes Classes for the body element.
|
||||
* @return array
|
||||
*/
|
||||
function radcliffe_2_body_classes( $classes ) {
|
||||
// Adds a class of group-blog to blogs with more than 1 published author.
|
||||
if ( is_multi_author() ) {
|
||||
$classes[] = 'group-blog';
|
||||
}
|
||||
|
||||
// Adds a class of hfeed to non-singular pages.
|
||||
if ( ! is_singular() ) {
|
||||
$classes[] = 'hfeed';
|
||||
}
|
||||
|
||||
// Adds a class of no-thumbnail to posts with no featured image.
|
||||
if ( ( is_single() || is_page() ) && radcliffe_2_has_post_thumbnail() ) {
|
||||
$classes[] = 'has-featured-image';
|
||||
} else {
|
||||
$classes[] = 'no-featured-image';
|
||||
}
|
||||
|
||||
if ( is_singular() && get_header_image() ) {
|
||||
$classes[] = 'single-thumbnail';
|
||||
}
|
||||
|
||||
return $classes;
|
||||
}
|
||||
add_filter( 'body_class', 'radcliffe_2_body_classes' );
|
||||
|
||||
/**
|
||||
* Replaces "[...]" (appended to automatically generated excerpts) with ... and a 'Continue reading' link.
|
||||
* @return string 'Continue reading' link prepended with an ellipsis.
|
||||
*/
|
||||
if ( ! function_exists( 'radcliffe_2_excerpt_more' ) ) :
|
||||
function radcliffe_2_excerpt_more( $more ) {
|
||||
$link = sprintf( '<a href="%1$s" class="more-link">%2$s</a>',
|
||||
esc_url( get_permalink( get_the_ID() ) ),
|
||||
/* translators: %s: Name of current post */
|
||||
sprintf( esc_html__( 'Continue reading %s', 'radcliffe-2' ), '<span class="screen-reader-text">' . get_the_title( get_the_ID() ) . '</span>' )
|
||||
);
|
||||
return ' … ' . $link;
|
||||
}
|
||||
add_filter( 'excerpt_more', 'radcliffe_2_excerpt_more' );
|
||||
endif;
|
||||
|
||||
/**
|
||||
* Add featured image as background image.
|
||||
*/
|
||||
function radcliffe_2_background_image() {
|
||||
|
||||
$image = radcliffe_2_get_attachment_image_src( get_the_ID(), get_post_thumbnail_id( get_the_ID() ), 'radcliffe-post-image' );
|
||||
|
||||
if ( ! $image ) {
|
||||
return;
|
||||
}
|
||||
|
||||
printf( ' style="background-image: url(\'%s\');"', esc_url( $image ) );
|
||||
}
|
162
radcliffe-2/inc/template-tags.php
Normal file
162
radcliffe-2/inc/template-tags.php
Normal file
|
@ -0,0 +1,162 @@
|
|||
<?php
|
||||
/**
|
||||
* Custom template tags for this theme
|
||||
*
|
||||
* Eventually, some of the functionality here could be replaced by core features.
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'radcliffe_2_posted_on' ) ) :
|
||||
/**
|
||||
* Prints HTML with meta information for the current post-date/time, author, and comments.
|
||||
*/
|
||||
function radcliffe_2_posted_on() {
|
||||
$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
|
||||
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
|
||||
$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
|
||||
}
|
||||
|
||||
$time_string = sprintf( $time_string,
|
||||
esc_attr( get_the_date( 'c' ) ),
|
||||
esc_html( get_the_date() ),
|
||||
esc_attr( get_the_modified_date( 'c' ) ),
|
||||
esc_html( get_the_modified_date() )
|
||||
);
|
||||
|
||||
$byline = '<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>';
|
||||
|
||||
if ( is_sticky() && ! is_single() && ! is_archive() ) {
|
||||
$posted_on = '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . esc_html__( 'Featured', 'radcliffe-2' ) . '</a>';
|
||||
} elseif ( is_single() ) {
|
||||
$posted_on = $time_string;
|
||||
} else {
|
||||
$posted_on = '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>';
|
||||
}
|
||||
|
||||
echo '<span class="posted-on">' . $posted_on . '</span><span class="byline">' . $byline . '</span>'; // WPCS: XSS OK.
|
||||
|
||||
if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
|
||||
echo '<span class="comments-link">';
|
||||
comments_popup_link(
|
||||
sprintf(
|
||||
wp_kses(
|
||||
/* translators: %s: post title */
|
||||
__( 'Leave a Comment<span class="screen-reader-text"> on %s</span>', 'radcliffe-2' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
),
|
||||
)
|
||||
),
|
||||
get_the_title()
|
||||
)
|
||||
);
|
||||
echo '</span>';
|
||||
}
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'radcliffe_2_entry_footer' ) ) :
|
||||
/**
|
||||
* Prints HTML with meta information for the categories, tags and edit link.
|
||||
*/
|
||||
function radcliffe_2_entry_footer() {
|
||||
// Hide category and tag text for pages.
|
||||
if ( 'post' === get_post_type() ) {
|
||||
/* translators: used between list items, there is a space after the comma */
|
||||
$categories_list = get_the_category_list( esc_html__( ', ', 'radcliffe-2' ) );
|
||||
if ( $categories_list ) {
|
||||
/* translators: 1: list of categories. */
|
||||
echo '<span class="cat-links">' . radcliffe_2_get_svg( array( 'icon' => 'category', 'title' => esc_html__( 'Categories', 'radcliffe-2' ) ) ) . $categories_list . '</span>';
|
||||
}
|
||||
|
||||
/* translators: used between list items, there is a space after the comma */
|
||||
$tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'radcliffe-2' ) );
|
||||
if ( $tags_list ) {
|
||||
/* translators: 1: list of tags. */
|
||||
echo '<span class="tags-links">' . radcliffe_2_get_svg( array( 'icon' => 'tag', 'title' => esc_html__( 'Tags', 'radcliffe-2' ) ) ) . $tags_list . '</span>';
|
||||
}
|
||||
}
|
||||
|
||||
edit_post_link(
|
||||
sprintf(
|
||||
wp_kses(
|
||||
/* translators: %s: Name of current post. Only visible to screen readers */
|
||||
__( 'Edit <span class="screen-reader-text">%s</span>', 'radcliffe-2' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
),
|
||||
)
|
||||
),
|
||||
get_the_title()
|
||||
),
|
||||
'<span class="edit-link">' . radcliffe_2_get_svg( array( 'icon' => 'edit', 'title' => esc_html__( 'Edit', 'radcliffe-2' ) ) ),
|
||||
'</span>'
|
||||
);
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'radcliffe_2_comment' ) ) :
|
||||
/**
|
||||
* Radcliffe comment function
|
||||
*/
|
||||
function radcliffe_2_comment( $comment, $args, $depth ) {
|
||||
$GLOBALS['comment'] = $comment;
|
||||
switch ( $comment->comment_type ) :
|
||||
case 'pingback' :
|
||||
case 'trackback' :
|
||||
?>
|
||||
|
||||
<li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>">
|
||||
<div class="comment-content">
|
||||
<?php esc_html_e( 'Pingback:', 'radcliffe-2' ); ?> <?php comment_author_link(); ?>
|
||||
</div>
|
||||
<div class="comment-actions">
|
||||
<?php edit_comment_link( esc_html__( 'Edit', 'radcliffe-2' ), '', '' ); ?>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<?php
|
||||
break;
|
||||
default :
|
||||
global $post;
|
||||
?>
|
||||
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
|
||||
<div id="comment-<?php comment_ID(); ?>" class="comment">
|
||||
<?php echo get_avatar( $comment, 80 ); ?>
|
||||
|
||||
<?php
|
||||
static $comment_number; $comment_number ++;
|
||||
$comment_number = str_pad( $comment_number, 2, '0', STR_PAD_LEFT );
|
||||
?>
|
||||
|
||||
<?php if ( $comment->user_id === $post->post_author ) {
|
||||
echo '<span class="vcard h-card"><a href="' . esc_url( get_comment_link( $comment->comment_ID ) ) . '" title="' . esc_attr__( 'Comment by post author','radcliffe-2' ) . '" class="by-post-author p-name fn"> ' . esc_html__( '(Post author)', 'radcliffe-2' ) . '</a></span>';
|
||||
} ?>
|
||||
|
||||
<div class="comment-wrapper">
|
||||
<div class="comment-header">
|
||||
<cite><?php echo get_comment_author_link(); ?></cite>
|
||||
<span><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ) ?>"><?php echo get_comment_date() . ' — ' . get_comment_time() ?></a></span>
|
||||
</div>
|
||||
|
||||
<div class="comment-content">
|
||||
<?php if ( '0' === $comment->comment_approved ) : ?>
|
||||
<p class="comment-awaiting-moderation"><?php esc_html_e( 'Your comment is awaiting moderation.', 'radcliffe-2' ); ?></p>
|
||||
<?php endif; ?>
|
||||
<?php comment_text(); ?>
|
||||
</div><!-- /comment-content -->
|
||||
|
||||
<div class="comment-actions">
|
||||
<?php edit_comment_link( esc_html__( 'Edit', 'radcliffe-2' ), '', '' ); ?>
|
||||
<?php comment_reply_link( array_merge( $args, array( 'reply_text' => esc_html__( 'Reply', 'radcliffe-2' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
|
||||
</div> <!-- /comment-actions -->
|
||||
</div> <!-- /comment-wrapper -->
|
||||
</div><!-- /comment-## -->
|
||||
<?php
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
endif;
|
287
radcliffe-2/inc/woocommerce.php
Normal file
287
radcliffe-2/inc/woocommerce.php
Normal file
|
@ -0,0 +1,287 @@
|
|||
<?php
|
||||
/**
|
||||
* WooCommerce Compatibility File
|
||||
*
|
||||
* @link https://woocommerce.com/
|
||||
*
|
||||
* @package radcliffe-2
|
||||
*/
|
||||
|
||||
/**
|
||||
* WooCommerce setup function.
|
||||
*
|
||||
* See: https://docs.woocommerce.com/document/third-party-custom-theme-compatibility/
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function radcliffe_2_woocommerce_setup() {
|
||||
add_theme_support( 'woocommerce' );
|
||||
add_theme_support( 'wc-product-gallery-zoom' );
|
||||
add_theme_support( 'wc-product-gallery-lightbox' );
|
||||
add_theme_support( 'wc-product-gallery-slider' );
|
||||
}
|
||||
|
||||
add_action( 'after_setup_theme', 'radcliffe_2_woocommerce_setup' );
|
||||
|
||||
/**
|
||||
* WooCommerce specific scripts & stylesheets
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function radcliffe_2_woocommerce_scripts() {
|
||||
wp_enqueue_style( 'radcliffe-2-woocommerce-style', get_template_directory_uri() . '/woocommerce.css' );
|
||||
}
|
||||
|
||||
add_action( 'wp_enqueue_scripts', 'radcliffe_2_woocommerce_scripts' );
|
||||
|
||||
/**
|
||||
* Disable the default WooCommerce stylesheet
|
||||
*
|
||||
* Removing the default WooCommerce stylesheet and enqueing your own will
|
||||
* protect you during WooCommerce core updates.
|
||||
*
|
||||
* See: https://docs.woocommerce.com/document/disable-the-default-stylesheet/
|
||||
*/
|
||||
add_filter( 'woocommerce_enqueue_styles', '__return_empty_array' );
|
||||
|
||||
/**
|
||||
* Add 'woocommerce-active' class to the body tag
|
||||
*
|
||||
* @param array $classes css classes applied to the body tag.
|
||||
* @return array $classes modified to include 'woocommerce-active' class
|
||||
*/
|
||||
function radcliffe_2_woocommerce_active_body_class( $classes ) {
|
||||
|
||||
$classes[] = 'woocommerce-active';
|
||||
|
||||
// If no header menu exists, add a body class to reposition the shop mini-cart
|
||||
if ( ! has_nav_menu( 'menu-1' ) ) {
|
||||
$classes[] = 'menu-1-empty';
|
||||
}
|
||||
|
||||
return $classes;
|
||||
}
|
||||
|
||||
add_filter( 'body_class', 'radcliffe_2_woocommerce_active_body_class' );
|
||||
|
||||
/**
|
||||
* Products per page
|
||||
*
|
||||
* @return integer number of products
|
||||
*/
|
||||
function radcliffe_2_woocommerce_products_per_page() {
|
||||
return absint( apply_filters( 'radcliffe_2_woocommerce_products_per_page', 12 ) );
|
||||
}
|
||||
|
||||
add_filter( 'loop_shop_per_page', 'radcliffe_2_woocommerce_products_per_page' );
|
||||
|
||||
/**
|
||||
* Product gallery thumnbail columns
|
||||
*
|
||||
* @return integer number of columns
|
||||
*/
|
||||
function radcliffe_2_woocommerce_thumbnail_columns() {
|
||||
return absint( apply_filters( 'radcliffe_2_woocommerce_product_thumbnail_columns', 4 ) );
|
||||
}
|
||||
|
||||
add_filter( 'woocommerce_product_thumbnails_columns', 'radcliffe_2_woocommerce_thumbnail_columns' );
|
||||
|
||||
/**
|
||||
* Default loop columns on product archives
|
||||
*
|
||||
* @return integer products per row
|
||||
*/
|
||||
function radcliffe_2_woocommerce_loop_columns() {
|
||||
return absint( apply_filters( 'radcliffe_2_woocommerce_loop_columns', 3 ) );
|
||||
}
|
||||
|
||||
add_filter( 'loop_shop_columns', 'radcliffe_2_woocommerce_loop_columns' );
|
||||
|
||||
/**
|
||||
* Related Products Args
|
||||
*
|
||||
* @param array $args related products args.
|
||||
* @return array $args related products args
|
||||
*/
|
||||
function radcliffe_2_woocommerce_related_products_args( $args ) {
|
||||
$args = apply_filters( 'radcliffe_2_woocommerce_related_products_args', array(
|
||||
'posts_per_page' => 3,
|
||||
'columns' => 3,
|
||||
) );
|
||||
|
||||
return $args;
|
||||
}
|
||||
|
||||
add_filter( 'woocommerce_output_related_products_args', 'radcliffe_2_woocommerce_related_products_args' );
|
||||
|
||||
if ( ! function_exists( 'radcliffe_2_woocommerce_product_columns_wrapper' ) ) {
|
||||
/**
|
||||
* Product columns wrapper
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function radcliffe_2_woocommerce_product_columns_wrapper() {
|
||||
$columns = radcliffe_2_woocommerce_loop_columns();
|
||||
echo '<div class="columns-' . absint( $columns ) . '">';
|
||||
}
|
||||
}
|
||||
|
||||
add_action( 'woocommerce_before_shop_loop', 'radcliffe_2_woocommerce_product_columns_wrapper', 40 );
|
||||
|
||||
if ( ! function_exists( 'radcliffe_2_woocommerce_product_columns_wrapper_close' ) ) {
|
||||
/**
|
||||
* Product columns wrapper close
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function radcliffe_2_woocommerce_product_columns_wrapper_close() {
|
||||
echo '</div>';
|
||||
}
|
||||
}
|
||||
|
||||
add_action( 'woocommerce_before_shop_loop', 'radcliffe_2_woocommerce_sorting_wrap', 3 );
|
||||
|
||||
if ( ! function_exists( 'radcliffe_2_woocommerce_sorting_wrap' ) ) {
|
||||
/**
|
||||
* Sorting wrapper
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function radcliffe_2_woocommerce_sorting_wrap() {
|
||||
echo '<div class="woocommerce-sorting-wrap">';
|
||||
}
|
||||
}
|
||||
|
||||
add_action( 'woocommerce_before_shop_loop', 'radcliffe_2_woocommerce_sorting_wrap_close', 30 );
|
||||
|
||||
if ( ! function_exists( 'radcliffe_2_woocommerce_sorting_wrap_close' ) ) {
|
||||
/**
|
||||
* Sorting wrapper close
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function radcliffe_2_woocommerce_sorting_wrap_close() {
|
||||
echo '</div><!-- END .sorting-wrap -->';
|
||||
}
|
||||
}
|
||||
|
||||
add_action( 'woocommerce_after_shop_loop', 'radcliffe_2_woocommerce_product_columns_wrapper_close', 40 );
|
||||
|
||||
/**
|
||||
* Remove default WooCommerce wrapper
|
||||
*/
|
||||
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
|
||||
remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10 );
|
||||
|
||||
if ( ! function_exists( 'radcliffe_2_woocommerce_wrapper_before' ) ) {
|
||||
/**
|
||||
* Before Content
|
||||
* Wraps all WooCommerce content in wrappers which match the theme markup
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function radcliffe_2_woocommerce_wrapper_before() {
|
||||
?>
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
add_action( 'woocommerce_before_main_content', 'radcliffe_2_woocommerce_wrapper_before' );
|
||||
|
||||
if ( ! function_exists( 'radcliffe_2_woocommerce_wrapper_after' ) ) {
|
||||
/**
|
||||
* After Content
|
||||
* Closes the wrapping divs
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function radcliffe_2_woocommerce_wrapper_after() {
|
||||
?>
|
||||
</main><!-- #main -->
|
||||
</div><!-- #primary -->
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
add_action( 'woocommerce_after_main_content', 'radcliffe_2_woocommerce_wrapper_after' );
|
||||
|
||||
if ( ! function_exists( 'radcliffe_2_woocommerce_cart_link_fragment' ) ) {
|
||||
/**
|
||||
* Cart Fragments
|
||||
* Ensure cart contents update when products are added to the cart via AJAX. Also adds cart icon SVG
|
||||
*
|
||||
* @param array $fragments Fragments to refresh via AJAX.
|
||||
* @return array Fragments to refresh via AJAX
|
||||
*/
|
||||
function radcliffe_2_woocommerce_cart_link_fragment( $fragments ) {
|
||||
global $woocommerce;
|
||||
|
||||
ob_start();
|
||||
radcliffe_2_woocommerce_cart_link();
|
||||
$fragments['a.cart-contents'] = ob_get_clean();
|
||||
|
||||
return $fragments;
|
||||
}
|
||||
}
|
||||
|
||||
add_filter( 'woocommerce_add_to_cart_fragments', 'radcliffe_2_woocommerce_cart_link_fragment' );
|
||||
|
||||
if ( ! function_exists( 'radcliffe_2_woocommerce_cart_link' ) ) {
|
||||
/**
|
||||
* Cart Link
|
||||
* Displayed a link to the cart including the number of items present and the cart total
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function radcliffe_2_woocommerce_cart_link() {
|
||||
?>
|
||||
<a class="cart-contents" href="<?php echo esc_url( wc_get_cart_url() ); ?>" title="<?php esc_attr_e( 'View your shopping cart', 'radcliffe-2' ); ?>">
|
||||
<?php echo radcliffe_2_get_svg( array( 'icon' => 'cart', 'title' => esc_html__( 'View your shopping cart', 'radcliffe-2' ) ) ); ?>
|
||||
<?php /* translators: number of items in the mini cart. */ ?>
|
||||
<span class="amount"><?php echo wp_kses_data( WC()->cart->get_cart_subtotal() ); ?></span>
|
||||
<span class="count"><?php echo wp_kses_data( sprintf( _n( '%d item', '%d items', WC()->cart->get_cart_contents_count(), 'radcliffe-2' ), WC()->cart->get_cart_contents_count() ) );?></span>
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! function_exists( 'radcliffe_2_woocommerce_header_cart' ) ) {
|
||||
/**
|
||||
* Display Header Cart
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function radcliffe_2_woocommerce_header_cart() {
|
||||
if ( is_cart() ) {
|
||||
$class = 'current-menu-item';
|
||||
} else {
|
||||
$class = '';
|
||||
}
|
||||
?>
|
||||
<ul id="site-header-cart" class="site-header-cart">
|
||||
<li class="<?php echo esc_attr( $class ); ?>">
|
||||
<?php radcliffe_2_woocommerce_cart_link(); ?>
|
||||
</li>
|
||||
<li>
|
||||
<?php the_widget( 'WC_Widget_Cart', 'title=' ); ?>
|
||||
</li>
|
||||
</ul>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove breadcrumbs
|
||||
*/
|
||||
remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 );
|
||||
|
||||
|
||||
/**
|
||||
* Add breadcrumbs after
|
||||
*
|
||||
* We know the content wrapper is added at priority 10, so
|
||||
* let's add the breadcrumbs before that, at priority 5
|
||||
*/
|
||||
add_action( 'woocommerce_before_shop_loop', 'woocommerce_breadcrumb', 5 );
|
587
radcliffe-2/inc/wpcom-colors.php
Normal file
587
radcliffe-2/inc/wpcom-colors.php
Normal file
|
@ -0,0 +1,587 @@
|
|||
<?php
|
||||
/* Custom Colors: Radcliffe 2 */
|
||||
|
||||
// Background
|
||||
add_color_rule( 'bg', '#ffffff', array(
|
||||
array( 'body', 'background-color' ),
|
||||
|
||||
array( '.comment-wrapper,
|
||||
.pingback,
|
||||
.trackback',
|
||||
'background-color', '0.5' ),
|
||||
array( '.comment-wrapper:after', 'border-right-color' ),
|
||||
array( '.hero-area .button,
|
||||
.hero-area .button:focus,
|
||||
.hero-area .button:hover', 'background', 'link', 1 ),
|
||||
|
||||
array( 'table tbody > tr:nth-child(odd) > th,
|
||||
table tbody > tr:nth-child(odd) > td', 'background-color', 'bg', 1.5 ),
|
||||
|
||||
array( '.widget li,
|
||||
.contact-info-area', 'border-color', 'bg', 1.5 ),
|
||||
|
||||
array( '.hero-area .button:focus,
|
||||
.hero-area .button:hover', 'background-color', 'bg', 2 ),
|
||||
|
||||
// Style pack - Colorful
|
||||
array( '.style-pack-colorful .contact-info-area,
|
||||
.style-pack-colorful .widget-area,
|
||||
.style-pack-colorful .site-footer', 'background-color' ),
|
||||
|
||||
array( '.main-navigation.toggled .menu', 'background-color', 'bg', 1.5 ),
|
||||
|
||||
// Style pack - Modern
|
||||
array( '.style-pack-modern .menu-toggle', 'border-color', 'bg', 2 ),
|
||||
|
||||
// Style pack - Vintage
|
||||
array( '.style-pack-vintage .main-navigation.toggled .menu', 'background-color', 'bg', 2 ),
|
||||
|
||||
array( '.style-pack-vintage .menu-toggle,
|
||||
.style-pack-vintage.single-post article,
|
||||
.style-pack-vintage.page article,
|
||||
.site-header .contact-info-area:before,
|
||||
.site-header .contact-info-area', 'border-color', 'bg', 2 ),
|
||||
|
||||
array( '.style-pack-vintage.single-post article,
|
||||
.style-pack-vintage.page article', 'background-color', 'bg', 1.25 ),
|
||||
|
||||
// Woocommerce
|
||||
array( '.woocommerce-tabs ul.tabs li.active:hover a,
|
||||
.woocommerce-tabs ul.tabs li.active a', 'background-color' ),
|
||||
array( '.woocommerce-tabs ul.tabs li.active', 'border-bottom-color' ),
|
||||
|
||||
) );
|
||||
|
||||
// Main Accent Color
|
||||
add_color_rule( 'link', '#ca2017', array(
|
||||
array( 'a,
|
||||
a:visited,
|
||||
.jetpack-social-navigation a:hover,
|
||||
.jetpack-social-navigation a:focus', 'color', 'bg' ),
|
||||
|
||||
array( 'a:hover,
|
||||
a:focus,
|
||||
a:active', 'color', 'bg', 3 ),
|
||||
|
||||
array( '#wp-calendar tfoot a:hover,
|
||||
.posts-navigation a:hover,
|
||||
.comment-navigation a:hover,
|
||||
.entry-footer a:hover,
|
||||
.entry-meta a:hover,
|
||||
.post-navigation a:hover,
|
||||
.site-info a:hover,
|
||||
.contact-info-area a:focus,
|
||||
.contact-info-area a:hover,
|
||||
.site-title a:hover', 'color', 'bg' ),
|
||||
|
||||
array( '.hero-area .button,
|
||||
.hero-area .button:focus,
|
||||
.hero-area .button:hover', 'color' ),
|
||||
|
||||
array( '.blog .entry-title a:hover,
|
||||
.search .entry-title a:hover,
|
||||
.archive .entry-title a:hover', 'color', '#000000' ),
|
||||
|
||||
array( '#infinite-handle span:hover,
|
||||
.button:active,
|
||||
.button:focus,
|
||||
.button:hover,
|
||||
.bypostauthor .by-post-author,
|
||||
button:active,
|
||||
button:focus,
|
||||
button:hover,
|
||||
input[type="button"]:active,
|
||||
input[type="button"]:focus,
|
||||
input[type="button"]:hover,
|
||||
input[type="reset"]:active,
|
||||
input[type="reset"]:focus,
|
||||
input[type="reset"]:hover,
|
||||
input[type="submit"]:active,
|
||||
input[type="submit"]:focus,
|
||||
input[type="submit"]:hover', 'background-color', 'bg', 2 ),
|
||||
|
||||
array( '.main-navigation.toggled li a:active,
|
||||
.main-navigation.toggled li a:focus,
|
||||
.main-navigation.toggled li a:hover,
|
||||
.main-navigation li:hover > a,
|
||||
.main-navigation li.focus > a,
|
||||
.main-navigation li.current-menu-item > a,
|
||||
.woocommerce-MyAccount-navigation li.is-active a,
|
||||
.hero-area', 'background-color' ),
|
||||
|
||||
array( '.main-navigation ul ul > li:first-child:hover:after,
|
||||
.main-navigation ul ul > li.current-menu-item:first-child:after', 'border-bottom-color' ),
|
||||
|
||||
array( '.main-navigation ul ul ul > li:first-child:hover:after,
|
||||
.main-navigation ul ul ul > li.current-menu-item:first-child:after', 'border-right-color' ),
|
||||
|
||||
array( '.contact-info-area .icon', 'fill', 'bg' ),
|
||||
|
||||
// Style Pack - Colorful
|
||||
array( '.style-pack-colorful .main-navigation li li:hover > a,
|
||||
.style-pack-colorful .main-navigation li li.focus > a', 'background-color' ),
|
||||
|
||||
array( '.style-pack-colorful h1,
|
||||
.style-pack-colorful h2,
|
||||
.style-pack-colorful h3,
|
||||
.style-pack-colorful h4,
|
||||
.style-pack-colorful h5,
|
||||
.style-pack-colorful h6', 'color', 'bg', 4 ),
|
||||
|
||||
array( '.style-pack-colorful .hero-area .button,
|
||||
.style-pack-colorful .hero-area .button:focus,
|
||||
.style-pack-colorful .hero-area .button:hover', 'color', '#ffffff' ),
|
||||
|
||||
// Woocommerce
|
||||
array( '.woocommerce-page ul.products li.product a.added_to_cart,
|
||||
.woocommerce-page .entry-content .woocommerce-MyAccount-navigation li:hover > a,
|
||||
.woocommerce-MyAccount-navigation li.focus > a,
|
||||
.woocommerce-tabs ul.tabs li:hover a,
|
||||
.site-header-cart:hover>li>a,
|
||||
.site-header-cart.focus>li>a,
|
||||
.site-header-cart>li:hover>a,
|
||||
.site-header-cart>li.focus>a,
|
||||
.site-header-cart .widget_shopping_cart_content .woocommerce-mini-cart__buttons a', 'background-color' ),
|
||||
|
||||
array( '.woocommerce-page .star-rating span:before,
|
||||
.woocommerce-page p.stars:hover a:before,
|
||||
.woocommerce-page p.stars.selected a.active:before,
|
||||
.woocommerce-page p.stars.selected a:not(.active):before,
|
||||
.woocommerce-tabs ul.tabs li.active a', 'color' ),
|
||||
|
||||
),
|
||||
__( 'Main Accent' ) );
|
||||
|
||||
// White
|
||||
add_color_rule( 'extra', '#ffffff', array(
|
||||
array( '#infinite-handle span,
|
||||
#wp-calendar tfoot a,
|
||||
.comment-navigation a,
|
||||
.entry-footer a,
|
||||
.entry-footer a:visited,
|
||||
.entry-meta,
|
||||
.entry-meta a,
|
||||
.entry-meta a:visited,
|
||||
.post-navigation a,
|
||||
.post-navigation a span,
|
||||
.posts-navigation a,
|
||||
.comment-header cite,
|
||||
.comment-header span a,
|
||||
input[type="color"],
|
||||
input[type="date"],
|
||||
input[type="datetime"],
|
||||
input[type="datetime-local"],
|
||||
input[type="email"],
|
||||
input[type="month"],
|
||||
input[type="number"],
|
||||
input[type="password"],
|
||||
input[type="range"],
|
||||
input[type="search"],
|
||||
input[type="tel"],
|
||||
input[type="text"],
|
||||
input[type="time"],
|
||||
input[type="url"],
|
||||
input[type="week"],
|
||||
textarea', 'color', 'bg', 3 ),
|
||||
|
||||
array( '.blog .entry-title a,
|
||||
.blog .entry-title a:visited,
|
||||
.search .entry-title a,
|
||||
.search .entry-title a:visited,
|
||||
.archive .entry-title a,
|
||||
.archive .entry-title a:visited', 'color' ),
|
||||
|
||||
array( '.main-navigation li:hover > a,
|
||||
.main-navigation li.focus > a,
|
||||
.main-navigation ul li.current-menu-item > a', 'color', 'link', 3 ),
|
||||
|
||||
array( 'a:hover + .dropdown-toggle,
|
||||
a:focus + .dropdown-toggle,
|
||||
.dropdown-toggle:hover,
|
||||
.dropdown-toggle:focus,
|
||||
.main-navigation.toggled li a:hover,
|
||||
.main-navigation.toggled li a:focus,
|
||||
.main-navigation.toggled li a:active,
|
||||
.main-navigation.toggled li:hover > a,
|
||||
.main-navigation.toggled li.focus > a', 'color', 'link', 6 ),
|
||||
|
||||
array( '.cat-links .icon,
|
||||
.tags-links .icon,
|
||||
.edit-link .icon', 'fill', 'bg' ),
|
||||
|
||||
// Style Pack - Colorful
|
||||
array( '.style-pack-colorful .comments-title,
|
||||
.style-pack-colorful .comment-reply-title', 'color', 'bg' ),
|
||||
|
||||
// Woocommerce
|
||||
array( '.woocommerce a.button', 'color', '#222222', 3 ),
|
||||
|
||||
array( '.woocommerce a.button:hover,
|
||||
.woocommerce-page .site-header-cart:hover .count,
|
||||
.woocommerce-page .site-header-cart.focus .count,
|
||||
.woocommerce-page .site-header-cart li.is-active a,
|
||||
.woocommerce-page .site-header-cart ul ul a,
|
||||
.woocommerce-page .site-header-cart:hover>li>a,
|
||||
.woocommerce-page .site-header-cart.focus>li>a,
|
||||
.woocommerce-page .site-header-cart>li:hover>a,
|
||||
.woocommerce-page .site-header-cart>li.focus>a,
|
||||
.woocommerce-page ul.products li.product a.added_to_cart,
|
||||
.woocommerce-MyAccount-navigation li:hover > a,
|
||||
.woocommerce-MyAccount-navigation li.focus > a,
|
||||
.woocommerce-MyAccount-navigation li.is-active a,
|
||||
.woocommerce-MyAccount-navigation ul ul a,
|
||||
.woocommerce-tabs ul.tabs li:hover a,
|
||||
.woocommerce-page ul.woocommerce-message li,
|
||||
.woocommerce-page ul.woocommerce-info li,
|
||||
.woocommerce-page ul.woocommerce-error li,
|
||||
.site-header-cart .widget_shopping_cart_content .woocommerce-mini-cart__buttons a', 'color', 'link', 3 ),
|
||||
|
||||
array( '.site-header-cart:hover .icon,
|
||||
.site-header-cart.focus .icon', 'fill', 'link', 3 ),
|
||||
|
||||
array( '.woocommerce-store-notice,
|
||||
.site-header-cart .widget_shopping_cart_content .product_list_widget li a,
|
||||
#site-header-cart .widget_shopping_cart_content .mini_cart_item,
|
||||
.site-header-cart ul ul a', 'color' ),
|
||||
) );
|
||||
|
||||
// Light Grey
|
||||
add_color_rule( 'extra', '#dddddd', array(
|
||||
array( 'blockquote:before,
|
||||
blockquote:after', 'background-color', 'bg', 3 ),
|
||||
|
||||
array( 'tbody', 'border-top', 'bg', 3 ),
|
||||
array( 'tbody,
|
||||
th,
|
||||
td', 'border-bottom', 'bg', 3 ),
|
||||
|
||||
// Woocommerce
|
||||
array( '.woocommerce.widget_product_search .woocommerce-product-search .search-field', 'background-color' ),
|
||||
) );
|
||||
|
||||
// Dark Grey
|
||||
add_color_rule( 'extra', '#222222', array(
|
||||
array( '.main-navigation a,
|
||||
.main-navigation a:visited,
|
||||
.main-navigation li.current-menu-item,
|
||||
.post-navigation a,
|
||||
.site-title a,
|
||||
.site-title a:visited,
|
||||
.menu-toggle,
|
||||
.comment-header cite a,
|
||||
.contact-info-area,
|
||||
.contact-info-area a,
|
||||
body,
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea,
|
||||
th', 'color', 'bg' ),
|
||||
|
||||
array( '.button,
|
||||
.header-search,
|
||||
.main-navigation ul ul a,
|
||||
button,
|
||||
input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"]', 'background-color' ),
|
||||
|
||||
array( '.main-navigation ul ul > li:first-child:after', 'border-bottom-color' ),
|
||||
|
||||
array( '.main-navigation ul ul ul > li:first-child:after', 'border-right-color' ),
|
||||
|
||||
array( '.site', 'border-top-color' ),
|
||||
|
||||
array( '.search-toggle .icon', 'fill', 'bg' ),
|
||||
|
||||
// Style Pack - Colorful
|
||||
array( '.style-pack-colorful .entry-title,
|
||||
.style-pack-colorful .single .entry-title,
|
||||
.style-pack-colorful .page-template-default .entry-title,
|
||||
.style-pack-colorful .widget-title', 'color', 'bg' ),
|
||||
|
||||
// Woocommerce
|
||||
array( '.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
|
||||
.woocommerce-page ul.products li.product .price,
|
||||
.single-product div.product .product_meta a,
|
||||
.woocommerce-tabs ul.tabs li a', 'color', 'bg' ),
|
||||
|
||||
array( '.woocommerce-page ul.products li.product .price ins .amount,
|
||||
.woocommerce-page .onsale', 'color', '#fff9c0' ),
|
||||
|
||||
array( '.woocommerce-MyAccount-navigation a,
|
||||
.woocommerce-page .site-header-cart .count,
|
||||
.woocommerce-page .site-header-cart .cart-contents', 'color', 'bg' ),
|
||||
|
||||
array( '.woocommerce-page .site-header-cart li.is-active a,
|
||||
.woocommerce-page .site-header-cart ul ul a,
|
||||
.woocommerce-page ul.products li.product a.added_to_cart:hover,
|
||||
.woocommerce-MyAccount-navigation ul ul a,
|
||||
.woocommerce-store-notice,
|
||||
.site-header-cart ul ul a', 'background-color' ),
|
||||
) );
|
||||
|
||||
add_color_rule( 'extra', '#444444', array(
|
||||
array( 'th', 'color', 'bg', 6 ),
|
||||
|
||||
// Woocommerce
|
||||
array( '.woocommerce-page ul.products li.product .price del,
|
||||
.woocommerce-page .star-rating:before,
|
||||
.woocommerce-page p.stars a:before,
|
||||
.woocommerce-page p.stars.selected a.active~a:before,
|
||||
.woocommerce-page p.stars a:hover~a:before,
|
||||
.woocommerce.widget_product_search .woocommerce-product-search .search-field', 'color', 'bg', 6 ),
|
||||
) );
|
||||
|
||||
// Grey
|
||||
add_color_rule( 'extra', '#888888', array(
|
||||
array( '.site-info,
|
||||
.site-info a,
|
||||
.archive .page-title,
|
||||
.search .page-title,
|
||||
.error404 .page-title', 'color', 'bg', 3 ),
|
||||
|
||||
// Woocommerce
|
||||
array( '.single-product div.product .entry-summary .price del,
|
||||
.single-product div.product .product_meta,
|
||||
.single-product div.product .commentlist .comment-text .meta', 'color', 'bg', 3 ),
|
||||
) );
|
||||
|
||||
// Mid Grey
|
||||
add_color_rule( 'extra', '#666666', array(
|
||||
array( 'blockquote,
|
||||
.jetpack-social-navigation a,
|
||||
.jetpack-social-navigation a:visited,
|
||||
.dropdown-toggle,
|
||||
.dropdown-toggle:hover
|
||||
.dropdown-toggle:hover,
|
||||
.main-navigation.toggled ul a', 'color', 'bg' ),
|
||||
|
||||
// Style Pack - Vintage
|
||||
array( '.style-pack-vintage .entry-content blockquote', 'color', '#f7f7f4' ),
|
||||
) );
|
||||
|
||||
// Black
|
||||
add_color_rule( 'extra', '#000000', array(
|
||||
array( '.comments-area,
|
||||
.respond,
|
||||
#infinite-handle span', 'background-color', 0.1 ),
|
||||
|
||||
array( '.archive:not(.style-pack-vintage) .entry-header,
|
||||
.blog:not(.style-pack-vintage) .entry-header,
|
||||
.search-results:not(.style-pack-vintage) .entry-header', 'background-color', 0.35 ),
|
||||
|
||||
array( '.archive:not(.style-pack-vintage) article:nth-of-type(even) .entry-header,
|
||||
.blog:not(.style-pack-vintage) article:nth-of-type(even) .entry-header,
|
||||
.search-results:not(.style-pack-vintage) article:nth-of-type(even) .entry-header', 'background-color', 0.4 ),
|
||||
|
||||
array( '.archive .entry-header:hover,
|
||||
.archive article:nth-of-type(even) .entry-header:hover,
|
||||
.blog .entry-header:hover,
|
||||
.blog article:nth-of-type(even) .entry-header:hover,
|
||||
.search-results .entry-header:hover,
|
||||
.search-results article:nth-of-type(even) .entry-header:hover', 'background-color', 0.75 ),
|
||||
|
||||
array( '.comments-area,
|
||||
.entry-author,
|
||||
.entry-links,
|
||||
.page-header,
|
||||
.post-navigation,
|
||||
.respond,
|
||||
.post-nav-wrapper,
|
||||
.site-footer,
|
||||
.widget-area,
|
||||
.main-navigation.toggled ul,
|
||||
#wp-calendar thead th', 'border-top-color', 0.15 ),
|
||||
|
||||
array( '.comments-title,
|
||||
.error-404 .page-header,
|
||||
.no-results .page-header,
|
||||
.page.no-featured-image .site-header,
|
||||
.search-no-results .page-header,
|
||||
.single.no-featured-image .site-header,
|
||||
#wp-calendar thead th,
|
||||
#wp-calendar tbody', 'border-bottom-color', 0.15 ),
|
||||
|
||||
array( '.contact-info-area', 'border-color', 0.15 ),
|
||||
|
||||
// Woocommerce
|
||||
array( '.woocommerce-page .site-header-cart ul ul a,
|
||||
.woocommerce-products-header,
|
||||
.woocommerce-page table.shop_table_responsive,
|
||||
.woocommerce-page table.shop_table_responsive thead th,
|
||||
.woocommerce-page table.shop_table_responsive tbody tr,
|
||||
.woocommerce-cart .cart_totals .shop_table tr,
|
||||
.woocommerce-checkout .shop_table thead,
|
||||
.woocommerce-checkout .shop_table tbody,
|
||||
.woocommerce-checkout .shop_table tfoot,
|
||||
.single-product div.product .cart,
|
||||
.single-product div.product .product_meta,
|
||||
.single-product div.product .commentlist .comment,
|
||||
.woocommerce-tabs ul.tabs,
|
||||
.woocommerce-tabs ul.tabs li,
|
||||
.woocommerce-page .upsells.products,
|
||||
.woocommerce-page .related.products', 'border-color', 0.15 ),
|
||||
|
||||
) );
|
||||
|
||||
// Green (Woocommerce)
|
||||
add_color_rule( 'extra', '#0f834d', array(
|
||||
|
||||
// Woocommerce
|
||||
array( '.woocommerce-page .stock.in-stock,
|
||||
.woocommerce-password-strength.strong', 'color', 'bg' ),
|
||||
|
||||
array( '.woocommerce-page .form-row.woocommerce-validated input.input-text,
|
||||
.woocommerce-page .form-row.woocommerce-validated .select2-selection', 'border-color', 'bg' ),
|
||||
|
||||
array( '.woocommerce-message,
|
||||
.woocommerce-info,
|
||||
.woocommerce-error,
|
||||
.woocommerce-noreviews,
|
||||
p.no-comments', 'border-color', 'bg' ),
|
||||
) );
|
||||
|
||||
// Red (Woocommerce)
|
||||
add_color_rule( 'extra', '#e2401c', array(
|
||||
|
||||
// Woocommerce
|
||||
array( '.woocommerce-page .stock.out-of-stock,
|
||||
.woocommerce-password-strength.short,
|
||||
.woocommerce-password-strength.bad,
|
||||
.woocommerce-page .required', 'color', 'bg' ),
|
||||
|
||||
array( '.form-row.woocommerce-invalid input.input-text', 'border-color', 'bg' ),
|
||||
|
||||
array( '.woocommerce-error,
|
||||
ul.woocommerce-error li', 'background-color' ),
|
||||
|
||||
) );
|
||||
|
||||
// Blue (Woocommerce)
|
||||
add_color_rule( 'extra', '#e2401c', array(
|
||||
|
||||
// Woocommerce
|
||||
array( '.woocommerce-password-strength.good', 'color', 'bg' ),
|
||||
|
||||
array( '.widget_price_filter .ui-slider .ui-slider-handle,
|
||||
.widget_price_filter .ui-slider .ui-slider-range', 'background-color', 'bg' ),
|
||||
|
||||
) );
|
||||
|
||||
function radcliffe_2_extra_css() { ?>
|
||||
|
||||
.style-pack-vintage .comment-wrapper,
|
||||
.style-pack-vintage .pingback,
|
||||
.style-pack-vintage .trackback {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.style-pack-colorful.archive article:nth-of-type(3n+1) .entry-header,
|
||||
.style-pack-colorful.blog article:nth-of-type(3n+1) .entry-header,
|
||||
.style-pack-colorful.search-results article:nth-of-type(3n+1) .entry-header,
|
||||
.style-pack-colorful.archive article:nth-of-type(3n+2) .entry-header,
|
||||
.style-pack-colorful.blog article:nth-of-type(3n+2) .entry-header,
|
||||
.style-pack-colorful.search-results article:nth-of-type(3n+2) .entry-header,
|
||||
.style-pack-colorful.archive article:nth-of-type(3n+3) .entry-header,
|
||||
.style-pack-colorful.blog article:nth-of-type(3n+3) .entry-header,
|
||||
.style-pack-colorful.search-results article:nth-of-type(3n+3) .entry-header {
|
||||
background-color: rgba( 0, 0, 0, 0.35 );
|
||||
}
|
||||
|
||||
.style-pack-colorful.archive article:nth-of-type(3n+1) .entry-header:hover,
|
||||
.style-pack-colorful.blog article:nth-of-type(3n+1) .entry-header:hover,
|
||||
.style-pack-colorful.search-results article:nth-of-type(3n+1) .entry-header:hover,
|
||||
.style-pack-colorful.archive article:nth-of-type(3n+2) .entry-header:hover,
|
||||
.style-pack-colorful.blog article:nth-of-type(3n+2) .entry-header:hover,
|
||||
.style-pack-colorful.search-results article:nth-of-type(3n+2) .entry-header:hover,
|
||||
.style-pack-colorful.archive article:nth-of-type(3n+3) .entry-header:hover,
|
||||
.style-pack-colorful.blog article:nth-of-type(3n+3) .entry-header:hover,
|
||||
.style-pack-colorful.search-results article:nth-of-type(3n+3) .entry-header:hover {
|
||||
background-color: rgba( 0, 0, 0, 0.75 );
|
||||
}
|
||||
|
||||
.style-pack-colorful .hero-area-button .button {
|
||||
background-color: #fff;
|
||||
box-shadow: 0 5px 0 0 #ccc;
|
||||
}
|
||||
|
||||
.style-pack-colorful .hero-area-button .button:hover {
|
||||
background-color: #fff;
|
||||
box-shadow: 0 10px 0 0 #ccc;
|
||||
}
|
||||
|
||||
.style-pack-colorful .hero-area-button .button:focus,
|
||||
.style-pack-colorful .hero-area-button .button:active {
|
||||
background-color: #fff;
|
||||
box-shadow: 0 0 0 0 #ccc;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.site-header .main-navigation.toggled ul ul {
|
||||
background-color: transparent;
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
.site-header .main-navigation li.current-menu-item > a {
|
||||
background-color: transparent;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.site-header .main-navigation li.current-menu-item > a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.style-pack-vintage.single-post article,
|
||||
.style-pack-vintage.page article {
|
||||
background-color: none;
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
.main-navigation .sub-menu a,
|
||||
.main-navigation .sub-menu a:visited {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
<?php }
|
||||
add_theme_support( 'custom_colors_extra_css', 'radcliffe_2_extra_css' );
|
||||
|
||||
//Additional palettes
|
||||
add_color_palette( array(
|
||||
'#ffffff',
|
||||
'',
|
||||
'#e2632a',
|
||||
), 'White and Orange' );
|
||||
|
||||
add_color_palette( array(
|
||||
'#ffffff',
|
||||
'',
|
||||
'#20a6e8',
|
||||
), 'White and Blue' );
|
||||
|
||||
add_color_palette( array(
|
||||
'#e5e5e5',
|
||||
'',
|
||||
'#3d348b',
|
||||
), 'Grey and Purple' );
|
||||
|
||||
add_color_palette( array(
|
||||
'#3a3a3a',
|
||||
'',
|
||||
'#e7c52b',
|
||||
), 'Dark Grey and Yellow' );
|
||||
|
||||
add_color_palette( array(
|
||||
'#303030',
|
||||
'',
|
||||
'#6fb3aa',
|
||||
), 'Dark Grey and Green' );
|
||||
|
||||
add_color_palette( array(
|
||||
'#413e4a',
|
||||
'',
|
||||
'#a86b96',
|
||||
), 'Dark Purple and Pink' );
|
69
radcliffe-2/inc/wpcom-customizer.js
Normal file
69
radcliffe-2/inc/wpcom-customizer.js
Normal file
|
@ -0,0 +1,69 @@
|
|||
/*
|
||||
* WordPress.com-specific.
|
||||
* Track the clicks for certain theme features.
|
||||
*/
|
||||
( function() {
|
||||
wp.customize.bind( 'ready', function() {
|
||||
logoResize = document.querySelector( '#customize-control-logo_size input[type=range]' );
|
||||
callToActionSection = document.getElementById( 'accordion-section-radcliffe_2_hero_area' );
|
||||
contactInfoSection = document.getElementById( 'accordion-section-radcliffe_2_contact_info' );
|
||||
stylePacksSection = document.getElementById( 'accordion-section-style_pack_theme_options' );
|
||||
callToActionSectionButton = callToActionSection.getElementsByTagName( 'h3' )[0];
|
||||
contactInfoSectionButton = contactInfoSection.getElementsByTagName( 'h3' )[0];
|
||||
stylePacksSectionButton = stylePacksSection.getElementsByTagName( 'h3' )[0];
|
||||
|
||||
// Tracking for Logo Resizer clicks.
|
||||
if ( logoResize ) {
|
||||
logoResize.addEventListener( 'click', function() {
|
||||
window._tkq = window._tkq || [];
|
||||
window._tkq.push( [
|
||||
'recordEvent',
|
||||
'wpcom_radcliffe2_customize_logo_resize_click',
|
||||
{ status: 'clicked' }
|
||||
] );
|
||||
} );
|
||||
}
|
||||
|
||||
// Tracking for Call to Action clicks.
|
||||
if ( callToActionSection ) {
|
||||
if ( callToActionSectionButton ) {
|
||||
callToActionSectionButton.addEventListener( 'click', function() {
|
||||
window._tkq = window._tkq || [];
|
||||
window._tkq.push( [
|
||||
'recordEvent',
|
||||
'wpcom_radcliffe2_customize_call_to_action_click',
|
||||
{ status: 'clicked' }
|
||||
] );
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
||||
// Tracking for Contact Info clicks.
|
||||
if ( contactInfoSection ) {
|
||||
if ( contactInfoSectionButton ) {
|
||||
contactInfoSectionButton.addEventListener( 'click', function() {
|
||||
window._tkq = window._tkq || [];
|
||||
window._tkq.push( [
|
||||
'recordEvent',
|
||||
'wpcom_radcliffe2_customize_contact_info_click',
|
||||
{ status: 'clicked' }
|
||||
] );
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
||||
// Tracking for Style Packs clicks.
|
||||
if ( stylePacksSection ) {
|
||||
if ( stylePacksSectionButton ) {
|
||||
stylePacksSectionButton.addEventListener( 'click', function() {
|
||||
window._tkq = window._tkq || [];
|
||||
window._tkq.push( [
|
||||
'recordEvent',
|
||||
'wpcom_radcliffe2_customize_style_packs_click',
|
||||
{ status: 'clicked' }
|
||||
] );
|
||||
} );
|
||||
}
|
||||
}
|
||||
} );
|
||||
} ).call( this );
|
76
radcliffe-2/inc/wpcom.php
Normal file
76
radcliffe-2/inc/wpcom.php
Normal file
|
@ -0,0 +1,76 @@
|
|||
<?php
|
||||
/**
|
||||
* WordPress.com-specific functions and definitions
|
||||
*
|
||||
* This file is centrally included from `wp-content/mu-plugins/wpcom-theme-compat.php`.
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
/**
|
||||
* Adds support for wp.com-specific theme functions.
|
||||
*
|
||||
* @global array $themecolors
|
||||
*/
|
||||
function radcliffe_2_wpcom_setup() {
|
||||
global $themecolors;
|
||||
|
||||
// Set theme colors for third party services.
|
||||
if ( ! isset( $themecolors ) ) {
|
||||
$themecolors = array(
|
||||
'bg' => 'ffffff',
|
||||
'border' => '222222',
|
||||
'text' => '222222',
|
||||
'link' => 'ca2017',
|
||||
'url' => 'ca2017',
|
||||
);
|
||||
}
|
||||
|
||||
add_theme_support( 'print-styles' );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'radcliffe_2_wpcom_setup' );
|
||||
|
||||
/*
|
||||
* De-queue Google fonts if custom fonts are being used instead
|
||||
*/
|
||||
function radcliffe_2_dequeue_fonts() {
|
||||
if ( class_exists( 'TypekitData' ) && class_exists( 'CustomDesign' ) && CustomDesign::is_upgrade_active() ) {
|
||||
$customfonts = TypekitData::get( 'families' );
|
||||
|
||||
if ( $customfonts && $customfonts['site-title']['id'] && $customfonts['headings']['id'] && $customfonts['body-text']['id'] ) {
|
||||
wp_dequeue_style( 'radcliffe-2-fonts' );
|
||||
}
|
||||
}
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'radcliffe_2_dequeue_fonts' );
|
||||
|
||||
/**
|
||||
* Enqueue WordPress.com-specific styles.
|
||||
*/
|
||||
function radcliffe_2_wpcom_styles() {
|
||||
wp_enqueue_style( 'radcliffe-2-wpcom', get_template_directory_uri() . '/inc/style-wpcom.css', '20170718' );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'radcliffe_2_wpcom_styles' );
|
||||
|
||||
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) :
|
||||
/**
|
||||
* WordPress.com-specific.
|
||||
* Track the clicks for certain theme features.
|
||||
*/
|
||||
function radcliffe_2_wpcom_customize_controls_js() {
|
||||
if ( is_automattician() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
wp_enqueue_script( 'radcliffe-2-wpcom-customizer', get_template_directory_uri() . '/inc/wpcom-customizer.js', array( 'jquery', 'customize-controls' ), '1.0', true );
|
||||
}
|
||||
add_action( 'customize_controls_enqueue_scripts', 'radcliffe_2_wpcom_customize_controls_js' );
|
||||
endif;
|
||||
|
||||
/**
|
||||
* Disabling Widont filter for titles
|
||||
*/
|
||||
function radcliffe_2_wido() {
|
||||
remove_filter( 'the_title', 'widont' );
|
||||
}
|
||||
add_action( 'init', 'radcliffe_2_wido' );
|
59
radcliffe-2/index.php
Normal file
59
radcliffe-2/index.php
Normal file
|
@ -0,0 +1,59 @@
|
|||
<?php
|
||||
/**
|
||||
* The main template file
|
||||
*
|
||||
* This is the most generic template file in a WordPress theme
|
||||
* and one of the two required files for a theme (the other being style.css).
|
||||
* It is used to display a page when nothing more specific matches a query.
|
||||
* E.g., it puts together the home page when no home.php file exists.
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php
|
||||
if ( have_posts() ) :
|
||||
|
||||
if ( is_home() && ! is_front_page() ) : ?>
|
||||
<header>
|
||||
<h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
|
||||
</header>
|
||||
|
||||
<?php
|
||||
endif;
|
||||
|
||||
/* Start the Loop */
|
||||
while ( have_posts() ) : the_post();
|
||||
|
||||
/*
|
||||
* Include the Post-Format-specific template for the content.
|
||||
* If you want to override this in a child theme, then include a file
|
||||
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
|
||||
*/
|
||||
get_template_part( 'template-parts/content', get_post_format() );
|
||||
|
||||
endwhile;
|
||||
|
||||
the_posts_navigation( array(
|
||||
'prev_text' => radcliffe_2_get_svg( array( 'icon' => 'previous' ) ) . esc_html__( 'Older Posts', 'radcliffe-2' ),
|
||||
'next_text' => esc_html__( 'Newer Posts', 'radcliffe-2' ) . radcliffe_2_get_svg( array( 'icon' => 'next' ) ),
|
||||
) );
|
||||
|
||||
else :
|
||||
|
||||
get_template_part( 'template-parts/content', 'none' );
|
||||
|
||||
endif; ?>
|
||||
|
||||
</main><!-- #main -->
|
||||
</div><!-- #primary -->
|
||||
|
||||
<?php
|
||||
get_sidebar();
|
||||
get_footer();
|
BIN
radcliffe-2/languages/de.mo
Normal file
BIN
radcliffe-2/languages/de.mo
Normal file
Binary file not shown.
325
radcliffe-2/languages/de.po
Normal file
325
radcliffe-2/languages/de.po
Normal file
|
@ -0,0 +1,325 @@
|
|||
# Translation of WordPress.com - Themes - Radcliffe-2 in German
|
||||
# This file is distributed under the same license as the WordPress.com - Themes - Radcliffe-2 package.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"PO-Revision-Date: 2017-10-06 07:38:46+0000\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: GlotPress/2.4.0-alpha\n"
|
||||
"Language: de\n"
|
||||
"Project-Id-Version: WordPress.com - Themes - Radcliffe-2\n"
|
||||
|
||||
#: inc/customizer.php:33
|
||||
msgid "A short phrase describing your site"
|
||||
msgstr "Eine kurze Beschreibung Deiner Website"
|
||||
|
||||
#: inc/customizer.php:30
|
||||
msgid "Enter a name for your site"
|
||||
msgstr "Bitte geben den Namen Deiner Website ein"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:85
|
||||
msgid "http://www.example.com/"
|
||||
msgstr "http://www.example.com/"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:70
|
||||
msgid "Click Me!"
|
||||
msgstr "Hier Klicken!"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:89
|
||||
msgid "M-F: 9-5pm - Weekends: 10-4pm"
|
||||
msgstr "Werktage: 9:00 bis 17:00 - Wochenende: 10:00 bis 16:00"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:74
|
||||
msgid "email@example.com"
|
||||
msgstr "email@example.com"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:59
|
||||
msgid "(555) 123-4567"
|
||||
msgstr "(555) 123-4567"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:44
|
||||
msgid "123 Main St, Somewhere XY, 98765"
|
||||
msgstr "Musterstrasse 123, 1234 Musterhausen"
|
||||
|
||||
#. translators: %s: Name of current post. Only visible to screen readers
|
||||
#: template-parts/content-single.php:35
|
||||
msgid "Continue reading<span class=\"screen-reader-text\"> \"%s\"</span>"
|
||||
msgstr "Weiterlesen <span class=\"screen-reader-text\">%s</span>"
|
||||
|
||||
#: template-parts/content-page.php:26 template-parts/content-single.php:46
|
||||
msgid "Pages:"
|
||||
msgstr "Seiten:"
|
||||
|
||||
#: template-parts/content-none.php:44
|
||||
msgid "It seems we can’t find what you’re looking for. Perhaps searching can help."
|
||||
msgstr "Es sieht so aus, als ob wir nicht das finden konnten, wonach du gesucht hast. Möglicherweise hilft eine Suche."
|
||||
|
||||
#: template-parts/content-none.php:38
|
||||
msgid "Sorry, but nothing matched your search terms. Please try again with some different keywords."
|
||||
msgstr "Leider konnte zu dem Suchbegriff nichts gefunden werden. Bitte mit einigen anderen Suchbegriffen erneut suchen."
|
||||
|
||||
#. translators: 1: link to WP admin new post page.
|
||||
#: template-parts/content-none.php:25
|
||||
msgid "Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
|
||||
msgstr "Bereit, deinen ersten Beitrag zu veröffentlichen? <a href=\"%1$s\">Erste Schritte</a>."
|
||||
|
||||
#: template-parts/content-none.php:14
|
||||
msgid "Nothing Found"
|
||||
msgstr "Nicht gefunden"
|
||||
|
||||
#: template-parts/content-author.php:34
|
||||
msgid "View all posts by %s"
|
||||
msgstr "Zeige alle Beiträge von %s"
|
||||
|
||||
#: template-parts/content-author.php:28
|
||||
msgid "Published by %s"
|
||||
msgstr "Veröffentlicht von %s"
|
||||
|
||||
#: single.php:29
|
||||
msgid "<span class=\"meta-nav\">Previous</span> %title"
|
||||
msgstr "<span class=\"meta-nav\">Vorheriger Beitrag</span> %title"
|
||||
|
||||
#: single.php:28
|
||||
msgid "<span class=\"meta-nav\">Next</span> %title"
|
||||
msgstr "<span class=\"meta-nav\">Nächster Beitrag</span> %title"
|
||||
|
||||
#. translators: %s: search query.
|
||||
#: search.php:21
|
||||
msgid "Search Results for: %s"
|
||||
msgstr "Suchergebnisse für: %s"
|
||||
|
||||
#: inc/wpcom-colors.php:153
|
||||
msgid "Main Accent"
|
||||
msgstr "Hauptakzent"
|
||||
|
||||
#. translators: number of items in the mini cart.
|
||||
#: inc/woocommerce.php:244
|
||||
msgid "%d item"
|
||||
msgid_plural "%d items"
|
||||
msgstr[0] "%d Artikel"
|
||||
msgstr[1] "%d Artikel"
|
||||
|
||||
#: inc/woocommerce.php:240 inc/woocommerce.php:241
|
||||
msgid "View your shopping cart"
|
||||
msgstr "Warenkorb anzeigen"
|
||||
|
||||
#: inc/template-tags.php:154
|
||||
msgid "Reply"
|
||||
msgstr "Antwort"
|
||||
|
||||
#: inc/template-tags.php:147
|
||||
msgid "Your comment is awaiting moderation."
|
||||
msgstr "Dein Kommentar muss noch freigeschaltet werden."
|
||||
|
||||
#: inc/template-tags.php:136
|
||||
msgid "(Post author)"
|
||||
msgstr "(Beitragsautor)"
|
||||
|
||||
#: inc/template-tags.php:136
|
||||
msgid "Comment by post author"
|
||||
msgstr "Kommentar vom Autor"
|
||||
|
||||
#: inc/template-tags.php:117 inc/template-tags.php:153
|
||||
msgid "Edit"
|
||||
msgstr "Bearbeiten"
|
||||
|
||||
#: inc/template-tags.php:114
|
||||
msgid "Pingback:"
|
||||
msgstr "Pingback:"
|
||||
|
||||
#. translators: %s: Name of current post. Only visible to screen readers
|
||||
#: inc/template-tags.php:86 template-parts/content-page.php:41
|
||||
msgid "Edit <span class=\"screen-reader-text\">%s</span>"
|
||||
msgstr "Bearbeite <span class=\"screen-reader-text\">%s</span>"
|
||||
|
||||
#. translators: used between list items, there is a space after the comma
|
||||
#: inc/template-tags.php:68
|
||||
msgid ", "
|
||||
msgstr ", "
|
||||
|
||||
#. translators: %s: post title
|
||||
#: inc/template-tags.php:45
|
||||
msgid "Leave a Comment<span class=\"screen-reader-text\"> on %s</span>"
|
||||
msgstr "Hinterlasse einen Kommentar<span class=\"screen-reader-text\"> auf %s</span>"
|
||||
|
||||
#: inc/template-tags.php:30
|
||||
msgid "Featured"
|
||||
msgstr "Bemerkenswert"
|
||||
|
||||
#. translators: %s: Name of current post
|
||||
#: inc/template-functions.php:49
|
||||
msgid "Continue reading %s"
|
||||
msgstr "%s weiterlesen"
|
||||
|
||||
#: inc/style-packs.php:28
|
||||
msgid "Vintage"
|
||||
msgstr "Vintage"
|
||||
|
||||
#: inc/style-packs.php:27
|
||||
msgid "Modern"
|
||||
msgstr "Modern"
|
||||
|
||||
#: inc/style-packs-core.php:105
|
||||
msgid "Default"
|
||||
msgstr "Standard"
|
||||
|
||||
#: inc/logo-resizer.php:19
|
||||
msgid "Logo Size"
|
||||
msgstr "Größe des Logos"
|
||||
|
||||
#: inc/icon-functions.php:42
|
||||
msgid "Please define an SVG icon filename."
|
||||
msgstr "Lege einen Dateinamen für das SVG-Icon fest."
|
||||
|
||||
#: inc/icon-functions.php:37
|
||||
msgid "Please define default parameters in the form of an array."
|
||||
msgstr "Lege Standardparameter in Form eines Arrays fest."
|
||||
|
||||
#: hero-area/hero-area-customizer.php:97
|
||||
msgid "Background Image"
|
||||
msgstr "Hintergrundbild"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:66
|
||||
msgid "Button Text"
|
||||
msgstr "Schaltflächentext"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:51
|
||||
msgid "Description"
|
||||
msgstr "Beschreibung"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:36
|
||||
msgid "Title"
|
||||
msgstr "Title"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:24
|
||||
msgid "Display on the Front Page"
|
||||
msgstr "Auf der Titelseite anzeigen"
|
||||
|
||||
#: header.php:69
|
||||
msgid "Menu"
|
||||
msgstr "Menü"
|
||||
|
||||
#: header.php:25
|
||||
msgid "Skip to content"
|
||||
msgstr "Zum Inhalt springen"
|
||||
|
||||
#: functions.php:144
|
||||
msgid "Collapse child menu"
|
||||
msgstr "Untermenü verbergen"
|
||||
|
||||
#: functions.php:143
|
||||
msgid "Expand child menu"
|
||||
msgstr "Untermenü anzeigen"
|
||||
|
||||
#: functions.php:123
|
||||
msgid "Footer 3"
|
||||
msgstr "Footer 3"
|
||||
|
||||
#: functions.php:113
|
||||
msgid "Footer 2"
|
||||
msgstr "Footer 2"
|
||||
|
||||
#: functions.php:103
|
||||
msgid "Footer 1"
|
||||
msgstr "Footer 1"
|
||||
|
||||
#: functions.php:48
|
||||
msgid "Header"
|
||||
msgstr "Header"
|
||||
|
||||
#. translators: 1: Theme name, 2: Theme author.
|
||||
#: footer.php:27
|
||||
msgid "Theme: %1$s by %2$s."
|
||||
msgstr "Theme: %1$s von %2$s."
|
||||
|
||||
#. translators: %s: CMS name, i.e. WordPress.
|
||||
#: footer.php:22
|
||||
msgid "Proudly powered by %s"
|
||||
msgstr "Mit freundlicher Unterstützung von %s"
|
||||
|
||||
#: footer.php:20
|
||||
msgid "https://wordpress.org/"
|
||||
msgstr "http://wordpress.org/"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:85
|
||||
msgid "Hours"
|
||||
msgstr "Stunden"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:70
|
||||
msgid "Email"
|
||||
msgstr "E-Mail-Adresse"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:55
|
||||
msgid "Phone"
|
||||
msgstr "Telefon"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:40
|
||||
msgid "Address"
|
||||
msgstr "Adresse"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:29
|
||||
msgid "In the footer"
|
||||
msgstr "In der Fusszeile"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:28
|
||||
msgid "In the header"
|
||||
msgstr "In der Kopfzeile"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:24
|
||||
msgid "Where would you like to display your contact information?"
|
||||
msgstr "Wo möchtest Du Deine Kontaktinformationen anzeigen?"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:12
|
||||
msgid "Display your location, hours, and contact information."
|
||||
msgstr "Deine Kontaktinformationen anzeigen (Adresse, Öffnungszeiten, Telefon usw.)."
|
||||
|
||||
#: contact-info/contact-info-customizer.php:11
|
||||
msgid "Contact Info"
|
||||
msgstr "Kontaktinfo"
|
||||
|
||||
#: comments.php:95
|
||||
msgid "Comments are closed."
|
||||
msgstr "Kommentare sind geschlossen."
|
||||
|
||||
#: comments.php:54 comments.php:76
|
||||
msgid "Newer Comments"
|
||||
msgstr "Neuere Kommentare"
|
||||
|
||||
#: comments.php:53 comments.php:75
|
||||
msgid "Older Comments"
|
||||
msgstr "Ältere Kommentare"
|
||||
|
||||
#: comments.php:50 comments.php:72
|
||||
msgid "Comment navigation"
|
||||
msgstr "Kommentar-Navigation"
|
||||
|
||||
#. translators: 1: comment count number, 2: title.
|
||||
#: comments.php:40
|
||||
msgctxt "comments title"
|
||||
msgid "%1$s thought on “%2$s”"
|
||||
msgid_plural "%1$s thoughts on “%2$s”"
|
||||
msgstr[0] " %1$s Kommentar zu „%2$s“"
|
||||
msgstr[1] "%1$s Kommentare zu „%2$s“"
|
||||
|
||||
#. translators: 1: title.
|
||||
#: comments.php:34
|
||||
msgid "One thought on “%1$s”"
|
||||
msgstr "Ein Kommentar zu “%1$s”"
|
||||
|
||||
#: archive.php:40 index.php:45 search.php:40
|
||||
msgid "Newer Posts"
|
||||
msgstr "Neuere Beiträge"
|
||||
|
||||
#: archive.php:39 index.php:44 search.php:39
|
||||
msgid "Older Posts"
|
||||
msgstr "Ältere Beiträge"
|
||||
|
||||
#: 404.php:21
|
||||
msgid "It looks like nothing was found at this location. Maybe try one of the links below or a search?"
|
||||
msgstr "Sieht so aus, als ob an dieser Stelle nichts gefunden wird. Vielleicht hilft einer der Links unten oder eine Suche?"
|
||||
|
||||
#: 404.php:17
|
||||
msgid "Oops! That page can’t be found."
|
||||
msgstr "Ups! Diese Seite konnte leider nicht gefunden werden."
|
BIN
radcliffe-2/languages/fr.mo
Normal file
BIN
radcliffe-2/languages/fr.mo
Normal file
Binary file not shown.
340
radcliffe-2/languages/fr.po
Normal file
340
radcliffe-2/languages/fr.po
Normal file
|
@ -0,0 +1,340 @@
|
|||
# Translation of WordPress.com - Themes - Radcliffe-2 in French (France)
|
||||
# This file is distributed under the same license as the WordPress.com - Themes - Radcliffe-2 package.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"PO-Revision-Date: 2017-09-23 16:59:13+0000\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||
"X-Generator: GlotPress/2.4.0-alpha\n"
|
||||
"Language: fr\n"
|
||||
"Project-Id-Version: WordPress.com - Themes - Radcliffe-2\n"
|
||||
|
||||
#. Description of the plugin/theme
|
||||
#: wp-content/themes/pub/radcliffe-2/style.css
|
||||
msgid "A theme for bloggers who want their content to take center stage."
|
||||
msgstr "Un thème pour blogueurs souhaitant que leur contenu soit mis en avant."
|
||||
|
||||
#. translators: %s: Name of current post. Only visible to screen readers
|
||||
#: template-parts/content-single.php:35
|
||||
msgid "Continue reading<span class=\"screen-reader-text\"> \"%s\"</span>"
|
||||
msgstr "Poursuivre la lecture <span class=\"screen-reader-text\"> \"%s\"</span>"
|
||||
|
||||
#: template-parts/content-page.php:26 template-parts/content-single.php:46
|
||||
msgid "Pages:"
|
||||
msgstr "Pages: "
|
||||
|
||||
#: template-parts/content-none.php:44
|
||||
msgid "It seems we can’t find what you’re looking for. Perhaps searching can help."
|
||||
msgstr "Il semble que nous ne puissions pas trouver ce que vous cherchez. Le moteur de recherche sera peut-être plus fructueux."
|
||||
|
||||
#: template-parts/content-none.php:38
|
||||
msgid "Sorry, but nothing matched your search terms. Please try again with some different keywords."
|
||||
msgstr "Désolé, mais rien ne correspond à vos termes de recherche. Veuillez réessayer avec différents mots-clés."
|
||||
|
||||
#. translators: 1: link to WP admin new post page.
|
||||
#: template-parts/content-none.php:25
|
||||
msgid "Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
|
||||
msgstr "Prêt à publier votre premier article ? <a href=\"%1$s\">Lancez-vous</a> !"
|
||||
|
||||
#: template-parts/content-none.php:14
|
||||
msgid "Nothing Found"
|
||||
msgstr "Aucun résultat."
|
||||
|
||||
#: template-parts/content-author.php:34
|
||||
msgid "View all posts by %s"
|
||||
msgstr "Afficher tous les articles par %s"
|
||||
|
||||
#: template-parts/content-author.php:28
|
||||
msgid "Published by %s"
|
||||
msgstr "Publié par %s"
|
||||
|
||||
#: single.php:29
|
||||
msgid "<span class=\"meta-nav\">Previous</span> %title"
|
||||
msgstr "<span class=\"meta-nav\">Précédent</span> %title"
|
||||
|
||||
#: single.php:28
|
||||
msgid "<span class=\"meta-nav\">Next</span> %title"
|
||||
msgstr "<span class=\"meta-nav\">Suivant</span> %title"
|
||||
|
||||
#. translators: %s: search query.
|
||||
#: search.php:21
|
||||
msgid "Search Results for: %s"
|
||||
msgstr "Résultat de recherche pour : %s"
|
||||
|
||||
#: inc/wpcom-colors.php:147
|
||||
msgid "Main Accent"
|
||||
msgstr "Accent Principal"
|
||||
|
||||
#. translators: number of items in the mini cart.
|
||||
#: inc/woocommerce.php:238
|
||||
msgid "%d item"
|
||||
msgid_plural "%d items"
|
||||
msgstr[0] "%d élément"
|
||||
msgstr[1] "%d éléments"
|
||||
|
||||
#: inc/woocommerce.php:234 inc/woocommerce.php:235
|
||||
msgid "View your shopping cart"
|
||||
msgstr "Voir votre panier"
|
||||
|
||||
#: inc/template-tags.php:154
|
||||
msgid "Reply"
|
||||
msgstr "Réponse"
|
||||
|
||||
#: inc/template-tags.php:147
|
||||
msgid "Your comment is awaiting moderation."
|
||||
msgstr "Votre commentaire est en attente de modération"
|
||||
|
||||
#: inc/template-tags.php:136
|
||||
msgid "(Post author)"
|
||||
msgstr "(Auteur de l'article)"
|
||||
|
||||
#: inc/template-tags.php:136
|
||||
msgid "Comment by post author"
|
||||
msgstr "Commentaire par l'auteur de l'article"
|
||||
|
||||
#: inc/template-tags.php:117 inc/template-tags.php:153
|
||||
msgid "Edit"
|
||||
msgstr "Éditer"
|
||||
|
||||
#: inc/template-tags.php:114
|
||||
msgid "Pingback:"
|
||||
msgstr "Ping:"
|
||||
|
||||
#. translators: %s: Name of current post. Only visible to screen readers
|
||||
#: inc/template-tags.php:86 template-parts/content-page.php:41
|
||||
msgid "Edit <span class=\"screen-reader-text\">%s</span>"
|
||||
msgstr "Modifier <span class=\"screen-reader-text\">%s</span>"
|
||||
|
||||
#. translators: used between list items, there is a space after the comma
|
||||
#: inc/template-tags.php:75
|
||||
msgctxt "list item separator"
|
||||
msgid ", "
|
||||
msgstr ","
|
||||
|
||||
#. translators: used between list items, there is a space after the comma
|
||||
#: inc/template-tags.php:68
|
||||
msgid ", "
|
||||
msgstr ", "
|
||||
|
||||
#. translators: %s: post title
|
||||
#: inc/template-tags.php:45
|
||||
msgid "Leave a Comment<span class=\"screen-reader-text\"> on %s</span>"
|
||||
msgstr "Laisser un commentaire<span class=\"screen-reader-text\"> sur %s</span>"
|
||||
|
||||
#: inc/template-tags.php:30
|
||||
msgid "Featured"
|
||||
msgstr "À la Une"
|
||||
|
||||
#. translators: %s: Name of current post
|
||||
#: inc/template-functions.php:49
|
||||
msgid "Continue reading %s"
|
||||
msgstr "Lire la suite %s"
|
||||
|
||||
#: inc/style-packs.php:29
|
||||
msgid "Colorful"
|
||||
msgstr "Coloré"
|
||||
|
||||
#: inc/style-packs.php:28
|
||||
msgid "Vintage"
|
||||
msgstr "Ancien"
|
||||
|
||||
#: inc/style-packs.php:27
|
||||
msgid "Modern"
|
||||
msgstr "Modern"
|
||||
|
||||
#: inc/style-packs-core.php:232
|
||||
msgid "%s Header Image"
|
||||
msgstr "%s Image d'En-tête"
|
||||
|
||||
#: inc/style-packs-core.php:109
|
||||
msgid "Active Style"
|
||||
msgstr "Style Actif"
|
||||
|
||||
#: inc/style-packs-core.php:105
|
||||
msgid "Default"
|
||||
msgstr "Valeur par défaut"
|
||||
|
||||
#: inc/style-packs-core.php:95
|
||||
msgid "Style Packs"
|
||||
msgstr "Ensembles de Styles"
|
||||
|
||||
#: inc/logo-resizer.php:19
|
||||
msgid "Logo Size"
|
||||
msgstr "Taille du Logo"
|
||||
|
||||
#: inc/icon-functions.php:42
|
||||
msgid "Please define an SVG icon filename."
|
||||
msgstr "Merci de définir un nom de fichier pour l’icône SVG."
|
||||
|
||||
#: inc/icon-functions.php:37
|
||||
msgid "Please define default parameters in the form of an array."
|
||||
msgstr "Merci de définir les paramètres par défaut sous la forme d’un tableau."
|
||||
|
||||
#: hero-area/hero-area-customizer.php:99
|
||||
msgid "Adjust the darkness of the overlay over the background image."
|
||||
msgstr "Ajuster l'obscurité du calque de superposition sur l'image d'arrière plan."
|
||||
|
||||
#: hero-area/hero-area-customizer.php:98
|
||||
msgid "Background Overlay"
|
||||
msgstr "Calque de Superposition de l'Arrière Plan"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:84
|
||||
msgid "Background Image"
|
||||
msgstr "Image d’arrière-plan"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:72
|
||||
msgid "Button URL Link"
|
||||
msgstr "Lien URL du Bouton"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:60
|
||||
msgid "Button Text"
|
||||
msgstr "Texte du bouton"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:48
|
||||
msgid "Description"
|
||||
msgstr "Description"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:36
|
||||
msgid "Title"
|
||||
msgstr "Titre"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:24
|
||||
msgid "Display on the Front Page"
|
||||
msgstr "Afficher sur la Page d'Accueil"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:12
|
||||
msgid "Use this area to promote your most important message to site visitors. You can use a headline, a brief description and prominent link to help drive visitors where you’d like them to go."
|
||||
msgstr "Utilisez cette section pour mettre en avant votre message le plus important aux visiteurs de votre site. Vous pouvez utiliser un gros titre, une courte description et un lien bien visible pour inciter les visiteurs à aller là où vous souhaitez qu'ils aillent."
|
||||
|
||||
#: hero-area/hero-area-customizer.php:11
|
||||
msgid "Featured Prompt"
|
||||
msgstr "Message Mis en Avant"
|
||||
|
||||
#: header.php:69
|
||||
msgid "Menu"
|
||||
msgstr "Menu"
|
||||
|
||||
#: header.php:25
|
||||
msgid "Skip to content"
|
||||
msgstr "Accéder au contenu"
|
||||
|
||||
#: functions.php:144
|
||||
msgid "Collapse child menu"
|
||||
msgstr "Déplier le menu enfant"
|
||||
|
||||
#: functions.php:143
|
||||
msgid "Expand child menu"
|
||||
msgstr "Étendre le menu enfant"
|
||||
|
||||
#: functions.php:123
|
||||
msgid "Footer 3"
|
||||
msgstr "Pied de page 3"
|
||||
|
||||
#: functions.php:113
|
||||
msgid "Footer 2"
|
||||
msgstr "Pied de Page 2"
|
||||
|
||||
#: functions.php:103
|
||||
msgid "Footer 1"
|
||||
msgstr "Pied de page 1"
|
||||
|
||||
#: functions.php:48
|
||||
msgid "Header"
|
||||
msgstr "En-tête"
|
||||
|
||||
#. translators: 1: Theme name, 2: Theme author.
|
||||
#: footer.php:27
|
||||
msgid "Theme: %1$s by %2$s."
|
||||
msgstr "Thème : %1$s par %2$s."
|
||||
|
||||
#. translators: %s: CMS name, i.e. WordPress.
|
||||
#: footer.php:22
|
||||
msgid "Proudly powered by %s"
|
||||
msgstr "Fièrement propulsé par %s"
|
||||
|
||||
#: footer.php:20
|
||||
msgid "https://wordpress.org/"
|
||||
msgstr "http://wordpress.org/"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:76
|
||||
msgid "Hours"
|
||||
msgstr "Heures"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:64
|
||||
msgid "Email"
|
||||
msgstr "E-mail"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:52
|
||||
msgid "Phone"
|
||||
msgstr "Téléphone"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:40
|
||||
msgid "Address"
|
||||
msgstr "Adresse"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:29
|
||||
msgid "In the footer"
|
||||
msgstr "Dans le pied de page"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:28
|
||||
msgid "In the header"
|
||||
msgstr "Dans l'en-tête"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:24
|
||||
msgid "Where would you like to display your contact information?"
|
||||
msgstr "Où souhaitez-vous afficher vos informations de contact ?"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:12
|
||||
msgid "Display your location, hours, and contact information."
|
||||
msgstr "Vos horaires, coordonnées, et géolocalisation."
|
||||
|
||||
#: contact-info/contact-info-customizer.php:11
|
||||
msgid "Contact Info"
|
||||
msgstr "Informations de contact"
|
||||
|
||||
#: comments.php:95
|
||||
msgid "Comments are closed."
|
||||
msgstr "Commentaires fermés"
|
||||
|
||||
#: comments.php:54 comments.php:76
|
||||
msgid "Newer Comments"
|
||||
msgstr "Commentaires plus récents"
|
||||
|
||||
#: comments.php:53 comments.php:75
|
||||
msgid "Older Comments"
|
||||
msgstr "Commentaires plus anciens"
|
||||
|
||||
#: comments.php:50 comments.php:72
|
||||
msgid "Comment navigation"
|
||||
msgstr "Navigation dans les commentaires"
|
||||
|
||||
#. translators: 1: comment count number, 2: title.
|
||||
#: comments.php:40
|
||||
msgctxt "comments title"
|
||||
msgid "%1$s thought on “%2$s”"
|
||||
msgid_plural "%1$s thoughts on “%2$s”"
|
||||
msgstr[0] "%1$s réflexion sur « %2$s »"
|
||||
msgstr[1] "%1$s réflexions sur « %2$s »"
|
||||
|
||||
#. translators: 1: title.
|
||||
#: comments.php:34
|
||||
msgid "One thought on “%1$s”"
|
||||
msgstr "Un avis sur “%1$s”"
|
||||
|
||||
#: archive.php:40 index.php:45 search.php:40
|
||||
msgid "Newer Posts"
|
||||
msgstr "Articles Plus Récents"
|
||||
|
||||
#: archive.php:39 index.php:44 search.php:39
|
||||
msgid "Older Posts"
|
||||
msgstr "Articles précédents"
|
||||
|
||||
#: 404.php:21
|
||||
msgid "It looks like nothing was found at this location. Maybe try one of the links below or a search?"
|
||||
msgstr "Contenu introuvable. Vous pouvez essayer l'outil de recherche ou les liens ci-dessous pour le retrouver."
|
||||
|
||||
#: 404.php:17
|
||||
msgid "Oops! That page can’t be found."
|
||||
msgstr "Aïe ! Cette page est introuvable."
|
BIN
radcliffe-2/languages/no.mo
Normal file
BIN
radcliffe-2/languages/no.mo
Normal file
Binary file not shown.
401
radcliffe-2/languages/no.po
Normal file
401
radcliffe-2/languages/no.po
Normal file
|
@ -0,0 +1,401 @@
|
|||
# Translation of WordPress.com - Themes - Radcliffe-2 in Norwegian
|
||||
# This file is distributed under the same license as the WordPress.com - Themes - Radcliffe-2 package.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"PO-Revision-Date: 2017-11-25 17:31:01+0000\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: GlotPress/2.4.0-alpha\n"
|
||||
"Language: no\n"
|
||||
"Project-Id-Version: WordPress.com - Themes - Radcliffe-2\n"
|
||||
|
||||
#: 404.php:21
|
||||
msgid "It looks like nothing was found at this location. Maybe try a search?"
|
||||
msgstr "Det ble ikke funnet noe her. Kanskje du kan prøve å søke?"
|
||||
|
||||
#. translators: 1: list of tags.
|
||||
#: inc/template-tags.php:78
|
||||
msgid "Tags"
|
||||
msgstr "Stikkord"
|
||||
|
||||
#. translators: 1: list of categories.
|
||||
#: inc/template-tags.php:71
|
||||
msgid "Categories"
|
||||
msgstr "Kategorier"
|
||||
|
||||
#: contact-info/contact-info-functions.php:79
|
||||
msgid "E-mail"
|
||||
msgstr "E-post"
|
||||
|
||||
#: contact-info/contact-info-functions.php:61
|
||||
msgid "Location"
|
||||
msgstr "Sted"
|
||||
|
||||
#: inc/style-packs.php:30
|
||||
msgid "Upbeat Pop"
|
||||
msgstr "Upbeat Pop"
|
||||
|
||||
#: inc/style-packs.php:29
|
||||
msgid "Vintage Paper"
|
||||
msgstr "Gammelt papir"
|
||||
|
||||
#: inc/style-packs.php:28
|
||||
msgid "Modern Bauhaus"
|
||||
msgstr "Modern Bauhaus"
|
||||
|
||||
#: inc/style-packs.php:27
|
||||
msgid "Radcliffe Perfect"
|
||||
msgstr "Radcliffe Perfect"
|
||||
|
||||
#: inc/customizer.php:33
|
||||
msgid "A short phrase describing your site"
|
||||
msgstr "En kort frase som beskriver nettstedet ditt"
|
||||
|
||||
#: inc/customizer.php:30
|
||||
msgid "Enter a name for your site"
|
||||
msgstr "Skriv inn et navn for nettstedet ditt"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:84
|
||||
msgid "http://www.example.com/"
|
||||
msgstr "https://www.eksempel.no/"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:69
|
||||
msgid "Click Me!"
|
||||
msgstr "Klikk på meg!"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:54
|
||||
msgid "Write some compelling text to encourage people to click the button below"
|
||||
msgstr "Skriv en overbevisende tekst til å oppfordre folk til å klikke på knappen nedenfor"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:39
|
||||
msgid "Write a headline"
|
||||
msgstr "Skriv en overskrift"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:89
|
||||
msgid "M-F: 9-5pm - Weekends: 10-4pm"
|
||||
msgstr "Ukedager: 9-17 — Helg: 10-16"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:74
|
||||
msgid "email@example.com"
|
||||
msgstr "epost@eksempel.no"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:59
|
||||
msgid "(555) 123-4567"
|
||||
msgstr "123 45 678"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:44
|
||||
msgid "123 Main St, Somewhere XY, 98765"
|
||||
msgstr "Sentergaten 1234, 9876 Sleivdal"
|
||||
|
||||
#. Description of the plugin/theme
|
||||
#: wp-content/themes/pub/radcliffe-2/style.css
|
||||
msgid "A theme for bloggers who want their content to take center stage."
|
||||
msgstr "Et tema for bloggere som ønsker at innholdet deres skal stå i rampelyset."
|
||||
|
||||
#. translators: %s: Name of current post. Only visible to screen readers
|
||||
#: template-parts/content-single.php:35
|
||||
msgid "Continue reading<span class=\"screen-reader-text\"> \"%s\"</span>"
|
||||
msgstr "Fortsett å lese<span class=\"screen-reader-text\"> \"%s\"</span>"
|
||||
|
||||
#: template-parts/content-page.php:26 template-parts/content-single.php:46
|
||||
msgid "Pages:"
|
||||
msgstr "Sider:"
|
||||
|
||||
#: template-parts/content-none.php:44
|
||||
msgid "It seems we can’t find what you’re looking for. Perhaps searching can help."
|
||||
msgstr "Vi finner ikke det du leter etter. Prøv et søk?"
|
||||
|
||||
#: template-parts/content-none.php:38
|
||||
msgid "Sorry, but nothing matched your search terms. Please try again with some different keywords."
|
||||
msgstr "Beklager, men intet passet med dine søkeord. Vennligst prøv igjen med andre søkeord."
|
||||
|
||||
#. translators: 1: link to WP admin new post page.
|
||||
#: template-parts/content-none.php:25
|
||||
msgid "Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
|
||||
msgstr "Klar for å publisere ditt første innlegg? <a href=\"%1$s\">Kom i gang her</a>."
|
||||
|
||||
#: template-parts/content-none.php:14
|
||||
msgid "Nothing Found"
|
||||
msgstr "Ingenting funnet"
|
||||
|
||||
#: template-parts/content-author.php:34
|
||||
msgid "View all posts by %s"
|
||||
msgstr "Vis alle innlegg av %s"
|
||||
|
||||
#: template-parts/content-author.php:28
|
||||
msgid "Published by %s"
|
||||
msgstr "Publisert av %s"
|
||||
|
||||
#: single.php:29
|
||||
msgid "<span class=\"meta-nav\">Previous</span> %title"
|
||||
msgstr "<span class=\"meta-nav\">Forrige</span> %title"
|
||||
|
||||
#: single.php:28
|
||||
msgid "<span class=\"meta-nav\">Next</span> %title"
|
||||
msgstr "<span class=\"meta-nav\">Neste</span> %title"
|
||||
|
||||
#. translators: %s: search query.
|
||||
#: search.php:21
|
||||
msgid "Search Results for: %s"
|
||||
msgstr "Søkeresultater for: %s"
|
||||
|
||||
#: inc/wpcom-colors.php:153
|
||||
msgid "Main Accent"
|
||||
msgstr "Hovedaksent"
|
||||
|
||||
#. translators: number of items in the mini cart.
|
||||
#: inc/woocommerce.php:244
|
||||
msgid "%d item"
|
||||
msgid_plural "%d items"
|
||||
msgstr[0] "%d gjenstand"
|
||||
msgstr[1] "%d gjenstander"
|
||||
|
||||
#: inc/woocommerce.php:240 inc/woocommerce.php:241
|
||||
msgid "View your shopping cart"
|
||||
msgstr "Vis handlevognen din"
|
||||
|
||||
#: inc/template-tags.php:154
|
||||
msgid "Reply"
|
||||
msgstr "Svar"
|
||||
|
||||
#: inc/template-tags.php:147
|
||||
msgid "Your comment is awaiting moderation."
|
||||
msgstr "Din kommentar avventer moderasjon."
|
||||
|
||||
#: inc/template-tags.php:136
|
||||
msgid "(Post author)"
|
||||
msgstr "(Innleggsforfatteren)"
|
||||
|
||||
#: inc/template-tags.php:136
|
||||
msgid "Comment by post author"
|
||||
msgstr "Kommentar fra innleggsforfatteren"
|
||||
|
||||
#: inc/template-tags.php:95 inc/template-tags.php:117 inc/template-tags.php:153
|
||||
#: template-parts/content-page.php:50
|
||||
msgid "Edit"
|
||||
msgstr "endre"
|
||||
|
||||
#: inc/template-tags.php:114
|
||||
msgid "Pingback:"
|
||||
msgstr "Tilbaketråkk:"
|
||||
|
||||
#. translators: %s: Name of current post. Only visible to screen readers
|
||||
#: inc/template-tags.php:86 template-parts/content-page.php:41
|
||||
msgid "Edit <span class=\"screen-reader-text\">%s</span>"
|
||||
msgstr "Rediger <span class=\"screen-reader-text\">%s</span>"
|
||||
|
||||
#. translators: used between list items, there is a space after the comma
|
||||
#: inc/template-tags.php:75
|
||||
msgctxt "list item separator"
|
||||
msgid ", "
|
||||
msgstr ", "
|
||||
|
||||
#. translators: used between list items, there is a space after the comma
|
||||
#: inc/template-tags.php:68
|
||||
msgid ", "
|
||||
msgstr ", "
|
||||
|
||||
#. translators: %s: post title
|
||||
#: inc/template-tags.php:45
|
||||
msgid "Leave a Comment<span class=\"screen-reader-text\"> on %s</span>"
|
||||
msgstr "Legg igjen en kommentar<span class=\"screen-reader-text\"> på %s</span>"
|
||||
|
||||
#: inc/template-tags.php:30
|
||||
msgid "Featured"
|
||||
msgstr "Fremhevet"
|
||||
|
||||
#. translators: %s: Name of current post
|
||||
#: inc/template-functions.php:49
|
||||
msgid "Continue reading %s"
|
||||
msgstr "Fortsett %s"
|
||||
|
||||
#: inc/style-packs-core.php:234
|
||||
msgid "%s Header Image"
|
||||
msgstr "%s toppbilde"
|
||||
|
||||
#: inc/style-packs-core.php:111
|
||||
msgid "Active Style"
|
||||
msgstr "Aktiv stil"
|
||||
|
||||
#: inc/style-packs-core.php:107 inc/style-packs-core.php:276
|
||||
msgid "Default"
|
||||
msgstr "Standard"
|
||||
|
||||
#: inc/style-packs-core.php:97
|
||||
msgid "Style Packs"
|
||||
msgstr "Stilpakker"
|
||||
|
||||
#: inc/logo-resizer.php:19
|
||||
msgid "Logo Size"
|
||||
msgstr "Logostørrelse"
|
||||
|
||||
#: inc/icon-functions.php:42
|
||||
msgid "Please define an SVG icon filename."
|
||||
msgstr "Vennligst bestem et SVG-ikonfilnavn."
|
||||
|
||||
#: inc/icon-functions.php:37
|
||||
msgid "Please define default parameters in the form of an array."
|
||||
msgstr "Vennligst bestem standardparameterene i form av en rekke."
|
||||
|
||||
#: hero-area/hero-area-customizer.php:111
|
||||
msgid "Adjust the darkness of the overlay over the background image."
|
||||
msgstr "Juster mørket til bakgrunnsbildets overlegg."
|
||||
|
||||
#: hero-area/hero-area-customizer.php:110
|
||||
msgid "Background Overlay"
|
||||
msgstr "Bakgrunnsoverlegg"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:96
|
||||
msgid "Background Image"
|
||||
msgstr "Bakgrunnsbilde"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:80
|
||||
msgid "Button URL Link"
|
||||
msgstr "Knappens nettadresselenke"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:65
|
||||
msgid "Button Text"
|
||||
msgstr "Knappetekst"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:50
|
||||
msgid "Description"
|
||||
msgstr "Beskrivelse"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:35
|
||||
msgid "Title"
|
||||
msgstr "Tittel"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:23
|
||||
msgid "Display on the Front Page"
|
||||
msgstr "Vis på forsiden"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:11
|
||||
msgid "Featured Prompt"
|
||||
msgstr "Fremhevet oppfordring"
|
||||
|
||||
#: header.php:69
|
||||
msgid "Menu"
|
||||
msgstr "Meny"
|
||||
|
||||
#: header.php:25
|
||||
msgid "Skip to content"
|
||||
msgstr "Gå til innhold"
|
||||
|
||||
#: functions.php:144
|
||||
msgid "Collapse child menu"
|
||||
msgstr "Lukk undermeny"
|
||||
|
||||
#: functions.php:143
|
||||
msgid "Expand child menu"
|
||||
msgstr "Utvid undermeny"
|
||||
|
||||
#: functions.php:123
|
||||
msgid "Footer 3"
|
||||
msgstr "Bunnområde 3"
|
||||
|
||||
#: functions.php:113
|
||||
msgid "Footer 2"
|
||||
msgstr "Bunnområde 2"
|
||||
|
||||
#: functions.php:103
|
||||
msgid "Footer 1"
|
||||
msgstr "Bunnområde 1"
|
||||
|
||||
#: functions.php:48
|
||||
msgid "Header"
|
||||
msgstr "Sidetopp"
|
||||
|
||||
#. translators: 1: Theme name, 2: Theme author.
|
||||
#: footer.php:27
|
||||
msgid "Theme: %1$s by %2$s."
|
||||
msgstr "Tema: %1$s av %2$s."
|
||||
|
||||
#. translators: %s: CMS name, i.e. WordPress.
|
||||
#: footer.php:22
|
||||
msgid "Proudly powered by %s"
|
||||
msgstr "Stolt drevet av %s"
|
||||
|
||||
#: footer.php:20
|
||||
msgid "https://wordpress.org/"
|
||||
msgstr "https://wordpress.org/"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:85
|
||||
#: contact-info/contact-info-functions.php:87
|
||||
msgid "Hours"
|
||||
msgstr "Timer"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:70
|
||||
msgid "Email"
|
||||
msgstr "E-post"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:55
|
||||
#: contact-info/contact-info-functions.php:70
|
||||
msgid "Phone"
|
||||
msgstr "Telefon"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:40
|
||||
msgid "Address"
|
||||
msgstr "Adresse"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:29
|
||||
msgid "In the footer"
|
||||
msgstr "I bunnområdet"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:28
|
||||
msgid "In the header"
|
||||
msgstr "I toppområdet"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:24
|
||||
msgid "Where would you like to display your contact information?"
|
||||
msgstr "Hvor ville du likt å vise din kontaktinformasjon?"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:12
|
||||
msgid "Display your location, hours, and contact information."
|
||||
msgstr "Vis din posisjon, timer, og kontaktinformasjon."
|
||||
|
||||
#: contact-info/contact-info-customizer.php:11
|
||||
msgid "Contact Info"
|
||||
msgstr "Kontaktinfo"
|
||||
|
||||
#: comments.php:95
|
||||
msgid "Comments are closed."
|
||||
msgstr "Stengt for kommentarer"
|
||||
|
||||
#: comments.php:54 comments.php:76
|
||||
msgid "Newer Comments"
|
||||
msgstr "Nyere kommentarer"
|
||||
|
||||
#: comments.php:53 comments.php:75
|
||||
msgid "Older Comments"
|
||||
msgstr "Eldre kommentarer"
|
||||
|
||||
#: comments.php:50 comments.php:72
|
||||
msgid "Comment navigation"
|
||||
msgstr "Kommentarnavigasjon"
|
||||
|
||||
#. translators: 1: comment count number, 2: title.
|
||||
#: comments.php:40
|
||||
msgctxt "comments title"
|
||||
msgid "%1$s thought on “%2$s”"
|
||||
msgid_plural "%1$s thoughts on “%2$s”"
|
||||
msgstr[0] "%1$s tanke om “%2$s”"
|
||||
msgstr[1] "%1$s tanker om “%2$s”"
|
||||
|
||||
#. translators: 1: title.
|
||||
#: comments.php:34
|
||||
msgid "One thought on “%1$s”"
|
||||
msgstr "En tanke om “%1$s”"
|
||||
|
||||
#: archive.php:40 index.php:45 search.php:40
|
||||
msgid "Newer Posts"
|
||||
msgstr "Nyere innlegg"
|
||||
|
||||
#: archive.php:39 index.php:44 search.php:39
|
||||
msgid "Older Posts"
|
||||
msgstr "Eldre innlegg"
|
||||
|
||||
#: 404.php:17
|
||||
msgid "Oops! That page can’t be found."
|
||||
msgstr "Auda! Den siden finnes ikke."
|
454
radcliffe-2/languages/radcliffe-2.pot
Normal file
454
radcliffe-2/languages/radcliffe-2.pot
Normal file
|
@ -0,0 +1,454 @@
|
|||
# Copyright (C) 2017 Anders Norén
|
||||
# This file is distributed under the GNU General Public License v2 or later.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Radcliffe 2 2.0.0-wpcom\n"
|
||||
"Report-Msgid-Bugs-To: http://wordpress.org/support/theme/radcliffe-2\n"
|
||||
"POT-Creation-Date: 2017-10-19 03:43:31+00:00\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
||||
#: 404.php:17
|
||||
msgid "Oops! That page can’t be found."
|
||||
msgstr ""
|
||||
|
||||
#: 404.php:21
|
||||
msgid "It looks like nothing was found at this location. Maybe try a search?"
|
||||
msgstr ""
|
||||
|
||||
#: archive.php:39 index.php:44 search.php:39
|
||||
msgid "Older Posts"
|
||||
msgstr ""
|
||||
|
||||
#: archive.php:40 index.php:45 search.php:40
|
||||
msgid "Newer Posts"
|
||||
msgstr ""
|
||||
|
||||
#. translators: 1: title.
|
||||
#: comments.php:34
|
||||
msgid "One thought on “%1$s”"
|
||||
msgstr ""
|
||||
|
||||
#. translators: 1: comment count number, 2: title.
|
||||
#: comments.php:40
|
||||
msgctxt "comments title"
|
||||
msgid "%1$s thought on “%2$s”"
|
||||
msgid_plural "%1$s thoughts on “%2$s”"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: comments.php:50 comments.php:72
|
||||
msgid "Comment navigation"
|
||||
msgstr ""
|
||||
|
||||
#: comments.php:53 comments.php:75
|
||||
msgid "Older Comments"
|
||||
msgstr ""
|
||||
|
||||
#: comments.php:54 comments.php:76
|
||||
msgid "Newer Comments"
|
||||
msgstr ""
|
||||
|
||||
#: comments.php:95
|
||||
msgid "Comments are closed."
|
||||
msgstr ""
|
||||
|
||||
#: contact-info/contact-info-customizer.php:11
|
||||
msgid "Contact Info"
|
||||
msgstr ""
|
||||
|
||||
#: contact-info/contact-info-customizer.php:12
|
||||
msgid "Display your location, hours, and contact information."
|
||||
msgstr ""
|
||||
|
||||
#: contact-info/contact-info-customizer.php:24
|
||||
msgid "Where would you like to display your contact information?"
|
||||
msgstr ""
|
||||
|
||||
#: contact-info/contact-info-customizer.php:28
|
||||
msgid "In the header"
|
||||
msgstr ""
|
||||
|
||||
#: contact-info/contact-info-customizer.php:29
|
||||
msgid "In the footer"
|
||||
msgstr ""
|
||||
|
||||
#: contact-info/contact-info-customizer.php:40
|
||||
msgid "Address"
|
||||
msgstr ""
|
||||
|
||||
#: contact-info/contact-info-customizer.php:44
|
||||
msgid "123 Main St, Somewhere XY, 98765"
|
||||
msgstr ""
|
||||
|
||||
#: contact-info/contact-info-customizer.php:55
|
||||
#: contact-info/contact-info-functions.php:70
|
||||
msgid "Phone"
|
||||
msgstr ""
|
||||
|
||||
#: contact-info/contact-info-customizer.php:59
|
||||
msgid "(555) 123-4567"
|
||||
msgstr ""
|
||||
|
||||
#: contact-info/contact-info-customizer.php:70
|
||||
msgid "Email"
|
||||
msgstr ""
|
||||
|
||||
#: contact-info/contact-info-customizer.php:74
|
||||
msgid "email@example.com"
|
||||
msgstr ""
|
||||
|
||||
#: contact-info/contact-info-customizer.php:85
|
||||
#: contact-info/contact-info-functions.php:87
|
||||
msgid "Hours"
|
||||
msgstr ""
|
||||
|
||||
#: contact-info/contact-info-customizer.php:89
|
||||
msgid "M-F: 9-5pm - Weekends: 10-4pm"
|
||||
msgstr ""
|
||||
|
||||
#: contact-info/contact-info-functions.php:61
|
||||
msgid "Location"
|
||||
msgstr ""
|
||||
|
||||
#: contact-info/contact-info-functions.php:79
|
||||
msgid "E-mail"
|
||||
msgstr ""
|
||||
|
||||
#: footer.php:20
|
||||
msgid "https://wordpress.org/"
|
||||
msgstr ""
|
||||
|
||||
#. translators: %s: CMS name, i.e. WordPress.
|
||||
#: footer.php:22
|
||||
msgid "Proudly powered by %s"
|
||||
msgstr ""
|
||||
|
||||
#. translators: 1: Theme name, 2: Theme author.
|
||||
#: footer.php:27
|
||||
msgid "Theme: %1$s by %2$s."
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:48
|
||||
msgid "Header"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:103
|
||||
msgid "Footer 1"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:113
|
||||
msgid "Footer 2"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:123
|
||||
msgid "Footer 3"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:143
|
||||
msgid "Expand child menu"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:144
|
||||
msgid "Collapse child menu"
|
||||
msgstr ""
|
||||
|
||||
#: header.php:25
|
||||
msgid "Skip to content"
|
||||
msgstr ""
|
||||
|
||||
#: header.php:69
|
||||
msgid "Menu"
|
||||
msgstr ""
|
||||
|
||||
#: hero-area/hero-area-customizer.php:11
|
||||
msgid "Featured Prompt"
|
||||
msgstr ""
|
||||
|
||||
#: hero-area/hero-area-customizer.php:12
|
||||
msgid ""
|
||||
"Use this area to promote your most important message to site visitors. You "
|
||||
"can use a headline, a brief description and prominent link to help drive "
|
||||
"visitors where you’d like them to go."
|
||||
msgstr ""
|
||||
|
||||
#: hero-area/hero-area-customizer.php:23
|
||||
msgid "Display on the Front Page"
|
||||
msgstr ""
|
||||
|
||||
#: hero-area/hero-area-customizer.php:35
|
||||
msgid "Title"
|
||||
msgstr ""
|
||||
|
||||
#: hero-area/hero-area-customizer.php:39
|
||||
msgid "Write a headline"
|
||||
msgstr ""
|
||||
|
||||
#: hero-area/hero-area-customizer.php:50
|
||||
msgid "Description"
|
||||
msgstr ""
|
||||
|
||||
#: hero-area/hero-area-customizer.php:54
|
||||
msgid ""
|
||||
"Write some compelling text to encourage people to click the button below"
|
||||
msgstr ""
|
||||
|
||||
#: hero-area/hero-area-customizer.php:65
|
||||
msgid "Button Text"
|
||||
msgstr ""
|
||||
|
||||
#: hero-area/hero-area-customizer.php:69
|
||||
msgid "Click Me!"
|
||||
msgstr ""
|
||||
|
||||
#: hero-area/hero-area-customizer.php:80
|
||||
msgid "Button URL Link"
|
||||
msgstr ""
|
||||
|
||||
#: hero-area/hero-area-customizer.php:84
|
||||
msgid "http://www.example.com/"
|
||||
msgstr ""
|
||||
|
||||
#: hero-area/hero-area-customizer.php:96
|
||||
msgid "Background Image"
|
||||
msgstr ""
|
||||
|
||||
#: hero-area/hero-area-customizer.php:110
|
||||
msgid "Background Overlay"
|
||||
msgstr ""
|
||||
|
||||
#: hero-area/hero-area-customizer.php:111
|
||||
msgid "Adjust the darkness of the overlay over the background image."
|
||||
msgstr ""
|
||||
|
||||
#: inc/customizer.php:30
|
||||
msgid "Enter a name for your site"
|
||||
msgstr ""
|
||||
|
||||
#: inc/customizer.php:33
|
||||
msgid "A short phrase describing your site"
|
||||
msgstr ""
|
||||
|
||||
#: inc/icon-functions.php:37
|
||||
msgid "Please define default parameters in the form of an array."
|
||||
msgstr ""
|
||||
|
||||
#: inc/icon-functions.php:42
|
||||
msgid "Please define an SVG icon filename."
|
||||
msgstr ""
|
||||
|
||||
#: inc/logo-resizer.php:19
|
||||
msgid "Logo Size"
|
||||
msgstr ""
|
||||
|
||||
#: inc/style-packs-core.php:97
|
||||
msgid "Style Packs"
|
||||
msgstr ""
|
||||
|
||||
#: inc/style-packs-core.php:107 inc/style-packs-core.php:276
|
||||
msgid "Default"
|
||||
msgstr ""
|
||||
|
||||
#: inc/style-packs-core.php:111
|
||||
msgid "Active Style"
|
||||
msgstr ""
|
||||
|
||||
#: inc/style-packs-core.php:234
|
||||
msgid "%s Header Image"
|
||||
msgstr ""
|
||||
|
||||
#: inc/style-packs.php:27
|
||||
msgid "Radcliffe Perfect"
|
||||
msgstr ""
|
||||
|
||||
#: inc/style-packs.php:28
|
||||
msgid "Modern Bauhaus"
|
||||
msgstr ""
|
||||
|
||||
#: inc/style-packs.php:29
|
||||
msgid "Vintage Paper"
|
||||
msgstr ""
|
||||
|
||||
#: inc/style-packs.php:30
|
||||
msgid "Upbeat Pop"
|
||||
msgstr ""
|
||||
|
||||
#: inc/style-packs.php:35
|
||||
msgid ""
|
||||
"A bright, versatile canvas, offering a crisp reading experience for visitors."
|
||||
msgstr ""
|
||||
|
||||
#: inc/style-packs.php:36
|
||||
msgid "The power of minimalism, embodied in a clean black-and-white design."
|
||||
msgstr ""
|
||||
|
||||
#: inc/style-packs.php:37
|
||||
msgid "Timeless, simple elegance, with classic fonts and a touch of sepia."
|
||||
msgstr ""
|
||||
|
||||
#: inc/style-packs.php:38
|
||||
msgid ""
|
||||
"For an extra layer of playfulness, from bold color palettes to a vibrant "
|
||||
"font."
|
||||
msgstr ""
|
||||
|
||||
#. translators: %s: Name of current post
|
||||
#: inc/template-functions.php:49
|
||||
msgid "Continue reading %s"
|
||||
msgstr ""
|
||||
|
||||
#: inc/template-tags.php:30
|
||||
msgid "Featured"
|
||||
msgstr ""
|
||||
|
||||
#. translators: %s: post title
|
||||
#: inc/template-tags.php:45
|
||||
msgid "Leave a Comment<span class=\"screen-reader-text\"> on %s</span>"
|
||||
msgstr ""
|
||||
|
||||
#. translators: used between list items, there is a space after the comma
|
||||
#: inc/template-tags.php:68
|
||||
msgid ", "
|
||||
msgstr ""
|
||||
|
||||
#. translators: 1: list of categories.
|
||||
#: inc/template-tags.php:71
|
||||
msgid "Categories"
|
||||
msgstr ""
|
||||
|
||||
#. translators: used between list items, there is a space after the comma
|
||||
#: inc/template-tags.php:75
|
||||
msgctxt "list item separator"
|
||||
msgid ", "
|
||||
msgstr ""
|
||||
|
||||
#. translators: 1: list of tags.
|
||||
#: inc/template-tags.php:78
|
||||
msgid "Tags"
|
||||
msgstr ""
|
||||
|
||||
#. translators: %s: Name of current post. Only visible to screen readers
|
||||
#: inc/template-tags.php:86 template-parts/content-page.php:41
|
||||
msgid "Edit <span class=\"screen-reader-text\">%s</span>"
|
||||
msgstr ""
|
||||
|
||||
#: inc/template-tags.php:95 inc/template-tags.php:117
|
||||
#: inc/template-tags.php:153 template-parts/content-page.php:50
|
||||
msgid "Edit"
|
||||
msgstr ""
|
||||
|
||||
#: inc/template-tags.php:114
|
||||
msgid "Pingback:"
|
||||
msgstr ""
|
||||
|
||||
#: inc/template-tags.php:136
|
||||
msgid "Comment by post author"
|
||||
msgstr ""
|
||||
|
||||
#: inc/template-tags.php:136
|
||||
msgid "(Post author)"
|
||||
msgstr ""
|
||||
|
||||
#: inc/template-tags.php:147
|
||||
msgid "Your comment is awaiting moderation."
|
||||
msgstr ""
|
||||
|
||||
#: inc/template-tags.php:154
|
||||
msgid "Reply"
|
||||
msgstr ""
|
||||
|
||||
#: inc/woocommerce.php:240 inc/woocommerce.php:241
|
||||
msgid "View your shopping cart"
|
||||
msgstr ""
|
||||
|
||||
#. translators: number of items in the mini cart.
|
||||
#: inc/woocommerce.php:244
|
||||
msgid "%d item"
|
||||
msgid_plural "%d items"
|
||||
msgstr[0] ""
|
||||
msgstr[1] ""
|
||||
|
||||
#: inc/wpcom-colors.php:153
|
||||
msgid "Main Accent"
|
||||
msgstr ""
|
||||
|
||||
#. translators: %s: search query.
|
||||
#: search.php:21
|
||||
msgid "Search Results for: %s"
|
||||
msgstr ""
|
||||
|
||||
#: single.php:28
|
||||
msgid "<span class=\"meta-nav\">Next</span> %title"
|
||||
msgstr ""
|
||||
|
||||
#: single.php:29
|
||||
msgid "<span class=\"meta-nav\">Previous</span> %title"
|
||||
msgstr ""
|
||||
|
||||
#: template-parts/content-author.php:28
|
||||
msgid "Published by %s"
|
||||
msgstr ""
|
||||
|
||||
#: template-parts/content-author.php:34
|
||||
msgid "View all posts by %s"
|
||||
msgstr ""
|
||||
|
||||
#: template-parts/content-none.php:14
|
||||
msgid "Nothing Found"
|
||||
msgstr ""
|
||||
|
||||
#. translators: 1: link to WP admin new post page.
|
||||
#: template-parts/content-none.php:25
|
||||
msgid ""
|
||||
"Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
|
||||
msgstr ""
|
||||
|
||||
#: template-parts/content-none.php:38
|
||||
msgid ""
|
||||
"Sorry, but nothing matched your search terms. Please try again with some "
|
||||
"different keywords."
|
||||
msgstr ""
|
||||
|
||||
#: template-parts/content-none.php:44
|
||||
msgid ""
|
||||
"It seems we can’t find what you’re looking for. Perhaps "
|
||||
"searching can help."
|
||||
msgstr ""
|
||||
|
||||
#: template-parts/content-page.php:26 template-parts/content-single.php:46
|
||||
msgid "Pages:"
|
||||
msgstr ""
|
||||
|
||||
#. translators: %s: Name of current post. Only visible to screen readers
|
||||
#: template-parts/content-single.php:35
|
||||
msgid "Continue reading<span class=\"screen-reader-text\"> \"%s\"</span>"
|
||||
msgstr ""
|
||||
|
||||
#. Theme Name of the plugin/theme
|
||||
#: wp-content/themes/pub/radcliffe-2/style.css
|
||||
msgid "Radcliffe 2"
|
||||
msgstr ""
|
||||
|
||||
#. Theme URI of the plugin/theme
|
||||
#: wp-content/themes/pub/radcliffe-2/style.css
|
||||
msgid "http://wordpress.com/themes/radcliffe-2"
|
||||
msgstr ""
|
||||
|
||||
#. Description of the plugin/theme
|
||||
#: wp-content/themes/pub/radcliffe-2/style.css
|
||||
msgid "A theme for bloggers who want their content to take center stage."
|
||||
msgstr ""
|
||||
|
||||
#. Author of the plugin/theme
|
||||
#: wp-content/themes/pub/radcliffe-2/style.css
|
||||
msgid "Anders Norén"
|
||||
msgstr ""
|
||||
|
||||
#. Author URI of the plugin/theme
|
||||
#: wp-content/themes/pub/radcliffe-2/style.css
|
||||
msgid "http://www.andersnoren.se"
|
||||
msgstr ""
|
BIN
radcliffe-2/languages/ro.mo
Normal file
BIN
radcliffe-2/languages/ro.mo
Normal file
Binary file not shown.
391
radcliffe-2/languages/ro.po
Normal file
391
radcliffe-2/languages/ro.po
Normal file
|
@ -0,0 +1,391 @@
|
|||
# Translation of WordPress.com - Themes - Radcliffe-2 in Romanian
|
||||
# This file is distributed under the same license as the WordPress.com - Themes - Radcliffe-2 package.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"PO-Revision-Date: 2017-11-07 20:41:57+0000\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2);\n"
|
||||
"X-Generator: GlotPress/2.4.0-alpha\n"
|
||||
"Language: ro\n"
|
||||
"Project-Id-Version: WordPress.com - Themes - Radcliffe-2\n"
|
||||
|
||||
#: 404.php:21
|
||||
msgid "It looks like nothing was found at this location. Maybe try a search?"
|
||||
msgstr "Se pare că n-a fost găsit nimic la această locație. Poate încerci o căutare?"
|
||||
|
||||
#. translators: 1: list of tags.
|
||||
#: inc/template-tags.php:78
|
||||
msgid "Tags"
|
||||
msgstr "Etichete"
|
||||
|
||||
#. translators: 1: list of categories.
|
||||
#: inc/template-tags.php:71
|
||||
msgid "Categories"
|
||||
msgstr "Categorii"
|
||||
|
||||
#: contact-info/contact-info-functions.php:79
|
||||
msgid "E-mail"
|
||||
msgstr "Email"
|
||||
|
||||
#: contact-info/contact-info-functions.php:61
|
||||
msgid "Location"
|
||||
msgstr "Locație"
|
||||
|
||||
#: inc/style-packs.php:37
|
||||
msgid "Timeless, simple elegance, with classic fonts and a touch of sepia."
|
||||
msgstr "Eleganță nemuritoare, simplă, cu fonturi clasice și aspect sepia."
|
||||
|
||||
#: inc/style-packs.php:29
|
||||
msgid "Vintage Paper"
|
||||
msgstr "Document de epocă"
|
||||
|
||||
#: inc/customizer.php:33
|
||||
msgid "A short phrase describing your site"
|
||||
msgstr "O frază scurtă care îți descrie situl"
|
||||
|
||||
#: inc/customizer.php:30
|
||||
msgid "Enter a name for your site"
|
||||
msgstr "Introdu un nume pentru situl tău"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:84
|
||||
msgid "http://www.example.com/"
|
||||
msgstr "http://www.example.com/"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:69
|
||||
msgid "Click Me!"
|
||||
msgstr "Dă clic aici!"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:54
|
||||
msgid "Write some compelling text to encourage people to click the button below"
|
||||
msgstr "Scrieți un text convingător pentru a încuraja oamenii să dea clic pe butonul de mai jos"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:39
|
||||
msgid "Write a headline"
|
||||
msgstr "Scrie un titlu"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:89
|
||||
msgid "M-F: 9-5pm - Weekends: 10-4pm"
|
||||
msgstr "L-V: 9-17 - S-D: 10-16"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:74
|
||||
msgid "email@example.com"
|
||||
msgstr "email@example.com"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:59
|
||||
msgid "(555) 123-4567"
|
||||
msgstr "(555) 123-4567"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:44
|
||||
msgid "123 Main St, Somewhere XY, 98765"
|
||||
msgstr "123 Main St, Somewhere XY, 98765"
|
||||
|
||||
#. Description of the plugin/theme
|
||||
#: wp-content/themes/pub/radcliffe-2/style.css
|
||||
msgid "A theme for bloggers who want their content to take center stage."
|
||||
msgstr "O temă pentru blogerii care își doresc conținutul în centrul atenției."
|
||||
|
||||
#. translators: %s: Name of current post. Only visible to screen readers
|
||||
#: template-parts/content-single.php:35
|
||||
msgid "Continue reading<span class=\"screen-reader-text\"> \"%s\"</span>"
|
||||
msgstr "Continuă lectura<span class=\"screen-reader-text\"> \"%s\"</span>"
|
||||
|
||||
#: template-parts/content-page.php:26 template-parts/content-single.php:46
|
||||
msgid "Pages:"
|
||||
msgstr "Pagini:"
|
||||
|
||||
#: template-parts/content-none.php:44
|
||||
msgid "It seems we can’t find what you’re looking for. Perhaps searching can help."
|
||||
msgstr "Se pare că nu putem găsi ceea ce cauți. Probabil o căutare poate ajuta."
|
||||
|
||||
#: template-parts/content-none.php:38
|
||||
msgid "Sorry, but nothing matched your search terms. Please try again with some different keywords."
|
||||
msgstr "Regret, dar nu s-a potrivit nimic cu termenii tăi de căutare. Te rog încearcă din nou cu alte cuvinte cheie."
|
||||
|
||||
#. translators: 1: link to WP admin new post page.
|
||||
#: template-parts/content-none.php:25
|
||||
msgid "Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
|
||||
msgstr "Gata să-ți publici primul articol? <a href=\"%1$s\">Începe de aici</a>."
|
||||
|
||||
#: template-parts/content-none.php:14
|
||||
msgid "Nothing Found"
|
||||
msgstr "N-am găsit nimic"
|
||||
|
||||
#: template-parts/content-author.php:34
|
||||
msgid "View all posts by %s"
|
||||
msgstr "Vezi toate articolele lui %s"
|
||||
|
||||
#: template-parts/content-author.php:28
|
||||
msgid "Published by %s"
|
||||
msgstr "Publicat de %s"
|
||||
|
||||
#: single.php:29
|
||||
msgid "<span class=\"meta-nav\">Previous</span> %title"
|
||||
msgstr "<span class=\"meta-nav\">Anterior</span> %title"
|
||||
|
||||
#: single.php:28
|
||||
msgid "<span class=\"meta-nav\">Next</span> %title"
|
||||
msgstr "<span class=\"meta-nav\">Următor</span> %title"
|
||||
|
||||
#. translators: %s: search query.
|
||||
#: search.php:21
|
||||
msgid "Search Results for: %s"
|
||||
msgstr "Rezultatele căutării pentru: %s"
|
||||
|
||||
#: inc/wpcom-colors.php:153
|
||||
msgid "Main Accent"
|
||||
msgstr "Accent principal"
|
||||
|
||||
#. translators: number of items in the mini cart.
|
||||
#: inc/woocommerce.php:244
|
||||
msgid "%d item"
|
||||
msgid_plural "%d items"
|
||||
msgstr[0] "%d element"
|
||||
msgstr[1] "%d elemente"
|
||||
msgstr[2] "%d de elemente"
|
||||
|
||||
#: inc/woocommerce.php:240 inc/woocommerce.php:241
|
||||
msgid "View your shopping cart"
|
||||
msgstr "Vezi coșul tău de cumpărături"
|
||||
|
||||
#: inc/template-tags.php:154
|
||||
msgid "Reply"
|
||||
msgstr "Răspunde"
|
||||
|
||||
#: inc/template-tags.php:147
|
||||
msgid "Your comment is awaiting moderation."
|
||||
msgstr "Comentariul așteaptă moderare."
|
||||
|
||||
#: inc/template-tags.php:136
|
||||
msgid "(Post author)"
|
||||
msgstr "(Autor articol)"
|
||||
|
||||
#: inc/template-tags.php:136
|
||||
msgid "Comment by post author"
|
||||
msgstr "Comentariu de autor articol"
|
||||
|
||||
#: inc/template-tags.php:95 inc/template-tags.php:117 inc/template-tags.php:153
|
||||
#: template-parts/content-page.php:50
|
||||
msgid "Edit"
|
||||
msgstr "Editează"
|
||||
|
||||
#: inc/template-tags.php:114
|
||||
msgid "Pingback:"
|
||||
msgstr "Pingback:"
|
||||
|
||||
#. translators: %s: Name of current post. Only visible to screen readers
|
||||
#: inc/template-tags.php:86 template-parts/content-page.php:41
|
||||
msgid "Edit <span class=\"screen-reader-text\">%s</span>"
|
||||
msgstr "Editează <span class=\"screen-reader-text\">%s</span>"
|
||||
|
||||
#. translators: used between list items, there is a space after the comma
|
||||
#: inc/template-tags.php:75
|
||||
msgctxt "list item separator"
|
||||
msgid ", "
|
||||
msgstr ", "
|
||||
|
||||
#. translators: used between list items, there is a space after the comma
|
||||
#: inc/template-tags.php:68
|
||||
msgid ", "
|
||||
msgstr ", "
|
||||
|
||||
#. translators: %s: post title
|
||||
#: inc/template-tags.php:45
|
||||
msgid "Leave a Comment<span class=\"screen-reader-text\"> on %s</span>"
|
||||
msgstr "Lasă un comentariu<span class=\"screen-reader-text\"> la %s</span>"
|
||||
|
||||
#: inc/template-tags.php:30
|
||||
msgid "Featured"
|
||||
msgstr "Reprezentativ"
|
||||
|
||||
#. translators: %s: Name of current post
|
||||
#: inc/template-functions.php:49
|
||||
msgid "Continue reading %s"
|
||||
msgstr "Citește în continuare %s"
|
||||
|
||||
#: inc/style-packs-core.php:234
|
||||
msgid "%s Header Image"
|
||||
msgstr "Imagine antet %s"
|
||||
|
||||
#: inc/style-packs-core.php:111
|
||||
msgid "Active Style"
|
||||
msgstr "Stil activ"
|
||||
|
||||
#: inc/style-packs-core.php:107 inc/style-packs-core.php:276
|
||||
msgid "Default"
|
||||
msgstr "Implicit"
|
||||
|
||||
#: inc/style-packs-core.php:97
|
||||
msgid "Style Packs"
|
||||
msgstr "Pachete de stil"
|
||||
|
||||
#: inc/logo-resizer.php:19
|
||||
msgid "Logo Size"
|
||||
msgstr "Dimensiune logo"
|
||||
|
||||
#: inc/icon-functions.php:42
|
||||
msgid "Please define an SVG icon filename."
|
||||
msgstr "Te rog definește un nume de fișier pentru icon SVG."
|
||||
|
||||
#: inc/icon-functions.php:37
|
||||
msgid "Please define default parameters in the form of an array."
|
||||
msgstr "Te rog definește parametrii impliciți sub forma unui tablou."
|
||||
|
||||
#: hero-area/hero-area-customizer.php:111
|
||||
msgid "Adjust the darkness of the overlay over the background image."
|
||||
msgstr "Ajustează întunecimea suprapunerii peste imaginea de fundal."
|
||||
|
||||
#: hero-area/hero-area-customizer.php:110
|
||||
msgid "Background Overlay"
|
||||
msgstr "Suprapunere fundal"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:96
|
||||
msgid "Background Image"
|
||||
msgstr "Imagine fundal"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:80
|
||||
msgid "Button URL Link"
|
||||
msgstr "Legătură URL buton"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:65
|
||||
msgid "Button Text"
|
||||
msgstr "Text buton"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:50
|
||||
msgid "Description"
|
||||
msgstr "Descriere"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:35
|
||||
msgid "Title"
|
||||
msgstr "Titlu"
|
||||
|
||||
#: hero-area/hero-area-customizer.php:23
|
||||
msgid "Display on the Front Page"
|
||||
msgstr "Afișează pe pagina din față"
|
||||
|
||||
#: header.php:69
|
||||
msgid "Menu"
|
||||
msgstr "Meniu"
|
||||
|
||||
#: header.php:25
|
||||
msgid "Skip to content"
|
||||
msgstr "Sari la conținut"
|
||||
|
||||
#: functions.php:144
|
||||
msgid "Collapse child menu"
|
||||
msgstr "Restrânge meniu copil"
|
||||
|
||||
#: functions.php:143
|
||||
msgid "Expand child menu"
|
||||
msgstr "Extinde meniu copil"
|
||||
|
||||
#: functions.php:123
|
||||
msgid "Footer 3"
|
||||
msgstr "Subsol 3"
|
||||
|
||||
#: functions.php:113
|
||||
msgid "Footer 2"
|
||||
msgstr "Subsol 2"
|
||||
|
||||
#: functions.php:103
|
||||
msgid "Footer 1"
|
||||
msgstr "Subsol 1"
|
||||
|
||||
#: functions.php:48
|
||||
msgid "Header"
|
||||
msgstr "Antet"
|
||||
|
||||
#. translators: 1: Theme name, 2: Theme author.
|
||||
#: footer.php:27
|
||||
msgid "Theme: %1$s by %2$s."
|
||||
msgstr "Temă: %1$s de %2$s."
|
||||
|
||||
#. translators: %s: CMS name, i.e. WordPress.
|
||||
#: footer.php:22
|
||||
msgid "Proudly powered by %s"
|
||||
msgstr "Propulsată cu mândrie de %s"
|
||||
|
||||
#: footer.php:20
|
||||
msgid "https://wordpress.org/"
|
||||
msgstr "http://wordpress.org/"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:85
|
||||
#: contact-info/contact-info-functions.php:87
|
||||
msgid "Hours"
|
||||
msgstr "Ore"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:70
|
||||
msgid "Email"
|
||||
msgstr "e-mail"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:55
|
||||
#: contact-info/contact-info-functions.php:70
|
||||
msgid "Phone"
|
||||
msgstr "Telefon"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:40
|
||||
msgid "Address"
|
||||
msgstr "Adresă"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:29
|
||||
msgid "In the footer"
|
||||
msgstr "În subsol"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:28
|
||||
msgid "In the header"
|
||||
msgstr "În antet"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:24
|
||||
msgid "Where would you like to display your contact information?"
|
||||
msgstr "Vrei să-ți afișezi informațiile de contact?"
|
||||
|
||||
#: contact-info/contact-info-customizer.php:12
|
||||
msgid "Display your location, hours, and contact information."
|
||||
msgstr "Afișează locația, orele și informații de contact."
|
||||
|
||||
#: contact-info/contact-info-customizer.php:11
|
||||
msgid "Contact Info"
|
||||
msgstr "Informații de contact"
|
||||
|
||||
#: comments.php:95
|
||||
msgid "Comments are closed."
|
||||
msgstr "Comentariile sunt închise"
|
||||
|
||||
#: comments.php:54 comments.php:76
|
||||
msgid "Newer Comments"
|
||||
msgstr "Comentarii mai noi"
|
||||
|
||||
#: comments.php:53 comments.php:75
|
||||
msgid "Older Comments"
|
||||
msgstr "Comentarii mai vechi"
|
||||
|
||||
#: comments.php:50 comments.php:72
|
||||
msgid "Comment navigation"
|
||||
msgstr "Navigare în comentariu"
|
||||
|
||||
#. translators: 1: comment count number, 2: title.
|
||||
#: comments.php:40
|
||||
msgctxt "comments title"
|
||||
msgid "%1$s thought on “%2$s”"
|
||||
msgid_plural "%1$s thoughts on “%2$s”"
|
||||
msgstr[0] "%1$s gând despre „%2$s”"
|
||||
msgstr[1] "%1$s gânduri despre „%2$s”"
|
||||
msgstr[2] "%1$s de gânduri despre „%2$s”"
|
||||
|
||||
#. translators: 1: title.
|
||||
#: comments.php:34
|
||||
msgid "One thought on “%1$s”"
|
||||
msgstr "Un gând despre „%1$s”"
|
||||
|
||||
#: archive.php:40 index.php:45 search.php:40
|
||||
msgid "Newer Posts"
|
||||
msgstr "Articole mai noi"
|
||||
|
||||
#: archive.php:39 index.php:44 search.php:39
|
||||
msgid "Older Posts"
|
||||
msgstr "Articole mai vechi"
|
||||
|
||||
#: 404.php:17
|
||||
msgid "Oops! That page can’t be found."
|
||||
msgstr "Hopa! Acea pagina nu poate fi găsită."
|
38
radcliffe-2/page.php
Normal file
38
radcliffe-2/page.php
Normal file
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying all pages
|
||||
*
|
||||
* This is the template that displays all pages by default.
|
||||
* Please note that this is the WordPress construct of pages
|
||||
* and that other 'pages' on your WordPress site may use a
|
||||
* different template.
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php
|
||||
while ( have_posts() ) : the_post();
|
||||
|
||||
get_template_part( 'template-parts/content', 'page' );
|
||||
|
||||
// If comments are open or we have at least one comment, load up the comment template.
|
||||
if ( comments_open() || get_comments_number() ) :
|
||||
comments_template();
|
||||
endif;
|
||||
|
||||
endwhile; // End of the loop.
|
||||
?>
|
||||
|
||||
</main><!-- #main -->
|
||||
</div><!-- #primary -->
|
||||
|
||||
<?php
|
||||
get_sidebar();
|
||||
get_footer();
|
46
radcliffe-2/readme.txt
Normal file
46
radcliffe-2/readme.txt
Normal file
|
@ -0,0 +1,46 @@
|
|||
=== Radcliffe 2 ===
|
||||
|
||||
Author: Anders Norén
|
||||
Contributors: automattic
|
||||
Tags: author-bio, custom-menu, featured-images, fluid-layout, gray, one-column, responsive-layout, sticky-post, threaded-comments, white
|
||||
|
||||
Requires at least: 4.5
|
||||
Tested up to: 4.7
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
== Description ==
|
||||
|
||||
Radcliffe 2 is a simple theme with clean typography, created with entrepreneurs and small business owners in mind. With business-friendly options like a call-to-action button and prominent contact information, Radcliffe 2 is your foundation for a professional website.
|
||||
|
||||
== Installation ==
|
||||
|
||||
1. In your admin panel, go to Appearance > Themes and click the Add New button.
|
||||
2. Click Upload and Choose File, then select the theme's .zip file. Click Install Now.
|
||||
3. Click Activate to use your new theme right away.
|
||||
|
||||
== Frequently Asked Questions ==
|
||||
|
||||
= Does this theme support any plugins? =
|
||||
|
||||
Radcliffe 2 includes support for Jetpack's Infinite Scroll as well as other features.
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 1.0 - Sep 22 2017 =
|
||||
* Initial release
|
||||
|
||||
== Credits ==
|
||||
|
||||
* [Genericons](http://github.com/Automattic/genericons/) Font by Automattic (http://automattic.com/), licensed under [GPL2](https://www.gnu.org/licenses/gpl-2.0.html).
|
||||
* [normalize.css](http://necolas.github.io/normalize.css), (C) 2012-2015 Nicolas Gallagher and Jonathan Neal, [MIT](http://opensource.org/licenses/MIT)
|
||||
* Based on [Underscores](http://underscores.me), (C) 2012-2017 Automattic, Inc., [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html)
|
||||
* Based on [Radcliffe](https://wordpress.org/themes/radcliffe/), (C) Anders Norén, [GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html)
|
||||
|
||||
* Headstart photos:
|
||||
* Papers https://pxhere.com/en/photo/66139 [CC0](https://creativecommons.org/publicdomain/zero/1.0/)
|
||||
* Open Sign https://headstartdata.wordpress.com/were-open-sign/ [CC0](https://creativecommons.org/publicdomain/zero/1.0/)
|
||||
* Buildings https://visualhunt.com/photo/201623 [CC0](https://creativecommons.org/publicdomain/zero/1.0/)
|
||||
* Wood Pattern https://headstartdata.wordpress.com/pattern-wood/ [CC0](https://creativecommons.org/publicdomain/zero/1.0/)
|
||||
* Stardust Pattern https://headstartdata.wordpress.com/pattern-stardust/ [CC0](https://creativecommons.org/publicdomain/zero/1.0/)
|
||||
* Feather/Knit Pattern https://headstartdata.wordpress.com/pattern-knit-feathers/ [CC0](https://creativecommons.org/publicdomain/zero/1.0/)
|
333
radcliffe-2/rtl.css
Normal file
333
radcliffe-2/rtl.css
Normal file
|
@ -0,0 +1,333 @@
|
|||
/*
|
||||
Theme Name: Radcliffe 2
|
||||
|
||||
Adding support for languages written in a Right To Left (RTL) direction is easy -
|
||||
it's just a matter of overwriting all the horizontal positioning attributes
|
||||
of your CSS stylesheet in a separate stylesheet file named rtl.css.
|
||||
|
||||
https://codex.wordpress.org/Right-to-Left_Language_Support
|
||||
|
||||
*/
|
||||
|
||||
|
||||
body {
|
||||
direction: rtl;
|
||||
unicode-bidi: embed;
|
||||
}
|
||||
|
||||
th {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.contact-info-area span.contact-info-label {
|
||||
left: auto;
|
||||
right: -999999em;
|
||||
}
|
||||
|
||||
.main-navigation ul {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.main-navigation li {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.main-navigation a .icon {
|
||||
margin-left: 0;
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
.main-navigation ul ul ul {
|
||||
left: auto;
|
||||
right: -999em;
|
||||
}
|
||||
|
||||
.main-navigation ul li:hover > ul,
|
||||
.main-navigation ul li.focus > ul {
|
||||
right: auto;
|
||||
}
|
||||
|
||||
.main-navigation ul ul li:hover > ul,
|
||||
.main-navigation ul ul li.focus > ul {
|
||||
left: auto;
|
||||
right: 100%;
|
||||
}
|
||||
|
||||
/* Small menu. */
|
||||
.menu-toggle .icon {
|
||||
margin-left: 0;
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
/* Jetpack social menu */
|
||||
|
||||
.jetpack-social-navigation {
|
||||
margin-left: 0;
|
||||
margin-right: -0.5em;
|
||||
}
|
||||
|
||||
.jetpack-social-navigation li {
|
||||
margin-left: 0.25em;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
/* Comment and Post menus */
|
||||
|
||||
.nav-next .icon {
|
||||
margin-left: 0;
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
.nav-previous .icon {
|
||||
margin-left: 6px;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.screen-reader-text:focus {
|
||||
left: auto;
|
||||
right: 5px;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Layout
|
||||
--------------------------------------------------------------*/
|
||||
/* Search toggle */
|
||||
.search-toggle {
|
||||
left: 0;
|
||||
right: auto;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Widgets
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.widget ul {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
#wp-calendar tfoot #prev {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#wp-calendar tfoot #next {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* widget */
|
||||
.search-form .search-field {
|
||||
padding: 5% 5% 5% 20%;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Content
|
||||
--------------------------------------------------------------*/
|
||||
/*--------------------------------------------------------------
|
||||
## Posts and pages
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.archive .entry-thumbnail + .entry-header,
|
||||
.blog .entry-thumbnail + .entry-header,
|
||||
.search .entry-thumbnail + .entry-header {
|
||||
left: auto;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.byline:before,
|
||||
.comments-link:before {
|
||||
content: "\\";
|
||||
margin: 0 .3em 0 .5em;
|
||||
}
|
||||
|
||||
.date-hidden .byline:before,
|
||||
.date-hidden.author-hidden .comments-link:before {
|
||||
content: "";
|
||||
}
|
||||
|
||||
.entry-author {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.entry-author .author-bio,
|
||||
.entry-author .author-heading {
|
||||
padding-left: 0;
|
||||
padding-right: 80px;
|
||||
}
|
||||
|
||||
.cat-links,
|
||||
.tags-links,
|
||||
.edit-link {
|
||||
padding-left: 0;
|
||||
padding-right: 30px;
|
||||
}
|
||||
|
||||
.cat-links .icon,
|
||||
.tags-links .icon,
|
||||
.edit-link .icon {
|
||||
left: auto;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Comments
|
||||
--------------------------------------------------------------*/
|
||||
.comments .children {
|
||||
margin-left: 0;
|
||||
margin-right: 5%;
|
||||
}
|
||||
|
||||
.comment-wrapper,
|
||||
.pingback,
|
||||
.trackback {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
ol.children ol.children {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.comment-wrapper:after {
|
||||
border-left-color: #fff;
|
||||
border-right-color: transparent;
|
||||
left: auto;
|
||||
right: -24px;
|
||||
}
|
||||
|
||||
.comment .avatar {
|
||||
left: auto;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.comment-header span {
|
||||
margin-left: 0;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.comment-actions a {
|
||||
margin-left: 0;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.bypostauthor .by-post-author {
|
||||
left: auto;
|
||||
right: 12px;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Infinite scroll
|
||||
--------------------------------------------------------------*/
|
||||
#infinite-handle span {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Media Queries
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
@media all and (max-width: 768px) {
|
||||
|
||||
.menu-toggle {
|
||||
margin: 0 4% 40px 0;
|
||||
}
|
||||
|
||||
.dropdown-toggle {
|
||||
left: 6px;
|
||||
right: auto;
|
||||
}
|
||||
|
||||
.main-navigation.toggled ul li {
|
||||
float: none;
|
||||
}
|
||||
|
||||
.main-navigation.toggled .sub-menu {
|
||||
padding: 0 25px 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (min-width: 600px) {
|
||||
.jetpack-social-navigation {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.jetpack-social-navigation li {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.entry-author {
|
||||
margin-left: 40px;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.comment-wrapper,
|
||||
.pingback ,
|
||||
.trackback {
|
||||
margin-left: 0;
|
||||
margin-right: 110px;
|
||||
}
|
||||
|
||||
ol.children {
|
||||
padding-left: 0;
|
||||
padding-right: 40px;
|
||||
}
|
||||
|
||||
.bypostauthor .by-post-author {
|
||||
left: auto;
|
||||
right: -2px;
|
||||
}
|
||||
|
||||
.comment-navigation .nav-previous,
|
||||
.posts-navigation .nav-previous,
|
||||
.post-navigation .nav-previous {
|
||||
float: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.comment-navigation .nav-next,
|
||||
.posts-navigation .nav-next,
|
||||
.post-navigation .nav-next {
|
||||
float: left;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
.contact-info-area span.contact-info-label {
|
||||
right: auto;
|
||||
}
|
||||
|
||||
#header-menu {
|
||||
margin-left: 0;
|
||||
margin-right: -15px;
|
||||
}
|
||||
|
||||
.main-navigation ul ul {
|
||||
left: auto;
|
||||
right: -999em;
|
||||
}
|
||||
|
||||
.main-navigation ul ul a {
|
||||
padding-left: 18px;
|
||||
padding-right: 15px;
|
||||
}
|
||||
|
||||
.main-navigation ul ul .menu-item-has-children > a > .icon,
|
||||
.main-navigation ul ul .page_item_has_children > a > .icon {
|
||||
left: 0.5em;
|
||||
right: auto;
|
||||
-ms-transform: rotate(90deg);
|
||||
-moz-transform: rotate(90deg);
|
||||
-webkit-transform: rotate(90deg);
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
.main-navigation ul ul ul {
|
||||
padding-left: 0;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.main-navigation ul ul ul:after {
|
||||
border-right-color: transparent;
|
||||
border-left-color: #222;
|
||||
left: auto;
|
||||
right: 0;
|
||||
}
|
||||
}
|
BIN
radcliffe-2/screenshot.png
Normal file
BIN
radcliffe-2/screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 614 KiB |
54
radcliffe-2/search.php
Normal file
54
radcliffe-2/search.php
Normal file
|
@ -0,0 +1,54 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying search results pages
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<section id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php
|
||||
if ( have_posts() ) : ?>
|
||||
|
||||
<header class="page-header">
|
||||
<h1 class="page-title"><?php
|
||||
/* translators: %s: search query. */
|
||||
printf( esc_html__( 'Search Results for: %s', 'radcliffe-2' ), '<span>' . get_search_query() . '</span>' );
|
||||
?></h1>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<?php
|
||||
/* Start the Loop */
|
||||
while ( have_posts() ) : the_post();
|
||||
|
||||
/**
|
||||
* Run the loop for the search to output the results.
|
||||
* If you want to overload this in a child theme then include a file
|
||||
* called content-search.php and that will be used instead.
|
||||
*/
|
||||
get_template_part( 'template-parts/content', 'search' );
|
||||
|
||||
endwhile;
|
||||
|
||||
the_posts_navigation( array(
|
||||
'prev_text' => radcliffe_2_get_svg( array( 'icon' => 'previous' ) ) . esc_html__( 'Older Posts', 'radcliffe-2' ),
|
||||
'next_text' => esc_html__( 'Newer Posts', 'radcliffe-2' ) . radcliffe_2_get_svg( array( 'icon' => 'next' ) ),
|
||||
) );
|
||||
|
||||
else :
|
||||
|
||||
get_template_part( 'template-parts/content', 'none' );
|
||||
|
||||
endif; ?>
|
||||
|
||||
</main><!-- #main -->
|
||||
</section><!-- #primary -->
|
||||
|
||||
<?php
|
||||
get_sidebar();
|
||||
get_footer();
|
34
radcliffe-2/sidebar.php
Normal file
34
radcliffe-2/sidebar.php
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
/**
|
||||
* The sidebar containing the main widget area
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
if ( ! is_active_sidebar( 'sidebar-1' ) && ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
|
||||
<aside class="widget-area">
|
||||
<div class="widget-wrapper">
|
||||
<?php
|
||||
if ( is_active_sidebar( 'sidebar-1' ) ) { ?>
|
||||
<div class="widget-column footer-widget-1">
|
||||
<?php dynamic_sidebar( 'sidebar-1' ); ?>
|
||||
</div>
|
||||
<?php }
|
||||
if ( is_active_sidebar( 'sidebar-2' ) ) { ?>
|
||||
<div class="widget-column footer-widget-2">
|
||||
<?php dynamic_sidebar( 'sidebar-2' ); ?>
|
||||
</div>
|
||||
<?php }
|
||||
if ( is_active_sidebar( 'sidebar-3' ) ) { ?>
|
||||
<div class="widget-column footer-widget-3">
|
||||
<?php dynamic_sidebar( 'sidebar-3' ); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</aside><!-- #secondary -->
|
42
radcliffe-2/single.php
Normal file
42
radcliffe-2/single.php
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying all single posts
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php
|
||||
while ( have_posts() ) : the_post();
|
||||
|
||||
get_template_part( 'template-parts/content', 'single' );
|
||||
|
||||
// If comments are open or we have at least one comment, load up the comment template.
|
||||
if ( comments_open() || get_comments_number() ) :
|
||||
comments_template();
|
||||
endif;
|
||||
?>
|
||||
<div class="post-nav-wrapper">
|
||||
<?php
|
||||
the_post_navigation( array(
|
||||
'next_text' => wp_kses( __( '<span class="meta-nav">Next</span> %title', 'radcliffe-2' ), array( 'span' => array( 'class' => array() ) ) ),
|
||||
'prev_text' => wp_kses( __( '<span class="meta-nav">Previous</span> %title', 'radcliffe-2' ), array( 'span' => array( 'class' => array() ) ) )
|
||||
) );
|
||||
?>
|
||||
</div><!-- .post-nav-wrapper -->
|
||||
<?php
|
||||
endwhile; // End of the loop.
|
||||
?>
|
||||
|
||||
</main><!-- #main -->
|
||||
</div><!-- #primary -->
|
||||
|
||||
<?php
|
||||
get_sidebar();
|
||||
get_footer();
|
2666
radcliffe-2/style.css
Normal file
2666
radcliffe-2/style.css
Normal file
File diff suppressed because it is too large
Load diff
457
radcliffe-2/styles/colorful.css
Normal file
457
radcliffe-2/styles/colorful.css
Normal file
|
@ -0,0 +1,457 @@
|
|||
/**
|
||||
* Colorful Style Pack
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Fonts
|
||||
*/
|
||||
|
||||
body,
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea,
|
||||
.post-navigation a,
|
||||
.site-description,
|
||||
.header-search .s,
|
||||
.entry-meta,
|
||||
.site-footer,
|
||||
.main-navigation a,
|
||||
.entry-footer,
|
||||
.post-navigation a span,
|
||||
.comment-actions,
|
||||
.comment-navigation,
|
||||
#wp-calendar tfoot a,
|
||||
form,
|
||||
input,
|
||||
button,
|
||||
.button,
|
||||
input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"],
|
||||
#infinite-handle span {
|
||||
font-family: Inconsolata, monospace;
|
||||
}
|
||||
|
||||
.main-navigation a,
|
||||
.entry-meta,
|
||||
.entry-meta a,
|
||||
.archive .page-title,
|
||||
.search .page-title,
|
||||
.error404 .page-title,
|
||||
.posts-navigation a,
|
||||
.comments-title,
|
||||
.comment-reply-title,
|
||||
.site-info {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/* Headers */
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
.widget-title,
|
||||
.archive .page-title,
|
||||
.comment-header,
|
||||
.site-title,
|
||||
.entry-title {
|
||||
font-family: 'Karla', 'Helvetica Neue', Helvetica, arial, sans-serif;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Colours
|
||||
*/
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.hero-area .button,
|
||||
.hero-area .button:focus,
|
||||
.hero-area .button:hover {
|
||||
background-color: #d97059;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.hero-area {
|
||||
background-color: #888;
|
||||
}
|
||||
|
||||
blockquote:before,
|
||||
blockquote:after {
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
.archive .page-title,
|
||||
.comment-header,
|
||||
.site-title,
|
||||
.jetpack-social-navigation a:hover,
|
||||
.jetpack-social-navigation a:focus,
|
||||
.jetpack-social-navigation a:visited:hover {
|
||||
color: #71db9d;
|
||||
}
|
||||
|
||||
a,
|
||||
a:visited,
|
||||
.entry-title a:hover,
|
||||
.entry-meta a,
|
||||
.entry-footer a,
|
||||
.posts-navigation a,
|
||||
.post-navigation a,
|
||||
.comment-navigation a:hover,
|
||||
.site-title a:hover,
|
||||
.site-info a,
|
||||
.site-info a:hover,
|
||||
#wp-calendar tfoot a:hover,
|
||||
.entry-title a:hover,
|
||||
.menu-toggle {
|
||||
color: #d97059;
|
||||
}
|
||||
|
||||
.archive .entry-title a:hover,
|
||||
.blog .entry-title a:hover,
|
||||
.search .entry-title a:hover {
|
||||
color: #ffed78;
|
||||
}
|
||||
|
||||
.single .entry-header,
|
||||
.page .entry-header {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.posts-navigation a:hover,
|
||||
.post-navigation a:hover,
|
||||
.entry-meta a:hover,
|
||||
.entry-footer a:hover {
|
||||
color: #222;
|
||||
}
|
||||
|
||||
button:hover,
|
||||
.button:hover,
|
||||
input[type="button"]:hover,
|
||||
input[type="reset"]:hover,
|
||||
input[type="submit"]:hover,
|
||||
button:focus,
|
||||
.button:focus,
|
||||
input[type="button"]:focus,
|
||||
input[type="reset"]:focus,
|
||||
input[type="submit"]:focus,
|
||||
button:active,
|
||||
.button:active,
|
||||
input[type="button"]:active,
|
||||
input[type="reset"]:active,
|
||||
input[type="submit"]:active,
|
||||
.bypostauthor .by-post-author {
|
||||
background-color: #d97059;
|
||||
}
|
||||
|
||||
.archive article:nth-of-type(3n+1) .entry-header,
|
||||
.blog article:nth-of-type(3n+1) .entry-header,
|
||||
.search-results article:nth-of-type(3n+1) .entry-header {
|
||||
background-color: rgba(39,140,176,0.7);
|
||||
}
|
||||
|
||||
.archive article:nth-of-type(3n+1) .entry-header:hover,
|
||||
.blog article:nth-of-type(3n+1) .entry-header:hover,
|
||||
.search-results article:nth-of-type(3n+1) .entry-header:hover {
|
||||
background-color: rgba(39,140,176,0.9);
|
||||
}
|
||||
|
||||
.archive article:nth-of-type(3n+2) .entry-header,
|
||||
.blog article:nth-of-type(3n+2) .entry-header,
|
||||
.search-results article:nth-of-type(3n+2) .entry-header {
|
||||
background-color: rgba(217,112,89,0.7);
|
||||
}
|
||||
|
||||
.archive article:nth-of-type(3n+2) .entry-header:hover,
|
||||
.blog article:nth-of-type(3n+2) .entry-header:hover,
|
||||
.search-results article:nth-of-type(3n+2) .entry-header:hover {
|
||||
background-color: rgba(217,112,89,0.9);
|
||||
}
|
||||
|
||||
.archive article:nth-of-type(3n+3) .entry-header,
|
||||
.blog article:nth-of-type(3n+3) .entry-header,
|
||||
.search-results article:nth-of-type(3n+3) .entry-header {
|
||||
background-color: rgba(59,159,100,0.7);
|
||||
}
|
||||
|
||||
.archive article:nth-of-type(3n+3) .entry-header:hover,
|
||||
.blog article:nth-of-type(3n+3) .entry-header:hover,
|
||||
.search-results article:nth-of-type(3n+3) .entry-header:hover {
|
||||
background-color: rgba(59,159,100,0.9);
|
||||
}
|
||||
|
||||
.entry-title a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.comments-title,
|
||||
.comment-reply-title {
|
||||
color: #222;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.widget-title,
|
||||
.archive .page-title {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.single .entry-title,
|
||||
.page-template-default .entry-title,
|
||||
.widget-title {
|
||||
color: #4ba3c3;
|
||||
}
|
||||
|
||||
.hero-area-title {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.post-nav-wrapper,
|
||||
.site-footer,
|
||||
.widget-area,
|
||||
.entry-author,
|
||||
.entry-links,
|
||||
.page-header,
|
||||
.comments-area,
|
||||
.respond {
|
||||
border-top-color: #e5e5e5;
|
||||
}
|
||||
|
||||
.comments-area,
|
||||
.comments-title,
|
||||
.respond {
|
||||
border-color: #60cd8e;
|
||||
}
|
||||
|
||||
.menu-toggle:hover,
|
||||
.comments-area,
|
||||
.respond {
|
||||
background-color: #71db9d;
|
||||
}
|
||||
|
||||
.comment-navigation a {
|
||||
color: #222;
|
||||
}
|
||||
|
||||
.single.no-featured-image .site-header,
|
||||
.page.no-featured-image .site-header,
|
||||
.error-404 .page-header,
|
||||
.no-results .page-header,
|
||||
.search-no-results .page-header {
|
||||
border-bottom-color: #e5e5e5;
|
||||
}
|
||||
|
||||
.contact-info-area {
|
||||
background-color: #ffed78;
|
||||
border-color: #f4d35e;
|
||||
}
|
||||
|
||||
.cat-links .icon,
|
||||
.tags-links .icon,
|
||||
.edit-link .icon {
|
||||
fill: #d97059;
|
||||
}
|
||||
|
||||
.site-title a,
|
||||
.contact-info-area,
|
||||
.contact-info-area a,
|
||||
.contact-info-area a:hover {
|
||||
color: #222;
|
||||
}
|
||||
|
||||
.contact-info-area .icon {
|
||||
fill: #d97059;
|
||||
}
|
||||
|
||||
.main-navigation a,
|
||||
.jetpack-social-navigation a,
|
||||
.jetpack-social-navigation a:visited {
|
||||
color: #d97059;
|
||||
}
|
||||
|
||||
.widget-area {
|
||||
background-color: #fafafa;
|
||||
}
|
||||
|
||||
/**
|
||||
* Layout-y stuff
|
||||
*/
|
||||
|
||||
|
||||
.hero-area-button .button {
|
||||
border-radius: 5px;
|
||||
box-shadow: 0px 5px 0px 0px #bd5842;
|
||||
position: relative;
|
||||
top: 0;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.hero-area-button .button:hover {
|
||||
box-shadow: 0px 10px 0px 0px #bd5842;
|
||||
top: -5px;
|
||||
}
|
||||
|
||||
.hero-area-button .button:focus,
|
||||
.hero-area-button .button:active {
|
||||
box-shadow: 0px 0px 0px 0px #bd5842;
|
||||
top: 5px;
|
||||
}
|
||||
|
||||
.menu-toggle .icon {
|
||||
height: 0.9em;
|
||||
width: 0.9em;
|
||||
}
|
||||
|
||||
/* Hero area */
|
||||
|
||||
.hero-area .button:focus,
|
||||
.hero-area .button:hover {
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
/* Posts */
|
||||
|
||||
#infinite-handle span {
|
||||
font-size: 22px;
|
||||
font-size: 2.2rem;
|
||||
padding: 75px 0;
|
||||
}
|
||||
|
||||
#infinite-handle span:hover {
|
||||
background-color: #ffed78;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
background-color: #d97059;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.site-footer a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@media all and (max-width: 768px) {
|
||||
.main-navigation.toggled ul {
|
||||
border-top-color: #e5e5e5;
|
||||
}
|
||||
|
||||
.main-navigation.toggled li a:hover,
|
||||
.main-navigation.toggled li a:focus,
|
||||
.main-navigation.toggled li a:active {
|
||||
background-color: #4ba3c3;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (min-width: 768px) {
|
||||
.main-navigation li:hover > a,
|
||||
.main-navigation li.focus > a,
|
||||
.main-navigation li.current-menu-item > a {
|
||||
background-color: #60cd8e;
|
||||
}
|
||||
|
||||
.main-navigation li li:hover > a,
|
||||
.main-navigation li li.focus > a {
|
||||
background-color: #4ba3c3;
|
||||
}
|
||||
|
||||
.main-navigation ul ul > li.current-menu-item:first-child:after {
|
||||
border-bottom-color: #60cd8e;
|
||||
}
|
||||
|
||||
.main-navigation ul ul ul > li.current-menu-item:first-child:after {
|
||||
border-bottom-color: transparent;
|
||||
border-right-color: #60cd8e;
|
||||
}
|
||||
|
||||
.main-navigation ul ul > li:first-child:hover:after,
|
||||
.main-navigation ul ul > li.current-menu-item:first-child:hover:after {
|
||||
border-bottom-color: #4ba3c3;
|
||||
}
|
||||
|
||||
.main-navigation ul ul ul > li:first-child:hover:after,
|
||||
.main-navigation ul ul ul > li.current-menu-item:first-child:hover:after {
|
||||
border-bottom-color: transparent;
|
||||
border-right-color: #4ba3c3;
|
||||
}
|
||||
}
|
||||
|
||||
/* Woocommerce */
|
||||
|
||||
.woocommerce-tabs ul.tabs li.active a,
|
||||
.site-header-cart .cart-contents,
|
||||
.site-header-cart .count {
|
||||
color: #d97059;
|
||||
}
|
||||
|
||||
ul.products li.product .woocommerce-loop-product__title {
|
||||
color: #4ba3c3;
|
||||
}
|
||||
|
||||
.site-header-cart .widget_shopping_cart_content .woocommerce-mini-cart__buttons a,
|
||||
.site-header-cart:hover>li>a,
|
||||
.site-header-cart.focus>li>a,
|
||||
.site-header-cart>li:hover>a,
|
||||
.site-header-cart>li.focus>a {
|
||||
background: #60cd8e;
|
||||
}
|
||||
|
||||
.star-rating span:before,
|
||||
p.stars:hover a:before {
|
||||
color: #d97059;
|
||||
}
|
||||
|
||||
.woocommerce-MyAccount-navigation li:hover > a,
|
||||
.woocommerce-MyAccount-navigation li.focus > a,
|
||||
.woocommerce-tabs ul.tabs li:hover a {
|
||||
background-color: #60cd8e;
|
||||
}
|
||||
|
||||
.woocommerce-MyAccount-navigation a {
|
||||
font-size: 15px;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.site-header-cart .cart-contents,
|
||||
.site-header-cart .widget_shopping_cart_content .mini_cart_item .quantity,
|
||||
.single-product div.product .commentlist .comment-text .meta,
|
||||
.single-product div.product .commentlist .comment-text .description,
|
||||
.single-product div.product .product_meta,
|
||||
.single-product div.product .comment-reply-title,
|
||||
.single-product div.product .entry-summary .price,
|
||||
.woocommerce-MyAccount-content address,
|
||||
.woocommerce-MyAccount-navigation a,
|
||||
.woocommerce-tabs ul.tabs li a,
|
||||
.woocommerce.widget .amount,
|
||||
.woocommerce.widget .reviewer,
|
||||
.woocommerce.widget .total,
|
||||
.woocommerce.widget .quantity,
|
||||
.woocommerce-breadcrumb,
|
||||
.woocommerce-result-count,
|
||||
.woocommerce-ordering,
|
||||
.woocommerce-ordering select,
|
||||
.onsale {
|
||||
font-family: Inconsolata, monospace;
|
||||
}
|
||||
|
||||
.single-product div.product .woocommerce-Reviews-title,
|
||||
ul.products li.product .woocommerce-loop-product__title,
|
||||
.woocommerce-tabs .panel h2:first-of-type,
|
||||
.woocommerce-tabs ul.tabs li a,
|
||||
.upsells.products>h2:first-of-type,
|
||||
.related.products>h2:first-of-type {
|
||||
text-transform: none;
|
||||
}
|
BIN
radcliffe-2/styles/colorful.png
Normal file
BIN
radcliffe-2/styles/colorful.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.9 KiB |
BIN
radcliffe-2/styles/default.png
Normal file
BIN
radcliffe-2/styles/default.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.9 KiB |
542
radcliffe-2/styles/modern.css
Normal file
542
radcliffe-2/styles/modern.css
Normal file
|
@ -0,0 +1,542 @@
|
|||
/**
|
||||
* Modern Style Pack
|
||||
*
|
||||
* fonts: Montserrat + Source Sans Pro
|
||||
* colors: background white, accent #e8e8e8 (contrasts need a lot of tweaking compared to original color annotations with this one)
|
||||
* header image: https://pixabay.com/en/desktop-work-area-keyboard-mac-1486663/
|
||||
*/
|
||||
|
||||
/**
|
||||
* Colours
|
||||
*/
|
||||
body,
|
||||
.hero-area,
|
||||
.hero-area .button,
|
||||
.hero-area .button:focus,
|
||||
.hero-area .button:hover {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
|
||||
blockquote:before,
|
||||
blockquote:after {
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
|
||||
.comments-area,
|
||||
.respond {
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
|
||||
.post-nav-wrapper,
|
||||
.site-footer,
|
||||
.widget-area,
|
||||
.entry-author,
|
||||
.entry-links,
|
||||
.page-header,
|
||||
.comments-area {
|
||||
border-top-color: #f1f1f1;
|
||||
}
|
||||
|
||||
.contact-info-area,
|
||||
.contact-info-area a,
|
||||
.contact-info-area a:visited {
|
||||
color: #222;
|
||||
}
|
||||
|
||||
@media all and (max-width: 768px) {
|
||||
.main-navigation.toggled ul {
|
||||
border-top-color: #f1f1f1;
|
||||
}
|
||||
}
|
||||
|
||||
.single.no-featured-image .site-header,
|
||||
.page.no-featured-image .site-header,
|
||||
.error-404 .page-header,
|
||||
.no-results .page-header,
|
||||
.search-no-results .page-header {
|
||||
border-bottom-color: #f1f1f1;
|
||||
}
|
||||
|
||||
.contact-info-area {
|
||||
border-color: #f1f1f1;
|
||||
}
|
||||
|
||||
.respond {
|
||||
border-top-color: #cdcdcd;
|
||||
}
|
||||
|
||||
.comments-title {
|
||||
border-bottom-color: #cdcdcd;
|
||||
}
|
||||
|
||||
a,
|
||||
a:visited,
|
||||
.jetpack-social-navigation a:hover,
|
||||
.jetpack-social-navigation a:focus,
|
||||
.posts-navigation a:hover,
|
||||
.comment-navigation a:hover,
|
||||
.post-navigation a:hover,
|
||||
.contact-info-area a:focus,
|
||||
.contact-info-area a:hover,
|
||||
.site-title a:hover,
|
||||
.site-info a:hover,
|
||||
#wp-calendar tfoot a:hover,
|
||||
.entry-title a:hover,
|
||||
.entry-meta a:hover,
|
||||
.entry-footer a:hover {
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
button:hover,
|
||||
.button:hover,
|
||||
input[type="button"]:hover,
|
||||
input[type="reset"]:hover,
|
||||
input[type="submit"]:hover,
|
||||
button:focus,
|
||||
.button:focus,
|
||||
input[type="button"]:focus,
|
||||
input[type="reset"]:focus,
|
||||
input[type="submit"]:focus,
|
||||
button:active,
|
||||
.button:active,
|
||||
input[type="button"]:active,
|
||||
input[type="reset"]:active,
|
||||
input[type="submit"]:active,
|
||||
.bypostauthor .by-post-author,
|
||||
#infinite-handle span:hover {
|
||||
background-color: #aaa;
|
||||
}
|
||||
|
||||
.hero-area {
|
||||
background-color: #888;
|
||||
}
|
||||
|
||||
.entry-title a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.post-navigation a {
|
||||
color: #222;
|
||||
}
|
||||
|
||||
@media all and (max-width: 768px) {
|
||||
.main-navigation.toggled li a:hover,
|
||||
.main-navigation.toggled li a:focus,
|
||||
.main-navigation.toggled li a:active {
|
||||
background-color: #aaa;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (min-width: 768px) {
|
||||
.main-navigation li:hover > a,
|
||||
.main-navigation li.focus > a,
|
||||
.main-navigation li.current-menu-item > a {
|
||||
background-color: #e8e8e8;
|
||||
color: #606060;
|
||||
}
|
||||
}
|
||||
|
||||
.contact-info-area .icon {
|
||||
fill: #aaa;
|
||||
}
|
||||
|
||||
.main-navigation a,
|
||||
.site-title a {
|
||||
color: #222;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fonts
|
||||
*/
|
||||
|
||||
/* Body Text */
|
||||
|
||||
body,
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea,
|
||||
.post-navigation a,
|
||||
.site-description,
|
||||
.header-search .s,
|
||||
.entry-meta,
|
||||
.site-footer,
|
||||
.main-navigation a,
|
||||
.entry-footer,
|
||||
.post-navigation a span,
|
||||
.comment-actions,
|
||||
.comment-navigation,
|
||||
#wp-calendar tfoot a,
|
||||
form,
|
||||
input,
|
||||
button,
|
||||
.button,
|
||||
input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"],
|
||||
#infinite-handle span {
|
||||
font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, arial, sans-serif;
|
||||
}
|
||||
|
||||
/* Headers */
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
.archive .page-title,
|
||||
.comment-header,
|
||||
.site-title,
|
||||
.entry-title {
|
||||
font-family: 'Montserrat', 'Helvetica Neue', Helvetica, arial, sans-serif;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.widget-title {
|
||||
font-family: 'Montserrat', 'Helvetica Neue', Helvetica, arial, sans-serif;
|
||||
}
|
||||
|
||||
.archive .page-title {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.archive .page-title,
|
||||
.search .page-title,
|
||||
.error404 .page-title {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.comments-title,
|
||||
.comment-reply-title {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/**
|
||||
* Layout
|
||||
*/
|
||||
|
||||
@media all and (min-width: 500px) {
|
||||
|
||||
.site-branding {
|
||||
-webkit-align-items: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-flex-wrap: wrap;
|
||||
-ms-flex-wrap: wrap;
|
||||
flex-wrap: wrap;
|
||||
|
||||
/* justify-content: center; */
|
||||
}
|
||||
|
||||
.custom-logo-link {
|
||||
-webkit-align-items: flex-start;
|
||||
-ms-flex-align: start;
|
||||
align-items: flex-start;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
.rtl .custom-logo-link {
|
||||
margin-left: 1em;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (min-width: 768px) {
|
||||
.custom-logo-link {
|
||||
margin-right: 2em;
|
||||
}
|
||||
|
||||
.rtl .custom-logo-link {
|
||||
margin-left: 2em;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.custom-logo-link,
|
||||
.site-branding-text {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.rtl .custom-logo-link,
|
||||
.rtl .site-branding-text {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.custom-logo-link {
|
||||
line-height: 1px;
|
||||
}
|
||||
|
||||
@media all and (min-width: 500px) {
|
||||
.custom-logo-link {
|
||||
margin-bottom: 0
|
||||
}
|
||||
}
|
||||
|
||||
.menu-toggle {
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.menu-toggle .icon {
|
||||
height: 0.9em;
|
||||
width: 0.9em;
|
||||
}
|
||||
|
||||
.hero-area,
|
||||
.widget-title {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.rtl .hero-area,
|
||||
.rtl .widget-title {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.hero-area-wrapper {
|
||||
width: 1040px;
|
||||
}
|
||||
|
||||
.entry-header,
|
||||
.entry-title,
|
||||
.page-header,
|
||||
.comments-title,
|
||||
.comment-reply-title,
|
||||
.respond-wrapper .no-comments {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.rtl .entry-header,
|
||||
.rtl .entry-title,
|
||||
.rtl .page-header,
|
||||
.rtl .comments-title,
|
||||
.rtl .comment-reply-title,
|
||||
.rtl .respond-wrapper .no-comments {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
body.home.page .entry-title,
|
||||
.single .entry-title,
|
||||
body.page:not(.archive) .entry-title,
|
||||
.single .entry-meta {
|
||||
width: 740px;
|
||||
}
|
||||
|
||||
.entry-meta,
|
||||
.page-title {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 92%;
|
||||
text-align: left;
|
||||
width: 1040px;
|
||||
}
|
||||
|
||||
.error-404 .page-title,
|
||||
.error-404 .page-content,
|
||||
.search-no-results .page-title,
|
||||
.search-no-results .page-content {
|
||||
width: 740px;
|
||||
}
|
||||
|
||||
.site-info {
|
||||
width: 1040px;
|
||||
}
|
||||
|
||||
@media all and (min-width: 768px) {
|
||||
.contact-info-wrapper {
|
||||
margin: 0 auto;
|
||||
max-width: 92%;
|
||||
width: 1300px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
|
||||
.contact-info-area span {
|
||||
margin: 0 3px 5px;
|
||||
}
|
||||
|
||||
.menu-toggle {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.rtl .menu-toggle {
|
||||
margin-left: 0;
|
||||
margin-right: 4%;
|
||||
}
|
||||
|
||||
.site-header .jetpack-social-navigation ul {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.rtl .site-header .jetpack-social-navigation ul {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
/* Woocommerce */
|
||||
|
||||
.woocommerce .site-main,
|
||||
ul.products li.product {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.woocommerce .site-main,
|
||||
.site-header-cart {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.woocommerce-pagination .page-numbers {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.woocommerce a.button:hover,
|
||||
.site-header-cart:hover>li>a,
|
||||
.site-header-cart.focus>li>a,
|
||||
.site-header-cart>li:hover>a,
|
||||
.site-header-cart>li.focus>a,
|
||||
.site-header-cart:hover .count,
|
||||
.site-header-cart.focus .count,
|
||||
.site-header-cart .widget_shopping_cart_content .woocommerce-mini-cart__buttons a,
|
||||
.woocommerce-MyAccount-navigation li:hover > a,
|
||||
.woocommerce-MyAccount-navigation li.focus > a,
|
||||
.woocommerce-tabs ul.tabs li:hover a,
|
||||
.woocommerce-tabs ul.tabs li.active a {
|
||||
color: #606060;
|
||||
}
|
||||
|
||||
.woocommerce a.button:hover,
|
||||
.site-header-cart:hover>li>a,
|
||||
.site-header-cart.focus>li>a,
|
||||
.site-header-cart>li:hover>a,
|
||||
.site-header-cart>li.focus>a,
|
||||
.site-header-cart .widget_shopping_cart_content .woocommerce-mini-cart__buttons a,
|
||||
.woocommerce-MyAccount-navigation li:hover > a,
|
||||
.woocommerce-MyAccount-navigation li.focus > a,
|
||||
.woocommerce-tabs ul.tabs li:hover a {
|
||||
background: #e8e8e8;
|
||||
}
|
||||
|
||||
@media all and (max-width: 768px) {
|
||||
|
||||
.site-header-cart .cart-contents {
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.site-header-cart:hover>li>a,
|
||||
.site-header-cart.focus>li>a,
|
||||
.site-header-cart>li:hover>a,
|
||||
.site-header-cart>li.focus>a,
|
||||
.site-header-cart:hover .count,
|
||||
.site-header-cart.focus .count {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.site-header-cart:hover>li>a,
|
||||
.site-header-cart.focus>li>a,
|
||||
.site-header-cart>li:hover>a,
|
||||
.site-header-cart>li.focus>a {
|
||||
background: #aaa;
|
||||
}
|
||||
}
|
||||
|
||||
.star-rating {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.star-rating span:before,
|
||||
p.stars:hover a:before {
|
||||
color: #606060;
|
||||
}
|
||||
|
||||
ul.products li.product,
|
||||
ul.products li.product a {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
ul.products li.product .onsale {
|
||||
color: #222;
|
||||
}
|
||||
|
||||
ul.products li.product .button {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@media all and (max-width: 768px) {
|
||||
ul.products li.product .button {
|
||||
margin: 0 0 0 calc( calc(100% - 300px) / 2 );
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (min-width: 1060px) {
|
||||
ul.products li.product .button {
|
||||
margin: 0 0 0 calc( calc(100% - 300px) / 2 );
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (min-width: 768px) {
|
||||
.upsells.products ul.products li.product .button,
|
||||
.related.products ul.products li.product .button,
|
||||
.cart-collaterals ul.products li.product .button {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.single-product div.product .entry-summary {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.single-product div.product .commentlist {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.single-product div.product .commentlist .comment {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.single-product div.product .commentlist .comment-text .meta {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.single-product .entry-title,
|
||||
.single-product div.product .comment .avatar,
|
||||
.single-product .star-rating {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.woocommerce-tabs ul.tabs {
|
||||
padding: 0 1em;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.woocommerce.widget_shopping_cart .product_list_widget li a {
|
||||
line-height: 1.2em;
|
||||
}
|
||||
|
||||
.site-header-cart .cart-contents,
|
||||
.site-header-cart .widget_shopping_cart_content .mini_cart_item .quantity,
|
||||
.single-product div.product .commentlist .comment-text .meta,
|
||||
.single-product div.product .commentlist .comment-text .description,
|
||||
.single-product div.product .product_meta,
|
||||
.single-product div.product .comment-reply-title,
|
||||
.single-product div.product .entry-summary .price,
|
||||
.woocommerce-breadcrumb,
|
||||
.woocommerce-result-count,
|
||||
.woocommerce-ordering,
|
||||
.woocommerce-ordering select,
|
||||
.woocommerce-MyAccount-content address,
|
||||
.woocommerce-MyAccount-navigation a,
|
||||
.woocommerce-tabs ul.tabs li a,
|
||||
.woocommerce.widget .amount,
|
||||
.woocommerce.widget .reviewer,
|
||||
.woocommerce.widget .total,
|
||||
.woocommerce.widget .quantity,
|
||||
.onsale {
|
||||
font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, arial, sans-serif;
|
||||
}
|
BIN
radcliffe-2/styles/modern.png
Normal file
BIN
radcliffe-2/styles/modern.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.5 KiB |
778
radcliffe-2/styles/vintage.css
Normal file
778
radcliffe-2/styles/vintage.css
Normal file
|
@ -0,0 +1,778 @@
|
|||
/**
|
||||
* Vintage Style Pack
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Colours
|
||||
*/
|
||||
body,
|
||||
.infinite-loader,
|
||||
#infinite-handle span {
|
||||
background-color: #eae8dc;
|
||||
}
|
||||
|
||||
a,
|
||||
a:visited {
|
||||
color: #2b6e9d;
|
||||
}
|
||||
|
||||
button,
|
||||
.button,
|
||||
input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
border-radius: 0;
|
||||
border: 3px double #c7c4b4;
|
||||
}
|
||||
|
||||
button:hover,
|
||||
button:focus,
|
||||
.button:hover,
|
||||
.button:focus,
|
||||
input[type="button"]:hover,
|
||||
input[type="button"]:focus,
|
||||
input[type="reset"]:hover,
|
||||
input[type="reset"]:focus,
|
||||
input[type="submit"]:hover,
|
||||
input[type="submit"]:focus,
|
||||
#infinite-handle span:hover,
|
||||
.bypostauthor .by-post-author {
|
||||
background-color: #2b6e9d;
|
||||
}
|
||||
|
||||
.hero-area {
|
||||
background-color: #888;
|
||||
}
|
||||
|
||||
.dropdown-toggle {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
blockquote:before,
|
||||
blockquote:after {
|
||||
background-color: #c5c3bf;
|
||||
}
|
||||
|
||||
.jetpack-social-navigation a:hover,
|
||||
.jetpack-social-navigation a:focus,
|
||||
.entry-title a:hover,
|
||||
.entry-meta a:hover,
|
||||
.entry-footer a:hover,
|
||||
.post-navigation a:hover,
|
||||
.site-info a:hover,
|
||||
.site-title a:hover {
|
||||
color: #2b6e9d;
|
||||
}
|
||||
|
||||
.contact-info-area {
|
||||
border-color: #c7c4b4;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.site-header .contact-info-area {
|
||||
border-bottom: 2px solid #c7c4b4;
|
||||
}
|
||||
|
||||
.contact-info-area,
|
||||
.contact-info-area a {
|
||||
color: #222;
|
||||
}
|
||||
|
||||
.contact-info-area a:focus,
|
||||
.contact-info-area a:hover {
|
||||
color: #2b6e9d;
|
||||
}
|
||||
|
||||
.contact-info-area .icon {
|
||||
fill: #2b6e9d;
|
||||
}
|
||||
|
||||
.site-header .contact-info-area:before {
|
||||
border-top: 1px solid #c7c4b4;
|
||||
bottom: -5px;
|
||||
content: "";
|
||||
left: 0;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.site-title a {
|
||||
color: #342707;
|
||||
}
|
||||
|
||||
.hero-area .button {
|
||||
border-color: rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
.hero-area .button {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.hero-area .button:focus,
|
||||
.hero-area .button:hover {
|
||||
background-color: rgba(255,255,255,0.8);
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
#infinite-handle span:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.site-title a,
|
||||
.main-navigation a {
|
||||
color: #222;
|
||||
}
|
||||
|
||||
@media all and (min-width: 768px) {
|
||||
.main-navigation li:hover > a,
|
||||
.main-navigation li.focus > a,
|
||||
.main-navigation li.current-menu-item > a {
|
||||
background-color: #2b6e9d;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media all and (max-width: 768px) {
|
||||
.main-navigation.toggled .menu {
|
||||
background-color: #eae8dc;
|
||||
}
|
||||
|
||||
.main-navigation.toggled li a:hover,
|
||||
.main-navigation.toggled li a:focus,
|
||||
.main-navigation.toggled li a:active {
|
||||
background-color: #2b6e9d;
|
||||
}
|
||||
|
||||
.main-navigation.toggled ul {
|
||||
border-top-color: #c7c4b4;
|
||||
}
|
||||
|
||||
.main-navigation > div {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.main-navigation ul > li:first-child > a {
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
|
||||
.main-navigation ul > li:last-child > a {
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.entry-title a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@media all and (min-width: 768px) {
|
||||
.single-post article,
|
||||
.page article {
|
||||
border: 4px double #c7c4b4;
|
||||
background-color: rgba(255,255,255,0.3);
|
||||
}
|
||||
}
|
||||
|
||||
.blog .entry-title a:hover,
|
||||
.archive .entry-title a:hover,
|
||||
.search .entry-title a:hover {
|
||||
color: rgba(255,255,255,0.6);
|
||||
}
|
||||
|
||||
.blog .entry-meta:before,
|
||||
.blog .entry-meta:after,
|
||||
.archive .entry-meta:before,
|
||||
.archive .entry-meta:after,
|
||||
.search .entry-meta:before,
|
||||
.search .entry-meta:after {
|
||||
color: rgba(255,255,255,0.5);
|
||||
}
|
||||
|
||||
.comments-area,
|
||||
.respond {
|
||||
background-color: #dbd8cb;
|
||||
}
|
||||
|
||||
.post-nav-wrapper,
|
||||
.site-footer,
|
||||
.widget-area,
|
||||
.entry-author,
|
||||
.entry-links,
|
||||
.page-header,
|
||||
.comments-area {
|
||||
border-top-color: #c7c4b4;
|
||||
}
|
||||
|
||||
.single.no-featured-image .site-header,
|
||||
.page.no-featured-image .site-header,
|
||||
.error-404 .page-header,
|
||||
.no-results .page-header,
|
||||
.search-no-results .page-header {
|
||||
border-bottom-color: #c7c4b4;
|
||||
}
|
||||
|
||||
.cat-links .icon,
|
||||
.tags-links .icon,
|
||||
.edit-link .icon {
|
||||
fill: #aba899;
|
||||
}
|
||||
|
||||
.respond {
|
||||
border-top-color: #c7c4b4;
|
||||
}
|
||||
|
||||
.comments-title {
|
||||
border-bottom-color: #c7c4b4;
|
||||
}
|
||||
|
||||
.comment-wrapper,
|
||||
.pingback,
|
||||
.trackback {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.search-form .search-field {
|
||||
background-color: #e5e4e1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fonts
|
||||
*/
|
||||
|
||||
/* Body Text */
|
||||
|
||||
body,
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea,
|
||||
.post-navigation a,
|
||||
.site-description,
|
||||
.header-search .s,
|
||||
.entry-meta,
|
||||
.site-footer,
|
||||
.main-navigation a,
|
||||
.entry-footer,
|
||||
.posts-navigation,
|
||||
.post-navigation a span,
|
||||
.comment-actions,
|
||||
.comment-navigation,
|
||||
#wp-calendar tfoot a,
|
||||
form,
|
||||
input,
|
||||
button,
|
||||
.button,
|
||||
input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"],
|
||||
#infinite-handle span {
|
||||
font-family: 'Libre Baskerville', 'Helvetica Neue', Helvetica, arial, sans-serif;
|
||||
}
|
||||
|
||||
.post-navigation a span,
|
||||
.comment-actions a {
|
||||
text-transform: none;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.author-title {
|
||||
font-size: 20px;
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.entry-footer {
|
||||
font-size: 14px;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
.widget {
|
||||
font-size: 16px;
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
|
||||
.entry-meta,
|
||||
.entry-meta a {
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.entry-content {
|
||||
font-size: 18px;
|
||||
font-size: 1.8rem;
|
||||
}
|
||||
|
||||
.comment-content {
|
||||
font-size: 16px;
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
|
||||
/* Headers */
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
.archive .page-title,
|
||||
.comment-header,
|
||||
.site-title,
|
||||
.entry-title {
|
||||
font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.widget-title {
|
||||
font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
|
||||
font-size: 18px;
|
||||
font-size: 1.8rem;
|
||||
font-weight: 700;
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
.comments-title,
|
||||
.comment-reply-title {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/* De-uppercasing */
|
||||
.main-navigation a,
|
||||
.entry-meta,
|
||||
.entry-meta a,
|
||||
.archive .page-title,
|
||||
.search .page-title,
|
||||
.error404 .page-title,
|
||||
.comment-navigation a,
|
||||
.posts-navigation a,
|
||||
.comments-title,
|
||||
.comment-reply-title,
|
||||
.site-info {
|
||||
text-transform: none;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
/* Font Weights */
|
||||
|
||||
.entry-meta a,
|
||||
.site-info {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* More layout-y changes
|
||||
*/
|
||||
|
||||
|
||||
/* Header */
|
||||
|
||||
@media screen and (min-width: 768px) {
|
||||
.site-header {
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Main Navigation */
|
||||
|
||||
.menu-toggle .icon {
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
.main-navigation ul ul > li:first-child > a,
|
||||
.main-navigation ul ul > li:last-child > a {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.main-navigation li:hover > a,
|
||||
.main-navigation li.focus > a,
|
||||
.main-navigation li.current-menu-item > a {
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Hero/CTA Area */
|
||||
|
||||
.hero-area-wrapper {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.hero-area-title {
|
||||
padding-top: 2em;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.hero-area-title:before {
|
||||
border-top: 3px solid rgba(255,255,255,0.8);
|
||||
border-bottom: 1px solid rgba(255,255,255,0.6);
|
||||
content: "";
|
||||
height: 7px;
|
||||
left: 5%;
|
||||
position: absolute;
|
||||
width: 90%;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.hero-area-title:after {
|
||||
|
||||
}
|
||||
|
||||
@media all and (min-width: 768px) {
|
||||
.hero-area-title:before {
|
||||
left: 50%;
|
||||
margin-left: -250px;
|
||||
width: 500px;
|
||||
}
|
||||
}
|
||||
|
||||
.hero-area.has-post-thumbnail {
|
||||
-webkit-filter: sepia(0.3);
|
||||
filter: sepia(0.3);
|
||||
}
|
||||
|
||||
.hero-area-title,
|
||||
.hero-area-content,
|
||||
.hero-area-button {
|
||||
-webkit-filter: none;
|
||||
filter: none;
|
||||
}
|
||||
|
||||
.hero-area-button .button {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.hero-area-button .button:before,
|
||||
.hero-area-button .button:after {
|
||||
border-top: 1px solid rgba(255,255,255,0.6);
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
width: 3em;
|
||||
top: 25px;
|
||||
}
|
||||
|
||||
.hero-area-button .button:before {
|
||||
right: 100%;
|
||||
right: calc(100% + 20px);
|
||||
}
|
||||
|
||||
.hero-area-button .button:after {
|
||||
left: 100%;
|
||||
left: calc(100% + 20px);;
|
||||
}
|
||||
|
||||
/* Blog Posts page */
|
||||
|
||||
.entry-thumbnail {
|
||||
-webkit-filter: sepia(0.3);
|
||||
filter: sepia(0.3);
|
||||
}
|
||||
|
||||
.archive .entry-thumbnail + .entry-header,
|
||||
.blog .entry-thumbnail + .entry-header,
|
||||
.search .entry-thumbnail + .entry-header {
|
||||
border-bottom: 1px solid rgba(255,255,255,0.5);
|
||||
}
|
||||
|
||||
@media all and (min-width: 600px) {
|
||||
.archive .entry-thumbnail + .entry-header,
|
||||
.blog .entry-thumbnail + .entry-header,
|
||||
.search .entry-thumbnail + .entry-header {
|
||||
border: 1px solid #fff;
|
||||
bottom: auto;
|
||||
left: 20%;
|
||||
margin-top: -130px;
|
||||
right: 20%;
|
||||
top: 50%;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (min-width: 768px) {
|
||||
.archive .entry-thumbnail + .entry-header,
|
||||
.blog .entry-thumbnail + .entry-header,
|
||||
.search .entry-thumbnail + .entry-header {
|
||||
left: 25%;
|
||||
right: 25%;
|
||||
}
|
||||
|
||||
.archive .entry-thumbnail + .entry-header:before,
|
||||
.blog .entry-thumbnail + .entry-header:before,
|
||||
.search .entry-thumbnail + .entry-header:before {
|
||||
bottom: 4px;
|
||||
left: 4px;
|
||||
right: 4px;
|
||||
border: 1px solid rgba(255,255,255,0.5);
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.archive .entry-thumbnail + .entry-header .entry-meta,
|
||||
.archive .entry-thumbnail + .entry-header .entry-title,
|
||||
.blog .entry-thumbnail + .entry-header .entry-meta,
|
||||
.blog .entry-thumbnail + .entry-header .entry-title,
|
||||
.search .entry-thumbnail + .entry-header .entry-meta,
|
||||
.search .entry-thumbnail + .entry-header .entry-title {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
/* Single Posts & Pages */
|
||||
|
||||
.single-post article,
|
||||
.page article {
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
|
||||
.page .entry-footer {
|
||||
padding-bottom: 70px;
|
||||
}
|
||||
|
||||
.single-post .entry-header,
|
||||
.page-template-default .entry-header {
|
||||
padding-top: 30px;
|
||||
}
|
||||
|
||||
.page .hentry {
|
||||
padding-bottom: 70px;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.single-post article,
|
||||
.page article {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 900px;
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 600px) {
|
||||
.single-post article,
|
||||
.page article {
|
||||
margin-bottom: 20px;
|
||||
margin-top: 20px;
|
||||
padding-top: 50px;
|
||||
}
|
||||
|
||||
.single-post .entry-header,
|
||||
.page-template-default .entry-header {
|
||||
padding: 20px 0 40px;
|
||||
}
|
||||
|
||||
.single-post .entry-footer,
|
||||
.page .entry-footer {
|
||||
margin-top: 0;
|
||||
padding-top: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.single-post article,
|
||||
.page article {
|
||||
margin-bottom: 70px;
|
||||
margin-top: 70px;
|
||||
padding-bottom: 70px;
|
||||
padding-left: 70px;
|
||||
padding-right: 70px;
|
||||
padding-top: 70px;
|
||||
}
|
||||
|
||||
.entry-title,
|
||||
.page-content,
|
||||
.entry-content,
|
||||
.entry-summary,
|
||||
.entry-footer,
|
||||
.post-navigation,
|
||||
.comments-wrapper,
|
||||
.respond-wrapper {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.single-post .entry-header,
|
||||
.page-template-default .entry-header {
|
||||
padding: 20px 0 40px;
|
||||
}
|
||||
|
||||
.single-post .entry-footer,
|
||||
.page .entry-footer {
|
||||
margin-top: 0;
|
||||
padding-top: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
.entry-meta:before,
|
||||
.entry-meta:after {
|
||||
content: "\007E";
|
||||
margin: 0 0.2em;
|
||||
}
|
||||
|
||||
.byline:before,
|
||||
.comments-link:before {
|
||||
content: "\2022";
|
||||
}
|
||||
|
||||
.entry-author,
|
||||
.entry-links {
|
||||
padding-top: 40px;
|
||||
}
|
||||
|
||||
/* Comments */
|
||||
|
||||
.comment-wrapper,
|
||||
.pingback,
|
||||
.trackback {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.comment-wrapper:after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media all and (min-width: 600px) {
|
||||
.comment-wrapper {
|
||||
padding-top: 20px;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (max-width: 600px) {
|
||||
.bypostauthor .by-post-author {
|
||||
top: 42px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Widgets */
|
||||
|
||||
.widget-area {
|
||||
border-top-style: double;
|
||||
border-top-width: 4px;
|
||||
}
|
||||
|
||||
/* Woocommerce */
|
||||
|
||||
.woocommerce-tabs ul.tabs li.active a {
|
||||
color: #222;
|
||||
}
|
||||
|
||||
.site-header-cart .widget_shopping_cart_content .woocommerce-mini-cart__buttons a,
|
||||
.site-header-cart:hover>li>a,
|
||||
.site-header-cart.focus>li>a,
|
||||
.site-header-cart>li:hover>a,
|
||||
.site-header-cart>li.focus>a {
|
||||
background: #2b6e9d;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
@media all and (max-width: 768px) {
|
||||
|
||||
.site-header-cart .cart-contents {
|
||||
border-radius: 0;
|
||||
border: 3px double #c7c4b4;
|
||||
}
|
||||
|
||||
.main-navigation > div {
|
||||
background: #eae8dc;
|
||||
}
|
||||
}
|
||||
|
||||
.star-rating span:before,
|
||||
p.stars:hover a:before {
|
||||
color: #2b6e9d;
|
||||
}
|
||||
|
||||
.woocommerce-tabs ul.tabs,
|
||||
.woocommerce-tabs ul.tabs li,
|
||||
.single-product div.product .commentlist .comment,
|
||||
.single-product div.product .cart,
|
||||
.single-product div.product .product_meta,
|
||||
.upsells.products, .related.products,
|
||||
table.shop_table_responsive,
|
||||
.woocommerce-cart-form tbody,
|
||||
table.shop_table_responsive thead th,
|
||||
table.shop_table_responsive tbody tr,
|
||||
.woocommerce-checkout .shop_table thead,
|
||||
.woocommerce-checkout .shop_table tbody,
|
||||
.woocommerce-checkout .shop_table tfoot,
|
||||
.woocommerce.widget_products .product_list_widget li,
|
||||
.woocommerce.widget_recent_reviews .product_list_widget li,
|
||||
.widget-area .woocommerce.widget_shopping_cart .product_list_widget li,
|
||||
.woocommerce.widget_top_rated_products .product_list_widget li,
|
||||
.woocommerce.widget_recently_viewed_products .product_list_widget li,
|
||||
.woocommerce.widget_products .product_list_widget li:last-child,
|
||||
.woocommerce.widget_recent_reviews .product_list_widget li:last-child,
|
||||
.widget-area .woocommerce.widget_shopping_cart .product_list_widget li:last-child,
|
||||
.woocommerce.widget_top_rated_products .product_list_widget li:last-child,
|
||||
.woocommerce.widget_recently_viewed_products .product_list_widget li:last-child,
|
||||
.woocommerce.widget_products .product_list_widget li:nth-last-child(2),
|
||||
.woocommerce.widget_recent_reviews .product_list_widget li:nth-last-child(2),
|
||||
.widget-area .woocommerce.widget_shopping_cart .product_list_widget li:nth-last-child(2),
|
||||
.woocommerce.widget_top_rated_products .product_list_widget li:nth-last-child(2),
|
||||
.woocommerce.widget_recently_viewed_products .product_list_widget li:nth-last-child(2) {
|
||||
border-color: #c7c4b4;
|
||||
}
|
||||
|
||||
.woocommerce.widget_shopping_cart .woocommerce-mini-cart__buttons a {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.woocommerce-tabs ul.tabs li.active {
|
||||
border-bottom-color: #eae8dc;
|
||||
}
|
||||
|
||||
.woocommerce.widget_product_search .woocommerce-product-search .search-field {
|
||||
background-color: #e5e4e1;
|
||||
}
|
||||
|
||||
.woocommerce-tabs ul.tabs li.active:hover a,
|
||||
.woocommerce-tabs ul.tabs li.active a {
|
||||
background-color: #eae8dc;
|
||||
}
|
||||
|
||||
.woocommerce-MyAccount-navigation li:hover > a,
|
||||
.woocommerce-MyAccount-navigation li.focus > a,
|
||||
.woocommerce-tabs ul.tabs li:hover a {
|
||||
background-color: #222;
|
||||
}
|
||||
|
||||
.site-header-cart .cart-contents,
|
||||
.site-header-cart .widget_shopping_cart_content .mini_cart_item .quantity,
|
||||
.single-product div.product .commentlist .comment-text .meta,
|
||||
.single-product div.product .commentlist .comment-text .description,
|
||||
.single-product div.product .product_meta,
|
||||
.single-product div.product .comment-reply-title,
|
||||
.single-product div.product .entry-summary .price,
|
||||
.woocommerce-breadcrumb,
|
||||
.woocommerce-result-count,
|
||||
.woocommerce-ordering,
|
||||
.woocommerce-ordering select,
|
||||
.woocommerce-MyAccount-content address,
|
||||
.woocommerce-MyAccount-navigation a,
|
||||
.woocommerce-tabs ul.tabs li a,
|
||||
.woocommerce.widget .amount,
|
||||
.woocommerce.widget .reviewer,
|
||||
.woocommerce.widget .total,
|
||||
.woocommerce.widget .quantity,
|
||||
.woocommerce-tabs ul.tabs li a,
|
||||
.onsale {
|
||||
font-family: "Libre Baskerville", "Helvetica Neue", Helvetica, arial, sans-serif;
|
||||
}
|
||||
|
||||
.single-product div.product .woocommerce-Reviews-title,
|
||||
ul.products li.product .woocommerce-loop-product__title,
|
||||
.woocommerce-tabs .panel h2:first-of-type,
|
||||
.woocommerce-tabs ul.tabs li a,
|
||||
.upsells.products>h2:first-of-type,
|
||||
.related.products>h2:first-of-type,
|
||||
.onsale {
|
||||
text-transform: none;
|
||||
}
|
BIN
radcliffe-2/styles/vintage.png
Normal file
BIN
radcliffe-2/styles/vintage.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.1 KiB |
37
radcliffe-2/template-parts/content-author.php
Normal file
37
radcliffe-2/template-parts/content-author.php
Normal file
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying Author Bio
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
if ( ! is_single() ) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="entry-author">
|
||||
<div class="author-avatar">
|
||||
<?php
|
||||
/**
|
||||
* Filter the author bio avatar size.
|
||||
*
|
||||
* @param int $size The avatar height and width size in pixels.
|
||||
*/
|
||||
$author_bio_avatar_size = apply_filters( 'radcliffe_2_author_bio_avatar_size', 60 );
|
||||
|
||||
echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
|
||||
?>
|
||||
</div><!-- .author-avatar -->
|
||||
|
||||
<div class="author-heading">
|
||||
<h2 class="author-title"><?php printf( esc_html__( 'Published by %s', 'radcliffe-2' ), '<span class="author-name">' . get_the_author() . '</span>' ); ?></h2>
|
||||
</div><!-- .author-heading -->
|
||||
|
||||
<p class="author-bio">
|
||||
<?php the_author_meta( 'description' ); ?>
|
||||
<a class="author-link" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
|
||||
<?php printf( esc_html__( 'View all posts by %s', 'radcliffe-2' ), get_the_author() ); ?>
|
||||
</a>
|
||||
</p><!-- .author-bio -->
|
||||
</div><!-- .entry-auhtor -->
|
50
radcliffe-2/template-parts/content-none.php
Normal file
50
radcliffe-2/template-parts/content-none.php
Normal file
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
/**
|
||||
* Template part for displaying a message that posts cannot be found
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<section class="no-results not-found">
|
||||
<header class="page-header">
|
||||
<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'radcliffe-2' ); ?></h1>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<div class="page-content">
|
||||
<?php
|
||||
if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
|
||||
|
||||
<p><?php
|
||||
printf(
|
||||
wp_kses(
|
||||
/* translators: 1: link to WP admin new post page. */
|
||||
__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'radcliffe-2' ),
|
||||
array(
|
||||
'a' => array(
|
||||
'href' => array(),
|
||||
),
|
||||
)
|
||||
),
|
||||
esc_url( admin_url( 'post-new.php' ) )
|
||||
);
|
||||
?></p>
|
||||
|
||||
<?php elseif ( is_search() ) : ?>
|
||||
|
||||
<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'radcliffe-2' ); ?></p>
|
||||
<?php
|
||||
get_search_form();
|
||||
|
||||
else : ?>
|
||||
|
||||
<p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'radcliffe-2' ); ?></p>
|
||||
<?php
|
||||
get_search_form();
|
||||
|
||||
endif; ?>
|
||||
</div><!-- .page-content -->
|
||||
</section><!-- .no-results -->
|
56
radcliffe-2/template-parts/content-page.php
Normal file
56
radcliffe-2/template-parts/content-page.php
Normal file
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
/**
|
||||
* Template part for displaying page content in page.php
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<?php if ( radcliffe_2_has_post_thumbnail() ) : ?>
|
||||
<div class="entry-thumbnail" <?php radcliffe_2_background_image(); ?>></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<header class="entry-header">
|
||||
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
the_content();
|
||||
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'radcliffe-2' ),
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php if ( get_edit_post_link() ) : ?>
|
||||
<footer class="entry-footer">
|
||||
<?php
|
||||
edit_post_link(
|
||||
sprintf(
|
||||
wp_kses(
|
||||
/* translators: %s: Name of current post. Only visible to screen readers */
|
||||
__( 'Edit <span class="screen-reader-text">%s</span>', 'radcliffe-2' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
),
|
||||
)
|
||||
),
|
||||
get_the_title()
|
||||
),
|
||||
'<span class="edit-link">' . radcliffe_2_get_svg( array( 'icon' => 'edit', 'title' => esc_html__( 'Edit', 'radcliffe-2' ) ) ),
|
||||
'</span>'
|
||||
);
|
||||
?>
|
||||
</footer><!-- .entry-footer -->
|
||||
<?php endif; ?>
|
||||
</article><!-- #post-<?php the_ID(); ?> -->
|
26
radcliffe-2/template-parts/content-search.php
Normal file
26
radcliffe-2/template-parts/content-search.php
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
/**
|
||||
* Template part for displaying results in search pages
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<?php if ( radcliffe_2_has_post_thumbnail() ) : ?>
|
||||
<div class="entry-thumbnail" <?php radcliffe_2_background_image(); ?>></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<header class="entry-header">
|
||||
<?php if ( 'post' === get_post_type() ) : ?>
|
||||
<div class="entry-meta">
|
||||
<?php radcliffe_2_posted_on(); ?>
|
||||
</div><!-- .entry-meta -->
|
||||
<?php endif; ?>
|
||||
|
||||
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
|
||||
</header><!-- .entry-header -->
|
||||
</article><!-- #post-<?php the_ID(); ?> -->
|
61
radcliffe-2/template-parts/content-single.php
Normal file
61
radcliffe-2/template-parts/content-single.php
Normal file
|
@ -0,0 +1,61 @@
|
|||
<?php
|
||||
/**
|
||||
* Template part for displaying posts
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<?php if ( radcliffe_2_has_post_thumbnail() ) : ?>
|
||||
<div class="entry-thumbnail" <?php radcliffe_2_background_image(); ?>></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<header class="entry-header">
|
||||
<?php
|
||||
if ( 'post' === get_post_type() ) : ?>
|
||||
<div class="entry-meta">
|
||||
<?php radcliffe_2_posted_on(); ?>
|
||||
</div><!-- .entry-meta -->
|
||||
<?php
|
||||
endif;
|
||||
|
||||
the_title( '<h1 class="entry-title">', '</h1>' );
|
||||
?>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
the_content( sprintf(
|
||||
wp_kses(
|
||||
/* translators: %s: Name of current post. Only visible to screen readers */
|
||||
__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'radcliffe-2' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
),
|
||||
)
|
||||
),
|
||||
get_the_title()
|
||||
) );
|
||||
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'radcliffe-2' ),
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-footer">
|
||||
<?php radcliffe_2_author_bio(); ?>
|
||||
|
||||
<div class="entry-links">
|
||||
<?php radcliffe_2_entry_footer(); ?>
|
||||
</div>
|
||||
</footer><!-- .entry-footer -->
|
||||
</article><!-- #post-<?php the_ID(); ?> -->
|
34
radcliffe-2/template-parts/content.php
Normal file
34
radcliffe-2/template-parts/content.php
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
/**
|
||||
* Template part for displaying posts
|
||||
*
|
||||
* @link https://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* @package Radcliffe 2
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
<?php if ( radcliffe_2_has_post_thumbnail() ) : ?>
|
||||
<div class="entry-thumbnail" <?php radcliffe_2_background_image(); ?>></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<header class="entry-header">
|
||||
<?php
|
||||
if ( 'post' === get_post_type() ) : ?>
|
||||
<div class="entry-meta">
|
||||
<?php radcliffe_2_posted_on(); ?>
|
||||
</div><!-- .entry-meta -->
|
||||
<?php
|
||||
endif; ?>
|
||||
|
||||
<?php
|
||||
if ( is_singular() ) :
|
||||
the_title( '<h1 class="entry-title">', '</h1>' );
|
||||
else :
|
||||
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
|
||||
endif; ?>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
</article><!-- #post-<?php the_ID(); ?> -->
|
1740
radcliffe-2/woocommerce.css
Normal file
1740
radcliffe-2/woocommerce.css
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue