| Server IP : 145.239.37.162 / Your IP : 216.73.217.81 Web Server : Apache System : Linux webm003.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaa ( 38250) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaa/www1/wp-content/plugins/transpix-common/meta-box/inc/walkers/ |
Upload File : |
<?php
/**
* The input list walker for checkbox and radio list fields.
*
* @package Meta Box
*/
/**
* The input list walker class.
*/
class RWMB_Walker_Input_List extends RWMB_Walker_Base {
/**
* Starts the list before the elements are added.
*
* @param string $output Passed by reference. Used to append additional content.
* @param int $depth Depth of the item.
* @param array $args An array of additional arguments.
*/
public function start_lvl( &$output, $depth = 0, $args = array() ) {
$output .= '<ul class="rwmb-input-list">';
}
/**
* Ends the list of after the elements are added.
*
* @param string $output Passed by reference. Used to append additional content.
* @param int $depth Depth of the item.
* @param array $args An array of additional arguments.
*/
public function end_lvl( &$output, $depth = 0, $args = array() ) {
$output .= '</ul>';
}
/**
* Start the element output.
*
* @param string $output Passed by reference. Used to append additional content.
* @param object $object The data object.
* @param int $depth Depth of the item.
* @param array $args An array of additional arguments.
* @param int $current_object_id ID of the current item.
*/
public function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 ) {
$attributes = RWMB_Field::call( 'get_attributes', $this->field, $object->value );
$output .= sprintf(
'<li><label><input %s %s>%s</label>',
RWMB_Field::render_attributes( $attributes ),
checked( in_array( $object->value, $this->meta ), true, false ),
RWMB_Field::filter( 'choice_label', $object->label, $this->field, $object )
);
}
/**
* Ends the element output, if needed.
*
* @param string $output Passed by reference. Used to append additional content.
* @param object $object The data object.
* @param int $depth Depth of the item.
* @param array $args An array of additional arguments.
*/
public function end_el( &$output, $object, $depth = 0, $args = array() ) {
$output .= '</li>';
}
}