/**
  * Build the login structure
  *
  * @param int $id login builder ID
  *
  * @return string string login structure
  */
 public function get_login_structure($id)
 {
     $login_structure = PROFILEPRESS_sql::get_a_builder_structure('login', $id);
     $form_tag = '<form method="post" action="' . esc_url($_SERVER['REQUEST_URI']) . '">';
     self::get_login_css($id);
     return $form_tag . do_shortcode($login_structure) . '</form>';
 }
예제 #2
0
 /**
  * Build the login structure
  *
  * @param int $id login builder ID
  *
  * @return string string login structure
  */
 public function get_login_structure($id)
 {
     $login_structure = PROFILEPRESS_sql::get_a_builder_structure('login', $id);
     $form_tag = '<form method="post">';
     self::get_login_css($id);
     return $form_tag . do_shortcode($login_structure) . '</form>';
 }
 /**
  * Get the registration structure from the database
  *
  * @param int $id
  *
  * @return string
  */
 public static function get_registration_structure($id)
 {
     if (!get_option('users_can_register')) {
         return apply_filters('pp_registration_disabled_text', __('Registration is disabled in this site.', 'profilepress'));
     } else {
         $registration_structure = PROFILEPRESS_sql::get_a_builder_structure('registration', $id);
         $form_tag = '<form method="post" enctype="multipart/form-data">';
         return $form_tag . do_shortcode($registration_structure) . '</form>';
     }
 }
 /**
  * Get the password reset structure from the database
  *
  * @param int $id
  *
  * @return string
  */
 function get_password_reset_structure($id)
 {
     if ('GET' == $_SERVER['REQUEST_METHOD'] && isset($_REQUEST['key']) && isset($_REQUEST['login'])) {
         $structure = $this->get_password_reset_handler_structure($id);
     } else {
         $structure = PROFILEPRESS_sql::get_a_builder_structure('password_reset', $id);
     }
     $form_tag = '<form method="post">';
     return $form_tag . do_shortcode($structure) . '</form>';
 }
 /**
  * Get the password reset structure from the database
  *
  * @param int $id
  *
  * @return string
  */
 function get_password_reset_structure($id)
 {
     $password_reset_structure = PROFILEPRESS_sql::get_a_builder_structure('password_reset', $id);
     $form_tag = '<form method="post" action="' . esc_url($_SERVER['REQUEST_URI']) . '">';
     return $form_tag . do_shortcode($password_reset_structure) . '</form>';
 }