Import legacy nurinda.co.id website

This commit is contained in:
dirga committed 2026-10-01 14:27:19 +07:00
1 parent 3f59bb9038
commit 6e21646ac4
13389 files changed
+3246690

No files matched your search

@@ -0,0 +1,32 @@
<?php
/**
* Select Walker
* For generating Select fields
*/
class MASHSB_RWMB_Select_Walker extends MASHSB_RWMB_Walker
{
/**
* @see Walker::start_el()
*
* @param string $output Passed by reference. Used to append additional content.
* @param object $object Item
* @param int $depth Depth of Item.
* @param int $current_object_id Item id.
* @param array $args
*/
public function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 )
{
$label = $this->db_fields['label'];
$id = $this->db_fields['id'];
$meta = $this->meta;
$indent = str_repeat( "&nbsp;", $depth * 4 );
$output .= sprintf(
'<option value="%s" %s>%s%s</option>',
$object->$id,
selected( in_array( $object->$id, $meta ), 1, false ),
$indent,
$object->$label
);
}
}