balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

disable-section.php (1179B)


      1 <?php
      2 /**
      3  * Redux Framework disable section config.
      4  * For full documentation, please visit: http://devs.redux.io/
      5  *
      6  * @package Redux Framework
      7  */
      8 
      9 defined( 'ABSPATH' ) || exit;
     10 
     11 Redux::set_section(
     12 	$opt_name,
     13 	array(
     14 		'title'            => esc_html__( 'Disable Section', 'your-textdomain-here' ),
     15 		'id'               => 'basic-checkbox-section-disable',
     16 		'subsection'       => true,
     17 		'customizer_width' => '450px',
     18 		'disabled'         => true,
     19 		'desc'             => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/checkbox.html" target="_blank">https://devs.redux.io/core-fields/checkbox.html</a>',
     20 		'fields'           => array(
     21 			array(
     22 				'id'       => 'opt-checkbox-section-disable',
     23 				'type'     => 'checkbox',
     24 				'title'    => esc_html__( 'Checkbox Option', 'your-textdomain-here' ),
     25 				'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
     26 				'desc'     => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
     27 				'default'  => '1', // 1 = on | 0 = off.
     28 			),
     29 		),
     30 	)
     31 );