Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function food_restro_pro_render_service_section( $content_details = array() ) {
- $options = food_restro_pro_get_theme_options();
- $column = ! empty( $options['service_column'] ) ? $options['service_column'] : 'col-4';
- $i = 1;
- if ( empty( $content_details ) ) {
- return;
- } ?>
- <div id="our-services" class="relative page-section">
- <div class="wrapper">
- <?php if ( ! empty( $options['service_title'] ) || ! empty( $options['service_subtitle'] ) ) : ?>
- <div class="section-header">
- <?php if ( ! empty( $options['service_subtitle'] ) ) : ?>
- <p class="section-subtitle"><?php echo esc_html( $options['service_subtitle'] ); ?></p>
- <?php endif;
- if ( ! empty( $options['service_title'] ) ) : ?>
- <h2 class="section-title"><?php echo esc_html( $options['service_title'] ); ?></h2>
- <?php endif; ?>
- </div><!-- .section-header -->
- <?php endif; ?>
- <!-- supports col-2,col-3,col-4 -->
- <div class="section-content <?php echo esc_attr( $column ); ?>">
- <?php foreach ( $content_details as $content ) : ?>
- <article class="hentry">
- <div class="icon-container">
- <a href="<?php echo esc_url( $content['url'] ); ?>">
- <i class="fa fa-2x <?php echo ! empty( $options['service_content_icon_' . $i] ) ? esc_attr( $options['service_content_icon_' . $i] ) : 'fa-cogs'; ?>"></i>
- </a>
- </div><!-- .icon-container -->
- <header class="entry-header">
- <h2 class="entry-title"><a href="<?php echo esc_url( $content['url'] ); ?>"><?php echo esc_html( $content['title'] ); ?></h2>
- </header>
- <div class="entry-content">
- <?php echo esc_html( $content['excerpt'] ); ?>
- </div><!-- .entry-content -->
- </a>
- </article><!-- .hentry -->
- <?php $i++; endforeach; ?>
- </div><!-- .entry-content -->
- </div><!-- .wrapper -->
- </div><!-- #our-services-->
- <?php }
Advertisement
Add Comment
Please, Sign In to add comment