0.2.8 Adding Grunt and basic Grunt SASS task
This commit is contained in:
parent
d551dbe389
commit
b0846efaae
|
@ -5,6 +5,13 @@ Live Demo: http://holgerkoenemann.de/understrap/
|
||||||
|
|
||||||
Changelog
|
Changelog
|
||||||
=
|
=
|
||||||
|
- **0.2.8 Feb. 6th 2015**
|
||||||
|
- Adding Grunt and Grunt SASS task
|
||||||
|
|
||||||
|
|
||||||
|
- **0.2.7 Jan. 26th 2015**
|
||||||
|
- Adding some basic theme option for the build-in slider script
|
||||||
|
|
||||||
- **0.2.6 Dec. 28th 2014**
|
- **0.2.6 Dec. 28th 2014**
|
||||||
- CLean up
|
- CLean up
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -32,14 +32,16 @@
|
||||||
|
|
||||||
<!-- Loads slider script and settings if a widget on pos hero is published -->
|
<!-- Loads slider script and settings if a widget on pos hero is published -->
|
||||||
<?php if ( is_active_sidebar( 'hero' ) ): ?>
|
<?php if ( is_active_sidebar( 'hero' ) ): ?>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
jQuery(document).ready(function() {
|
jQuery(document).ready(function() {
|
||||||
var owl = jQuery('.owl-carousel');
|
var owl = jQuery('.owl-carousel');
|
||||||
owl.owlCarousel({
|
owl.owlCarousel({
|
||||||
items:1,
|
items:1,
|
||||||
loop:true,
|
loop:<?php echo get_theme_mod( 'understrap_theme_slider_loop_setting' );?>,
|
||||||
autoplay:true,
|
autoplay:true,
|
||||||
autoplayTimeout:5000,
|
autoplayTimeout:<?php echo get_theme_mod( 'understrap_theme_slider_time_setting' );?>,
|
||||||
animateOut: 'fadeOut',
|
animateOut: 'fadeOut',
|
||||||
animateIn: 'fadeIn',
|
animateIn: 'fadeIn',
|
||||||
nav: false,
|
nav: false,
|
||||||
|
|
|
@ -18,6 +18,40 @@ function understrap_customize_register( $wp_customize ) {
|
||||||
}
|
}
|
||||||
add_action( 'customize_register', 'understrap_customize_register' );
|
add_action( 'customize_register', 'understrap_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_time_setting', array(
|
||||||
|
'default' => '5000'
|
||||||
|
) );
|
||||||
|
|
||||||
|
$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'
|
||||||
|
) );
|
||||||
|
|
||||||
|
$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'
|
||||||
|
) );
|
||||||
|
}
|
||||||
|
add_action( 'customize_register', 'understrap_theme_customize_register' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
|
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,7 +4,7 @@ Theme URI: http://holgerkoenemann.de/understrap
|
||||||
Author: Holger Koenemann
|
Author: Holger Koenemann
|
||||||
Author URI: http://www.holgerkoenemann.de
|
Author URI: http://www.holgerkoenemann.de
|
||||||
Description: Combination of Automattic´s _s theme and Bootstrap SASS
|
Description: Combination of Automattic´s _s theme and Bootstrap SASS
|
||||||
Version: 0.2.6
|
Version: 0.2.8
|
||||||
License: GNU General Public License v2 or later
|
License: GNU General Public License v2 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
Text Domain: understrap
|
Text Domain: understrap
|
||||||
|
|
Reference in New Issue