HEX
Server: Apache/2.4.29 (Ubuntu)
System: Linux bareserver 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
User: root (0)
PHP: 7.2.24-0ubuntu0.18.04.17
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: /var/www/html/site/newsite/wp-content/themes/digital-download/sections/banner.php
<?php
/**
 * Banner Section
 * 
 * @package Digital_Download
 */

$ed_banner       = get_theme_mod( 'ed_banner_section', true );
$banner_title    = get_theme_mod( 'banner_title', __( 'Most Selective Market of Digital Products for Creatives.', 'digital-download' ) );
$banner_subtitle = get_theme_mod( 'banner_subtitle', __( 'Curated Design Resources to Energize Your Creative Workflow.', 'digital-download' ) );
$banner_label    = get_theme_mod( 'banner_label', __( 'View All Products', 'digital-download' ) );
$banner_link     = get_theme_mod( 'banner_link', '#' );
$second_label    = get_theme_mod( 'second_label', __( 'See Our Pricing', 'digital-download' ) );
$second_link     = get_theme_mod( 'second_link', '#' );
$banner_image    = get_header_image();    
if( $banner_image ){ ?>
    <div id="banner_section" class="banner" style="background: url(<?php echo esc_url( $banner_image ); ?>) no-repeat;">
        <?php 
            if( $banner_title || $banner_subtitle || ( $banner_label && $banner_link ) || ( $second_label && $second_link ) ){
                echo '<div class="banner-text">';
                if( $banner_title ) echo '<h2 class="title">' . esc_html( $banner_title ) . '</h2>';
                if( $banner_subtitle ) echo '<div class="banner-content">' . wp_kses_post( $banner_subtitle ) . '</div>';
        		if( ( $banner_label && $banner_link ) || ( $second_label && $second_link ) ){
                    echo '<div class="btn-holder">';
                    if( $banner_label && $banner_link ) echo '<a href="' . esc_url( $banner_link ) . '" class="btn-primary btn-view-product">' . esc_html( $banner_label ) . '</a>';
                    if( $second_label && $second_link ) echo '<a href="' . esc_url( $second_link ) . '" class="btn-primary btn-view-pricing">' . esc_html( $second_label ) . '</a>';
                    echo '</div>';
                }
                echo '</div>';                   
            }
        ?>
    </div>
<?php
}