balmet.com

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

accordion.php (2420B)


      1 <?php
      2 /**
      3  * Redux Pro Box Accordion config.
      4  *
      5  * For full documentation, please visit: http:https://devs.redux.io/
      6  *
      7  * @package Redux Pro
      8  */
      9 
     10 defined( 'ABSPATH' ) || exit;
     11 
     12 Redux::setSection(
     13 	$opt_name,
     14 	array(
     15 		'title'      => esc_html__( 'Accordion Field', 'your-textdomain-here' ),
     16 		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/premium/accordion.html" target="_blank">https://devs.redux.io/premium/accordion.html</a>',
     17 		'subsection' => true,
     18 		'fields'     => array(
     19 			array(
     20 				'id'       => 'accordion-section-1',
     21 				'type'     => 'accordion',
     22 				'title'    => esc_html__( 'Accordion Section One', 'your-textdomain-here' ),
     23 				'subtitle' => esc_html__( 'Section one with subtitle', 'your-textdomain-here' ),
     24 				'position' => 'start',
     25 			),
     26 			array(
     27 				'id'       => 'opt-blank-text-1',
     28 				'type'     => 'text',
     29 				'title'    => esc_html__( 'Textbox for some noble purpose.', 'your-textdomain-here' ),
     30 				'subtitle' => esc_html__( 'Frailty, thy name is woman!', 'your-textdomain-here' ),
     31 			),
     32 			array(
     33 				'id'       => 'opt-blank-text-2',
     34 				'type'     => 'switch',
     35 				'title'    => esc_html__( 'Switch, for some other important task!', 'your-textdomain-here' ),
     36 				'subtitle' => esc_html__( 'Physician, heal thyself!', 'your-textdomain-here' ),
     37 			),
     38 			array(
     39 				'id'       => 'accordion-section-end-1',
     40 				'type'     => 'accordion',
     41 				'position' => 'end',
     42 			),
     43 			array(
     44 				'id'       => 'accordion-section-2',
     45 				'type'     => 'accordion',
     46 				'title'    => esc_html__( 'Accordion Section Two (no subtitle)', 'your-textdomain-here' ),
     47 				'position' => 'start',
     48 				'open'     => true,
     49 			),
     50 			array(
     51 				'id'       => 'opt-blank-text-3',
     52 				'type'     => 'text',
     53 				'title'    => esc_html__( 'Look, another sample textbox.', 'your-textdomain-here' ),
     54 				'subtitle' => esc_html__( 'The tartness of his face sours ripe grapes.', 'your-textdomain-here' ),
     55 			),
     56 			array(
     57 				'id'       => 'opt-blank-text-4',
     58 				'type'     => 'switch',
     59 				'title'    => esc_html__( 'Yes, another switch, but you\'re free to use any field you like.', 'your-textdomain-here' ),
     60 				'subtitle' => esc_html__( 'I scorn you, scurvy companion!', 'your-textdomain-here' ),
     61 			),
     62 			array(
     63 				'id'       => 'accordion-section-end-2',
     64 				'type'     => 'accordion',
     65 				'position' => 'end',
     66 			),
     67 		),
     68 	)
     69 );