';
$logo = get_template_directory_uri() . '/screenshot.png';
echo '
';
echo '
.')
';
echo '';
echo '
'.esc_html__( 'Thank you for choosing our theme. Here we will help you with basic installation and configuration.', 'lte-ext' ).'
';
$debug = false;
/**
* Status 4 is ok and skip
* Status 3 is ok
* Status 2 is warning
* Status 1 is error
*/
$items[] = array(
'header' => esc_html__( 'WordPress Version', 'lte-ext' ),
'warning' => sprintf('%1$s',
esc_html__( 'Your WordPress version is outdated. Due to the security and compatability reasons it is recommended to use 5.x version.', 'lte-ext' )
),
'value' => get_bloginfo('version'),
'func' => function() {
if ( get_bloginfo('version') < 5 ) {
return 2;
} elseif ( get_bloginfo('version') < 4 ) {
return 1;
} else {
return 3;
}
}
);
$items[] = array(
'header' => esc_html__( 'PHP Version', 'lte-ext' ),
'warning' => sprintf('%1$s
%3$s. %4$s',
esc_html__( 'Your PHP version is lower than recommended by ', 'lte-ext' ),
esc_url( '//wordpress.org/about/requirements/' ),
esc_html__( 'WordPress requirements', 'lte-ext' ),
esc_html__( 'Due to the security and compatability reasons it is recommended to use 7.x version.', 'lte-ext' )
),
'value' => phpversion(),
'func' => function() {
if ( phpversion() < 5.6 ) {
return 1;
} elseif ( phpversion() < 7 ) {
return 2;
} else {
return 3;
}
}
);
$items[] = array(
'header' => esc_html__( 'PHP Multibyte Extension', 'lte-ext' ),
'warning' => sprintf('%1$s
%3$s.',
esc_html__( 'Multibyte Extension is recommend to support UTF-8 encoding in theme and plugins. If you are using hosting panel you can try to enable it in ', 'lte-ext' ),
esc_url( '//www.google.com/search?q=php+multibyte+extension+install+hosting' ),
esc_html__( 'settings', 'lte-ext' )
),
'value' => '+',
'func' => function() {
if ( extension_loaded('mbstring') ) {
return 3;
} else {
return 2;
}
}
);
$items[] = array(
'header' => esc_html__( 'PHP ZIP Module', 'lte-ext' ),
'warning' => sprintf('%1$s
%3$s.',
esc_html__( 'Demo content installation requires Zip Module on your server. If you are using Cpanel you can try to enable it in ', 'lte-ext' ),
esc_url( '//www.google.com/search#q=hosting+enable+php+zip' ),
esc_html__( 'settings', 'lte-ext' )
),
'value' => '+',
'func' => function() {
if ( class_exists('ZipArchive') ) {
return 3;
} else {
return 1;
}
}
);
$items[] = array(
'header' => esc_html__( 'LiteSpeed Server', 'lte-ext' ),
'warning' => sprintf('%1$s
%3$s. %4$s',
esc_html__( 'Your website is hosted using the LiteSpeed web server. Please consult this', 'lte-ext' ),
esc_url( 'http://like-themes.com/litespeed.html' ),
esc_html__( 'article', 'lte-ext' ),
esc_html__( 'if you have problems with Demo Content installation.', 'lte-ext' )
),
'value' => '',
'func' => function() {
if ( isset( $_SERVER['SERVER_SOFTWARE'] ) && strpos( $_SERVER['SERVER_SOFTWARE'], 'LiteSpeed' ) !== false ) {
if ( ! is_file( ABSPATH . '.htaccess' ) || ! preg_match( '/noabort/i', file_get_contents( ABSPATH . '.htaccess' ) ) ) {
return 1;
}
return 2;
} else {
return 4;
}
}
);
$items[] = array(
'header' => esc_html__( 'Redux', 'lte-ext' ),
'warning' => sprintf('%1$s
%3$s%4$s',
esc_html__( 'Redux plugin is required for full theme functionality. Please install and activate it in', 'lte-ext' ),
esc_url( admin_url() . 'plugins.php' ),
esc_html__( 'plugins', 'lte-ext' ),
esc_html__( ' menu.', 'lte-ext' )
),
'value' => '+',
'func' => function() {
if ( !lte_plugin_is_active('redux-framework') ) {
return 1;
} else {
return 3;
}
}
);
$items[] = array(
'header' => esc_html__( 'PHP post_max_size', 'lt-ext' ),
'warning' => sprintf('%1$s
%3$s. %4$s',
esc_html__( 'Minimum 32M is required. You can try to change it with ', 'lt-ext' ),
esc_url( admin_url() . '//wordpress.org/plugins/custom-php-settings/' ),
esc_html__( ' Custom PHP Settings plugin', 'lt-ext' ),
esc_html__( "If it don't help you need to contact your hosting support.", 'lt-ext' )
),
'value' => ini_get('post_max_size'),
'func' => function() {
if ( strpos(ini_get('upload_max_filesize'), 'M') AND (int)(ini_get('post_max_size')) < 32) {
return 1;
} else {
return 3;
}
}
);
$items[] = array(
'header' => esc_html__( 'PHP upload_max_filesize', 'lt-ext' ),
'warning' => sprintf('%1$s
%3$s. %4$s',
esc_html__( 'Minimum 32M is required. You can try to change it with ', 'lt-ext' ),
esc_url( admin_url() . '//wordpress.org/plugins/custom-php-settings/' ),
esc_html__( ' Custom PHP Settings plugin', 'lt-ext' ),
esc_html__( "If it don't help you need to contact your hosting support.", 'lt-ext' )
),
'value' => ini_get('upload_max_filesize'),
'func' => function() {
if ( strpos(ini_get('upload_max_filesize'), 'M') AND (int)(ini_get('upload_max_filesize')) < 32) {
return 1;
} else {
return 3;
}
}
);
$items[] = array(
'header' => esc_html__( 'PHP max_execution_time', 'lt-ext' ),
'warning' => sprintf('%1$s
%3$s. %4$s',
esc_html__( 'Minimum 600 is required to install demo content. You can try to change it with ', 'lt-ext' ),
esc_url( admin_url() . '//wordpress.org/plugins/custom-php-settings/' ),
esc_html__( ' Custom PHP Settings plugin', 'lt-ext' ),
esc_html__( "If it don't help you need to contact your hosting support.", 'lt-ext' )
),
'value' => ini_get('max_execution_time'),
'func' => function() {
if ( (int)(ini_get('max_execution_time')) < 600) {
return 1;
} else {
return 3;
}
}
);
$items[] = array(
'header' => esc_html__( 'PHP memory_limit', 'lt-ext' ),
'warning' => sprintf('%1$s
%3$s. %4$s',
esc_html__( 'Minimum 128M is required. You can try to change it with ', 'lt-ext' ),
esc_url( admin_url() . '//wordpress.org/plugins/custom-php-settings/' ),
esc_html__( ' Custom PHP Settings plugin', 'lt-ext' ),
esc_html__( "If it don't help you need to contact your hosting support.", 'lt-ext' )
),
'value' => ini_get('memory_limit'),
'func' => function() {
if ( strpos(ini_get('upload_max_filesize'), 'M') AND (int)(ini_get('memory_limit')) < 128) {
return 1;
} else {
return 3;
}
}
);
echo '
';
echo '
';
$status_error = false;
foreach ( $items as $item ) {
$status = call_user_func($item['func']);
if ( !empty( $debug) AND $status == 3 ) {
$status = mt_rand(1,3);
}
if ( $status == 4 ) continue;
if ( $status < 3 AND $item['value'] == '+' ) {
$item['value'] = '-';
}
else
if ( $item['value'] == '+' ) {
$item['value'] = '';
}
if ( $status < 3 ) $status_error = true;
$class = 'lte-status-'.$status;
echo '';
echo '';
echo ''.$item['value'].' | ';
echo ' | ';
echo '';
if ( $status < 3 ) {
echo $item['warning'];
}
echo ' | ';
echo '
';
}
echo '
';
if ( !empty($status_error) ) {
echo '
';
echo esc_html__( 'Please note that WordPress and the theme could work on any configuration. All notices are only recommendations, but if you are experiencing any issues with demo content installation or the site, we recommend to check the table above. If you could not fix the server side issues by yourself, you need to contact hosting support and ask for help.', 'lte-ext' );
echo '
';
}
echo '
';
echo '
';
echo '
';
echo '
';
echo '
'.esc_html__( 'Documentation' ).'
';
echo '
'.wp_kses_post( 'If you have any issues please check the documentation of the theme.', 'lte-ext' ).'
';
echo '
';
echo '
';
echo '
'.esc_html__( 'Support', 'lte-ext' ).'
';
echo '
'.wp_kses_post( 'If you have any issues with the theme please contact our support team by like.themes.wp@gmail.com.', 'lte-ext' ).'.
';
echo '
'.wp_kses_post( 'Check Envato Support Policy regarding what is included into support. You also need to provide purchase code.', 'lte-ext' ).'
';
echo '
'.wp_kses_post( 'Please check the documentation before contacting us. According to the policy support response time can be up to 2 business days.', 'lte-ext' ).'
';
echo '
';
echo '
';
echo '