template-updates
This commit is contained in:
parent
bbdfce831d
commit
a8cdc18f0c
@ -20,7 +20,8 @@ if ( ! function_exists( 'gruener_salon_setup' ) ) :
|
|||||||
* runs before the init hook. The init hook is too late for some features, such
|
* runs before the init hook. The init hook is too late for some features, such
|
||||||
* as indicating support for post thumbnails.
|
* as indicating support for post thumbnails.
|
||||||
*/
|
*/
|
||||||
function gruener_salon_setup() {
|
function gruener_salon_setup()
|
||||||
|
{
|
||||||
/*
|
/*
|
||||||
* Make theme available for translation.
|
* Make theme available for translation.
|
||||||
* Translations can be filed in the /languages/ directory.
|
* Translations can be filed in the /languages/ directory.
|
||||||
@ -111,7 +112,8 @@ add_action( 'after_setup_theme', 'gruener_salon_setup' );
|
|||||||
*
|
*
|
||||||
* @global int $content_width
|
* @global int $content_width
|
||||||
*/
|
*/
|
||||||
function gruener_salon_content_width() {
|
function gruener_salon_content_width()
|
||||||
|
{
|
||||||
$GLOBALS['content_width'] = apply_filters('gruener_salon_content_width', 640);
|
$GLOBALS['content_width'] = apply_filters('gruener_salon_content_width', 640);
|
||||||
}
|
}
|
||||||
add_action('after_setup_theme', 'gruener_salon_content_width', 0);
|
add_action('after_setup_theme', 'gruener_salon_content_width', 0);
|
||||||
@ -121,7 +123,8 @@ add_action( 'after_setup_theme', 'gruener_salon_content_width', 0 );
|
|||||||
*
|
*
|
||||||
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
|
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
|
||||||
*/
|
*/
|
||||||
function gruener_salon_widgets_init() {
|
function gruener_salon_widgets_init()
|
||||||
|
{
|
||||||
register_sidebar(
|
register_sidebar(
|
||||||
array(
|
array(
|
||||||
'name' => esc_html__('Sidebar', 'gruener-salon'),
|
'name' => esc_html__('Sidebar', 'gruener-salon'),
|
||||||
@ -139,7 +142,8 @@ add_action( 'widgets_init', 'gruener_salon_widgets_init' );
|
|||||||
/**
|
/**
|
||||||
* Enqueue scripts and styles.
|
* Enqueue scripts and styles.
|
||||||
*/
|
*/
|
||||||
function gruener_salon_scripts() {
|
function gruener_salon_scripts()
|
||||||
|
{
|
||||||
wp_enqueue_style('gruener-salon-style', get_stylesheet_uri(), array(), _S_VERSION);
|
wp_enqueue_style('gruener-salon-style', get_stylesheet_uri(), array(), _S_VERSION);
|
||||||
wp_style_add_data('gruener-salon-style', 'rtl', 'replace');
|
wp_style_add_data('gruener-salon-style', 'rtl', 'replace');
|
||||||
|
|
||||||
|
|||||||
@ -26,36 +26,10 @@ figure {
|
|||||||
width : 100%;
|
width : 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gallery-columns-2 {
|
@for $i from 2 through 9 {
|
||||||
grid-template-columns: repeat(2, 1fr);
|
.gallery-columns-#{$i} {
|
||||||
|
grid-template-columns : repeat(#{$i}, 1fr);
|
||||||
}
|
}
|
||||||
|
|
||||||
.gallery-columns-3 {
|
|
||||||
grid-template-columns: repeat(3, 1fr);
|
|
||||||
}
|
|
||||||
|
|
||||||
.gallery-columns-4 {
|
|
||||||
grid-template-columns: repeat(4, 1fr);
|
|
||||||
}
|
|
||||||
|
|
||||||
.gallery-columns-5 {
|
|
||||||
grid-template-columns: repeat(5, 1fr);
|
|
||||||
}
|
|
||||||
|
|
||||||
.gallery-columns-6 {
|
|
||||||
grid-template-columns: repeat(6, 1fr);
|
|
||||||
}
|
|
||||||
|
|
||||||
.gallery-columns-7 {
|
|
||||||
grid-template-columns: repeat(7, 1fr);
|
|
||||||
}
|
|
||||||
|
|
||||||
.gallery-columns-8 {
|
|
||||||
grid-template-columns: repeat(8, 1fr);
|
|
||||||
}
|
|
||||||
|
|
||||||
.gallery-columns-9 {
|
|
||||||
grid-template-columns: repeat(9, 1fr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.gallery-caption {
|
.gallery-caption {
|
||||||
|
|||||||
@ -1,28 +1,3 @@
|
|||||||
/*!
|
|
||||||
Theme Name: gruener-salon
|
|
||||||
Theme URI: http://underscores.me/
|
|
||||||
Author: Underscores.me
|
|
||||||
Author URI: http://underscores.me/
|
|
||||||
Description: Description
|
|
||||||
Version: 1.0.0
|
|
||||||
Tested up to: 5.4
|
|
||||||
Requires PHP: 5.6
|
|
||||||
License: GNU General Public License v2 or later
|
|
||||||
License URI: LICENSE
|
|
||||||
Text Domain: gruener-salon
|
|
||||||
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
|
|
||||||
|
|
||||||
This theme, like WordPress, is licensed under the GPL.
|
|
||||||
Use it to make something cool, have fun, and share what you've learned.
|
|
||||||
|
|
||||||
gruener-salon is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
|
|
||||||
Underscores is distributed under the terms of the GNU GPL v2 or later.
|
|
||||||
|
|
||||||
Normalizing styles have been helped along thanks to the fine work of
|
|
||||||
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/*--------------------------------------------------------------
|
/*--------------------------------------------------------------
|
||||||
>>> TABLE OF CONTENTS:
|
>>> TABLE OF CONTENTS:
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
|
|||||||
@ -1,4 +1,26 @@
|
|||||||
// own styles
|
/*!
|
||||||
|
Theme Name: gruener-salon
|
||||||
|
Theme URI: http://underscores.me/
|
||||||
|
Author: chrosey
|
||||||
|
Author URI: https://chrosey.de/
|
||||||
|
Description: Description
|
||||||
|
Version: 1.0.0
|
||||||
|
Tested up to: 5.4
|
||||||
|
Requires PHP: 5.6
|
||||||
|
License: GNU General Public License v2 or later
|
||||||
|
License URI: LICENSE
|
||||||
|
Text Domain: gruener-salon
|
||||||
|
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
|
||||||
|
|
||||||
|
This theme, like WordPress, is licensed under the GPL.
|
||||||
|
Use it to make something cool, have fun, and share what you've learned.
|
||||||
|
|
||||||
|
gruener-salon is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
|
||||||
|
Underscores is distributed under the terms of the GNU GPL v2 or later.
|
||||||
|
|
||||||
|
Normalizing styles have been helped along thanks to the fine work of
|
||||||
|
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
|
||||||
|
*/
|
||||||
@import 'includes/base';
|
@import 'includes/base';
|
||||||
//@import 'includes/underscores';
|
//@import 'includes/underscores';
|
||||||
// Required
|
// Required
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user