); } /** * [build_estimated_cost description] * * @param [type] $attrs [description]. * * @return [type] [description] */ private function build_materials( $attrs ) { if ( empty( $attrs['material'] ) ) { return; } $tools = Str::to_arr_no_empty( $attrs['tools'] ); if ( empty( $tools ) ) { return; } return sprintf( '

%2$s %1$s

', $attrs['material'], __( 'Materials:', 'rank-math-pro' ) ); } /** * Add Duration. * * @param [type] $data [description]. * @param [type] $attrs [description]. */ private function add_estimated_cost( &$data, $attrs ) { if ( empty( $attrs['estimatedCost'] ) ) { return; } $data['estimatedCost'] = [ '@type' => 'MonetaryAmount', 'currency' => ! empty( $attrs['estimatedCostCurrency'] ) ? $attrs['estimatedCostCurrency'] : 'USD', 'value' => $attrs['estimatedCost'], ]; } /** * Add Duration. * * @param [type] $data [description]. * @param [type] $attrs [description]. */ private function add_supplies( &$data, $attrs ) { if ( empty( $attrs['supply'] ) ) { return; } $supplies = Str::to_arr_no_empty( $attrs['supply'] ); if ( empty( $supplies ) ) { return; } $supply = []; foreach ( $supplies as $value ) { $supply[] = [ '@type' => 'HowToSupply', 'name' => $value, ]; } $data['supply'] = $supply; } /** * Add Duration. * * @param [type] $data [description]. * @param [type] $attrs [description]. */ private function add_tools( &$data, $attrs ) { if ( empty( $attrs['tools'] ) ) { return; } $tools = Str::to_arr_no_empty( $attrs['tools'] ); if ( empty( $tools ) ) { return; } $tool = []; foreach ( $tools as $value ) { $tool[] = [ '@type' => 'HowToTool', 'name' => $value, ]; } $data['tool'] = $tool; } /** * Add Duration. * * @param [type] $data [description]. * @param [type] $attrs [description]. */ private function add_materials( &$data, $attrs ) { if ( empty( $attrs['material'] ) ) { return; } $data['material'] = $attrs['material']; } } Ống nhòm Bushnell 10x42 HD siêu nét du lịch săn ong

Ống nhòm Bushnell 10×42 HD siêu nét du lịch săn ong

1.500.000

Contact Me on Zalo
0848025999