/** * Finnes EPD-lenke et eller annet sted på produktet? * - Sjekker ALLE postmeta-felt (inkl. ACF / custom felter) * - Sjekker post_content (beskrivelse) * - Sjekker dokumentlisten (norlux_documents) hvis dere bruker den * - Sjekker PDF-vedlegg som matcher EPD_*.pdf * - Arver fra varianter hvis produktet er variabelt */ function nlx_product_has_epd( int $product_id ): bool { // Treffer "EPD_*.pdf" (case-insensitivt). Slapper også av rundt skilletegn. $epd_url_regex = '/(?:^|[\/_-])EPD[^"\s<>]*\.pdf/i'; // 0) Hvis variabelt produkt: arve fra varianter if ( 'product' === get_post_type( $product_id ) ) { $product = wc_get_product( $product_id ); if ( $product && $product->is_type( 'variable' ) ) { foreach ( $product->get_children() as $vid ) { if ( nlx_product_has_epd_single( (int) $vid, $epd_url_regex ) ) { return true; } } } } // 1) Sjekk selve produktet if ( nlx_product_has_epd_single( $product_id, $epd_url_regex ) ) { return true; } return false; } /** * Sjekker én post-ID (produkt/variant). */ function nlx_product_has_epd_single( int $post_id, string $epd_url_regex ): bool { // A) Sjekk dokument-liste hvis brukt $docs = get_post_meta( $post_id, 'norlux_documents', true ); if ( ! empty( $docs ) ) { $blob = is_scalar( $docs ) ? (string) $docs : wp_json_encode( $docs ); if ( stripos( $blob, 'EPD' ) !== false || preg_match( $epd_url_regex, $blob ) ) { return true; } } // B) Sjekk ALLE postmeta-felter for EPD_*.pdf $all_meta = get_post_meta( $post_id ); foreach ( $all_meta as $key => $values ) { foreach ( (array) $values as $v ) { $blob = is_scalar( $v ) ? (string) $v : wp_json_encode( $v ); if ( preg_match( $epd_url_regex, $blob ) ) { return true; } } } // C) Sjekk innholdet (beskrivelse / kort beskrivelse ligger ofte i meta, men tar post_content også) $post = get_post( $post_id ); if ( $post && ! empty( $post->post_content ) ) { if ( preg_match( $epd_url_regex, $post->post_content ) ) { return true; } } // D) Sjekk PDF-vedlegg som er "attached" til posten $attachments = get_attached_media( 'application/pdf', $post_id ); if ( ! empty( $attachments ) ) { foreach ( $attachments as $att ) { $url = wp_get_attachment_url( $att->ID ); $file = get_post_meta( $att->ID, '_wp_attached_file', true ); if ( ($url && preg_match( $epd_url_regex, $url )) || ($file && preg_match( $epd_url_regex, (string) $file )) ) { return true; } } } return false; } LED Strip SOB 6W/m | Norlux

LED Strip SOB 6W/m

  • Soft light - point-free, linear light, very flexible, high reliability.

  • Good flexibility - High quality vapor silicone, good softness and flexibility.

  • Smooth line technology - brings new lighting as an alternative to COB LED -strips

Read more

Category:
CE markedIP20: Indoor use.Insulation class 2: Double insulated and should not be connected to ground.Application: Indoor

Product info

DESCRIPTION

Led Strip SOB has a perfectly even and pleasant light without visible dots or spots, creating an atmosphere that is both welcoming and functional. Led The strip has high lumens per watt which gives it a flexible installation so you can customize the lighting to your needs and preferences. With 3-step MacAdam color consistency, you can be confident that our light remains stable and uniform over time. Choose between 2700K or 3000K. This LED The strip has a beam angle of 150° and CRI 90, which reproduces colors in a natural and accurate way. Choose between IP20 or IP65 versions for both indoor and outdoor use.

Documentation

SPECIFICATIONS

Product

IP rating

IP20

Color

White

Length [mm]

5000

Width [mm]

3

Height [mm]

8

Max. width, LED -strip [mm]

8

Lifetime [h]

50 000

Operating temperature [°C]

-20 - 40

LIGHTING

Spreading angle [°]

150°

Color temperature [K]

3000

Color rendering [CRI/Ra]

90

Color code

930

Color Tolerance [SDCM]

3

LED per meter

288

ASSEMBLY / CONNECTION

Connection

Cable 2m

Must be mounted in profile

No

Cutting point [mm]

55.56

Maximum length [m]

5

ELECTRICAL DATA

Dimming type

Depending on the driver

Voltage [V]

24VDC

Insulation class

2

Power [W/m]

6

Luminous efficacy [lm/W]

110

Starting current Imax [A]

90

Starting current time [µs]

10