Нет описания

purge.php 624B

12345678910111213141516171819202122
  1. <?php if ( ! defined( 'ABSPATH' ) ) exit;
  2. if ( $this->dir_size( 'temp' ) > 0.1 ) { ?>
  3. <p>
  4. <?php printf( __( 'You can free up <span class="red">%s MB</span> by purging your temp upload directory.', 'ultimate-member' ), $this->dir_size( 'temp' ) ); ?>
  5. </p>
  6. <p>
  7. <a href="<?php echo esc_url( add_query_arg( 'um_adm_action', 'purge_temp' ) ); ?>" class="button">
  8. <?php _e( 'Purge Temp', 'ultimate-member' ); ?>
  9. </a>
  10. </p>
  11. <?php } else { ?>
  12. <p>
  13. <?php _e( 'Your temp uploads directory is <span class="ok">clean</span>. There is nothing to purge.', 'ultimate-member' ); ?>
  14. </p>
  15. <?php } ?>