Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * Template Name: About One
- *
- * This is the template that displays all pages by default.
- * Please note that this is the WordPress construct of pages
- * and that other 'pages' on your WordPress site may use a
- * different template.
- *
- * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
- *
- * @package consultstreet
- */
- get_header();
- get_template_part('template-parts/site','breadcrumb');
- $consultstreet_about_cta_disabled = get_theme_mod('consultstreet_about_cta_disabled', true);
- $consultstreet_about_funfact_disabled = get_theme_mod('consultstreet_about_funfact_disabled', true);
- $consultstreet_about_team_disabled = get_theme_mod('consultstreet_about_team_disabled', true);
- $consultstreet_about_client_disabled = get_theme_mod('consultstreet_about_client_disabled', true);
- ?>
- <!--About-->
- <section class="theme-block theme-about">
- <div class="container">
- <div class="row">
- <div class="col-lg-12 col-md-12 col-sm-12">
- <?php the_post();
- the_content(); ?>
- </div>
- </div>
- </div>
- </section>
- <!-- /About -->
- <!-- cta-->
- <?php if($consultstreet_about_cta_disabled == true) :
- $consultstreet_cta_area_subtitle = get_theme_mod('consultstreet_cta_area_subtitle', 'Do you have any questions?');
- $consultstreet_cta_area_des = get_theme_mod('consultstreet_cta_area_des', 'How can we help your business? Because many people love our free consultation for growing their businesses which gives the user complete freedom to set up a business.');
- $consultstreet_cta_button_text = get_theme_mod('consultstreet_cta_button_text', 'Get in Touch');
- $consultstreet_cta_button_link = get_theme_mod('consultstreet_cta_button_link', '#');
- $consultstreet_cta_open_new_tab_disabled = get_theme_mod('consultstreet_cta_open_new_tab_disabled', true);
- $consultstreet_cta_front_container_size = get_theme_mod('consultstreet_cta_front_container_size', 'container');
- $consultstreet_cta_area_before_content = get_theme_mod('consultstreet_cta_area_before_content');
- $consultstreet_cta_area_after_content = get_theme_mod('consultstreet_cta_area_after_content'); ?>
- <!--Call to Action Section-->
- <section class="theme-cta" id="theme-cta">
- <div class="theme-cta-overlay"></div>
- <div class="<?php echo $consultstreet_cta_front_container_size; ?>">
- <div class="row">
- <div class="col-lg-12 col-md-12 col-sm-12">
- <div class="cta-block text-center">
- <?php if($consultstreet_cta_area_subtitle != null): ?>
- <h2 class="title text-white"><?php echo $consultstreet_cta_area_subtitle; ?></h2>
- <?php endif; ?>
- <?php if($consultstreet_cta_area_des != null): ?>
- <p class="text-white"><?php echo $consultstreet_cta_area_des; ?></p>
- <?php endif; ?>
- <?php if($consultstreet_cta_button_text != null): ?>
- <div class="mx-auto mt-3">
- <a href="<?php echo $consultstreet_cta_button_link; ?>" <?php if($consultstreet_cta_open_new_tab_disabled == true){?>target="_blank" <?php }?> class="btn-small btn-default"><?php echo $consultstreet_cta_button_text; ?></a>
- </div>
- <?php endif; ?>
- </div>
- </div>
- </div>
- </div>
- </section>
- <!--/End of Call to Action Section-->
- <?php endif; ?>
- <!-- Funfact -->
- <?php if($consultstreet_about_funfact_disabled == true) :
- $consultstreet_funfact_content = get_theme_mod( 'consultstreet_funfact_content');
- $consultstreet_funfact_overlay_disable = get_theme_mod('consultstreet_funfact_overlay_disable', true);
- $consultstreet_funfact_column_layout = get_theme_mod('consultstreet_funfact_column_layout', '4');
- $consultstreet_funfact_column_layout = 12/$consultstreet_funfact_column_layout;
- $consultstreet_funfact_front_container_size = get_theme_mod('consultstreet_funfact_front_container_size', 'container');
- $consultstreet_funfact_area_title = get_theme_mod('consultstreet_funfact_area_title', 'We create amazing solutions that work ideas for your whole company.');
- $consultstreet_funfact_area_des = get_theme_mod('consultstreet_funfact_area_des', 'Until recently, the prevailing view assumed lorem ipsum was born as a nonsense text. Its not Latin, though it looks like it, and it actually says nothing, Before & After magazine answered a curious reader words approximate.');
- $consultstreet_funfact_button_text = get_theme_mod('consultstreet_funfact_button_text', 'Get in Touch.');
- $consultstreet_funfact_button_link = get_theme_mod('consultstreet_funfact_button_link', '#');
- $consultstreet_funfact_open_new_tab_disabled = get_theme_mod('consultstreet_funfact_open_new_tab_disabled', true);
- ?>
- <!-- Funfact Section -->
- <section class="theme-funfact" id="theme-funfact">
- <?php if($consultstreet_funfact_overlay_disable == true): ?>
- <div class="theme-funfact-overlay"></div>
- <?php endif; ?>
- <div class="<?php echo $consultstreet_funfact_front_container_size; ?>">
- <div class="row">
- <?php if($consultstreet_funfact_area_title || $consultstreet_funfact_area_des || $consultstreet_funfact_button_text) { ?>
- <div class="col-lg-6 col-md-6 col-sm-12">
- <div class="theme-funfact-content">
- <?php if($consultstreet_funfact_area_title != null){ ?>
- <h2 class="funfact-content-title text-light"><?php echo $consultstreet_funfact_area_title; ?></h2>
- <?php } ?>
- <?php if($consultstreet_funfact_area_des != null){ ?>
- <p class="funfact-content-description text-light"><?php echo $consultstreet_funfact_area_des; ?></p>
- <?php } ?>
- <?php if($consultstreet_funfact_button_text != null){ ?>
- <div class="mx-auto mt-3 mb-4">
- <a href="<?php echo $consultstreet_funfact_button_link; ?>" <?php if($consultstreet_funfact_open_new_tab_disabled == true){?>target="_blank" <?php }?> class="btn-small btn-light"><?php echo $consultstreet_funfact_button_text; ?></a>
- </div>
- <?php } ?>
- </div>
- </div>
- <?php } ?>
- <div class="col-lg-6 col-md-6 col-sm-12">
- <div class="row">
- <?php
- if ( ! empty( $consultstreet_funfact_content ) ) {
- $allowed_html = array(
- 'br' => array(),
- 'em' => array(),
- 'strong' => array(),
- 'b' => array(),
- 'i' => array(),
- );
- $consultstreet_funfact_content = json_decode( $consultstreet_funfact_content );
- foreach ( $consultstreet_funfact_content as $features_item ) {
- $icon = ! empty( $features_item->icon_value ) ? apply_filters( 'consultstreet_translate_single_string',$features_item->icon_value, 'Theme Funfact' ) : '';
- $title = ! empty( $features_item->title ) ? apply_filters( 'consultstreet_translate_single_string', $features_item->title, 'Theme Funfact' ) : '';
- $text = ! empty( $features_item->text ) ? apply_filters( 'consultstreet_translate_single_string',
- $features_item->text, 'Theme Funfact' ) : '';
- ?>
- <div class="col-lg-6 col-md-6 col-sm-12">
- <div class="theme-funfact-inner">
- <?php if ( ! empty( $text ) ) : ?>
- <h2 class="theme-funfact-title"><?php echo wp_kses( html_entity_decode( $text ), $allowed_html ); ?></h2>
- <?php endif; ?>
- <?php if ( ! empty( $title ) ) : ?>
- <p class="text-white"><?php echo esc_html( $title ); ?></p>
- <?php endif; ?>
- </div>
- </div>
- <?php } } else { ?>
- <div class="col-lg-6 col-md-6 col-sm-12">
- <div class="theme-funfact-inner">
- <h2 class="theme-funfact-title"><?php _e('850','consultstreet'); ?></h2>
- <p class="text-white"><?php esc_html_e('Cases Completed','consultstreet'); ?></p>
- </div>
- </div>
- <div class="col-lg-6 col-md-6 col-sm-12">
- <div class="theme-funfact-inner">
- <h2 class="theme-funfact-title"><?php _e('250','consultstreet'); ?></h2>
- <p class="text-white"><?php esc_html_e('Award Won','consultstreet'); ?></p>
- </div>
- </div>
- <div class="col-lg-6 col-md-6 col-sm-12">
- <div class="theme-funfact-inner">
- <h2 class="theme-funfact-title"><?php _e('9','consultstreet'); ?></h2>
- <p class="text-white"><?php esc_html_e('Years of Experience','consultstreet'); ?></p>
- </div>
- </div>
- <div class="col-lg-6 col-md-6 col-sm-12">
- <div class="theme-funfact-inner">
- <h2 class="theme-funfact-title"><?php _e('1750','consultstreet'); ?></h2>
- <p class="text-white"><?php esc_html_e('Happy Customers','consultstreet'); ?></p>
- </div>
- </div>
- <?php } ?>
- </div>
- </div>
- </div>
- </div>
- </section>
- <?php endif; ?>
- <!-- Funfact -->
- <!-- Team -->
- <?php
- if($consultstreet_about_team_disabled == true) :
- $consultstreet_team_content = get_theme_mod('consultstreet_team_content');
- $consultstreet_team_area_des = get_theme_mod('consultstreet_team_area_des', 'Our creative and technical team here for your best consultation.');
- $consultstreet_team_area_title = get_theme_mod('consultstreet_team_area_title', 'Meet Our Best Team');
- $consultstreet_team_front_container_size = get_theme_mod('consultstreet_team_front_container_size', 'container');
- ?>
- <section class="theme-block team-mambers theme-bg-grey">
- <div class="<?php echo $consultstreet_team_front_container_size; ?>">
- <?php if($consultstreet_team_area_title != null || $consultstreet_team_area_des != null): ?>
- <div class="row">
- <div class="col-lg-12 col-md-12 col-xs-12">
- <div class="theme-section-module text-center">
- <?php if($consultstreet_team_area_title != null): ?>
- <h2 class="theme-section-title"><?php echo $consultstreet_team_area_title; ?></h2>
- <?php endif; ?>
- <?php if($consultstreet_team_area_des != null): ?>
- <p class="theme-section-subtitle"><?php echo $consultstreet_team_area_des; ?></p>
- <?php endif; ?>
- <div class="theme-separator-line-horrizontal-full"></div>
- </div>
- </div>
- </div>
- <?php endif; ?>
- <div class="row theme-team-content">
- <?php
- $consultstreet_team_content = json_decode($consultstreet_team_content);
- if( $consultstreet_team_content!='' )
- {
- foreach($consultstreet_team_content as $team_content){
- $image = ! empty( $team_content->image_url ) ? apply_filters( 'consultstreet_translate_single_string', $team_content->image_url, 'Theme Team' ) : '';
- $title = ! empty( $team_content->title ) ? apply_filters( 'consultstreet_translate_single_string', $team_content->title, 'Theme Team' ) : '';
- $subtitle = ! empty( $team_content->subtitle ) ? apply_filters( 'consultstreet_translate_single_string', $team_content->subtitle, 'Theme Team' ) : '';
- $text = ! empty( $team_content->text ) ? apply_filters( 'consultstreet_translate_single_string', $team_content->text, 'Theme Team' ) : '';
- $link = ! empty( $team_content->link ) ? apply_filters( 'consultstreet_translate_single_string', $team_content->link, 'Theme Team' ) : '';
- $open_new_tab = $team_content->open_new_tab;
- ?>
- <div class="col-lg-4 col-md-6 col-sm-12">
- <div class="team-block">
- <div class="team-thumbnail">
- <?php if ( ! empty( $image ) ) : ?>
- <?php
- if ( ! empty( $link ) ) :
- $link_html = '<a href="' . esc_url( $link ) . '"';
- if ( function_exists( 'consultstreet_is_external_url' ) ) {
- $link_html .= consultstreet_is_external_url( $link );
- }
- $link_html .= '>';
- echo wp_kses_post( $link_html );
- endif;
- echo '<img class="img-fluid" src="' . esc_url( $image ) . '"';
- if ( ! empty( $title ) ) {
- echo 'alt="' . esc_attr( $title ) . '" title="' . esc_attr( $title ) . '"';
- }
- echo '/>';
- if ( ! empty( $link ) ) {
- echo '</a>';
- }
- ?>
- <?php endif; ?>
- </div>
- <div class="team-content">
- <?php if ( ! empty( $title ) ) : ?>
- <?php if ( ! empty( $link ) ) : ?>
- <a href="<?php echo $link ?>" <?php if($open_new_tab == 'yes'){ echo 'target="_blank"';}?>>
- <?php endif; ?>
- <h5 class="team-name"><?php echo esc_html( $title ); ?></h5>
- <?php if ( ! empty( $link ) ) : ?>
- </a>
- <?php endif; ?>
- <?php endif; ?>
- <?php if ( ! empty( $subtitle ) ) : ?>
- <span class="position"><?php echo esc_html( $subtitle ); ?></span>
- <?php endif; ?>
- <?php if ( ! empty( $text ) ) : ?>
- <p><?php echo wp_kses_post( html_entity_decode( $text ) ); ?></p>
- <?php endif; ?>
- <?php if ( ! empty( $team_content->social_repeater ) ) :
- $icons = html_entity_decode( $team_content->social_repeater );
- $icons_decoded = json_decode( $icons, true );
- if ( ! empty( $icons_decoded ) ) : ?>
- <ul class="team-social">
- <?php
- foreach ( $icons_decoded as $value ) {
- $social_icon = ! empty( $value['icon'] ) ? apply_filters( 'consultstreet_translate_single_string', $value['icon'], 'Team section' ) : '';
- $social_link = ! empty( $value['link'] ) ? apply_filters( 'consultstreet_translate_single_string', $value['link'], 'Team section' ) : '';
- if ( ! empty( $social_icon ) ) { ?>
- <li><a href="<?php echo esc_url( $social_link ); ?>" <?php if($open_new_tab == 'yes'){ echo 'target="_blank"';}?>><i class="fa <?php echo esc_attr( $social_icon ); ?>"></i></a></li>
- <?php } } ?>
- </ul> <?php
- endif;
- endif; ?>
- </div>
- </div>
- </div>
- <?php } }else
- { ?>
- <div class="col-lg-4 col-md-6 col-sm-12">
- <div class="team-block">
- <div class="team-thumbnail">
- <img src="<?php echo get_template_directory_uri(); ?>/assets/img/team/theme-team1.jpg" class="img-fluid" alt="<?php echo esc_html('Mariana Huffington'); ?>">
- </div>
- <div class="team-content">
- <span class="position"><?php esc_html_e('Founder','consultstreet'); ?></span>
- <h5 class="team-name"><?php echo esc_html('Mariana Huffington'); ?></h5>
- <p><?php echo esc_html('Lorem ipsum dolor sit amet, consec adipisicing elit sed do tempor.'); ?></p>
- <ul class="team-social">
- <li><a class="facebook" href="#"><i class="fa fa-facebook"></i></a></li>
- <li><a class="twitter" href="#"><i class="fa fa-twitter"></i></a></li>
- <li><a class="linkedin" href="#"><i class="fa fa-linkedin"></i></a></li>
- <li><a class="skype" href="#"><i class="fa fa-skype"></i></a></li>
- </ul>
- </div>
- </div>
- </div>
- <div class="col-lg-4 col-md-6 col-sm-12">
- <div class="team-block">
- <div class="team-thumbnail">
- <img src="<?php echo get_template_directory_uri(); ?>/assets/img/team/theme-team2.jpg" class="img-fluid" alt="<?php echo esc_html('Robert Starford'); ?>">
- </div>
- <div class="team-content">
- <span class="position"><?php esc_html_e('UI Developer','consultstreet'); ?></span>
- <h5 class="team-name"><?php echo esc_html('Robert Starford'); ?></h5>
- <p><?php echo esc_html('Lorem ipsum dolor sit amet, consec adipisicing elit sed do tempor.'); ?></p>
- <ul class="team-social">
- <li><a class="facebook" href="#"><i class="fa fa-facebook"></i></a></li>
- <li><a class="twitter" href="#"><i class="fa fa-twitter"></i></a></li>
- <li><a class="linkedin" href="#"><i class="fa fa-linkedin"></i></a></li>
- <li><a class="skype" href="#"><i class="fa fa-skype"></i></a></li>
- </ul>
- </div>
- </div>
- </div>
- <div class="col-lg-4 col-md-6 col-sm-12">
- <div class="team-block">
- <div class="team-thumbnail">
- <img src="<?php echo get_template_directory_uri(); ?>/assets/img/team/theme-team3.jpg" class="img-fluid" alt="<?php echo esc_html('Olivia Kevinson'); ?>">
- </div>
- <div class="team-content">
- <span class="position"><?php esc_html_e('Manager','consultstreet'); ?></span>
- <h5 class="team-name"><?php echo esc_html('Olivia Kevinson'); ?></h5>
- <p><?php echo esc_html('Lorem ipsum dolor sit amet, consec adipisicing elit sed do tempor.'); ?></p>
- <ul class="team-social">
- <li><a class="facebook" href="#"><i class="fa fa-facebook"></i></a></li>
- <li><a class="twitter" href="#"><i class="fa fa-twitter"></i></a></li>
- <li><a class="linkedin" href="#"><i class="fa fa-linkedin"></i></a></li>
- <li><a class="skype" href="#"><i class="fa fa-skype"></i></a></li>
- </ul>
- </div>
- </div>
- </div>
- <?php } ?>
- </div>
- </div>
- </section>
- <?php endif; ?>
- <!-- Team -->
- <!-- Client -->
- <?php if($consultstreet_about_client_disabled == true) :
- $consultstreet_client_options = get_theme_mod('consultstreet_clients_content');
- $consultstreet_client_front_container_size = get_theme_mod('consultstreet_client_front_container_size', 'container');
- $consultstreet_client_area_title = get_theme_mod('consultstreet_client_area_title', 'Our Clients');
- ?>
- <section class="theme-block theme-sponsors" id="theme-sponsors">
- <div class="<?php echo $consultstreet_client_front_container_size; ?>">
- <div class="row">
- <div class="col-lg-12 col-md-12 col-xs-12">
- <div class="theme-section-module text-center">
- <h2 class="theme-section-title"><?php echo $consultstreet_client_area_title; ?></h2>
- <div class="theme-separator-line-horrizontal-full"></div>
- </div>
- </div>
- </div>
- <div class="row theme-sponsors-content">
- <div id="sponsors-slider" class="owl-carousel owl-theme col-lg-12">
- <?php
- $consultstreet_client_options = json_decode($consultstreet_client_options);
- if( $consultstreet_client_options!='' )
- {
- foreach($consultstreet_client_options as $client_iteam){
- $title = ! empty( $client_iteam->title ) ? apply_filters( 'consultstreet_translate_single_string', $client_iteam->title, 'Theme Client' ) : '';
- $client_link = ! empty( $client_iteam->link ) ? apply_filters( 'consultstreet_translate_single_string', $client_iteam->link, 'Theme Client' ) : '';
- $open_new_tab = $client_iteam->open_new_tab;
- ?>
- <div class="item">
- <a href="<?php echo $client_link; ?>" class="clients-scroll" <?php if($open_new_tab == 'yes'){ echo 'target="_blank"';}?>>
- <img src="<?php echo $client_iteam->image_url; ?>" class="img-fluid" alt="Client">
- </a>
- </div>
- <?php } } else { ?>
- <div class="item">
- <a href="#" class="clients-scroll">
- <img src="<?php echo get_template_directory_uri(); ?>/assets/img/sponsors/theme-client1.png" class="img-fluid" alt="Client 1">
- </a>
- </div>
- <div class="item">
- <a href="#" class="clients-scroll">
- <img src="<?php echo get_template_directory_uri(); ?>/assets/img/sponsors/theme-client2.png" class="img-fluid" alt="Client 2">
- </a>
- </div>
- <div class="item">
- <a href="#" class="clients-scroll">
- <img src="<?php echo get_template_directory_uri(); ?>/assets/img/sponsors/theme-client3.png" class="img-fluid" alt="Client 3">
- </a>
- </div>
- <div class="item">
- <a href="#" class="clients-scroll">
- <img src="<?php echo get_template_directory_uri(); ?>/assets/img/sponsors/theme-client4.png" class="img-fluid" alt="Client 4">
- </a>
- </div>
- <div class="item">
- <a href="#" class="clients-scroll">
- <img src="<?php echo get_template_directory_uri(); ?>/assets/img/sponsors/theme-client5.png" class="img-fluid" alt="Client 5">
- </a>
- </div>
- <div class="item">
- <a href="#" class="clients-scroll">
- <img src="<?php echo get_template_directory_uri(); ?>/assets/img/sponsors/theme-client6.png" class="img-fluid" alt="Client 6">
- </a>
- </div>
- <div class="item">
- <a href="#" class="clients-scroll">
- <img src="<?php echo get_template_directory_uri(); ?>/assets/img/sponsors/theme-client7.png" class="img-fluid" alt="Client 7">
- </a>
- </div>
- <div class="item">
- <a href="#" class="clients-scroll">
- <img src="<?php echo get_template_directory_uri(); ?>/assets/img/sponsors/theme-client8.png" class="img-fluid" alt="Client 8">
- </a>
- </div>
- <?php } ?>
- </div>
- </div>
- </div>
- </section>
- <?php endif; ?>
- <!-- Client -->
- <?php
- get_footer();
Add Comment
Please, Sign In to add comment