diff --git a/wp_theme_settings.php b/wp_theme_settings.php index b1a8852..947dc34 100644 --- a/wp_theme_settings.php +++ b/wp_theme_settings.php @@ -230,14 +230,17 @@ private function binput($array){ // Build text case 'text': - echo ''; + echo ''; + if (array_key_exists('tooltip', $array)) { + echo '
!'.$array['tooltip'].'
'; + } break; // Build file case 'file': - if (array_key_exists('preview', $array) && $array['preview'] == true) { - echo ''; - } - echo ''; + if (array_key_exists('preview', $array) && $array['preview'] == true) { + echo ''; + } + echo ''; break; // Build fontawesome selector case 'fa': @@ -255,6 +258,9 @@ private function binput($array){ echo ''; } echo ''; + if (array_key_exists('tooltip', $array)) { + echo '
!'.$array['tooltip'].'
'; + } break; // Build Radio case 'radio': @@ -265,21 +271,25 @@ private function binput($array){ '.$value.' '; } + break; // Build Checkbox case 'checkbox': - echo ' -
-
'; + echo ' +
+
'; break; // Build Toggle Switch case 'toggle': - echo ' - - '; + echo ' + + '; + if (array_key_exists('tooltip', $array)) { + echo '
!'.$array['tooltip'].'
'; + } break; // default return false default: