add files
This commit is contained in:
53
template-parts/critical-styles.php
Normal file
53
template-parts/critical-styles.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<!--[critical-styles]-->
|
||||
|
||||
<?php get_template_part("template-parts/critical-styles/styles-default") ?>
|
||||
|
||||
<?php if( 1==1 || !wp_is_mobile() ) : ?>
|
||||
|
||||
<?php get_template_part("template-parts/critical-styles/styles-default-desktop") ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php get_template_part("template-parts/critical-styles/styles-default-mobile") ?>
|
||||
|
||||
<?php get_template_part("template-parts/critical-styles/styles-header") ?>
|
||||
|
||||
<?php if( 1==1 || is_author() ) : ?>
|
||||
|
||||
<?php get_template_part("template-parts/critical-styles/styles-author") ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if( 1==1 || is_front_page() ) : ?>
|
||||
|
||||
<?php get_template_part("template-parts/critical-styles/styles-home") ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if( 1==1 || is_search() ) : ?>
|
||||
|
||||
<?php get_template_part("template-parts/critical-styles/styles-search") ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if( 1==1 || is_single() ) : ?>
|
||||
|
||||
<?php get_template_part("template-parts/critical-styles/styles-single") ?>
|
||||
|
||||
<!--TODO: когда сделаю галерею, ксску выводить только если галерея есть в посте-->
|
||||
|
||||
<?php get_template_part("template-parts/critical-styles/styles-single-gallery") ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if( 1==1 || is_tag() ) : ?>
|
||||
|
||||
<?php get_template_part("template-parts/critical-styles/styles-tag") ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!--[/critical-styles]-->
|
||||
Reference in New Issue
Block a user