'; } if( isset( $oCase[ 'options' ][ 'text' ] ) ){ $sLabel = str_replace( "\\", "\\'", isset( $oCase[ 'label' ] ) ? $oCase[ 'label' ] : '' ); $sTitle = str_replace( "\\", "\\'", isset( $oCase[ 'title' ] ) ? $oCase[ 'title' ] : '' ); $sText = str_replace( "\\", "\\'", $oCase[ 'options' ][ 'text' ] ); $sLink = str_replace( "\\", "\\'", isset( $oCase[ 'options' ][ 'link' ] ) ? $oCase[ 'options' ][ 'link' ] : '' ); if( isset( $oCase[ 'options' ][ 'textlink' ] ) ){ $sLink = str_replace( "\\", "\\'", $oCase[ 'options' ][ 'textlink' ] ); } $sSvg .= ''; } // Case color $sColor = $opt[ 'color' ]; if( isset( $oCase[ 'options' ][ 'color' ] ) ){ $sColor = $oCase[ 'options' ][ 'color' ]; } // Left LED color $sLeftLedColor = $opt[ 'leftLedColor' ]; if( isset( $oCase[ 'options' ][ 'leftLedColor' ] ) ){ $sLeftLedColor = $oCase[ 'options' ][ 'leftLedColor' ]; } // Right LED color $sRightLedColor = $opt[ 'rightLedColor' ]; if( isset( $oCase[ 'options' ][ 'rightLedColor' ] ) ){ $sRightLedColor = $oCase[ 'options' ][ 'rightLedColor' ]; } // Label background color $sLabelBgColor = $opt[ 'labelBgColor' ]; if( isset( $oCase[ 'options' ][ 'labelBgColor' ] ) ){ $sLabelBgColor = $oCase[ 'options' ][ 'labelBgColor' ]; } // Label text color $sLabelTxtColor = $opt[ 'labelTxtColor' ]; if( isset( $oCase[ 'options' ][ 'labelTxtColor' ] ) ){ $sLabelTxtColor = $oCase[ 'options' ][ 'labelTxtColor' ]; } // for metallic conductors $sConductors = ''; for( $i=0; $i<8; $i++ ){ $sConductors .= ''; } $sSvg .= ' '.$oCase[ 'label' ].' // RIGHT LED // LEFT LED '.$sConductors; if( isset( $oCase[ 'title' ] ) ){ $sSvg .= ''.$oCase[ 'title' ].''; } if( isset( $oCase[ 'options' ][ 'text' ] ) ){ $sSvg .= ''; } if( isset( $oCase[ 'options' ][ 'link' ] ) ){ $sSvg .= ''; } return $sSvg; } }