@@ 261-265 (lines=5) @@ | ||
258 | $description = $tip = ''; |
|
259 | } |
|
260 | ||
261 | if ($description && in_array($value['type'], array('textarea', 'radio'))) { |
|
262 | $description = '<p style="margin-top:0">'.wp_kses_post($description).'</p>'; |
|
263 | } else if ($description) { |
|
264 | $description = '<span class="description">'.wp_kses_post($description).'</span>'; |
|
265 | } |
|
266 | ||
267 | if ($tip && in_array($value['type'], array('checkbox'))) { |
|
268 | $tip = '<p class="description">'.$tip.'</p>'; |
|
@@ 267-271 (lines=5) @@ | ||
264 | $description = '<span class="description">'.wp_kses_post($description).'</span>'; |
|
265 | } |
|
266 | ||
267 | if ($tip && in_array($value['type'], array('checkbox'))) { |
|
268 | $tip = '<p class="description">'.$tip.'</p>'; |
|
269 | } else if ($tip) { |
|
270 | $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" />'; |
|
271 | } |
|
272 | ||
273 | // Switch based on type |
|
274 | switch ($value['type']) { |