| Server IP : 87.229.120.60 / Your IP : 216.73.216.245 Web Server : Apache System : Linux outside 5.4.8_Algonet_ZeroMAC_0.9.4.8 #6 SMP Mon Feb 3 20:36:07 CET 2020 x86_64 User : server ( 1002) PHP Version : 8.3.20 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/faktorteam/www/wp-content/themes/rife-free/ |
Upload File : |
<?php
/**
* Template used for displaying password protected page.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
} // Exit if accessed directly
global $apollo13framework_a13;
//custom template
if($apollo13framework_a13->get_option( 'page_password_template_type' ) === 'custom' ){
$_page = $apollo13framework_a13->get_option( 'page_password_template' );
define('A13FRAMEWORK_CUSTOM_PASSWORD_PROTECTED', true );
//make query
$query = new WP_Query( array('page_id' => $_page ) );
//add password form to content
add_filter( 'the_content', 'apollo13framework_add_password_form_to_template' );
//show
apollo13framework_page_like_content($query);
// Reset Post Data
wp_reset_postdata();
return;
}
//default template
else{
define('A13FRAMEWORK_PASSWORD_PROTECTED', true); //to get proper class in body
$_title = '<span class="fa fa-lock emblem"></span>' . esc_html__( 'This content is password protected.', 'rife-free' )
.'<br />'
.esc_html__( 'To view it please enter your password below', 'rife-free' );
get_header();
apollo13framework_title_bar( 'outside', $_title );
echo apollo13framework_password_form();//escaped on creation
get_footer();
}