| Server IP : 172.67.153.42 / Your IP : 216.73.217.138 Web Server : Apache System : Linux vps-850873.bgcolombia.com 3.10.0-1160.144.1.el7.tuxcare.els5.x86_64 #1 SMP Wed May 13 12:31:54 UTC 2026 x86_64 User : melizav ( 1018) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/melizav/.trash/oceanwp/partials/ |
Upload File : |
<?php
/**
* The template for displaying the page header.
*
* @package OceanWP WordPress theme
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Return if page header is disabled
if ( ! oceanwp_has_page_header() ) {
return;
}
// Classes
$classes = array( 'page-header' );
// Get header style
$style = oceanwp_page_header_style();
// Add classes for title style
if ( $style ) {
$classes[$style .'-page-header'] = $style .'-page-header';
}
// Visibility
$visibility = get_theme_mod( 'ocean_page_header_visibility', 'all-devices' );
if ( 'all-devices' != $visibility ) {
$classes[] = $visibility;
}
// Turn into space seperated list
$classes = implode( ' ', $classes );
// Heading tag
$heading = get_theme_mod( 'ocean_page_header_heading_tag', 'h1' );
$heading = $heading ? $heading : 'h1';
$heading = apply_filters( 'ocean_page_header_heading', $heading ); ?>
<?php do_action( 'ocean_before_page_header' ); ?>
<header class="<?php echo esc_attr( $classes ); ?>">
<?php do_action( 'ocean_before_page_header_inner' ); ?>
<div class="container clr page-header-inner">
<?php
// Return if page header is disabled
if ( oceanwp_has_page_header_heading() ) { ?>
<<?php echo esc_attr( $heading ); ?> class="page-header-title clr"<?php oceanwp_schema_markup( 'headline' ); ?>><?php echo wp_kses_post( oceanwp_title() ); ?></<?php echo esc_attr( $heading ); ?>>
<?php get_template_part( 'partials/page-header-subheading' ); ?>
<?php } ?>
<?php if ( function_exists( 'oceanwp_breadcrumb_trail' ) ) {
oceanwp_breadcrumb_trail();
} ?>
</div><!-- .page-header-inner -->
<?php oceanwp_page_header_overlay(); ?>
<?php do_action( 'ocean_after_page_header_inner' ); ?>
</header><!-- .page-header -->
<?php do_action( 'ocean_after_page_header' ); ?>