mirror of
https://github.com/WPMultisite/wp-multisite-subscriptions.git
synced 2025-08-08 10:39:12 +08:00
重命名:分叉 WP Ultimo
This commit is contained in:
parent
675cc66211
commit
afc807397f
5350 changed files with 1354268 additions and 604 deletions
67
views/dashboard-widgets/login-form.php
Normal file
67
views/dashboard-widgets/login-form.php
Normal file
|
@ -0,0 +1,67 @@
|
|||
<?php
|
||||
/**
|
||||
* Login Form
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
?>
|
||||
<div class="wu-styling <?php echo esc_attr($className); ?>">
|
||||
|
||||
<?php if ($logged) : ?>
|
||||
|
||||
<!-- Already Logged Block -->
|
||||
|
||||
<div class="wu-p-4 wu-bg-yellow-200 wu-rounded <?php echo wu_env_picker('wu-mb-4', 'wu-mt-2 wu-shadow-sm'); ?>">
|
||||
|
||||
<?php
|
||||
|
||||
// translators: 1$s is the display name of the user currently logged in.
|
||||
printf(__('Not %1$s? <a href="%2$s" class="wu-no-underline">Log in</a> using your account.', 'wp-ultimo'), wp_get_current_user()->display_name, $login_url);
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Already Logged Block - End -->
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<!-- Title Element -->
|
||||
<div class="wu-pb-4 wu-flex wu-items-center">
|
||||
|
||||
<?php if ($display_title) : ?>
|
||||
|
||||
<h2 class="wu-m-0 <?php echo wu_env_picker('', 'wu-widget-title'); ?>">
|
||||
|
||||
<?php echo $title; ?>
|
||||
|
||||
</h2>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (wu_get_setting('enable_registration', true)) : ?>
|
||||
|
||||
<div class="wu-ml-auto">
|
||||
|
||||
<a
|
||||
title="<?php esc_attr_e('Update Billing Address', 'wp-ultimo'); ?>"
|
||||
class="wu-text-sm wu-no-underline button"
|
||||
href="<?php echo wu_get_registration_url(); ?>"
|
||||
>
|
||||
|
||||
<?php _e('Create an Account', 'wp-ultimo'); ?>
|
||||
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<!-- Title Element - End -->
|
||||
|
||||
<?php $form->render(); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue