File tree Expand file tree Collapse file tree 5 files changed +7
-4
lines changed
Expand file tree Collapse file tree 5 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 77
88namespace FairExplorer \Controller ;
99
10+ use FairExplorer \Controller \Typo3 \Typo3 ;
11+ use FairExplorer \Controller \WordPress \Playground ;
12+
1013class Main extends \FairExplorer \Model \Singleton {
1114 /**
1215 * Constructor.
Original file line number Diff line number Diff line change 66 * Registers the extensions asset type and fetches data from AspireCloud.
77 */
88
9- namespace FairExplorer \Controller ;
9+ namespace FairExplorer \Controller \ Typo3 ;
1010
1111class Typo3 {
1212 /**
Original file line number Diff line number Diff line change 66 * Handles REST API endpoints for generating WordPress Playground blueprints.
77 */
88
9- namespace FairExplorer \Controller ;
9+ namespace FairExplorer \Controller \ WordPress ;
1010
1111use WP_REST_Request ;
1212use WP_REST_Response ;
Original file line number Diff line number Diff line change 4949 $ preview_url = '' ;
5050 if ( $ theme_slug ) {
5151 $ zip_url = $ asset_info ->get_download_link ();
52- $ preview_url = FairExplorer \Controller \Playground::get_playground_url ( [ 'theme ' => $ zip_url ] );
52+ $ preview_url = FairExplorer \Controller \WordPress \ Playground::get_playground_url ( [ 'theme ' => $ zip_url ] );
5353 }
5454 ?>
5555 <a href="<?php echo esc_url ( $ preview_url ); ?> " class="button button-primary" target="_blank" rel="noopener noreferrer">
Original file line number Diff line number Diff line change 66
77$ asset_info = $ args ['asset_info ' ] ?? $ args ['theme_info ' ] ?? null ;
88if ( $ asset_info && $ asset_info ->get_slug () ) {
9- $ args ['preview_url ' ] = FairExplorer \Controller \Playground::get_playground_url ( [ 'theme ' => $ asset_info ->get_download_link () ] );
9+ $ args ['preview_url ' ] = FairExplorer \Controller \WordPress \ Playground::get_playground_url ( [ 'theme ' => $ asset_info ->get_download_link () ] );
1010}
1111require AE_DIR_PATH . DIRECTORY_SEPARATOR . 'includes ' . DIRECTORY_SEPARATOR . 'views ' . DIRECTORY_SEPARATOR . 'shared ' . DIRECTORY_SEPARATOR . 'archive-card.php ' ;
You can’t perform that action at this time.
0 commit comments