PluginProbe
LoftLoader / 2.1.9
LoftLoader v2.1.9
trunk 1.0.0 1.0.1 1.0.2 2.0.0 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.3 2.3.1 2.3.2 2.3.3 All 34 releases
loftloader / inc / configs / customize-more.php

customize-more.php in LoftLoader 2.1.9, at inc/configs/customize-more.php

50 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Load loftloader lite more section
4 *
5 * @since version 2.1.3
6 */
7 add_action( 'customize_register', 'loftloader_customize_more', 45 );
8 function loftloader_customize_more( $wp_customize ) {
9 global $loftloader_default_settings;
10
11 $wp_customize->add_section( new LoftLoader_Customize_Section( $wp_customize, 'loftloader_section_more', array(
12 'title' => esc_html__( 'More', 'loftloader' ),
13 'description' => '',
14 'priority' => 50
15 ) ) );
16
17 $wp_customize->add_setting( new WP_Customize_Setting( $wp_customize, 'loftloader_show_close_timer', array(
18 'default' => $loftloader_default_settings['loftloader_show_close_timer'],
19 'transport' => 'postMessage',
20 'type' => 'option',
21 'sanitize_callback' => 'absint'
22 ) ) );
23 $wp_customize->add_setting( new WP_Customize_Setting( $wp_customize, 'loftloader_show_close_tip', array(
24 'default' => $loftloader_default_settings['loftloader_show_close_tip'],
25 'transport' => 'postMessage',
26 'type' => 'option',
27 'sanitize_callback' => 'sanitize_text_field'
28 ) ) );
29
30 $wp_customize->add_control( new LoftLoader_Customize_Slider_Control( $wp_customize, 'loftloader_show_close_timer', array(
31 'type' => 'slider',
32 'label' => esc_html__( 'Show Close Button after', 'loftloader' ),
33 'after_text' => 'second(s)',
34 'input_attrs' => array(
35 'data-default' => '15',
36 'data-min' => '5',
37 'data-max' => '20',
38 'data-step' => '1'
39 ),
40 'input_class' => 'loftloader-show-close-timer',
41 'section' => 'loftloader_section_more',
42 'settings' => 'loftloader_show_close_timer'
43 ) ) );
44 $wp_customize->add_control( new LoftLoader_Customize_Control( $wp_customize, 'loftloader_show_close_tip', array(
45 'type' => 'text',
46 'label' => esc_html__( 'Description for Close Button', 'loftloader' ),
47 'section' => 'loftloader_section_more',
48 'settings' => 'loftloader_show_close_tip'
49 ) ) );
50 }