This commit introduces a more reliable and consistent approach to setting up the development environment using backups: - Add setup-from-backup.sh script for environment setup from existing backups - Standardize script naming and organization - Move obsolete scripts to bin/obsolete directory - Update documentation with new workflow instructions - Create migration guide for transitioning to new workflow - Update Memory Bank with workflow improvements The new workflow provides: - More reliable environment setup - Faster setup process - Offline development capability - Consistent development environments across team members Breaking changes: - setup-dev.sh is replaced by setup-from-backup.sh - sync-and-setup.sh is replaced by separate scripts - verify-with-wpcli.sh is no longer used Migration path is documented in MIGRATION_GUIDE.md
39 lines
702 B
PHP
39 lines
702 B
PHP
<?php
|
|
namespace SpectraPro\BlocksConfig;
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly.
|
|
}
|
|
|
|
/**
|
|
* Config
|
|
*
|
|
* @package spectra-pro
|
|
* @since 1.0.0
|
|
*/
|
|
class Config {
|
|
/**
|
|
* Micro Constructor
|
|
*/
|
|
public static function init() {
|
|
$self = new self();
|
|
$self->load_blocks();
|
|
}
|
|
|
|
/**
|
|
* Register All Blocks.
|
|
*
|
|
* @return void
|
|
* @since 1.0.0
|
|
*/
|
|
public function load_blocks() {
|
|
Login\Block::init();
|
|
Register\Block::init();
|
|
InstagramFeed\Block::init();
|
|
FreemiumBlocks\Countdown\Block::init();
|
|
FreemiumBlocks\Modal\Block::init();
|
|
FreemiumBlocks\Countdown\Block::init();
|
|
FreemiumBlocks\Slider\Block::init();
|
|
FreemiumBlocks\ImageGallery\Block::init();
|
|
}
|
|
}
|