balmet.com

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

switch.php (2509B)


      1 <?php
      2 /**
      3  * Redux Framework switch 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__( 'Switch', 'your-textdomain-here' ),
     15 		'id'         => 'switch_buttonset-switch',
     16 		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/switch.html" target="_blank">https://devs.redux.io/core-fields/switch.html</a>',
     17 		'subsection' => true,
     18 		'fields'     => array(
     19 			array(
     20 				'id'       => 'switch-on',
     21 				'type'     => 'switch',
     22 				'title'    => esc_html__( 'Switch On', 'your-textdomain-here' ),
     23 				'subtitle' => esc_html__( 'Look, it\'s on!', 'your-textdomain-here' ),
     24 				'default'  => true,
     25 			),
     26 			array(
     27 				'id'       => 'switch-off',
     28 				'type'     => 'switch',
     29 				'title'    => esc_html__( 'Switch Off', 'your-textdomain-here' ),
     30 				'subtitle' => esc_html__( 'Look, it\'s on!', 'your-textdomain-here' ),
     31 				'default'  => false,
     32 			),
     33 			array(
     34 				'id'       => 'switch-parent',
     35 				'type'     => 'switch',
     36 				'title'    => esc_html__( 'Switch - Nested Children, Enable to show', 'your-textdomain-here' ),
     37 				'subtitle' => esc_html__( 'Look, it\'s on! Also hidden child elements!', 'your-textdomain-here' ),
     38 				'default'  => false,
     39 				'on'       => 'Enabled',
     40 				'off'      => 'Disabled',
     41 			),
     42 			array(
     43 				'id'       => 'switch-child1',
     44 				'type'     => 'switch',
     45 				'required' => array( 'switch-parent', '=', true ),
     46 				'title'    => esc_html__( 'Switch - This and the next switch required for patterns to show', 'your-textdomain-here' ),
     47 				'subtitle' => esc_html__( 'Also called a "fold" parent.', 'your-textdomain-here' ),
     48 				'desc'     => esc_html__( 'Items set with a fold to this ID will hide unless this is set to the appropriate value.', 'your-textdomain-here' ),
     49 				'default'  => false,
     50 			),
     51 			array(
     52 				'id'       => 'switch-child2',
     53 				'type'     => 'switch',
     54 				'required' => array( 'switch-parent', '=', true ),
     55 				'title'    => esc_html__( 'Switch2 - Enable the above switch and this one for patterns to show', 'your-textdomain-here' ),
     56 				'subtitle' => esc_html__( 'Also called a "fold" parent.', 'your-textdomain-here' ),
     57 				'desc'     => esc_html__( 'Items set with a fold to this ID will hide unless this is set to the appropriate value.', 'your-textdomain-here' ),
     58 				'default'  => false,
     59 			),
     60 		),
     61 	)
     62 );