|
@@ 123-132 (lines=10) @@
|
| 120 |
|
} |
| 121 |
|
} |
| 122 |
|
} elseif ( 0 === strpos( $type, 'template_' ) && ! $is_front_page ) { |
| 123 |
|
if ( is_page_template( substr( $type, 9 ) ) ) { |
| 124 |
|
if ( 'none' != $_ccss_contents ) { |
| 125 |
|
if ( $ao_ccss_debug ) { |
| 126 |
|
$_ccss_contents = '/* TYPES: ' . $type . ' hash: ' . $rule['hash'] . ' file: ' . $rule['file'] . ' */ ' . $_ccss_contents; |
| 127 |
|
} |
| 128 |
|
return apply_filters( 'autoptimize_filter_ccss_core_ccss', $_ccss_contents . $ao_ccss_additional ); |
| 129 |
|
} else { |
| 130 |
|
$no_ccss = 'none'; |
| 131 |
|
} |
| 132 |
|
} |
| 133 |
|
} elseif ( ! $is_front_page ) { |
| 134 |
|
// all "normal" conditional tags, core + woo + buddypress + edd + bbpress |
| 135 |
|
// but we have to remove the prefix for the non-core ones for them to function. |
|
@@ 137-146 (lines=10) @@
|
| 134 |
|
// all "normal" conditional tags, core + woo + buddypress + edd + bbpress |
| 135 |
|
// but we have to remove the prefix for the non-core ones for them to function. |
| 136 |
|
$type = str_replace( array( 'woo_', 'bp_', 'bbp_', 'edd_' ), '', $type ); |
| 137 |
|
if ( function_exists( $type ) && call_user_func( $type ) ) { |
| 138 |
|
if ( 'none' != $_ccss_contents ) { |
| 139 |
|
if ( $ao_ccss_debug ) { |
| 140 |
|
$_ccss_contents = '/* TYPES: ' . $type . ' hash: ' . $rule['hash'] . ' file: ' . $rule['file'] . ' */ ' . $_ccss_contents; |
| 141 |
|
} |
| 142 |
|
return apply_filters( 'autoptimize_filter_ccss_core_ccss', $_ccss_contents . $ao_ccss_additional ); |
| 143 |
|
} else { |
| 144 |
|
$no_ccss = 'none'; |
| 145 |
|
} |
| 146 |
|
} |
| 147 |
|
} |
| 148 |
|
} |
| 149 |
|
} |