| Server IP : 38.190.208.107 / Your IP : 216.73.217.46 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/wp.3/wp-content/plugins/wpforms-lite/templates/builder/revisions/ |
Upload File : |
<?php
/**
* A list of form revisions in the Form Builder Revisions panel.
*
* @since 1.7.3
*
* @var string $active_class Active item class.
* @var string $current_version_url The URL to load the current form version.
* @var string $author_id Current form author ID.
* @var array $revisions A list of all form revisions.
* @var string $show_avatars Whether the site settings for showing avatars is enabled.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div class='wpforms-revisions-content'>
<div class="wpforms-revision-current-version<?php echo esc_attr( $active_class ); ?>">
<a href="<?php echo esc_url( $current_version_url ); ?>">
<?php if ( $show_avatars ) : ?>
<div class="wpforms-revision-gravatar">
<?php echo get_avatar( $author_id, 40 ); ?>
</div>
<?php endif; ?>
<div class='wpforms-revision-details'>
<p class='wpforms-revision-created'>
<strong><?php esc_html_e( 'Current Version', 'wpforms-lite' ); ?></strong>
</p>
<p class='wpforms-revision-author'>
<?php
$display_name = get_the_author_meta( 'display_name', $author_id );
printf( /* translators: %s - form revision author name. */
esc_html__( 'by %s', 'wpforms-lite' ),
! empty( $display_name ) ? esc_html( $display_name ) : esc_html__( 'Unknown user', 'wpforms-lite' )
);
?>
</p>
</div>
</a>
</div>
<ul class="wpforms-revisions-list">
<?php foreach ( $revisions as $revision ) : ?>
<li class="wpforms-revision<?php echo esc_attr( $revision['active_class'] ); ?>">
<a href="<?php echo esc_url( $revision['url'] ); ?>">
<?php if ( $show_avatars ) : ?>
<div class="wpforms-revision-gravatar">
<?php echo get_avatar( $revision['author_id'], 40 ); ?>
</div>
<?php endif; ?>
<div class='wpforms-revision-details'>
<p class='wpforms-revision-created'>
<strong><?php echo esc_html( $revision['time_diff'] ); ?></strong> (<?php echo esc_html( $revision['date_time'] ); ?>)
</p>
<p class='wpforms-revision-author'>
<?php
$display_name = get_the_author_meta( 'display_name', $revision['author_id'] );
printf( /* translators: %s - form revision author name. */
esc_html__( 'by %s', 'wpforms-lite' ),
! empty( $display_name ) ? esc_html( $display_name ) : esc_html__( 'Unknown user', 'wpforms-lite' )
);
?>
</p>
</div>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>