mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- changed "e-mail" to "email";
- changed texts for admin notices; - added a few links to docs;
This commit is contained in:
@@ -1852,5 +1852,24 @@ if ( ! class_exists( 'um\admin\core\Admin_Forms' ) ) {
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
public function render_external_link( $data ) {
|
||||
$defaults = array(
|
||||
'url' => '',
|
||||
'html' => '',
|
||||
);
|
||||
$data = wp_parse_args( $data, $defaults );
|
||||
if ( empty( $data['url'] ) || empty( $data['html'] ) ) {
|
||||
return '';
|
||||
}
|
||||
ob_start();
|
||||
?>
|
||||
<a target="_blank" href="<?php echo esc_url( $data['url'] ); ?>">
|
||||
<?php echo esc_html( $data['html'] ); ?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" class="um-external-link-icon" aria-hidden="true" focusable="false"><path d="M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"></path></svg>
|
||||
</a>
|
||||
<?php
|
||||
return ob_get_clean();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user