| 1 |
<?php |
| 2 |
|
| 3 |
namespace Templately\Builder\Managers; |
| 4 |
|
| 5 |
use Templately\Builder\TemplateLoader; |
| 6 |
|
| 7 |
class ThemeCompatibility { |
| 8 |
private $theme; |
| 9 |
private $template; |
| 10 |
|
| 11 |
public function __construct() { |
| 12 |
add_action( 'init', [$this, 'init'] ); |
| 13 |
} |
| 14 |
|
| 15 |
public function init() { |
| 16 |
$this->theme = wp_get_theme(); |
| 17 |
$this->template = $this->theme->get_template(); |
| 18 |
|
| 19 |
// switch ( $this->template ) { |
| 20 |
// } |
| 21 |
|
| 22 |
add_action( 'templately_locations', [ $this, 'register_locations' ], 999 ); |
| 23 |
} |
| 24 |
|
| 25 |
public function register_locations( $manager ) { |
| 26 |
|
| 27 |
} |
| 28 |
} |