balmet.com

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

section.php (1791B)


      1 <?php
      2 /**
      3  * Redux Framework 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__( 'Section', 'your-textdomain-here' ),
     15 		'id'         => 'presentation-section',
     16 		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/section.html" target="_blank">https://devs.redux.io/core-fields/section.html</a>',
     17 		'subsection' => true,
     18 		'fields'     => array(
     19 			array(
     20 				'id'       => 'section-start',
     21 				'type'     => 'section',
     22 				'title'    => esc_html__( 'Section Example', 'your-textdomain-here' ),
     23 				'subtitle' => esc_html__( 'With the "section" field you can create indented option sections.', 'your-textdomain-here' ),
     24 				'indent'   => true, // Indent all options below until the next 'section' option is set.
     25 			),
     26 			array(
     27 				'id'       => 'section-test',
     28 				'type'     => 'text',
     29 				'title'    => esc_html__( 'Field Title', 'your-textdomain-here' ),
     30 				'subtitle' => esc_html__( 'Field Subtitle', 'your-textdomain-here' ),
     31 			),
     32 			array(
     33 				'id'       => 'section-test-media',
     34 				'type'     => 'media',
     35 				'title'    => esc_html__( 'Field Title', 'your-textdomain-here' ),
     36 				'subtitle' => esc_html__( 'Field Subtitle', 'your-textdomain-here' ),
     37 			),
     38 			array(
     39 				'id'     => 'section-end',
     40 				'type'   => 'section',
     41 				'indent' => false, // Indent all options below until the next 'section' option is set.
     42 			),
     43 			array(
     44 				'id'   => 'section-info',
     45 				'type' => 'info',
     46 				'desc' => esc_html__( 'And now you can add more fields below and outside of the indent.', 'your-textdomain-here' ),
     47 			),
     48 		),
     49 	)
     50 );