adding theme customizer options for slider

This commit is contained in:
Holger Koenemann 2015-01-23 16:15:57 +01:00
parent d551dbe389
commit 002665d98f
53 changed files with 22 additions and 1 deletions

View File

@ -32,6 +32,8 @@
<!-- Loads slider script and settings if a widget on pos hero is published -->
<?php if ( is_active_sidebar( 'hero' ) ): ?>
<script>
jQuery(document).ready(function() {
var owl = jQuery('.owl-carousel');
@ -39,7 +41,7 @@
items:1,
loop:true,
autoplay:true,
autoplayTimeout:5000,
autoplayTimeout:<?php echo get_theme_mod( 'understrap_theme_slider_time_setting' );?>,
animateOut: 'fadeOut',
animateIn: 'fadeIn',
nav: false,

View File

@ -18,6 +18,25 @@ function understrap_customize_register( $wp_customize ) {
}
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', 'understrap' ),
'section' => 'understrap_theme_slider_options',
'type' => 'text',
'settings' => 'understrap_theme_slider_time_setting'
) );
}
add_action( 'customize_register', 'understrap_theme_customize_register' );
/**
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
*/

0
sass/jasny-offcanvas/_alerts-fixed.scss Normal file → Executable file
View File

0
sass/jasny-offcanvas/_button-labels.scss Normal file → Executable file
View File

0
sass/jasny-offcanvas/_fileinput.scss Normal file → Executable file
View File

0
sass/jasny-offcanvas/_grid-container-smooth.scss Normal file → Executable file
View File

0
sass/jasny-offcanvas/_nav-tab-alignment.scss Normal file → Executable file
View File

0
sass/jasny-offcanvas/_navmenu.scss Normal file → Executable file
View File

0
sass/jasny-offcanvas/_offcanvas.scss Normal file → Executable file
View File

0
sass/jasny-offcanvas/_rowlink.scss Normal file → Executable file
View File

0
sass/jasny-offcanvas/_variables.scss Normal file → Executable file
View File

0
sass/jasny-offcanvas/jasny-bootstrap.scss Normal file → Executable file
View File

0
sass/owlcarousel-slider/_mixins.scss Normal file → Executable file
View File

0
sass/owlcarousel-slider/_theme.scss Normal file → Executable file
View File

0
sass/owlcarousel-slider/owl.animate.scss Normal file → Executable file
View File

0
sass/owlcarousel-slider/owl.autoheight.scss Normal file → Executable file
View File

0
sass/owlcarousel-slider/owl.carousel.scss Normal file → Executable file
View File

0
sass/owlcarousel-slider/owl.lazyload.scss Normal file → Executable file
View File

0
sass/owlcarousel-slider/owl.theme.default.scss Normal file → Executable file
View File

0
sass/owlcarousel-slider/owl.theme.green.scss Normal file → Executable file
View File

0
sass/owlcarousel-slider/owl.video.scss Normal file → Executable file
View File

0
sass/underscores/_reset.scss Normal file → Executable file
View File

0
sass/underscores/elements/_elements.scss Normal file → Executable file
View File

0
sass/underscores/elements/_lists.scss Normal file → Executable file
View File

0
sass/underscores/elements/_tables.scss Normal file → Executable file
View File

0
sass/underscores/forms/_buttons.scss Normal file → Executable file
View File

0
sass/underscores/forms/_fields.scss Normal file → Executable file
View File

0
sass/underscores/forms/_forms.scss Normal file → Executable file
View File

0
sass/underscores/layout/_content-sidebar.scss Normal file → Executable file
View File

0
sass/underscores/layout/_sidebar-content.scss Normal file → Executable file
View File

0
sass/underscores/media/_captions.scss Normal file → Executable file
View File

0
sass/underscores/media/_galleries.scss Normal file → Executable file
View File

0
sass/underscores/media/_media.scss Normal file → Executable file
View File

0
sass/underscores/mixins/_mixins-master.scss Normal file → Executable file
View File

0
sass/underscores/modules/_accessibility.scss Normal file → Executable file
View File

0
sass/underscores/modules/_alignments.scss Normal file → Executable file
View File

0
sass/underscores/modules/_clearings.scss Normal file → Executable file
View File

0
sass/underscores/modules/_infinite-scroll.scss Normal file → Executable file
View File

0
sass/underscores/navigation/_links.scss Normal file → Executable file
View File

0
sass/underscores/navigation/_menus.scss Normal file → Executable file
View File

0
sass/underscores/navigation/_navigation.scss Normal file → Executable file
View File

0
sass/underscores/site/_site.scss Normal file → Executable file
View File

0
sass/underscores/site/primary/_asides.scss Normal file → Executable file
View File

0
sass/underscores/site/primary/_comments.scss Normal file → Executable file
View File

0
sass/underscores/site/primary/_posts-and-pages.scss Normal file → Executable file
View File

0
sass/underscores/site/secondary/_widgets.scss Normal file → Executable file
View File

0
sass/underscores/typography/_copy.scss Normal file → Executable file
View File

0
sass/underscores/typography/_headings.scss Normal file → Executable file
View File

0
sass/underscores/typography/_typography.scss Normal file → Executable file
View File

0
sass/underscores/variables-site/_colors.scss Normal file → Executable file
View File

0
sass/underscores/variables-site/_structure.scss Normal file → Executable file
View File

0
sass/underscores/variables-site/_typography.scss Normal file → Executable file
View File

0
sass/underscores/variables-site/_variables-site.scss Normal file → Executable file
View File