Advertisement
Guest User

Untitled

a guest
Mar 26th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.46 KB | None | 0 0
  1. <a href="#" class="userpro-close-popup"><?php _e('Close','userpro'); ?></a>
  2. <div class="userpro userpro-<?php echo $i; ?> userpro-<?php echo $layout; ?>" <?php userpro_args_to_data( $args ); ?>>
  3.    
  4.     <div class="userpro-head">
  5.  
  6.         <div class="userpro-left"><?php echo $args["{$template}_heading"]; ?></div>
  7.         <?php if ($args["{$template}_side"]) { ?>
  8.         <div class="userpro-right"><a href="#" data-template="<?php echo $args["{$template}_side_action"]; ?>"><?php echo $args["{$template}_side"]; ?></a></div>
  9.         <?php } ?>
  10.         <div class="userpro-clear"></div>
  11.     </div>
  12.    
  13.     <div class="userpro-body">
  14.     <?php   if(isset($args["form_role"]))
  15.          $_SESSION['form_role']=$args["form_role"];
  16.         else
  17.          $_SESSION['form_role']='';
  18.         ?>
  19.         <?php do_action('userpro_pre_form_message'); ?>
  20.  
  21.         <form action="" method="post" data-action="<?php echo $template; ?>">
  22.        
  23.             <input type="hidden" name="redirect_uri-<?php echo $i; ?>" id="redirect_uri-<?php echo $i; ?>" value="<?php if (isset( $args["{$template}_redirect"] ) ) echo $args["{$template}_redirect"]; ?>" />
  24.            
  25.             <?php // Hook into fields $args, $user_id
  26.             if (!isset($user_id)) $user_id = 0;
  27.             $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
  28.             do_action('userpro_before_fields', $hook_args);
  29.             do_action('userpro_inside_form_register');
  30.             ?>
  31.            
  32.             <?php
  33.             // Multiple Registration Forms Support
  34.             if (isset($args['type']) && $userpro->multi_type_exists($args['type'])) {
  35.                 $group = array_intersect_key( userpro_fields_group_by_template( $template, $args["{$template}_group"] ), array_flip($userpro->multi_type_get_array($args['type'])) );
  36.             } else {
  37.                 $group = userpro_fields_group_by_template( $template, $args["{$template}_group"] );
  38.             }
  39.             ?>
  40.        
  41.             <?php foreach( $group as $key => $array ) { ?>
  42.                
  43.                 <?php  if ($array) echo userpro_edit_field( $key, $array, $i, $args ) ?>
  44.                
  45.             <?php } ?>
  46.            
  47.             <?php // Hook into fields $args, $user_id
  48.             if (!isset($user_id)) $user_id = 0;
  49.             $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
  50.             do_action('userpro_after_fields', $hook_args);
  51.             ?>
  52.                        
  53.             <?php // Hook into fields $args, $user_id
  54.             if (!isset($user_id)) $user_id = 0;
  55.             $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
  56.             do_action('userpro_before_form_submit', $hook_args);
  57.             ?>
  58.            
  59.             <?php if ($args["{$template}_button_primary"] ||  $args["{$template}_button_secondary"] ) { ?>
  60.             <div class="userpro-field userpro-submit userpro-column">
  61.            
  62.                 <?php // Hook into fields $args, $user_id
  63.                 if (!isset($user_id)) $user_id = 0;
  64.                 $hook_args = array_merge($args, array('user_id' => $user_id, 'unique_id' => $i));
  65.                 if(userpro_get_option('sociallogin')=='1')             
  66.                 do_action('userpro_inside_form_submit', $hook_args);
  67.                 ?>
  68.                
  69.                 <?php if ($args["{$template}_button_primary"]) { ?>
  70.                 <input type="submit" value="<?php echo $args["{$template}_button_primary"]; ?>" class="userpro-button" />
  71.                 <?php } ?>
  72.                
  73.                 <?php if ($args["{$template}_button_secondary"]) { ?>
  74.                 <input type="button" value="<?php echo $args["{$template}_button_secondary"]; ?>" class="userpro-button secondary" data-template="<?php echo $args["{$template}_button_action"]; ?>" />
  75.                 <?php } ?>
  76.  
  77.                 <img src="<?php echo $userpro->skin_url(); ?>loading.gif" alt="" class="userpro-loading" />
  78.                 <div class="userpro-clear"></div>
  79.                
  80.             </div>
  81.             <?php } ?>
  82.        
  83.         </form>
  84.    
  85.     </div>
  86.  
  87. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement