@@ 277-281 (lines=5) @@ | ||
274 | $description = $tip = ''; |
|
275 | } |
|
276 | ||
277 | if ($description && in_array($value['type'], array('textarea', 'radio'))) { |
|
278 | $description = '<p style="margin-top:0">'.wp_kses_post($description).'</p>'; |
|
279 | } else if ($description) { |
|
280 | $description = '<span class="description">'.wp_kses_post($description).'</span>'; |
|
281 | } |
|
282 | ||
283 | if ($tip && in_array($value['type'], array('checkbox'))) { |
|
284 | $tip = '<p class="description">'.$tip.'</p>'; |
|
@@ 283-287 (lines=5) @@ | ||
280 | $description = '<span class="description">'.wp_kses_post($description).'</span>'; |
|
281 | } |
|
282 | ||
283 | if ($tip && in_array($value['type'], array('checkbox'))) { |
|
284 | $tip = '<p class="description">'.$tip.'</p>'; |
|
285 | } else if ($tip) { |
|
286 | $tip = '<img class="help_tip" data-tip="'.esc_attr($tip).'" src="' . AUTO_LOAD_NEXT_POST_URL_PATH . '/assets/images/help.png" height="16" width="16" />'; |
|
287 | } |
|
288 | ||
289 | // Switch based on type |
|
290 | switch ($value['type']) { |