are_themes_available() ) { return FALSE; } if ( get_option( 'ai1ec_themes_version', 1 ) >= AI1EC_THEMES_VERSION ) { return FALSE; } return TRUE; } /** * copy_directory function * * @return void **/ private function copy_directory( $source, $destination ) { if( is_dir( $source ) ) { @mkdir( $destination ); $directory = dir( $source ); while( FALSE !== ( $readdirectory = $directory->read() ) ) { if( $readdirectory == '.' || $readdirectory == '..' ) { continue; } $PathDir = $source . '/' . $readdirectory; if( is_dir( $PathDir ) ) { $this->copy_directory( $PathDir, $destination . '/' . $readdirectory ); continue; } copy( $PathDir, $destination . '/' . $readdirectory ); } $directory->close(); } else { copy( $source, $destination ); } } /** * install_themes function * * @return void **/ function install_themes() { ?>
get_error_message() ), AI1EC_PLUGIN_NAME ) ?>
There was an error updating one of the files. Please FTP to your web server and manually copy
%sto
%s', AI1EC_PLUGIN_NAME ), $src_dir . $file, $dest_dir . $file ); } } update_option( 'ai1ec_themes_version', AI1EC_THEMES_VERSION ); if ( $errors ) { $msg = __( '
Please follow any instructions listed below or your calendar may malfunction: