'; } 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' ]; } // 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' ]; } $sSvg .= ' '.$oCase[ 'label' ].' '; if( isset( $oCase[ 'title' ] ) ){ $sSvg .= ''.$oCase[ 'title' ].''; } if( isset( $oCase[ 'options' ][ 'text' ] ) ){ $sSvg .= ''; } if( isset( $oCase[ 'options' ][ 'link' ] ) ){ $sSvg .= ''; } return $sSvg; } }