GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/parhudrw/ve.anqa.it/wp-content/plugins/depicter/app/src/Document/Models/Common/Styles/Svg.php
<?php
namespace Depicter\Document\Models\Common\Styles;


use Depicter\Document\CSS\Breakpoints;

class Svg extends States
{

	public function set( $css ) {
		$devices = Breakpoints::names();
		foreach ( $devices as $device ) {
			if ( !empty( $this->{$device}->fill ) ) {
				$css[ $device ][ 'fill' ] = $this->{$device}->fill;
			}

			if ( !empty( $this->{$device}->stroke ) ) {
				$css[ $device ][ 'stroke' ] = $this->{$device}->stroke;
			}

			if ( !empty( $this->{$device}->strokeWidth ) ) {
				$css[ $device ][ 'stroke-width' ] = $this->{$device}->strokeWidth->value . $this->{$device}->strokeWidth->unit;
			}

			if ( !empty( $this->{$device}->color ) ) {
				$css[ $device ][ 'color' ] = $this->{$device}->color;
			}

			if ( !empty( $this->{$device}->stopColor ) ) {
				$css[ $device ][ 'stop-color' ] = $this->{$device}->stopColor;
			}
		}

		return $css;
	}
}