Skip to content

Instantly share code, notes, and snippets.

@jmabbas
Created June 16, 2025 07:26
Show Gist options
  • Save jmabbas/2b074d4867ef961b69765d7438feaaed to your computer and use it in GitHub Desktop.
Save jmabbas/2b074d4867ef961b69765d7438feaaed to your computer and use it in GitHub Desktop.
Pizzaro - Footer about
function pizzaro_footer_about_info() {
$about_info = apply_filters(
'pizzaro_footer_about_info_args',
array(
'img_src' => '//placehold.it/435x330',
'title' => esc_html__( 'About us', 'pizzaro' ),
'description' => esc_html__( 'Proin ac semper mi. Phasellus magna elit, dapibus at egestas a, facilisis nec ligula. In vitae ex ante. Aliquam interdum maximus dui quis sodales. Cras vel mi diam. Phasellus mi ante, iaculis nec tempus ac, tincidunt sit amet eros. Fusce malesuada elit massa, ac eleifend massa ligula, semper sed faucibus vitae, fermentum sed ex.', 'pizzaro' ),
'button_text' => esc_html__( 'Read More    →', 'pizzaro' ),
'button_link' => '#',
)
);
if ( apply_filters( 'pizzaro_show_footer_about_info', true ) && ! empty( $about_info ) ) : ?>
<div class="footer-about-info">
<div class="container">
<div class="row">
<div class="col-md-5 image">
<img src="<?php echo esc_url( $about_info['img_src'] ); ?>" alt="<?php echo esc_attr( $about_info['title'] ); ?>" />
</div>
<div class="col-md-7 content">
<?php if ( ! empty( $about_info['title'] ) ) : ?>
<h2><?php echo esc_html( $about_info['title'] ); ?></h2>
<?php endif; ?>
<?php if ( ! empty( $about_info['description'] ) ) : ?>
<p><?php echo esc_html( $about_info['description'] ); ?></p>
<?php endif; ?>
<?php if ( ! empty( $about_info['button_link'] ) && ! empty( $about_info['button_text'] ) ) : ?>
<a href="<?php echo esc_url( $about_info['button_link'] ); ?>"><?php echo esc_html( $about_info['button_text'] ); ?></a>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php
endif;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment