id="post-"> ID, 'chaplin_fullscreen' ) : ''; if ( $image_url ) { $cover_header_style = ' style="background-image: url( ' . esc_url( $image_url ) . ' );"'; $cover_header_classes = ' bg-image'; } // Get the color used for the color overlay $color_overlay_color = get_theme_mod( 'chaplin_cover_template_overlay_background_color' ); if ( $color_overlay_color ) { $color_overlay_style = ' style="color: ' . esc_attr( $color_overlay_color ) . ';"'; } else { $color_overlay_style = ''; } // Note: The text color is applied by chaplin_get_customizer_css(), in functions.php // Get the fixed background attachment option if ( get_theme_mod( 'chaplin_cover_template_fixed_background', true ) ) { $cover_header_classes .= ' bg-attachment-fixed'; } // Get the opacity of the color overlay $color_overlay_opacity = get_theme_mod( 'chaplin_cover_template_overlay_opacity' ); $color_overlay_opacity = ( $color_overlay_opacity === false ) ? 80 : $color_overlay_opacity; $color_overlay_classes .= ' opacity-' . $color_overlay_opacity; // Get the blend mode of the color overlay (default = multiply) $color_overlay_opacity = get_theme_mod( 'chaplin_cover_template_overlay_blend_mode', 'multiply' ); $color_overlay_classes .= ' blend-mode-' . $color_overlay_opacity; // Check whether we're fading the text $overlay_fade_text = get_theme_mod( 'chaplin_cover_template_fade_text', true ); $section_inner_classes = $overlay_fade_text ? ' fade-block' : ''; ?>
>
>
'', ) ); if ( $post_type !== 'post' ) { edit_post_link(); } ?>
ID, 'single-bottom' ); if ( is_single() ) : // Single pagination $next_post = get_next_post(); $prev_post = get_previous_post(); if ( $next_post || $prev_post ) : $pagination_classes = ''; if ( ! $next_post ) { $pagination_classes = ' only-one only-prev'; } elseif ( ! $prev_post ) { $pagination_classes = ' only-one only-next'; } ?>