mirror of
https://github.com/elementor/hello-theme.git
synced 2026-07-26 12:26:54 +08:00
Some checks failed
Lint / PHPCS (push) Failing after 0s
PHPUnit / File Diff (push) Failing after 0s
Build / Build theme (push) Failing after 42s
Lint / ESLint (push) Failing after 1m58s
PHPUnit / PHPUnit - WordPress 6.8 - PHP version 7.4 (push) Has been skipped
PHPUnit / PHPUnit - WordPress 6.9 - PHP version 7.4 (push) Has been skipped
PHPUnit / PHPUnit - WordPress latest - PHP version 7.4 (push) Has been skipped
PHPUnit / PHPUnit - WordPress nightly - PHP version 7.4 (push) Has been skipped
PHPUnit / PHPUnit - WordPress 6.8 - PHP version 8.0 (push) Has been skipped
PHPUnit / PHPUnit - WordPress 6.9 - PHP version 8.0 (push) Has been skipped
PHPUnit / PHPUnit - WordPress latest - PHP version 8.0 (push) Has been skipped
PHPUnit / PHPUnit - WordPress nightly - PHP version 8.0 (push) Has been skipped
PHPUnit / PHPUnit - WordPress 6.8 - PHP version 8.1 (push) Has been skipped
PHPUnit / PHPUnit - WordPress 6.9 - PHP version 8.1 (push) Has been skipped
PHPUnit / PHPUnit - WordPress latest - PHP version 8.1 (push) Has been skipped
PHPUnit / PHPUnit - WordPress nightly - PHP version 8.1 (push) Has been skipped
PHPUnit / PHPUnit - WordPress 6.8 - PHP version 8.2 (push) Has been skipped
PHPUnit / PHPUnit - WordPress 6.9 - PHP version 8.2 (push) Has been skipped
PHPUnit / PHPUnit - WordPress latest - PHP version 8.2 (push) Has been skipped
PHPUnit / PHPUnit - WordPress nightly - PHP version 8.2 (push) Has been skipped
PHPUnit / PHPUnit - WordPress 6.8 - PHP version 8.3 (push) Has been skipped
PHPUnit / PHPUnit - WordPress 6.9 - PHP version 8.3 (push) Has been skipped
PHPUnit / PHPUnit - WordPress latest - PHP version 8.3 (push) Has been skipped
PHPUnit / PHPUnit - WordPress nightly - PHP version 8.3 (push) Has been skipped
PHPUnit / PHPUnit - Test Results (push) Successful in 2s
* Update PHPCS * Fix PHP lint errors
36 lines
1 KiB
PHP
36 lines
1 KiB
PHP
<?php
|
|
/**
|
|
* The site's entry point.
|
|
*
|
|
* Loads the relevant template part,
|
|
* the loop is executed (when needed) by the relevant template part.
|
|
*
|
|
* @package HelloElementor
|
|
*/
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly.
|
|
}
|
|
|
|
get_header();
|
|
|
|
$is_elementor_theme_exist = function_exists( 'elementor_theme_do_location' );
|
|
|
|
if ( is_singular() ) {
|
|
if ( ! $is_elementor_theme_exist || ! elementor_theme_do_location( 'single' ) ) {
|
|
get_template_part( 'template-parts/single' );
|
|
}
|
|
} elseif ( is_archive() || is_home() ) {
|
|
if ( ! $is_elementor_theme_exist || ! elementor_theme_do_location( 'archive' ) ) {
|
|
get_template_part( 'template-parts/archive' );
|
|
}
|
|
} elseif ( is_search() ) {
|
|
if ( ! $is_elementor_theme_exist || ! elementor_theme_do_location( 'archive' ) ) {
|
|
get_template_part( 'template-parts/search' );
|
|
}
|
|
} else { // phpcs:ignore Universal.ControlStructures.DisallowLonelyIf.Found
|
|
if ( ! $is_elementor_theme_exist || ! elementor_theme_do_location( 'single' ) ) {
|
|
get_template_part( 'template-parts/404' );
|
|
}
|
|
}
|
|
|
|
get_footer();
|