Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
6eba0c9984
33
CHANGELOG.md
33
CHANGELOG.md
|
@ -1,5 +1,36 @@
|
|||
|
||||
- ** Pre Release 0.5.0 **
|
||||
- ** Release 0.5.2 Jan. 7th 2017 **
|
||||
- Updating to Bootstrap 4 Alpha 6
|
||||
- Fixing german translation issues
|
||||
- Cleanup navbar code
|
||||
- Cleanup underStrap Sass file
|
||||
- Fixing browsersync issues
|
||||
- Removing one page vertical template
|
||||
- Update dependencies
|
||||
|
||||
|
||||
- ** Release 0.5.1 Dec. 29th 2016 **
|
||||
- Adding spanish translation
|
||||
- Translation updates for: Greek, German, French
|
||||
- Updating language bas file
|
||||
- Streamlining Gulp tasks
|
||||
- Adding WooCommerce templates
|
||||
- Adding Contact Form 7 support
|
||||
- Fixing W3C validator issues
|
||||
- Adding BS4 pagination
|
||||
- Adding BS4 article nav
|
||||
- Include /JS folder to watcher task
|
||||
- Some SEO improvements (especially h1 for article titles on single item pages, etc.)
|
||||
- Adding italian language
|
||||
- General bug fixing
|
||||
- Fixing live preview for customizer
|
||||
- Font Awesome update
|
||||
- Udating all npm dependencies
|
||||
- ARIA roles update
|
||||
- Updating hamburger icon behavior
|
||||
|
||||
|
||||
- ** Release 0.5.0 Nov. 24th 2016 **
|
||||
- Update Owl Carousel to 2.2.0
|
||||
- Update Font Awesome to 4.7.0
|
||||
- Greek language file added - Thx @stef-k
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "understrap",
|
||||
"version": "0.5.1",
|
||||
"version": "0.5.2",
|
||||
"homepage": "http://understrap.com",
|
||||
"authors": [
|
||||
"Holger Koenemann <office@holgerkoenemann.de>"
|
||||
|
@ -26,6 +26,6 @@
|
|||
"dependencies": {
|
||||
},
|
||||
"_source": "https://github.com/holger1411/understrap.git",
|
||||
"_target": "~0.5.1",
|
||||
"_target": "~0.5.2",
|
||||
"_originalSource": "understrap"
|
||||
}
|
||||
|
|
4634
css/theme.css
4634
css/theme.css
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -66,8 +66,3 @@ require get_template_directory() . '/inc/bootstrap-wp-navwalker.php';
|
|||
* Load WooCommerce functions.
|
||||
*/
|
||||
require get_template_directory() . '/inc/woocommerce.php';
|
||||
|
||||
/**
|
||||
* Load a utilities library.
|
||||
*/
|
||||
require get_template_directory() . '/inc/utilities.php';
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
/**
|
||||
* Hero setup.
|
||||
*
|
||||
* @package understrap
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
<?php if ( is_active_sidebar('hero') or is_active_sidebar('statichero')) : ?>
|
||||
|
||||
<div class="wrapper" id="wrapper-hero">
|
||||
|
||||
<?php get_sidebar( 'hero' ); ?>
|
||||
|
||||
<?php get_sidebar( 'statichero' ); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
|
@ -45,9 +45,7 @@ if ( $is_woocommerce ) {
|
|||
$html .= 'col-md-12 content-area" id="primary">';
|
||||
}
|
||||
echo $html;
|
||||
} else {
|
||||
echo '<div class="col-md-12 content-area" id="primary">';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
57
gulpfile.js
57
gulpfile.js
|
@ -5,6 +5,7 @@ var basePaths = {
|
|||
dev: './src/'
|
||||
};
|
||||
|
||||
|
||||
// browser-sync watched files
|
||||
// automatically reloads the page when files changed
|
||||
var browserSyncWatchFiles = [
|
||||
|
@ -12,6 +13,8 @@ var browserSyncWatchFiles = [
|
|||
'./js/*.min.js',
|
||||
'./**/*.php'
|
||||
];
|
||||
|
||||
|
||||
// browser-sync options
|
||||
// see: https://www.browsersync.io/docs/options/
|
||||
var browserSyncOptions = {
|
||||
|
@ -19,6 +22,7 @@ var browserSyncOptions = {
|
|||
notify: false
|
||||
};
|
||||
|
||||
|
||||
// Defining requirements
|
||||
var gulp = require('gulp');
|
||||
var plumber = require('gulp-plumber');
|
||||
|
@ -35,7 +39,6 @@ var clone = require('gulp-clone');
|
|||
var merge = require('gulp-merge');
|
||||
var sourcemaps = require('gulp-sourcemaps');
|
||||
var browserSync = require('browser-sync').create();
|
||||
var reload = browserSync.reload;
|
||||
|
||||
|
||||
// Run:
|
||||
|
@ -62,7 +65,7 @@ gulp.task('scss-for-prod', function() {
|
|||
|
||||
// Run:
|
||||
// gulp sourcemaps + sass + reload(browserSync)
|
||||
// Prepare the child-theme.css for the developpment environment
|
||||
// Prepare the child-theme.css for the development environment
|
||||
gulp.task('scss-for-dev', function() {
|
||||
gulp.src('./sass/*.scss')
|
||||
.pipe(plumber())
|
||||
|
@ -70,7 +73,6 @@ gulp.task('scss-for-dev', function() {
|
|||
.pipe(sass())
|
||||
.pipe(sourcemaps.write(undefined, { sourceRoot: null }))
|
||||
.pipe(gulp.dest('./css'))
|
||||
.pipe(reload({stream: true}));
|
||||
});
|
||||
|
||||
gulp.task('watch-scss', ['browser-sync'], function () {
|
||||
|
@ -88,6 +90,7 @@ gulp.task('sass', function () {
|
|||
.pipe(gulp.dest('./css'));
|
||||
});
|
||||
|
||||
|
||||
// Run:
|
||||
// gulp watch
|
||||
// Starts watcher. Watcher runs gulp sass task on changes
|
||||
|
@ -97,8 +100,9 @@ gulp.task('watch', function () {
|
|||
gulp.watch([basePaths.dev + 'js/**/*.js'], ['scripts'])
|
||||
});
|
||||
|
||||
|
||||
// Run:
|
||||
// gulp nanocss
|
||||
// gulp cssnano
|
||||
// Minifies CSS files
|
||||
gulp.task('cssnano', ['cleancss'], function(){
|
||||
return gulp.src('./css/theme.css')
|
||||
|
@ -108,7 +112,6 @@ gulp.task('cssnano', ['cleancss'], function(){
|
|||
.pipe(cssnano({discardComments: {removeAll: true}}))
|
||||
.pipe(sourcemaps.write('./'))
|
||||
.pipe(gulp.dest('./css/'))
|
||||
.pipe(reload({stream: true}));
|
||||
});
|
||||
|
||||
gulp.task('cleancss', function() {
|
||||
|
@ -117,6 +120,7 @@ gulp.task('cleancss', function() {
|
|||
.pipe(rimraf());
|
||||
});
|
||||
|
||||
|
||||
// Run:
|
||||
// gulp browser-sync
|
||||
// Starts browser-sync task for starting the server.
|
||||
|
@ -124,45 +128,39 @@ gulp.task('browser-sync', function() {
|
|||
browserSync.init(browserSyncWatchFiles, browserSyncOptions);
|
||||
});
|
||||
|
||||
|
||||
// Run:
|
||||
// gulp watch-bs
|
||||
// Starts watcher with browser-sync. Browser-sync reloads page automatically on your browser
|
||||
gulp.task('watch-bs', ['browser-sync', 'watch', 'cssnano', 'scripts'], function () { });
|
||||
|
||||
|
||||
// Run:
|
||||
// gulp scripts.
|
||||
// Uglifies and concat all JS files into one
|
||||
gulp.task('scripts', function() {
|
||||
gulp.src([
|
||||
basePaths.dev + 'js/owl.carousel.min.js', // Must be loaded before BS4
|
||||
basePaths.dev + 'js/tether.js', // Must be loaded before BS4
|
||||
var scripts = [
|
||||
basePaths.dev + 'js/owl.carousel.min.js', // Must be loaded before BS4
|
||||
basePaths.dev + 'js/tether.js', // Must be loaded before BS4
|
||||
|
||||
// Start - All BS4 stuff
|
||||
basePaths.dev + 'js/bootstrap4/bootstrap.js',
|
||||
// Start - All BS4 stuff
|
||||
basePaths.dev + 'js/bootstrap4/bootstrap.js',
|
||||
|
||||
// End - All BS4 stuff
|
||||
// End - All BS4 stuff
|
||||
|
||||
basePaths.dev + 'js/skip-link-focus-fix.js'
|
||||
])
|
||||
basePaths.dev + 'js/skip-link-focus-fix.js'
|
||||
];
|
||||
gulp.src(scripts)
|
||||
.pipe(concat('theme.min.js'))
|
||||
.pipe(uglify())
|
||||
.pipe(gulp.dest('./js/'));
|
||||
|
||||
gulp.src([
|
||||
basePaths.dev + 'js/owl.carousel.min.js', // Must be loaded before BS4
|
||||
basePaths.dev + 'js/tether.js', // Must be loaded before BS4
|
||||
|
||||
// Start - All BS4 stuff
|
||||
basePaths.dev + 'js/bootstrap4/bootstrap.js',
|
||||
|
||||
// End - All BS4 stuff
|
||||
|
||||
basePaths.dev + 'js/skip-link-focus-fix.js'
|
||||
])
|
||||
gulp.src(scripts)
|
||||
.pipe(concat('theme.js'))
|
||||
.pipe(gulp.dest('./js/'));
|
||||
});
|
||||
|
||||
|
||||
// Run:
|
||||
// gulp copy-assets.
|
||||
// Copy all needed dependency assets files from bower_component assets to themes /js, /scss and /fonts folder. Run this task after bower install or bower update
|
||||
|
@ -221,6 +219,7 @@ gulp.task('copy-assets', function() {
|
|||
.pipe(gulp.dest(basePaths.dev + '/css'));
|
||||
});
|
||||
|
||||
|
||||
// Run
|
||||
// gulp dist
|
||||
// Copies the files to the /dist folder for distributon
|
||||
|
@ -228,13 +227,3 @@ gulp.task('dist', function() {
|
|||
gulp.src(['**/*','!bower_components','!bower_components/**','!node_modules','!node_modules/**','!src','!src/**','!dist','!dist/**', '*'])
|
||||
.pipe(gulp.dest('dist/'))
|
||||
});
|
||||
|
||||
gulp.task('build', function(callback) {
|
||||
runSequence('cleancss',
|
||||
'copy-assets',
|
||||
'sass',
|
||||
'scripts',
|
||||
'cssnano',
|
||||
'dist',
|
||||
callback);
|
||||
});
|
||||
|
|
30
header.php
30
header.php
|
@ -17,8 +17,7 @@ $container = get_theme_mod( 'understrap_container_type' );
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-title"
|
||||
content="<?php bloginfo( 'name' ); ?> - <?php bloginfo( 'description' ); ?>">
|
||||
<meta name="apple-mobile-web-app-title" content="<?php bloginfo( 'name' ); ?> - <?php bloginfo( 'description' ); ?>">
|
||||
<link rel="profile" href="http://gmpg.org/xfn/11">
|
||||
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
|
||||
<?php wp_head(); ?>
|
||||
|
@ -34,17 +33,13 @@ $container = get_theme_mod( 'understrap_container_type' );
|
|||
<a class="skip-link screen-reader-text sr-only" href="#content"><?php _e( 'Skip to content',
|
||||
'understrap' ); ?></a>
|
||||
|
||||
<nav class="navbar navbar-dark bg-inverse site-navigation" itemscope="itemscope"
|
||||
itemtype="http://schema.org/SiteNavigationElement">
|
||||
<nav class="navbar navbar-toggleable-md navbar-inverse bg-inverse">
|
||||
|
||||
<div class="<?php echo esc_html( $container ); ?>" >
|
||||
<div class="<?php echo esc_html( $container ); ?>">
|
||||
|
||||
<div class="navbar-header">
|
||||
|
||||
<!-- .navbar-toggle is used as the toggle for collapsed navbar content -->
|
||||
<button class="navbar-toggler hidden-sm-up" type="button" data-toggle="collapse"
|
||||
data-target=".exCollapsingNavbar" aria-controls="exCollapsingNavbar" aria-expanded="false"
|
||||
aria-label="Toggle navigation"></button>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<!-- Your site title as branding in the menu -->
|
||||
<?php if ( ! has_custom_logo() ) { ?>
|
||||
|
@ -52,26 +47,25 @@ $container = get_theme_mod( 'understrap_container_type' );
|
|||
title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
|
||||
<?php bloginfo( 'name' ); ?>
|
||||
</a>
|
||||
|
||||
<?php } else {
|
||||
the_custom_logo();
|
||||
} ?><!-- end custom logo -->
|
||||
|
||||
</div>
|
||||
} ?><!-- end custom logo -->
|
||||
|
||||
<!-- The WordPress Menu goes here -->
|
||||
<?php wp_nav_menu(
|
||||
array(
|
||||
'theme_location' => 'primary',
|
||||
'container_class' => 'collapse navbar-toggleable-xs exCollapsingNavbar',
|
||||
'container_id' => 'exCollapsingNavbar',
|
||||
'menu_class' => 'nav navbar-nav',
|
||||
'container_class' => 'collapse navbar-collapse',
|
||||
'container_id' => 'navbarNavDropdown',
|
||||
'menu_class' => 'navbar-nav',
|
||||
'fallback_cb' => '',
|
||||
'menu_id' => 'main-menu',
|
||||
'walker' => new WP_Bootstrap_Navwalker(),
|
||||
)
|
||||
); ?>
|
||||
|
||||
</div> <!-- .container -->
|
||||
</div><!-- .container -->
|
||||
|
||||
</nav><!-- .site-navigation -->
|
||||
|
||||
|
|
90
home.php
90
home.php
|
@ -1,90 +0,0 @@
|
|||
<?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 will use a
|
||||
* different template.
|
||||
*
|
||||
* @package understrap
|
||||
*/
|
||||
|
||||
get_header();
|
||||
|
||||
$container = get_theme_mod( 'understrap_container_type' );
|
||||
$sidebar_pos = get_theme_mod( 'understrap_sidebar_position' );
|
||||
$posts_style = get_theme_mod( 'understrap_posts_index_style' );
|
||||
|
||||
if ( is_front_page() && is_home() ) {
|
||||
get_sidebar( 'hero' );
|
||||
|
||||
get_sidebar( 'statichero' );
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="wrapper" id="wrapper-home">
|
||||
|
||||
<div class="<?php echo esc_html( $container ); ?>" id="content" tabindex="-1">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<!-- Do the left sidebar check -->
|
||||
<?php get_template_part( 'global-templates/left-sidebar-check', 'none' ); ?>
|
||||
|
||||
<?php if ( 'masonry' === $posts_style ) : ?>
|
||||
|
||||
<div class="card-columns"><?php endif; ?>
|
||||
|
||||
<main class="site-main" id="main">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
<?php /* Start the Loop */ ?>
|
||||
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
|
||||
<?php
|
||||
if ( 'masonry' === $posts_style ) :
|
||||
get_template_part( 'loop-templates/content', 'card' );
|
||||
elseif ( 'grid' === $posts_style ) :
|
||||
|
||||
get_template_part( 'loop-templates/content', 'grid' );
|
||||
else :
|
||||
/*
|
||||
* 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( 'loop-templates/content', get_post_format() );
|
||||
endif;
|
||||
?>
|
||||
|
||||
<?php endwhile; ?>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<?php get_template_part( 'loop-templates/content', 'none' ); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php if ( 'masonry' === $posts_style ) : ?></div><?php endif; ?>
|
||||
</main><!-- #main -->
|
||||
|
||||
<?php understrap_pagination(); ?>
|
||||
|
||||
</div><!-- #primary -->
|
||||
|
||||
<!-- Do the right sidebar check -->
|
||||
<?php if ( 'right' === $sidebar_pos || 'both' === $sidebar_pos ) : ?>
|
||||
|
||||
<?php get_sidebar( 'right' ); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div><!-- .row -->
|
||||
|
||||
</div><!-- Container end -->
|
||||
|
||||
</div><!-- Wrapper end -->
|
||||
|
||||
<?php get_footer(); ?>
|
Binary file not shown.
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
function understrap_custom_header_setup() {
|
||||
|
||||
/**
|
||||
* Filter UnderStrap custom-header support arguments.
|
||||
*
|
||||
* @since UnderStrap 0.5.2
|
||||
*
|
||||
* @param array $args {
|
||||
* An array of custom-header support arguments.
|
||||
*
|
||||
* @type string $default-image Default image of the header.
|
||||
* @type string $default_text_color Default color of the header text.
|
||||
* @type int $width Width in pixels of the custom header image. Default 954.
|
||||
* @type int $height Height in pixels of the custom header image. Default 1300.
|
||||
* @type string $wp-head-callback Callback function used to styles the header image and text
|
||||
* displayed on the blog.
|
||||
* @type string $flex-height Flex support for height of header.
|
||||
* }
|
||||
*/
|
||||
add_theme_support( 'custom-header', apply_filters( 'understrap_custom_header_args', array(
|
||||
'default-image' => get_parent_theme_file_uri( '/img/header.jpg' ),
|
||||
'width' => 2000,
|
||||
'height' => 1200,
|
||||
'flex-height' => true
|
||||
) ) );
|
||||
|
||||
register_default_headers( array(
|
||||
'default-image' => array(
|
||||
'url' => '%s/img/header.jpg',
|
||||
'thumbnail_url' => '%s/img/header.jpg',
|
||||
'description' => __( 'Default Header Image', 'understrap' ),
|
||||
),
|
||||
) );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'understrap_custom_header_setup' );
|
|
@ -32,50 +32,6 @@ if ( ! function_exists( 'understrap_theme_customize_register' ) ) {
|
|||
*/
|
||||
function understrap_theme_customize_register( $wp_customize ) {
|
||||
|
||||
$wp_customize->add_section( 'understrap_theme_slider_options', array(
|
||||
'title' => __( 'Slider Settings', 'understrap' ),
|
||||
) );
|
||||
|
||||
$wp_customize->add_setting( 'understrap_theme_slider_count_setting', array(
|
||||
'default' => '1',
|
||||
'sanitize_callback' => 'absint',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control( 'understrap_theme_slider_count', array(
|
||||
'label' => __( 'Number of slides displaying at once', 'understrap' ),
|
||||
'section' => 'understrap_theme_slider_options',
|
||||
'type' => 'text',
|
||||
'settings' => 'understrap_theme_slider_count_setting',
|
||||
) );
|
||||
|
||||
$wp_customize->add_setting( 'understrap_theme_slider_time_setting', array(
|
||||
'default' => '5000',
|
||||
'sanitize_callback' => 'absint',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control( 'understrap_theme_slider_time', array(
|
||||
'label' => __( 'Slider Time (in ms)', 'understrap' ),
|
||||
'section' => 'understrap_theme_slider_options',
|
||||
'type' => 'text',
|
||||
'settings' => 'understrap_theme_slider_time_setting',
|
||||
) );
|
||||
|
||||
$wp_customize->add_setting( 'understrap_theme_slider_loop_setting', array(
|
||||
'default' => 'true',
|
||||
'sanitize_callback' => 'esc_textarea',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control( 'understrap_theme_loop', array(
|
||||
'label' => __( 'Loop Slider Content', 'understrap' ),
|
||||
'section' => 'understrap_theme_slider_options',
|
||||
'type' => 'radio',
|
||||
'choices' => array(
|
||||
'true' => 'yes',
|
||||
'false' => 'no',
|
||||
),
|
||||
'settings' => 'understrap_theme_slider_loop_setting',
|
||||
) );
|
||||
|
||||
// Theme layout settings.
|
||||
$wp_customize->add_section( 'understrap_theme_layout_options', array(
|
||||
'title' => __( 'Theme Layout Settings', 'understrap' ),
|
||||
|
@ -134,82 +90,10 @@ if ( ! function_exists( 'understrap_theme_customize_register' ) ) {
|
|||
'priority' => '20',
|
||||
)
|
||||
) );
|
||||
|
||||
// How to display posts index page (home.php).
|
||||
$wp_customize->add_setting( 'understrap_posts_index_style', array(
|
||||
'default' => 'default',
|
||||
'type' => 'theme_mod',
|
||||
'sanitize_callback' => 'esc_textarea',
|
||||
'capability' => 'edit_theme_options',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Control(
|
||||
$wp_customize,
|
||||
'understrap_posts_index_style', array(
|
||||
'label' => __( 'Posts Index Style', 'understrap' ),
|
||||
'description' => __( 'Choose how to display latest posts', 'understrap' ),
|
||||
'section' => 'understrap_theme_layout_options',
|
||||
'settings' => 'understrap_posts_index_style',
|
||||
'type' => 'select',
|
||||
'choices' => array(
|
||||
'default' => __( 'Default', 'understrap' ),
|
||||
'masonry' => __( 'Masonry', 'understrap' ),
|
||||
'grid' => __( 'Grid', 'understrap' ),
|
||||
),
|
||||
'priority' => '30',
|
||||
)
|
||||
) );
|
||||
|
||||
// Columns setup for grid posts.
|
||||
/**
|
||||
* Function and callback to check when grid is enabled.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
function is_grid_enabled() {
|
||||
return 'grid' == get_theme_mod( 'understrap_posts_index_style' );
|
||||
}
|
||||
|
||||
// How many columns to use each grid post.
|
||||
$wp_customize->add_setting( 'understrap_grid_post_columns', array(
|
||||
'default' => '6',
|
||||
'type' => 'theme_mod',
|
||||
'capability' => 'edit_theme_options',
|
||||
'transport' => 'refresh',
|
||||
'sanitize_callback' => 'absint',
|
||||
) );
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Control(
|
||||
$wp_customize,
|
||||
'understrap_grid_post_columns', array(
|
||||
'label' => __( 'Grid Post Columns', 'understrap' ),
|
||||
'description' => __( 'Choose how many columns to use', 'understrap' ),
|
||||
'section' => 'understrap_theme_layout_options',
|
||||
'settings' => 'understrap_grid_post_columns',
|
||||
'type' => 'select',
|
||||
'choices' => array(
|
||||
'6' => '2',
|
||||
'4' => '3',
|
||||
'3' => '4',
|
||||
'2' => '6',
|
||||
'12' => '1',
|
||||
),
|
||||
'default' => 2,
|
||||
'priority' => '30',
|
||||
'transport' => 'refresh',
|
||||
)
|
||||
) );
|
||||
|
||||
// hook to auto-hide/show depending the understrap_posts_index_style option.
|
||||
$wp_customize->get_control( 'understrap_grid_post_columns' )->active_callback = 'is_grid_enabled';
|
||||
|
||||
}
|
||||
} // endif function_exists( 'understrap_theme_customize_register' ).
|
||||
add_action( 'customize_register', 'understrap_theme_customize_register' );
|
||||
|
||||
|
||||
/**
|
||||
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
|
||||
*/
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
* @package understrap
|
||||
*/
|
||||
|
||||
|
||||
|
||||
if ( ! function_exists( 'understrap_scripts' ) ) {
|
||||
/**
|
||||
* Load theme's JavaScript sources.
|
||||
|
@ -20,30 +18,6 @@ if ( ! function_exists( 'understrap_scripts' ) ) {
|
|||
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
|
||||
wp_enqueue_script( 'comment-reply' );
|
||||
}
|
||||
|
||||
// menu - vertical page association
|
||||
// do not load on WooCommerce pages
|
||||
// do not load if we are in WooCommerce pages.
|
||||
$loadit = true;
|
||||
if ( class_exists( 'WooCommerce' ) ) {
|
||||
if ( is_woocommerce() ) {
|
||||
$loadit = false;
|
||||
}
|
||||
}
|
||||
if ( ( is_page_template ( 'page-templates/vertical-one-page.php' ) || is_home() || is_single() ) && $loadit ) {
|
||||
wp_enqueue_script( 'vertical-one-page', get_template_directory_uri() . '/js/vertical-one-page.js',
|
||||
array( 'jquery' ), true );
|
||||
$page_for_posts = strtolower( get_the_title( get_option( 'page_for_posts' ) ) );
|
||||
$home_url = home_url();
|
||||
$is_single = is_single();
|
||||
$vars = array(
|
||||
'pageForPosts' => $page_for_posts,
|
||||
'homeUrl' => $home_url,
|
||||
'isSingle' => $is_single,
|
||||
);
|
||||
wp_localize_script( 'vertical-one-page', 'vars', $vars );
|
||||
}
|
||||
// menu - vertical page association end.
|
||||
}
|
||||
} // endif function_exists( 'understrap_scripts' ).
|
||||
|
||||
|
|
|
@ -66,8 +66,10 @@ if ( ! function_exists( 'change_logo_class' ) ) {
|
|||
* @return mixed
|
||||
*/
|
||||
function change_logo_class( $html ) {
|
||||
|
||||
$html = str_replace( 'class="custom-logo"', 'class="img-responsive"', $html );
|
||||
$html = str_replace( 'class="custom-logo-link"', 'class="navbar-brand custom-logo-link"', $html );
|
||||
$html = str_replace('alt=""', 'title="Home" alt="logo"' , $html );
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
|
|
@ -68,6 +68,11 @@ if ( ! function_exists( 'understrap_setup' ) ) :
|
|||
*/
|
||||
add_theme_support( 'post-thumbnails' );
|
||||
|
||||
/*
|
||||
* Adding support for Widget edit icons in customizer
|
||||
*/
|
||||
add_theme_support( 'customize-selective-refresh-widgets' );
|
||||
|
||||
/*
|
||||
* Enable support for Post Formats.
|
||||
* See http://codex.wordpress.org/Post_Formats
|
||||
|
|
|
@ -1,36 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Utility functions
|
||||
*
|
||||
* @package understrap
|
||||
*/
|
||||
|
||||
/**
|
||||
* Generate a custom length excerpt.
|
||||
* If the content of the post is less than the provided length,
|
||||
* the entire content is returned.
|
||||
*
|
||||
* @param int $post_id Post's ID.
|
||||
* @param int $word_count How many words to keep.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function understrap_excerpt_with_length( $post_id, $word_count ) {
|
||||
$post = get_post( $post_id );
|
||||
$permalink = get_post_permalink( $post_id );
|
||||
$content = strip_tags( $post->post_content );
|
||||
|
||||
if ( str_word_count( $content, 0 ) > $word_count ) {
|
||||
$words = str_word_count( $content, 2 );
|
||||
$keys = array_keys( $words );
|
||||
$excerpt = substr( $content, 0, $keys[ $word_count ] );
|
||||
$link_class = ' class=\"btn btn-secondary understrap-read-more-link\"';
|
||||
$excerpt = '<p>' . $excerpt . '[...]</p>';
|
||||
$excerpt .= '<p><a href="' . $permalink . '"' . $link_class . '>Read More</a></p>';
|
||||
} else {
|
||||
return $content;
|
||||
}
|
||||
|
||||
return $excerpt;
|
||||
}
|
||||
|
10
index.php
10
index.php
|
@ -15,14 +15,12 @@ get_header();
|
|||
|
||||
$container = get_theme_mod( 'understrap_container_type' );
|
||||
$sidebar_pos = get_theme_mod( 'understrap_sidebar_position' );
|
||||
|
||||
if ( is_front_page() && is_home() ) {
|
||||
get_sidebar( 'hero' );
|
||||
|
||||
get_sidebar( 'statichero' );
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if ( is_front_page() && is_home() ) : ?>
|
||||
<?php get_template_part( 'global-templates/hero', 'none' ); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="wrapper" id="wrapper-index">
|
||||
|
||||
<div class="<?php echo esc_html( $container ); ?>" id="content" tabindex="-1">
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
jQuery(document).ready(function() {
|
||||
var owl = jQuery('.owl-carousel');
|
||||
owl.owlCarousel({
|
||||
items:(understrap_slider_variables.items),
|
||||
items:1,
|
||||
loop:true,
|
||||
autoplay:true,
|
||||
autoplayTimeout:(understrap_slider_variables.timeout),
|
||||
autoplayTimeout:5000,
|
||||
animateOut: 'fadeOut',
|
||||
animateIn: 'fadeIn',
|
||||
nav: false,
|
||||
|
|
519
js/theme.js
519
js/theme.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -1,36 +0,0 @@
|
|||
/**
|
||||
* Vertical page navigation
|
||||
* A temporary source file providing smooth scrolling navigation to Pages
|
||||
*/
|
||||
(function( $ ) {
|
||||
var currentPage = location.href;
|
||||
var adjustedHeight = $( 'body' ).hasClass( 'admin-bar' ) ? 36 : 0;
|
||||
var blogPage = vars.homeUrl + '/' + vars.pageForPosts;
|
||||
if ( currentPage.substr( -1 ) === '/' ) {
|
||||
currentPage = currentPage.substr( 0, currentPage.length - 1 );
|
||||
}
|
||||
|
||||
$( document ).ready(function() {
|
||||
// smoothly scroll to an ID
|
||||
$( '#main-menu li a' ).click( function ( e ) {
|
||||
var target;
|
||||
// if not on root URL
|
||||
if ( currentPage === blogPage || vars.isSingle ) {
|
||||
target = $(this);
|
||||
target = vars.homeUrl + '/' + target[0].hash;
|
||||
location = target;
|
||||
}
|
||||
target = $( this.hash );
|
||||
target = target.length ? target : $( '[name=' + this.hash.slice(1) + ']' );
|
||||
if ( target.length ) {
|
||||
|
||||
$( 'html, body' ).delay( 100 ).animate({
|
||||
scrollTop: target.offset().top - adjustedHeight
|
||||
}, 800);
|
||||
// put the hash in location bar
|
||||
window.history.pushState( null, null, e.delegateTarget.href );
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
})( jQuery );
|
Binary file not shown.
|
@ -2,11 +2,10 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: understrap\n"
|
||||
"Report-Msgid-Bugs-To: http://wordpress.org/support/theme/_s\n"
|
||||
"POT-Creation-Date: 2015-09-01 21:23+0200\n"
|
||||
"PO-Revision-Date: Mon Jul 04 2016 09:14:23 GMT+0200 (CEST)\n"
|
||||
"Last-Translator: holger <office@holgerkoenemann.de>\n"
|
||||
"Language-Team: \n"
|
||||
"Language: German\n"
|
||||
"POT-Creation-Date: 2017-01-06 07:53+0000\n"
|
||||
"POT-Revision-Date: Mon Jul 04 2016 09:13:18 GMT+0200 (CEST)\n"
|
||||
"PO-Revision-Date: 2017-01-06 08:09+0000\n"
|
||||
"Language-Team: German\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
|
@ -19,7 +18,8 @@ msgstr ""
|
|||
"esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
|
||||
"esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
|
||||
"X-Poedit-Basepath: ..\n"
|
||||
"X-Loco-Target-Locale: de_DE\n"
|
||||
"Last-Translator: holger <holger.koenemann@smartsteuer.de>\n"
|
||||
"Language: de-DE\n"
|
||||
"X-Poedit-SearchPath-0: footer.php\n"
|
||||
"X-Poedit-SearchPath-1: header.php\n"
|
||||
"X-Poedit-SearchPath-2: index.php\n"
|
||||
|
@ -43,244 +43,721 @@ msgstr ""
|
|||
"X-Poedit-SearchPath-20: page-templates\n"
|
||||
"X-Poedit-SearchPath-21: inc"
|
||||
|
||||
#: ../author.php:27
|
||||
msgid "About:"
|
||||
msgstr "Über:"
|
||||
#: inc/customizer.php:99
|
||||
msgid "Choose between Bootstrap's container and container-fluid"
|
||||
msgstr ""
|
||||
"Wähle zwischen dem Bootstrap \".conatiner\" und \".container-fluid\" style "
|
||||
"aus"
|
||||
|
||||
#: ../author.php:34
|
||||
msgid "Profile"
|
||||
msgstr "Profil"
|
||||
#: inc/customizer.php:151
|
||||
msgid "Choose how to display latest posts"
|
||||
msgstr "Wähle aus wie die letzten Beiträge angezeigt werden sollen"
|
||||
|
||||
#: ../author.php:38
|
||||
msgid "Posts by"
|
||||
msgstr "Beiträge von"
|
||||
#: inc/customizer.php:156
|
||||
msgid "Default"
|
||||
msgstr "Standard"
|
||||
|
||||
#: ../comments.php:28
|
||||
#: inc/customizer.php:157
|
||||
msgid "Masonry"
|
||||
msgstr "Masonry"
|
||||
|
||||
#: inc/customizer.php:158
|
||||
msgid "Grid"
|
||||
msgstr "Grid"
|
||||
|
||||
#: inc/customizer.php:187
|
||||
msgid "Grid Post Columns"
|
||||
msgstr "Grid Post Columns"
|
||||
|
||||
#: inc/customizer.php:188
|
||||
msgid "Choose how many columns to use"
|
||||
msgstr "Wähle aus wieviele Spalten benutzt werden sollen"
|
||||
|
||||
#: woocommerce/cart/proceed-to-checkout-button.php:27
|
||||
msgid "Proceed to Checkout"
|
||||
msgstr "Weiter zum Bezahlen"
|
||||
|
||||
#: woocommerce/cart/mini-cart.php:49 woocommerce/cart/cart.php:60
|
||||
msgid "Remove this item"
|
||||
msgstr "Entferne diesen Artikel"
|
||||
|
||||
#: woocommerce/cart/mini-cart.php:72
|
||||
msgid "No products in the cart."
|
||||
msgstr "Keine Produkte im Einkaufswagen"
|
||||
|
||||
#: woocommerce/cart/mini-cart.php:80
|
||||
msgid "Subtotal"
|
||||
msgstr "Zwischensumme"
|
||||
|
||||
#: woocommerce/cart/mini-cart.php:85
|
||||
msgid "View Cart"
|
||||
msgstr "Einkaufswagen ansetzen"
|
||||
|
||||
#: woocommerce/cart/mini-cart.php:86
|
||||
msgid "Checkout"
|
||||
msgstr "Bezahlen"
|
||||
|
||||
#: woocommerce/cart/cart-empty.php:28
|
||||
msgid "Your cart is currently empty."
|
||||
msgstr "Der Einkaufswagen ist leer"
|
||||
|
||||
#: woocommerce/cart/cart-empty.php:36
|
||||
msgid "Return To Shop"
|
||||
msgstr "Zurück zum Shop"
|
||||
|
||||
#: woocommerce/cart/cart.php:36 woocommerce/cart/cart.php:79
|
||||
#: woocommerce/checkout/form-pay.php:29
|
||||
msgid "Product"
|
||||
msgstr "Produkt"
|
||||
|
||||
#: woocommerce/cart/cart.php:37 woocommerce/cart/cart.php:97
|
||||
msgid "Price"
|
||||
msgstr "Preis"
|
||||
|
||||
#: woocommerce/cart/cart.php:38 woocommerce/cart/cart.php:103
|
||||
msgid "Quantity"
|
||||
msgstr "Menge"
|
||||
|
||||
#: woocommerce/cart/cart.php:39 woocommerce/cart/cart.php:120
|
||||
#: woocommerce/myaccount/my-orders.php:16
|
||||
msgid "Total"
|
||||
msgstr "Gesamt"
|
||||
|
||||
#: woocommerce/cart/cart.php:92
|
||||
msgid "Available on backorder"
|
||||
msgstr "Wird nachbestellt"
|
||||
|
||||
#: woocommerce/cart/cart.php:138
|
||||
msgid "Coupon:"
|
||||
msgstr "Coupon:"
|
||||
|
||||
#: woocommerce/cart/cart.php:138 woocommerce/checkout/form-coupon.php:36
|
||||
msgid "Coupon code"
|
||||
msgstr "Coupon code"
|
||||
|
||||
#: woocommerce/cart/cart.php:138 woocommerce/checkout/form-coupon.php:40
|
||||
msgid "Apply Coupon"
|
||||
msgstr "Coupon anwenden"
|
||||
|
||||
#: woocommerce/cart/cart.php:144
|
||||
msgid "Update Cart"
|
||||
msgstr "Einkaufswagen aktualisieren"
|
||||
|
||||
#: woocommerce/checkout/payment.php:35
|
||||
msgid ""
|
||||
"Sorry, it seems that there are no available payment methods for your state. "
|
||||
"Please contact us if you require assistance or wish to make alternate "
|
||||
"arrangements."
|
||||
msgstr ""
|
||||
|
||||
#: woocommerce/checkout/payment.php:35
|
||||
msgid "Please fill in your details above to see available payment methods."
|
||||
msgstr ""
|
||||
|
||||
#: woocommerce/checkout/payment.php:42
|
||||
msgid ""
|
||||
"Since your browser does not support JavaScript, or it is disabled, please "
|
||||
"ensure you click the <em>Update Totals</em> button before placing your order."
|
||||
" You may be charged more than the amount stated above if you fail to do so."
|
||||
msgstr ""
|
||||
|
||||
#: woocommerce/checkout/payment.php:43
|
||||
msgid "Update totals"
|
||||
msgstr "Aktualisieren"
|
||||
|
||||
#: woocommerce/checkout/form-pay.php:30
|
||||
msgid "Qty"
|
||||
msgstr "Menge"
|
||||
|
||||
#: woocommerce/checkout/form-pay.php:31
|
||||
msgid "Totals"
|
||||
msgstr "Gesamt"
|
||||
|
||||
#: woocommerce/checkout/form-pay.php:79
|
||||
msgid ""
|
||||
"Sorry, it seems that there are no available payment methods for your "
|
||||
"location. Please contact us if you require assistance or wish to make "
|
||||
"alternate arrangements."
|
||||
msgstr ""
|
||||
|
||||
#: woocommerce/checkout/form-coupon.php:28
|
||||
msgid "Have a coupon?"
|
||||
msgstr "Hast du ein Coupon?"
|
||||
|
||||
#: woocommerce/checkout/form-coupon.php:28
|
||||
msgid "Click here to enter your code"
|
||||
msgstr "Hier klicken um dienen Code einzugeben"
|
||||
|
||||
#: woocommerce/global/form-login.php:35
|
||||
#: woocommerce/myaccount/form-lost-password.php:30
|
||||
msgid "Username or email"
|
||||
msgstr "Benutzername oder E-Mail"
|
||||
|
||||
#: woocommerce/global/form-login.php:39 woocommerce/myaccount/form-login.php:48
|
||||
#: woocommerce/myaccount/form-login.php:98
|
||||
msgid "Password"
|
||||
msgstr "Passwort"
|
||||
|
||||
#: woocommerce/global/form-login.php:48 woocommerce/myaccount/form-login.php:37
|
||||
#: woocommerce/myaccount/form-login.php:56
|
||||
msgid "Login"
|
||||
msgstr "Benutzername"
|
||||
|
||||
#: woocommerce/global/form-login.php:51 woocommerce/myaccount/form-login.php:58
|
||||
msgid "Remember me"
|
||||
msgstr "Erinnere mich"
|
||||
|
||||
#: woocommerce/global/form-login.php:55 woocommerce/myaccount/form-login.php:62
|
||||
msgid "Lost your password?"
|
||||
msgstr "Passwort vergessen?"
|
||||
|
||||
#: woocommerce/global/quantity-input.php:24
|
||||
msgctxt "Product quantity input tooltip"
|
||||
msgid "Qty"
|
||||
msgstr "Menge"
|
||||
|
||||
#: woocommerce/myaccount/form-lost-password.php:27
|
||||
msgid ""
|
||||
"Lost your password? Please enter your username or email address. You will "
|
||||
"receive a link to create a new password via email."
|
||||
msgstr ""
|
||||
"Passwort vergessen? Bitte gib deinen Benutzernamen oder E-Mail Adresse ein. "
|
||||
"Du wirst dann per E-Mail erhalten einen Link erhalten mit dem du ein neues "
|
||||
"Passwort vergeben kannst"
|
||||
|
||||
#: woocommerce/myaccount/form-lost-password.php:40
|
||||
msgid "Reset Password"
|
||||
msgstr "Passwort zurücksetzen"
|
||||
|
||||
#: woocommerce/myaccount/form-login.php:44
|
||||
msgid "Username or email address"
|
||||
msgstr "Benutername oder E-Mail Adresse"
|
||||
|
||||
#: woocommerce/myaccount/form-login.php:75
|
||||
#: woocommerce/myaccount/form-login.php:112
|
||||
msgid "Register"
|
||||
msgstr "Registrieren"
|
||||
|
||||
#: woocommerce/myaccount/form-login.php:84
|
||||
msgid "Username"
|
||||
msgstr "Benutzername"
|
||||
|
||||
#: woocommerce/myaccount/form-login.php:91
|
||||
#: woocommerce/myaccount/form-edit-account.php:40
|
||||
msgid "Email address"
|
||||
msgstr "E-Mail Adresse"
|
||||
|
||||
#: woocommerce/myaccount/form-login.php:105
|
||||
msgid "Anti-spam"
|
||||
msgstr "Spam Schutz"
|
||||
|
||||
#: woocommerce/myaccount/form-edit-account.php:30
|
||||
msgid "First name"
|
||||
msgstr "Vorname"
|
||||
|
||||
#: woocommerce/myaccount/form-edit-account.php:34
|
||||
msgid "Last name"
|
||||
msgstr "Nachname"
|
||||
|
||||
#: woocommerce/myaccount/form-edit-account.php:45
|
||||
msgid "Password Change"
|
||||
msgstr "Passwort ändern"
|
||||
|
||||
#: woocommerce/myaccount/form-edit-account.php:48
|
||||
msgid "Current Password (leave blank to leave unchanged)"
|
||||
msgstr "Momentanes Passwort (Leer lassen wenn es nicht geändert werden soll)"
|
||||
|
||||
#: woocommerce/myaccount/form-edit-account.php:52
|
||||
msgid "New Password (leave blank to leave unchanged)"
|
||||
msgstr "Neues Passwort (Leer lassen wenn es nicht geändert werden soll)"
|
||||
|
||||
#: woocommerce/myaccount/form-edit-account.php:56
|
||||
msgid "Confirm New Password"
|
||||
msgstr "Neues Passwort bestätigen"
|
||||
|
||||
#: woocommerce/myaccount/form-edit-account.php:66
|
||||
msgid "Save changes"
|
||||
msgstr "Änderungen speichern"
|
||||
|
||||
#: woocommerce/myaccount/my-orders.php:13
|
||||
msgid "Order"
|
||||
msgstr "Bestellung"
|
||||
|
||||
#: woocommerce/myaccount/my-orders.php:14
|
||||
msgid "Date"
|
||||
msgstr "Datum"
|
||||
|
||||
#: woocommerce/myaccount/my-orders.php:15
|
||||
msgid "Status"
|
||||
msgstr "Status"
|
||||
|
||||
#: woocommerce/myaccount/my-orders.php:30
|
||||
msgid "Recent Orders"
|
||||
msgstr "Kürzlich bestellt"
|
||||
|
||||
#: woocommerce/myaccount/my-orders.php:55 woocommerce/myaccount/orders.php:51
|
||||
msgctxt "hash before order number"
|
||||
msgid "#"
|
||||
msgstr ""
|
||||
|
||||
#: woocommerce/myaccount/my-orders.php:65 woocommerce/myaccount/orders.php:61
|
||||
#, php-format
|
||||
msgctxt "comments title"
|
||||
msgid "One thought on “%2$s”"
|
||||
msgid_plural "%1$s thoughts on “%2$s”"
|
||||
msgstr[0] "Ein Kommentar zu “%2$s”"
|
||||
msgstr[1] "%1$s Kommentare zu “%2$s”"
|
||||
msgid "%s for %s item"
|
||||
msgid_plural "%s for %s items"
|
||||
msgstr[0] "%s für %s Artikel"
|
||||
msgstr[1] "%s für %s Artikel"
|
||||
|
||||
#: ../comments.php:35 ../comments.php:56
|
||||
msgid "Comment navigation"
|
||||
msgstr "Kommentar Navigation"
|
||||
#: woocommerce/myaccount/my-orders.php:72 woocommerce/myaccount/orders.php:68
|
||||
msgid "Pay"
|
||||
msgstr "Bezahlen"
|
||||
|
||||
#: ../comments.php:37 ../comments.php:58
|
||||
msgid "← Older Comments"
|
||||
msgstr "← Ältere Kommentare"
|
||||
#: woocommerce/myaccount/my-orders.php:76 woocommerce/myaccount/orders.php:72
|
||||
msgid "View"
|
||||
msgstr "Anschauen"
|
||||
|
||||
#: ../comments.php:40 ../comments.php:61
|
||||
msgid "Newer Comments →"
|
||||
msgstr "Neuere Kommentare →"
|
||||
#: woocommerce/myaccount/my-orders.php:80 woocommerce/myaccount/orders.php:76
|
||||
msgid "Cancel"
|
||||
msgstr "Abbrechen"
|
||||
|
||||
#: ../comments.php:72
|
||||
msgid "Comments are closed."
|
||||
msgstr "Kommentare sind geschlossen"
|
||||
#: woocommerce/myaccount/orders.php:107
|
||||
msgid "Previous"
|
||||
msgstr "Vorher"
|
||||
|
||||
#: ../author.php:32 ../inc/custom-comments.php:16
|
||||
msgid "Website"
|
||||
msgstr "Webseite"
|
||||
#: woocommerce/myaccount/orders.php:111
|
||||
msgid "Next"
|
||||
msgstr "Nächste"
|
||||
|
||||
#: ../footer.php:24
|
||||
msgid "http://wordpress.org/"
|
||||
msgstr "http://wordpress.org/"
|
||||
#: woocommerce/myaccount/orders.php:119 woocommerce/myaccount/downloads.php:98
|
||||
msgid "Go Shop"
|
||||
msgstr "In den Shop"
|
||||
|
||||
#: ../footer.php:24
|
||||
#: woocommerce/myaccount/orders.php:121
|
||||
msgid "No order has been made yet."
|
||||
msgstr "Es wurde keine Bestellung vorgenommen"
|
||||
|
||||
#: woocommerce/myaccount/form-edit-address.php:23
|
||||
msgid "Billing Address"
|
||||
msgstr "Rechnungsadresse"
|
||||
|
||||
#: woocommerce/myaccount/form-edit-address.php:23
|
||||
msgid "Shipping Address"
|
||||
msgstr "Lieferadresse"
|
||||
|
||||
#: woocommerce/myaccount/form-edit-address.php:46
|
||||
msgid "Save Address"
|
||||
msgstr "Adresse speichern"
|
||||
|
||||
#: woocommerce/myaccount/form-reset-password.php:27
|
||||
msgid "Enter a new password below."
|
||||
msgstr "Gib unten eine neues Passwort ein"
|
||||
|
||||
#: woocommerce/myaccount/form-reset-password.php:30
|
||||
msgid "New password"
|
||||
msgstr "Neues Passwort"
|
||||
|
||||
#: woocommerce/myaccount/form-reset-password.php:34
|
||||
msgid "Re-enter new password"
|
||||
msgstr "Wiederhole das Passwort"
|
||||
|
||||
#: woocommerce/myaccount/form-reset-password.php:47
|
||||
msgid "Save"
|
||||
msgstr "Speichern"
|
||||
|
||||
#: woocommerce/myaccount/downloads.php:59
|
||||
msgid "∞"
|
||||
msgstr "∞"
|
||||
|
||||
#: woocommerce/myaccount/downloads.php:67
|
||||
msgid "Never"
|
||||
msgstr "Nie"
|
||||
|
||||
#: woocommerce/myaccount/downloads.php:75
|
||||
msgid "Download"
|
||||
msgstr "Download"
|
||||
|
||||
#: woocommerce/myaccount/downloads.php:100
|
||||
msgid "No downloads available yet."
|
||||
msgstr "Kein Download verfügbar"
|
||||
|
||||
#: woocommerce/single-product/review-rating.php:28
|
||||
#, php-format
|
||||
msgid "Proudly powered by %s"
|
||||
msgstr "Stolz präsentiert von %s"
|
||||
msgid "Rated %d out of 5"
|
||||
msgstr "Bewertet mit %d von 5"
|
||||
|
||||
#: ../footer.php:26
|
||||
#: woocommerce/single-product/review-rating.php:29
|
||||
msgid "out of 5"
|
||||
msgstr "von 5"
|
||||
|
||||
#: woocommerce/single-product/rating.php:36
|
||||
#, php-format
|
||||
msgid "Theme: %1$s by %2$s."
|
||||
msgstr "Theme: %1$s von %2$s."
|
||||
msgid "Rated %s out of 5"
|
||||
msgstr "Bewertet mit %s von 5"
|
||||
|
||||
#: ../header.php:30
|
||||
msgid "Skip to content"
|
||||
msgstr "Zum Inhalt springen"
|
||||
#: woocommerce/single-product/rating.php:38
|
||||
#, php-format
|
||||
msgid "out of %s5%s"
|
||||
msgstr "von %s5%s"
|
||||
|
||||
#: ../search.php:23
|
||||
#. Description of the theme
|
||||
msgid ""
|
||||
"Combination of Automattic´s _s theme and Bootstrap 4. Made as a solid "
|
||||
"starting point for your next theme project and WordPress website. Use it as "
|
||||
"starter theme or as a parent theme. It is up to you. Including Font Awesome "
|
||||
"support, built-in widget slider and much more you need for basic websites. "
|
||||
"IMPORTANT: All developer dependencies are not bundled with this install file."
|
||||
" Just download the .zip, extract it and run \"npm install\" and \"gulp copy-"
|
||||
"assets\" inside the extracted /understrap folder."
|
||||
msgstr ""
|
||||
|
||||
#: search.php:29
|
||||
#, php-format
|
||||
msgid "Search Results for: %s"
|
||||
msgstr "Suchergebnis für: %s"
|
||||
msgstr "Suchergebnisse für: %s"
|
||||
|
||||
#: ../404.php:22
|
||||
#: header.php:34
|
||||
msgid "Skip to content"
|
||||
msgstr "Zum Inhalt"
|
||||
|
||||
#: 404.php:24
|
||||
msgid "Oops! That page can’t be found."
|
||||
msgstr "Ooooops! Die Seite wurde nicht gefunden."
|
||||
msgstr "Oooops! Diese Seite konnte nicht gefunden werden"
|
||||
|
||||
#: ../404.php:27
|
||||
#: 404.php:31
|
||||
msgid ""
|
||||
"It looks like nothing was found at this location. Maybe try one of the links "
|
||||
"below or a search?"
|
||||
msgstr ""
|
||||
"Es scheint, dass hier nichts gefunden wurde. Versuch doch einen der Links "
|
||||
"unten oder die Suchfunktion."
|
||||
"Es scheint das hier nichts gefunden wurde. Vielleicht solltest du einen der "
|
||||
"Links unten oder die Suche verwenden?"
|
||||
|
||||
#: ../404.php:37
|
||||
#: 404.php:42
|
||||
msgid "Most Used Categories"
|
||||
msgstr "Am häufigsten genutzte Kategorie"
|
||||
msgstr "Meist genutzte Kategorie"
|
||||
|
||||
#: ../404.php:57
|
||||
#. translators: %1$s: smiley
|
||||
#: 404.php:62
|
||||
#, php-format
|
||||
msgid "Try looking in the monthly archives. %1$s"
|
||||
msgstr "Versuch im monatlichen Archiv zu schauen. %1$s"
|
||||
msgstr "Versuch es mal im monatlichen Archiv"
|
||||
|
||||
#: ../searchform.php:9 ../searchform.php:13
|
||||
#: author.php:34
|
||||
msgid "About:"
|
||||
msgstr "Über:"
|
||||
|
||||
#: author.php:42 inc/custom-comments.php:30
|
||||
msgid "Website"
|
||||
msgstr "Webseite"
|
||||
|
||||
#: author.php:49
|
||||
msgid "Profile"
|
||||
msgstr "Profil"
|
||||
|
||||
#: author.php:54
|
||||
msgid "Posts by"
|
||||
msgstr "Artikel von"
|
||||
|
||||
#: author.php:68
|
||||
msgid "in"
|
||||
msgstr "in"
|
||||
|
||||
#: comments.php:28
|
||||
#, php-format
|
||||
msgctxt "comments title"
|
||||
msgid "One thought on “%2$s”"
|
||||
msgid_plural "%1$s thoughts on “%2$s”"
|
||||
msgstr[0] "Ein Gedanke zu “%2$s”"
|
||||
msgstr[1] "%1$s Gedanken zu “%2$s”"
|
||||
|
||||
#: comments.php:36 comments.php:59
|
||||
msgid "Comment navigation"
|
||||
msgstr "Kommentar Navigation"
|
||||
|
||||
#: comments.php:38 comments.php:61
|
||||
msgid "← Older Comments"
|
||||
msgstr "← Ältere Kommentare"
|
||||
|
||||
#: comments.php:42 comments.php:65
|
||||
msgid "Newer Comments →"
|
||||
msgstr "Neuere Kommentare →"
|
||||
|
||||
#: comments.php:78
|
||||
msgid "Comments are closed."
|
||||
msgstr "Kommentare sind geschlossen"
|
||||
|
||||
#: footer.php:27
|
||||
msgid "http://wordpress.org/"
|
||||
msgstr "http://wordpress.org/"
|
||||
|
||||
#: footer.php:28
|
||||
#, php-format
|
||||
msgid "Proudly powered by %s"
|
||||
msgstr "Stolz angetrieben durch %s"
|
||||
|
||||
#: footer.php:31
|
||||
#, php-format
|
||||
msgid "Theme: %1$s by %2$s."
|
||||
msgstr "Theme: %1$s von %2$s."
|
||||
|
||||
#: footer.php:33
|
||||
#, php-format
|
||||
msgid "Version: %1$s"
|
||||
msgstr "Version: %1$s"
|
||||
|
||||
#: searchform.php:10 searchform.php:16
|
||||
msgid "Search"
|
||||
msgstr "Suche"
|
||||
|
||||
#: ../searchform.php:11
|
||||
#: searchform.php:13
|
||||
msgid "Search …"
|
||||
msgstr "Suche …"
|
||||
msgstr "Suche ..."
|
||||
|
||||
#: loop-templates/content-card.php:43 loop-templates/content-page.php:25
|
||||
#: loop-templates/content.php:37 loop-templates/content-single.php:31
|
||||
#: loop-templates/content-verticalpage.php:28
|
||||
msgid "Pages:"
|
||||
msgstr "Seiten:"
|
||||
|
||||
#: loop-templates/content-page.php:34
|
||||
#: loop-templates/content-verticalpage.php:37
|
||||
msgid "Edit"
|
||||
msgstr "Editieren"
|
||||
|
||||
#: loop-templates/content-none.php:15
|
||||
msgid "Nothing Found"
|
||||
msgstr "Nichts gefunden"
|
||||
|
||||
#: loop-templates/content-none.php:23
|
||||
#, php-format
|
||||
msgid ""
|
||||
"Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
|
||||
msgstr ""
|
||||
"Bereit deinen ersten articel zu veröffentlichen? <a href=\"%1$s\">Dann fang "
|
||||
"hier an</a>."
|
||||
|
||||
#: loop-templates/content-none.php:28
|
||||
msgid ""
|
||||
"Sorry, but nothing matched your search terms. Please try again with some "
|
||||
"different keywords."
|
||||
msgstr ""
|
||||
"Entschuldigung, aber leider wurde nichts zu deinem Suchbegriff gefunden. "
|
||||
"Versuche es erneut mit einem anderen Suchbegriff."
|
||||
|
||||
#: loop-templates/content-none.php:34
|
||||
msgid ""
|
||||
"It seems we can’t find what you’re looking for. Perhaps "
|
||||
"searching can help."
|
||||
msgstr ""
|
||||
"Leider konnten wir nicht das finden wonach du gesucht hast. Vielleicht kann "
|
||||
"dir die Suche helfen. "
|
||||
|
||||
#. Name of the template
|
||||
msgid "Full Width Page"
|
||||
msgstr "Volle Breite"
|
||||
msgid "Blank Page Template"
|
||||
msgstr "Komplett leere Seiten-Vorlage"
|
||||
|
||||
#. Name of the template
|
||||
msgid "Left and Right Sidebar Layout"
|
||||
msgstr "Linke und rechte Seitenspalte"
|
||||
|
||||
#. Name of the template
|
||||
msgid "Empty Page Template"
|
||||
msgstr "Leeres Seiten- Template"
|
||||
msgstr "Leere Seiten-Vorlage"
|
||||
|
||||
#: ../inc/widgets.php:10
|
||||
msgid "Sidebar"
|
||||
msgstr "Sidebar"
|
||||
#. Name of the template
|
||||
msgid "Full Width Page"
|
||||
msgstr "Seite mit voller Breite"
|
||||
|
||||
#: ../inc/widgets.php:20
|
||||
msgid "Hero Slider"
|
||||
msgstr "Hero (Slider)"
|
||||
#. Name of the template
|
||||
msgid "Left Sidebar Layout"
|
||||
msgstr "Layout mit linker Seitenleiste"
|
||||
|
||||
#: ../inc/widgets.php:30
|
||||
msgid "Hero Static"
|
||||
msgstr "Hero (statisch)"
|
||||
#. Name of the template
|
||||
msgid "Vertical One Page"
|
||||
msgstr "Vertikales \"One Pager\" Layout"
|
||||
|
||||
#: ../inc/widgets.php:40
|
||||
msgid "Footer Full"
|
||||
msgstr "Footer (volle Breite)"
|
||||
|
||||
#: ../inc/customizer.php:24
|
||||
msgid "Slider Settings"
|
||||
msgstr "Slider Einstellungen"
|
||||
|
||||
#: ../inc/customizer.php:33
|
||||
msgid "Number of slides displaying at once"
|
||||
msgstr "Anzahl der Slides die auf einmal angezeigt werden"
|
||||
|
||||
#: ../inc/customizer.php:45
|
||||
msgid "Slider Time (in ms)"
|
||||
msgstr "Slider Zeit (in ms)"
|
||||
|
||||
#: ../inc/customizer.php:57
|
||||
msgid "Loop Slider Content"
|
||||
msgstr "Slider Inhalt wiederholen?"
|
||||
|
||||
#: ../inc/template-tags.php:18
|
||||
#: inc/template-tags.php:18
|
||||
#, php-format
|
||||
msgid " Edited %4$s"
|
||||
msgstr "Bearbeitet: %4$s"
|
||||
msgstr "Bearbeitet %4$s"
|
||||
|
||||
#: ../inc/template-tags.php:29
|
||||
#: inc/template-tags.php:29
|
||||
#, php-format
|
||||
msgctxt "post date"
|
||||
msgid "Posted on %s"
|
||||
msgstr "Veröffentlicht am %s"
|
||||
|
||||
#: ../inc/template-tags.php:34
|
||||
#: inc/template-tags.php:34
|
||||
#, php-format
|
||||
msgctxt "post author"
|
||||
msgid "by %s"
|
||||
msgstr "von %s"
|
||||
|
||||
#: ../inc/template-tags.php:51 ../inc/template-tags.php:57
|
||||
#. translators: used between list items, there is a space after the comma
|
||||
#: inc/template-tags.php:51 inc/template-tags.php:57
|
||||
msgid ", "
|
||||
msgstr ", "
|
||||
msgstr ","
|
||||
|
||||
#: ../inc/template-tags.php:53
|
||||
#: inc/template-tags.php:53
|
||||
#, php-format
|
||||
msgid "Posted in %1$s"
|
||||
msgstr "Veröffentlicht in %1$s"
|
||||
msgstr "Veröffentlicht in %1$s"
|
||||
|
||||
#: ../inc/template-tags.php:59
|
||||
#: inc/template-tags.php:59
|
||||
#, php-format
|
||||
msgid "Tagged %1$s"
|
||||
msgstr "Getagt mit: %1$s"
|
||||
msgstr "Tagged %1$s"
|
||||
|
||||
#: ../inc/template-tags.php:65
|
||||
#: inc/template-tags.php:65
|
||||
msgid "Leave a comment"
|
||||
msgstr "Hinterlasse ein Kommentar"
|
||||
msgstr "Kommentar hinterlassen"
|
||||
|
||||
#: ../inc/template-tags.php:65
|
||||
#: inc/template-tags.php:65
|
||||
msgid "1 Comment"
|
||||
msgstr "1 Kommentar"
|
||||
|
||||
#: ../inc/template-tags.php:65
|
||||
#, php-format
|
||||
#: inc/template-tags.php:65
|
||||
msgid "% Comments"
|
||||
msgstr "% Kommentare"
|
||||
|
||||
#. translators: %s: Name of current post
|
||||
#: ../inc/template-tags.php:72
|
||||
#: inc/template-tags.php:72
|
||||
#, php-format
|
||||
msgid "Edit %s"
|
||||
msgstr "Bearbeite %s"
|
||||
msgstr "Editiere %s"
|
||||
|
||||
#: ../inc/setup.php:48
|
||||
#: inc/template-tags.php:143
|
||||
msgid "Post navigation"
|
||||
msgstr "Beitrags- Navigation"
|
||||
|
||||
#: inc/template-tags.php:148
|
||||
msgctxt "Previous post link"
|
||||
msgid "<i class=\"fa fa-angle-left\"></i> %title"
|
||||
msgstr "<i class=\"fa fa-angle-left\"></i> %title"
|
||||
|
||||
#: inc/template-tags.php:151
|
||||
msgctxt "Next post link"
|
||||
msgid "%title <i class=\"fa fa-angle-right\"></i>"
|
||||
msgstr "%title <i class=\"fa fa-angle-right\"></i>"
|
||||
|
||||
#: inc/setup.php:51
|
||||
msgid "Primary Menu"
|
||||
msgstr "Hauptmenü"
|
||||
|
||||
#: ../inc/setup.php:98
|
||||
#: inc/setup.php:122
|
||||
msgid "Read More..."
|
||||
msgstr "Weiterlesen..."
|
||||
|
||||
#: ../inc/custom-comments.php:12
|
||||
#: inc/widgets.php:14
|
||||
msgid "Right Sidebar"
|
||||
msgstr "Rechte Seitenleiste"
|
||||
|
||||
#: inc/widgets.php:24
|
||||
msgid "Left Sidebar"
|
||||
msgstr "Linke Seitenleiste"
|
||||
|
||||
#: inc/widgets.php:34
|
||||
msgid "Hero Slider"
|
||||
msgstr "\"Bühnen\" - Slider"
|
||||
|
||||
#: inc/widgets.php:44
|
||||
msgid "Hero Static"
|
||||
msgstr "Statische \"Bühne\""
|
||||
|
||||
#: inc/widgets.php:54
|
||||
msgid "Footer Full"
|
||||
msgstr "Fußbereich"
|
||||
|
||||
#: inc/custom-comments.php:24
|
||||
msgid "Name"
|
||||
msgstr "Name"
|
||||
|
||||
#: ../inc/custom-comments.php:14
|
||||
#: inc/custom-comments.php:27
|
||||
msgid "Email"
|
||||
msgstr "E-Mail"
|
||||
msgstr "Email"
|
||||
|
||||
#: ../inc/custom-comments.php:25
|
||||
#: inc/custom-comments.php:49
|
||||
msgctxt "noun"
|
||||
msgid "Comment"
|
||||
msgstr "Kommentar"
|
||||
msgstr "Kommentare"
|
||||
|
||||
#: ../loop-templates/content-single.php:29 ../loop-templates/content.php:33 ..
|
||||
#: loop-templates/content-page.php:25
|
||||
msgid "Pages:"
|
||||
msgstr "Seiten:"
|
||||
#: inc/customizer.php:36
|
||||
msgid "Slider Settings"
|
||||
msgstr "Slider Einstellungen"
|
||||
|
||||
#: ../loop-templates/content-none.php:16
|
||||
msgid "Nothing Found"
|
||||
msgstr "Nichts gefunden"
|
||||
#: inc/customizer.php:45
|
||||
msgid "Number of slides displaying at once"
|
||||
msgstr "Anzahl der Slides die auf einmal angezeigt werden"
|
||||
|
||||
#: ../loop-templates/content-none.php:24
|
||||
#: inc/customizer.php:57
|
||||
msgid "Slider Time (in ms)"
|
||||
msgstr "Zeit von Slide zu Slide in ms"
|
||||
|
||||
#: inc/customizer.php:69
|
||||
msgid "Loop Slider Content"
|
||||
msgstr "Soll der Slider von vorne anfangen?"
|
||||
|
||||
#: inc/customizer.php:81
|
||||
msgid "Theme Layout Settings"
|
||||
msgstr "Theme Layout Einstellungen"
|
||||
|
||||
#: inc/customizer.php:83
|
||||
msgid "Container width and sidebar defaults"
|
||||
msgstr "\".container\" Weite und Seitenleisten- Einstellungen"
|
||||
|
||||
#: inc/customizer.php:98
|
||||
msgid "Container Width"
|
||||
msgstr "\".container\" Breite"
|
||||
|
||||
#: inc/customizer.php:104
|
||||
msgid "Fixed width container"
|
||||
msgstr "\".container\" mit fester Breite"
|
||||
|
||||
#: inc/customizer.php:105
|
||||
msgid "Full width container"
|
||||
msgstr "\".container\" mit voller Seitenbreite"
|
||||
|
||||
#: inc/customizer.php:122
|
||||
msgid "Sidebar Positioning"
|
||||
msgstr "Seitenleisten Positionierung"
|
||||
|
||||
#: inc/customizer.php:123
|
||||
msgid "Set sidebar's position. Can either be: right, left, both or none"
|
||||
msgstr ""
|
||||
"Stelle die Standard- Position der Seitenleiste ein. Zur Auswahl stehen: "
|
||||
"Rechts, links, beides oder nichts."
|
||||
|
||||
#: inc/customizer.php:129
|
||||
msgid "Right sidebar"
|
||||
msgstr "Rechte Seitenleiste"
|
||||
|
||||
#: inc/customizer.php:130
|
||||
msgid "Left sidebar"
|
||||
msgstr "Linke Seitenleiste"
|
||||
|
||||
#: inc/customizer.php:131
|
||||
msgid "Left & Right sidebars"
|
||||
msgstr "Linke und rechte Seitenleiste"
|
||||
|
||||
#: inc/customizer.php:132
|
||||
msgid "No sidebar"
|
||||
msgstr "Keine Seitenleiste"
|
||||
|
||||
#: inc/customizer.php:150
|
||||
msgid "Posts Index Style"
|
||||
msgstr "Layout der Beiträge auf der Startseite"
|
||||
|
||||
#: woocommerce/single-product/rating.php:39
|
||||
#, php-format
|
||||
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\">Fang hier "
|
||||
"an</a>."
|
||||
msgid "based on %s customer rating"
|
||||
msgid_plural "based on %s customer ratings"
|
||||
msgstr[0] "basierend auf %s Kundenbewertungen"
|
||||
msgstr[1] "basierend auf %s Kundenbewertungen"
|
||||
|
||||
#: ../loop-templates/content-none.php:28
|
||||
msgid ""
|
||||
"Sorry, but nothing matched your search terms. Please try again with some "
|
||||
"different keywords."
|
||||
msgstr ""
|
||||
"Entschuldigung, leider wurde nichts zu deinem Suchbegriff gefunden. Versuch "
|
||||
"etwas anderes aus!"
|
||||
|
||||
#: ../loop-templates/content-none.php:33
|
||||
msgid ""
|
||||
"It seems we can’t find what you’re looking for. Perhaps "
|
||||
"searching can help."
|
||||
msgstr ""
|
||||
"Es scheint das wir nicht herausfinden konnten wonach du gesucht hast. Suchen "
|
||||
"könnte helfen!"
|
||||
|
||||
#: ../loop-templates/content-page.php:34
|
||||
msgid "Edit"
|
||||
msgstr "Bearbeiten"
|
||||
#: woocommerce/single-product/rating.php:42
|
||||
#, php-format
|
||||
msgid "%s customer review"
|
||||
msgid_plural "%s customer reviews"
|
||||
msgstr[0] "%s Kunden Bewertung"
|
||||
msgstr[1] "%s Kunden Bewertungen"
|
||||
|
||||
#. Name of the theme
|
||||
msgid "UnderStrap"
|
||||
|
@ -290,19 +767,9 @@ msgstr "UnderStrap"
|
|||
msgid "http://understrap.com"
|
||||
msgstr "http://understrap.com"
|
||||
|
||||
#. Description of the theme
|
||||
msgid ""
|
||||
"Combination of Automattic´s _s theme and Bootstrap 4. Made as a solid "
|
||||
"starting point for your next theme project and WordPress website. Use it as "
|
||||
"starter theme or as parent theme. It is up to you."
|
||||
msgstr ""
|
||||
"Kombination von Automattic´s _s Starter Theme und Bootstrap 4. Entwickelt "
|
||||
"als solider Startpunkt für die eigenen Theme Entwicklung. UnderStrap kann "
|
||||
"als Starter Theme oder als Theme Framework genutzt werden."
|
||||
|
||||
#. Author of the theme
|
||||
msgid "Holger Koenemann"
|
||||
msgstr "Holger Koenemann"
|
||||
msgstr "Holger Könemann"
|
||||
|
||||
#. Author URI of the theme
|
||||
msgid "http://www.holgerkoenemann.de"
|
||||
|
|
|
@ -1,52 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Card patrial template responsible to show individual posts in home.php page.
|
||||
*
|
||||
* @package understrap
|
||||
*/
|
||||
|
||||
?>
|
||||
<div class="card">
|
||||
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
|
||||
|
||||
<header class="entry-header">
|
||||
<?php if ( has_post_thumbnail() ) : ?>
|
||||
<?php
|
||||
$alt = get_post_meta( get_post_thumbnail_id( $post->ID ), '_wp_attachment_image_alt', true );
|
||||
?>
|
||||
<img src="<?php echo get_the_post_thumbnail_url( $post->ID, 'large' ); ?>"
|
||||
alt="<?php echo $alt; ?>"
|
||||
class="card-img-top img-fluid">
|
||||
<?php endif; ?>
|
||||
<div class="card-block">
|
||||
<?php the_title( sprintf( '<h2 class="entry-title card-title"><a href="%s" rel="bookmark">',
|
||||
esc_url( get_permalink() ) ), '</a></h2>' ); ?>
|
||||
|
||||
<?php if ( 'post' === get_post_type() ) : ?>
|
||||
|
||||
<div class="entry-meta">
|
||||
<p class="card-text"> <?php understrap_posted_on(); ?> </p>
|
||||
</div><!-- .entry-meta -->
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="card-block">
|
||||
<div class="entry-content card-text">
|
||||
<?php
|
||||
echo understrap_excerpt_with_length( $post->ID, 15 );
|
||||
?>
|
||||
|
||||
<?php
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ),
|
||||
'after' => '</div>',
|
||||
) );
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
|
||||
</div>
|
||||
</article><!-- #post-## -->
|
||||
</div>
|
|
@ -1,45 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Partial template to display latest posts (home.php) as grid.
|
||||
*
|
||||
* @package understrap
|
||||
*/
|
||||
|
||||
$col = get_theme_mod( 'understrap_grid_post_columns' );
|
||||
?>
|
||||
<a href="<?php echo esc_url( get_permalink() ); ?>" rel="bookmark">
|
||||
<div class="col-md-<?php echo esc_html( $col ); ?> col-xs-12">
|
||||
|
||||
|
||||
<div class="card card-inverse ">
|
||||
|
||||
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
|
||||
<?php $alt = get_post_meta( get_post_thumbnail_id( $post->ID ), '_wp_attachment_image_alt', true ); ?>
|
||||
<img class="card-img "
|
||||
src="<?php echo esc_html( get_the_post_thumbnail_url( $post->ID, 'large' ) ) ?>" alt="<?php echo esc_html( $alt ); ?>">
|
||||
|
||||
<div class="card-img-overlay">
|
||||
|
||||
<header class="entry-header">
|
||||
<h4 class="card-title"><?php the_title(); ?></h4>
|
||||
|
||||
<?php if ( 'post' === get_post_type() ) : ?>
|
||||
|
||||
<p class="entry-meta card-text">
|
||||
<small>Posted: <?php the_date(); ?> at: <?php the_time(); ?></small>
|
||||
</p>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</header>
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</a>
|
|
@ -1,41 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* The template used for displaying page content in a vertical layout
|
||||
* The template modifies Article's ID by using post's slug to lower case as anchor point.
|
||||
*
|
||||
* @package understrap
|
||||
*/
|
||||
|
||||
?>
|
||||
<?php global $post ?>
|
||||
|
||||
<article <?php post_class(); ?> id="<?php echo esc_html( strtolower( $post->post_title ) ); ?>">
|
||||
|
||||
<header class="entry-header">
|
||||
|
||||
<?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
|
||||
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<?php echo get_the_post_thumbnail( $post->ID, 'large' ); ?>
|
||||
|
||||
<div class="entry-content">
|
||||
|
||||
<?php the_content(); ?>
|
||||
|
||||
<?php
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links">' . __( 'Pages:', 'understrap' ),
|
||||
'after' => '</div>',
|
||||
) );
|
||||
?>
|
||||
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-footer">
|
||||
|
||||
<?php edit_post_link( __( 'Edit', 'understrap' ), '<span class="edit-link">', '</span>' ); ?>
|
||||
|
||||
</footer><!-- .entry-footer -->
|
||||
|
||||
</article><!-- #post-## -->
|
10
package.json
10
package.json
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "understrap",
|
||||
"version": "0.5.1",
|
||||
"version": "0.5.2",
|
||||
"description": "Wordpress Theme framework",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
@ -25,8 +25,8 @@
|
|||
},
|
||||
"homepage": "https://understrap.com",
|
||||
"dependencies": {
|
||||
"bootstrap": "^4.0.0-alpha.5",
|
||||
"browser-sync": "^2.18.1",
|
||||
"bootstrap": "^4.0.0-alpha.6",
|
||||
"browser-sync": "^2.18.5",
|
||||
"font-awesome": "^4.7.0",
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-clone": "^1.0.0",
|
||||
|
@ -38,9 +38,9 @@
|
|||
"gulp-rename": "^1.2.2",
|
||||
"gulp-rimraf": "^0.2.1",
|
||||
"gulp-sass": "^3.0.0",
|
||||
"gulp-sourcemaps": "^2.2.0",
|
||||
"gulp-sourcemaps": "^2.2.1",
|
||||
"gulp-uglify": "^2.0.0",
|
||||
"gulp-watch": "^4.3.10",
|
||||
"gulp-watch": "^4.3.11",
|
||||
"merge2": "^1.0.2",
|
||||
"owl.carousel": "^2.2.0",
|
||||
"run-sequence": "^1.2.2",
|
||||
|
|
|
@ -1,70 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Template Name: Vertical One Page
|
||||
*
|
||||
* Template for displaying a page without sidebar even if a sidebar widget is published
|
||||
*
|
||||
* @package understrap
|
||||
*/
|
||||
|
||||
get_header();
|
||||
$container = get_theme_mod( 'understrap_container_type' );
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Exclude the posts page from being shown in this layout.
|
||||
* Order pages by their order number.
|
||||
*/
|
||||
$exclude = array();
|
||||
// exclude blog page.
|
||||
array_push( $exclude, get_option( 'page_for_posts' ) );
|
||||
// exclude WooCommerce pages.
|
||||
array_push( $exclude, get_option( 'woocommerce_cart_page_id' ) );
|
||||
array_push( $exclude, get_option( 'woocommerce_shop_page_id' ) );
|
||||
array_push( $exclude, get_option( 'woocommerce_checkout_page_id' ) );
|
||||
array_push( $exclude, get_option( 'woocommerce_pay_page_id' ) );
|
||||
array_push( $exclude, get_option( 'woocommerce_thanks_page_id' ) );
|
||||
array_push( $exclude, get_option( 'woocommerce_myaccount_page_id' ) );
|
||||
array_push( $exclude, get_option( 'woocommerce_edit_address_page_id' ) );
|
||||
array_push( $exclude, get_option( 'woocommerce_view_order_page_id' ) );
|
||||
array_push( $exclude, get_option( 'woocommerce_terms_page_id' ) );
|
||||
$args = array(
|
||||
'post_type' => 'page',
|
||||
'post__not_in' => $exclude,
|
||||
'orderby' => 'menu_order',
|
||||
'order' => 'ASC',
|
||||
);
|
||||
|
||||
$qry = new WP_Query( $args );
|
||||
?>
|
||||
|
||||
<div class="wrapper" id="full-width-page-wrapper">
|
||||
|
||||
<div class="<?php echo esc_html( $container ); ?>" id="content">
|
||||
|
||||
<div class="col-md-12 content-area" id="primary">
|
||||
|
||||
<main class="site-main" id="main" role="main">
|
||||
|
||||
<?php if ( have_posts() ) : while ( $qry->have_posts() ) : $qry->the_post() ?>
|
||||
<div class="page">
|
||||
<?php get_template_part( 'loop-templates/content', 'verticalpage' ); ?>
|
||||
</div>
|
||||
|
||||
<?php wp_reset_postdata(); // reset custom query. ?>
|
||||
<?php
|
||||
endwhile;
|
||||
endif;
|
||||
?>
|
||||
|
||||
</main><!-- #main -->
|
||||
|
||||
</div><!-- #primary -->
|
||||
|
||||
</div><!-- Container end -->
|
||||
|
||||
</div><!-- Wrapper end -->
|
||||
|
||||
<?php get_footer(); ?>
|
|
@ -1,14 +1,14 @@
|
|||
/*!
|
||||
* Bootstrap v4.0.0-alpha.5 (https://getbootstrap.com)
|
||||
* Copyright 2011-2016 The Bootstrap Authors
|
||||
* Copyright 2011-2016 Twitter, Inc.
|
||||
* Bootstrap v4.0.0-alpha.6 (https://getbootstrap.com)
|
||||
* Copyright 2011-2017 The Bootstrap Authors
|
||||
* Copyright 2011-2017 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||
*/
|
||||
|
||||
// Core variables and mixins
|
||||
@import "../../src/sass/bootstrap4/custom";
|
||||
@import "../../src/sass/bootstrap4/variables";
|
||||
@import "../../src/sass/bootstrap4/mixins";
|
||||
@import "../../src/sass/bootstrap4/custom";
|
||||
|
||||
// Reset and dependencies
|
||||
@import "../../src/sass/bootstrap4/normalize";
|
||||
|
@ -25,7 +25,7 @@
|
|||
@import "../../src/sass/bootstrap4/buttons";
|
||||
|
||||
// Components
|
||||
@import "../../src/sass/bootstrap4/animation";
|
||||
@import "../../src/sass/bootstrap4/transitions";
|
||||
@import "../../src/sass/bootstrap4/dropdown";
|
||||
@import "../../src/sass/bootstrap4/button-group";
|
||||
@import "../../src/sass/bootstrap4/input-group";
|
||||
|
@ -35,7 +35,7 @@
|
|||
@import "../../src/sass/bootstrap4/card";
|
||||
@import "../../src/sass/bootstrap4/breadcrumb";
|
||||
@import "../../src/sass/bootstrap4/pagination";
|
||||
@import "../../src/sass/bootstrap4/tags";
|
||||
@import "../../src/sass/bootstrap4/badge";
|
||||
@import "../../src/sass/bootstrap4/jumbotron";
|
||||
@import "../../src/sass/bootstrap4/alert";
|
||||
@import "../../src/sass/bootstrap4/progress";
|
||||
|
@ -52,3 +52,4 @@
|
|||
|
||||
// Utility classes
|
||||
@import "../../src/sass/bootstrap4/utilities";
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
// Just add your color code here, compile the theme.scss file to change this color everywhere
|
||||
|
||||
$font-family-sans-serif:Arial, sans-serif;
|
||||
$brand-primary: #895cd1; //#ff6d5a
|
||||
$brand-primary: #7852B2; //#ff6d5a
|
||||
|
||||
// Basics of a navbar
|
||||
$navbar-height: 60px;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// Some basic padding for all wrappers
|
||||
.wrapper { padding: $grid-gutter-width-base 0; }
|
||||
.wrapper {
|
||||
padding: $grid-gutter-width-base 0; }
|
||||
|
||||
// Reset hero wrapper padding to 0
|
||||
#wrapper-hero { padding: 0px !important; }
|
||||
|
@ -7,7 +8,9 @@
|
|||
// Adding basic Wordpress classes to pass the Wordpress.org tests
|
||||
.sticky,
|
||||
.gallery-caption,
|
||||
.bypostauthor { font-size: inherit; }
|
||||
.bypostauthor {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
// Separate sticky wrapper from main content
|
||||
.wrapper#wrapper-sticky { border-bottom: 1px solid $gray-light; }
|
||||
|
@ -66,78 +69,23 @@ a.skip-link {
|
|||
width: auto;
|
||||
}
|
||||
|
||||
/* Navbar toggle
|
||||
* Custom button for toggling the `.navbar-collapse`, powered by the collapse
|
||||
* JavaScript plugin.
|
||||
* Navbar vertical align
|
||||
*/
|
||||
.navbar-toggle {
|
||||
position: relative;
|
||||
float: right;
|
||||
margin-right: $navbar-padding-x;
|
||||
padding: 9px 10px;
|
||||
background-color: transparent;
|
||||
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
|
||||
border: 1px solid transparent;
|
||||
|
||||
/*
|
||||
* We remove the `outline` here, but later compensate by attaching `:hover` styles to `:focus`.
|
||||
*/
|
||||
&:focus { outline: 0; }
|
||||
|
||||
// Bars
|
||||
.icon-bar {
|
||||
display: block;
|
||||
width: 22px;
|
||||
height: 2px;
|
||||
border-radius: 1px;
|
||||
}
|
||||
.icon-bar + .icon-bar { margin-top: 4px; }
|
||||
.bg-primary .dropdown-menu {
|
||||
background-color:$brand-primary;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
.collapsing,
|
||||
.collapse.in {
|
||||
float: left;
|
||||
width: 100%;
|
||||
}
|
||||
.bg-success .dropdown-menu {
|
||||
background-color:$brand-success;
|
||||
}
|
||||
|
||||
.navbar-dark {
|
||||
.navbar-toggle { border: 1px solid #fff; }
|
||||
.icon-bar { border-bottom: 1px solid #fff; }
|
||||
.dropdown-menu { background-color: $gray-dark; }
|
||||
}
|
||||
|
||||
.navbar #main-menu { float:left; }
|
||||
|
||||
.navbar-nav {
|
||||
.nav-item { float: left; }
|
||||
|
||||
.nav-link {
|
||||
display: block;
|
||||
padding-top: .425rem;
|
||||
padding-bottom: .425rem;
|
||||
|
||||
+ .nav-link { margin-left: 0rem; }
|
||||
}
|
||||
|
||||
.nav-item + .nav-item { margin-left: 0rem; }
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
margin-right: .425rem;
|
||||
margin-left: .425rem;
|
||||
}
|
||||
|
||||
.post-navigation,
|
||||
.paged-navigation {
|
||||
padding: ($grid-gutter-width-base/2) 0;
|
||||
margin: $grid-gutter-width-base 0;
|
||||
border-top: 1px solid $gray-lighter;
|
||||
.bg-inverse .dropdown-menu {
|
||||
background-color:$brand-inverse;
|
||||
}
|
||||
|
||||
// Fixing BS dropdown in a dropdown
|
||||
.navbar-toggleable-md .navbar-nav .dropdown-menu {
|
||||
float:left;
|
||||
}
|
||||
|
||||
.dropdown-menu .dropdown-menu {
|
||||
position: relative;
|
||||
display: block;
|
||||
|
@ -152,7 +100,14 @@ a.skip-link {
|
|||
|
||||
.dropdown-menu .menu-item {
|
||||
width: 100%;
|
||||
a:hover { background-color: $brand-primary; }
|
||||
a.nav-link{
|
||||
margin:0px;
|
||||
padding:$nav-link-padding;
|
||||
|
||||
}
|
||||
a.nav-link:hover {
|
||||
background-color: $brand-primary;
|
||||
}
|
||||
}
|
||||
|
||||
button,
|
||||
|
@ -168,3 +123,6 @@ button,
|
|||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
// Clearing after widget
|
||||
aside.widget{clear:both;}
|
|
@ -11,14 +11,11 @@
|
|||
|
||||
<!-- ******************* The Hero Widget Area ******************* -->
|
||||
|
||||
<div class="wrapper" id="wrapper-hero">
|
||||
|
||||
<div class="owl-carousel">
|
||||
|
||||
<?php dynamic_sidebar( 'hero' ); ?>
|
||||
|
||||
</div><!-- .owl-carousel -->
|
||||
|
||||
</div><!-- #wrapper-hero -->
|
||||
|
||||
</div><!-- closing owl carousel -->
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -7,7 +7,7 @@ Description: Combination of Automattic´s _s theme and Bootstrap 4. Made as a so
|
|||
That downloads everything and moves it in place so that you can recompile your CSS and JS files;
|
||||
A developer version (with Gulp/node and Sass sources) is available on gitHub: https://github.com/holger1411/understrap
|
||||
A child theme is available on Github, too: https://github.com/holger1411/understrap-child;
|
||||
Version: 0.5.1
|
||||
Version: 0.5.2
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: understrap
|
||||
|
|
Reference in New Issue