PATH:
home
/
fengshp
/
www
/
wp-content
/
themes
/
themify-ultra
/
themify
<?php /** * Perform start up checks for Themify themes. * Disables the loading of the theme if requirements are not met. * * @package Themify */ function themify_startup_check() { $check = true; /* memory limit check */ $tf_memory_limit = wp_convert_hr_to_bytes( ini_get( 'memory_limit' ) ); if ( -1 !== $tf_memory_limit && $tf_memory_limit < 67108864 ) { // 64MB /* attempt to increase memory limit */ if ( wp_is_ini_value_changeable( 'memory_limit' ) ) { ini_set( 'memory_limit', '64M' ); } else { $check = new WP_Error( 'tf_memory_limit', __( 'Themify theme has been disabled due to low PHP memory limit. Please contact your host provider to increase PHP memory limit to minimum 64MB (128MB recommended).', 'themify' ) ); } } /* PHP version check */ if ( $check === true && version_compare( phpversion(), '7.3', '<' ) ) { $check = new WP_Error( 'tf_php', __( 'Please contact your host provider to upgrade PHP software. We recommend using PHP version 8 or above for greater performance and security.', 'themify' ) ); } if ( is_wp_error( $check ) ) { if ( is_admin() ) { /* prevent the theme from loading */ add_filter( 'themify_theme_includes', '__return_empty_array' ); add_action( 'admin_notices', function() use( $check ) { echo '<div class="notice notice-error"><p>' . $check->get_error_message() . '</p></div>'; } ); } } } themify_startup_check();
[+]
..
[+]
js
[-] class-tf-term-image.php
[edit]
[-] themify-import-functions.php
[edit]
[-] class-themify-enqueue.php
[edit]
[-] themify-hooks.php
[edit]
[-] class-themify-storage.php
[edit]
[+]
themify-icon-picker
[-] class-themify-child-theme-generator.php
[edit]
[-] class-themify-menu-toggle-dropdown.php
[edit]
[+]
google-fonts
[-] themify-widgets.php
[edit]
[-] themify-microdata.php
[edit]
[+]
themify-builder
[-] themify-theme-filters.php
[edit]
[+]
megamenu
[-] class-cpt.php
[edit]
[-] class-themify-custom-404.php
[edit]
[-] themify-status.php
[edit]
[-] class-themify-maintenance-mode.php
[edit]
[-] themify-template-tags.php
[edit]
[-] themify-config.php
[edit]
[-] class-themify-access-role.php
[edit]
[+]
themify-metabox
[+]
customizer
[+]
cache
[-] themify-wpajax.php
[edit]
[+]
img
[-] img.php
[edit]
[-] class-themify-custom-fonts.php
[edit]
[+]
plugin-compat
[-] class-themify-menu-icons.php
[edit]
[-] class-themify-filesystem.php
[edit]
[-] class-themify-mobile-detect.php
[edit]
[-] themify-fw-filters.php
[edit]
[-] class-hook-contents.php
[edit]
[-] themify-utils.php
[edit]
[-] class-tgm-plugin-activation.php
[edit]
[-] themify-admin.php
[edit]
[-] class-themify-get-image-size.php
[edit]
[-] themify-startup-check.php
[edit]
[+]
includes
[+]
.data
[-] themify-database.php
[edit]
[+]
css
[+]
themify-icons