Sin descripción

login.php 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
  2. <div class="um <?php echo esc_attr( $this->get_class( $mode ) ); ?> um-<?php echo esc_attr( $form_id ); ?>">
  3. <div class="um-form">
  4. <form method="post" action="" autocomplete="off">
  5. <?php
  6. /**
  7. * UM hook
  8. *
  9. * @type action
  10. * @title um_before_form
  11. * @description Some actions before login form
  12. * @input_vars
  13. * [{"var":"$args","type":"array","desc":"Login form shortcode arguments"}]
  14. * @change_log
  15. * ["Since: 2.0"]
  16. * @usage add_action( 'um_before_form', 'function_name', 10, 1 );
  17. * @example
  18. * <?php
  19. * add_action( 'um_before_form', 'my_before_form', 10, 1 );
  20. * function my_before_form( $args ) {
  21. * // your code here
  22. * }
  23. * ?>
  24. */
  25. do_action( 'um_before_form', $args );
  26. /**
  27. * UM hook
  28. *
  29. * @type action
  30. * @title um_before_{$mode}_fields
  31. * @description Some actions before login form fields
  32. * @input_vars
  33. * [{"var":"$args","type":"array","desc":"Login form shortcode arguments"}]
  34. * @change_log
  35. * ["Since: 2.0"]
  36. * @usage add_action( 'um_before_{$mode}_fields', 'function_name', 10, 1 );
  37. * @example
  38. * <?php
  39. * add_action( 'um_before_{$mode}_fields', 'my_before_fields', 10, 1 );
  40. * function my_before_form( $args ) {
  41. * // your code here
  42. * }
  43. * ?>
  44. */
  45. do_action( "um_before_{$mode}_fields", $args );
  46. /**
  47. * UM hook
  48. *
  49. * @type action
  50. * @title um_main_{$mode}_fields
  51. * @description Some actions before login form fields
  52. * @input_vars
  53. * [{"var":"$args","type":"array","desc":"Login form shortcode arguments"}]
  54. * @change_log
  55. * ["Since: 2.0"]
  56. * @usage add_action( 'um_before_{$mode}_fields', 'function_name', 10, 1 );
  57. * @example
  58. * <?php
  59. * add_action( 'um_before_{$mode}_fields', 'my_before_fields', 10, 1 );
  60. * function my_before_form( $args ) {
  61. * // your code here
  62. * }
  63. * ?>
  64. */
  65. do_action( "um_main_{$mode}_fields", $args );
  66. /**
  67. * UM hook
  68. *
  69. * @type action
  70. * @title um_after_form_fields
  71. * @description Some actions after login form fields
  72. * @input_vars
  73. * [{"var":"$args","type":"array","desc":"Login form shortcode arguments"}]
  74. * @change_log
  75. * ["Since: 2.0"]
  76. * @usage add_action( 'um_after_form_fields', 'function_name', 10, 1 );
  77. * @example
  78. * <?php
  79. * add_action( 'um_after_form_fields', 'my_after_form_fields', 10, 1 );
  80. * function my_after_form_fields( $args ) {
  81. * // your code here
  82. * }
  83. * ?>
  84. */
  85. do_action( 'um_after_form_fields', $args );
  86. /**
  87. * UM hook
  88. *
  89. * @type action
  90. * @title um_after_{$mode}_fields
  91. * @description Some actions after login form fields
  92. * @input_vars
  93. * [{"var":"$args","type":"array","desc":"Login form shortcode arguments"}]
  94. * @change_log
  95. * ["Since: 2.0"]
  96. * @usage add_action( 'um_after_{$mode}_fields', 'function_name', 10, 1 );
  97. * @example
  98. * <?php
  99. * add_action( 'um_after_{$mode}_fields', 'my_after_form_fields', 10, 1 );
  100. * function my_after_form_fields( $args ) {
  101. * // your code here
  102. * }
  103. * ?>
  104. */
  105. do_action( "um_after_{$mode}_fields", $args );
  106. /**
  107. * UM hook
  108. *
  109. * @type action
  110. * @title um_after_form
  111. * @description Some actions after login form fields
  112. * @input_vars
  113. * [{"var":"$args","type":"array","desc":"Login form shortcode arguments"}]
  114. * @change_log
  115. * ["Since: 2.0"]
  116. * @usage add_action( 'um_after_form', 'function_name', 10, 1 );
  117. * @example
  118. * <?php
  119. * add_action( 'um_after_form', 'my_after_form', 10, 1 );
  120. * function my_after_form( $args ) {
  121. * // your code here
  122. * }
  123. * ?>
  124. */
  125. do_action( 'um_after_form', $args ); ?>
  126. </form>
  127. </div>
  128. </div>