Files
ultimatemember/templates/logout.php
T

84 lines
2.0 KiB
PHP
Raw Normal View History

2023-04-11 09:13:36 +03:00
<?php
/**
2023-04-11 16:25:25 +03:00
* Template for the logout
*
2023-06-20 09:53:04 +03:00
* This template can be overridden by copying it to yourtheme/ultimate-member/templates/logout.php
2023-04-11 16:25:25 +03:00
*
* Page: "Logout"
*
2023-04-17 17:24:42 +03:00
* @version 2.6.1
2023-04-11 16:25:25 +03:00
*
* @var string $mode
* @var int $form_id
* @var array $args
2023-04-11 09:13:36 +03:00
*/
2023-04-11 16:25:25 +03:00
if ( ! defined( 'ABSPATH' ) ) {
exit;
} ?>
2019-07-17 16:55:09 +03:00
2019-07-16 18:40:07 +03:00
<div class="um <?php echo esc_attr( $this->get_class( $mode, $args ) ); ?> um-<?php echo esc_attr( $form_id ); ?>">
2015-03-12 18:22:29 +02:00
<div class="um-form">
2019-07-17 16:55:09 +03:00
2015-03-12 18:22:29 +02:00
<div class="um-misc-with-img">
2019-07-17 16:55:09 +03:00
2015-03-12 18:22:29 +02:00
<div class="um-misc-img">
2019-07-17 16:55:09 +03:00
<a href="<?php echo esc_url( um_get_core_page( 'user' ) ); ?>">
<?php echo get_avatar( um_user( 'ID' ), 80 ) ?>
2019-07-17 16:55:09 +03:00
</a>
2015-03-12 18:22:29 +02:00
</div>
2023-04-11 09:13:36 +03:00
2019-07-17 16:55:09 +03:00
<div><strong><?php echo esc_html( um_user( 'display_name' ) ); ?></strong></div>
2023-04-11 09:13:36 +03:00
2018-03-05 16:35:51 +02:00
<?php
/**
* UM hook
*
* @type action
* @title um_logout_after_user_welcome
* @description Some actions on logout form
* @input_vars
* [{"var":"$args","type":"array","desc":"Logout form shortcode arguments"}]
* @change_log
* ["Since: 2.0"]
* @usage add_action( 'um_logout_after_user_welcome', 'function_name', 10, 1 );
* @example
* <?php
* add_action( 'um_logout_after_user_welcome', 'my_logout_after_user_welcome', 10, 1 );
* function my_logout_after_user_welcome( $args ) {
* // your code here
* }
* ?>
*/
do_action( 'um_logout_after_user_welcome', $args ); ?>
2023-04-11 09:13:36 +03:00
2015-03-12 18:22:29 +02:00
</div>
2023-04-11 09:13:36 +03:00
2015-03-12 18:22:29 +02:00
<ul class="um-misc-ul">
2023-04-11 09:13:36 +03:00
2018-03-05 16:35:51 +02:00
<?php
/**
* UM hook
*
* @type action
* @title um_logout_user_links
* @description Logout user links
* @input_vars
* [{"var":"$args","type":"array","desc":"Logout form shortcode arguments"}]
* @change_log
* ["Since: 2.0"]
* @usage add_action( 'um_logout_user_links', 'function_name', 10, 1 );
* @example
* <?php
* add_action( 'um_logout_user_links', 'my_logout_user_links', 10, 1 );
* function my_logout_user_links( $args ) {
* // your code here
* }
* ?>
*/
do_action( 'um_logout_user_links', $args ); ?>
2023-04-11 09:13:36 +03:00
2015-03-12 18:22:29 +02:00
</ul>
</div>
</div>