array( 'success' => array( 'type' => 'css', 'icon' => 'bullet', ), 'disabled' => array( 'type' => 'css', 'icon' => 'bullet', ) ), 'check' => array( 'success' => array( 'type' => 'svg', 'icon' => '', ), 'green' => array( 'type' => 'svg', 'icon' => '', ), 'prefilled' => array( 'type' => 'svg', 'icon' => '', ), 'error' => array( 'type' => 'svg', 'icon' => '', ), 'failed' => array( 'type' => 'svg', 'icon' => '', ), 'empty' => array( 'type' => 'svg', 'icon' => '', ), ), 'arrow-right-alt2' => array( 'success' => array( 'type' => 'dashicons', 'icon' => 'dashicons-arrow-right-alt2', ), ), 'arrow-right' => array( 'normal' => array( 'type' => 'dashicons', 'icon' => 'dashicons-arrow-right', ), ), 'sync' => array( 'success' => array( 'type' => 'dashicons', 'icon' => 'dashicons-update', ), 'error' => array( 'type' => 'dashicons', 'icon' => 'dashicons-update', ), 'disabled' => array( 'type' => 'dashicons', 'icon' => 'dashicons-update', ), ), 'file' => array( 'success' => array( 'type' => 'dashicons', 'icon' => 'dashicons-media-default', ), 'disabled' => array( 'type' => 'dashicons', 'icon' => 'dashicons-media-default', ), ), 'help' => array( 'normal' => array( 'type' => 'dashicons', 'icon' => 'dashicons-editor-help', ), ) ); if ( $tooltip ) { $tooltip = 'rsssl-tooltip="' . $tooltip . '" flow="right"'; } else if ( isset($icons[$icon_name][$status]['tooltip']) ) { $tooltip = 'rsssl-tooltip="' . $icons[$icon_name][$status]['tooltip'] . '" flow="left"'; } $icon = $icons[$icon_name][$status]['icon']; $type = $icons[$icon_name][$status]['type']; if ( $type === 'svg' ){ $html = '
' . $icon . '
'; } else if ( $type === 'dashicons' ) { $html = '
'; } else { $html = '
'; } return ''.$html.''; }