Guest User

Untitled

a guest
Sep 26th, 2020
35
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. *
  4. * Template Name: About One
  5. *
  6. * This is the template that displays all pages by default.
  7. * Please note that this is the WordPress construct of pages
  8. * and that other 'pages' on your WordPress site may use a
  9. * different template.
  10. *
  11. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  12. *
  13. * @package consultstreet
  14. */
  15. get_header();
  16. get_template_part('template-parts/site','breadcrumb');
  17. $consultstreet_about_cta_disabled = get_theme_mod('consultstreet_about_cta_disabled', true);
  18. $consultstreet_about_funfact_disabled = get_theme_mod('consultstreet_about_funfact_disabled', true);
  19. $consultstreet_about_team_disabled = get_theme_mod('consultstreet_about_team_disabled', true);
  20. $consultstreet_about_client_disabled = get_theme_mod('consultstreet_about_client_disabled', true);
  21. ?>
  22. <!--About-->
  23. <section class="theme-block theme-about">
  24. <div class="container">
  25. <div class="row">
  26. <div class="col-lg-12 col-md-12 col-sm-12">
  27. <?php the_post();
  28. the_content(); ?>
  29. </div>
  30. </div>
  31. </div>
  32. </section>
  33. <!-- /About -->
  34.  
  35. <!-- cta-->
  36. <?php if($consultstreet_about_cta_disabled == true) :
  37.  
  38. $consultstreet_cta_area_subtitle = get_theme_mod('consultstreet_cta_area_subtitle', 'Do you have any questions?');
  39. $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.');
  40. $consultstreet_cta_button_text = get_theme_mod('consultstreet_cta_button_text', 'Get in Touch');
  41. $consultstreet_cta_button_link = get_theme_mod('consultstreet_cta_button_link', '#');
  42. $consultstreet_cta_open_new_tab_disabled = get_theme_mod('consultstreet_cta_open_new_tab_disabled', true);
  43. $consultstreet_cta_front_container_size = get_theme_mod('consultstreet_cta_front_container_size', 'container');
  44. $consultstreet_cta_area_before_content = get_theme_mod('consultstreet_cta_area_before_content');
  45. $consultstreet_cta_area_after_content = get_theme_mod('consultstreet_cta_area_after_content'); ?>
  46. <!--Call to Action Section-->
  47. <section class="theme-cta" id="theme-cta">
  48. <div class="theme-cta-overlay"></div>
  49.  
  50. <div class="<?php echo $consultstreet_cta_front_container_size; ?>">
  51. <div class="row">
  52.  
  53. <div class="col-lg-12 col-md-12 col-sm-12">
  54. <div class="cta-block text-center">
  55. <?php if($consultstreet_cta_area_subtitle != null): ?>
  56. <h2 class="title text-white"><?php echo $consultstreet_cta_area_subtitle; ?></h2>
  57. <?php endif; ?>
  58. <?php if($consultstreet_cta_area_des != null): ?>
  59. <p class="text-white"><?php echo $consultstreet_cta_area_des; ?></p>
  60. <?php endif; ?>
  61. <?php if($consultstreet_cta_button_text != null): ?>
  62. <div class="mx-auto mt-3">
  63. <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>
  64. </div>
  65. <?php endif; ?>
  66. </div>
  67. </div>
  68.  
  69. </div>
  70. </div>
  71. </section>
  72. <!--/End of Call to Action Section-->
  73. <?php endif; ?>
  74.  
  75. <!-- Funfact -->
  76. <?php if($consultstreet_about_funfact_disabled == true) :
  77.  
  78. $consultstreet_funfact_content = get_theme_mod( 'consultstreet_funfact_content');
  79. $consultstreet_funfact_overlay_disable = get_theme_mod('consultstreet_funfact_overlay_disable', true);
  80. $consultstreet_funfact_column_layout = get_theme_mod('consultstreet_funfact_column_layout', '4');
  81. $consultstreet_funfact_column_layout = 12/$consultstreet_funfact_column_layout;
  82. $consultstreet_funfact_front_container_size = get_theme_mod('consultstreet_funfact_front_container_size', 'container');
  83.  
  84. $consultstreet_funfact_area_title = get_theme_mod('consultstreet_funfact_area_title', 'We create amazing solutions that work ideas for your whole company.');
  85. $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.');
  86. $consultstreet_funfact_button_text = get_theme_mod('consultstreet_funfact_button_text', 'Get in Touch.');
  87. $consultstreet_funfact_button_link = get_theme_mod('consultstreet_funfact_button_link', '#');
  88. $consultstreet_funfact_open_new_tab_disabled = get_theme_mod('consultstreet_funfact_open_new_tab_disabled', true);
  89. ?>
  90. <!-- Funfact Section -->
  91. <section class="theme-funfact" id="theme-funfact">
  92. <?php if($consultstreet_funfact_overlay_disable == true): ?>
  93. <div class="theme-funfact-overlay"></div>
  94. <?php endif; ?>
  95. <div class="<?php echo $consultstreet_funfact_front_container_size; ?>">
  96. <div class="row">
  97.  
  98. <?php if($consultstreet_funfact_area_title || $consultstreet_funfact_area_des || $consultstreet_funfact_button_text) { ?>
  99.  
  100. <div class="col-lg-6 col-md-6 col-sm-12">
  101. <div class="theme-funfact-content">
  102. <?php if($consultstreet_funfact_area_title != null){ ?>
  103. <h2 class="funfact-content-title text-light"><?php echo $consultstreet_funfact_area_title; ?></h2>
  104. <?php } ?>
  105. <?php if($consultstreet_funfact_area_des != null){ ?>
  106. <p class="funfact-content-description text-light"><?php echo $consultstreet_funfact_area_des; ?></p>
  107. <?php } ?>
  108. <?php if($consultstreet_funfact_button_text != null){ ?>
  109. <div class="mx-auto mt-3 mb-4">
  110. <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>
  111. </div>
  112. <?php } ?>
  113. </div>
  114. </div>
  115.  
  116. <?php } ?>
  117.  
  118. <div class="col-lg-6 col-md-6 col-sm-12">
  119. <div class="row">
  120. <?php
  121. if ( ! empty( $consultstreet_funfact_content ) ) {
  122. $allowed_html = array(
  123. 'br' => array(),
  124. 'em' => array(),
  125. 'strong' => array(),
  126. 'b' => array(),
  127. 'i' => array(),
  128. );
  129. $consultstreet_funfact_content = json_decode( $consultstreet_funfact_content );
  130. foreach ( $consultstreet_funfact_content as $features_item ) {
  131. $icon = ! empty( $features_item->icon_value ) ? apply_filters( 'consultstreet_translate_single_string',$features_item->icon_value, 'Theme Funfact' ) : '';
  132. $title = ! empty( $features_item->title ) ? apply_filters( 'consultstreet_translate_single_string', $features_item->title, 'Theme Funfact' ) : '';
  133. $text = ! empty( $features_item->text ) ? apply_filters( 'consultstreet_translate_single_string',
  134. $features_item->text, 'Theme Funfact' ) : '';
  135. ?>
  136. <div class="col-lg-6 col-md-6 col-sm-12">
  137. <div class="theme-funfact-inner">
  138. <?php if ( ! empty( $text ) ) : ?>
  139. <h2 class="theme-funfact-title"><?php echo wp_kses( html_entity_decode( $text ), $allowed_html ); ?></h2>
  140. <?php endif; ?>
  141. <?php if ( ! empty( $title ) ) : ?>
  142. <p class="text-white"><?php echo esc_html( $title ); ?></p>
  143. <?php endif; ?>
  144. </div>
  145. </div>
  146. <?php } } else { ?>
  147.  
  148.  
  149. <div class="col-lg-6 col-md-6 col-sm-12">
  150. <div class="theme-funfact-inner">
  151. <h2 class="theme-funfact-title"><?php _e('850','consultstreet'); ?></h2>
  152. <p class="text-white"><?php esc_html_e('Cases Completed','consultstreet'); ?></p>
  153. </div>
  154. </div>
  155. <div class="col-lg-6 col-md-6 col-sm-12">
  156. <div class="theme-funfact-inner">
  157. <h2 class="theme-funfact-title"><?php _e('250','consultstreet'); ?></h2>
  158. <p class="text-white"><?php esc_html_e('Award Won','consultstreet'); ?></p>
  159. </div>
  160. </div>
  161. <div class="col-lg-6 col-md-6 col-sm-12">
  162. <div class="theme-funfact-inner">
  163. <h2 class="theme-funfact-title"><?php _e('9','consultstreet'); ?></h2>
  164. <p class="text-white"><?php esc_html_e('Years of Experience','consultstreet'); ?></p>
  165. </div>
  166. </div>
  167. <div class="col-lg-6 col-md-6 col-sm-12">
  168. <div class="theme-funfact-inner">
  169. <h2 class="theme-funfact-title"><?php _e('1750','consultstreet'); ?></h2>
  170. <p class="text-white"><?php esc_html_e('Happy Customers','consultstreet'); ?></p>
  171. </div>
  172. </div>
  173.  
  174. <?php } ?>
  175.  
  176. </div>
  177.  
  178. </div>
  179. </div>
  180. </div>
  181. </section>
  182. <?php endif; ?>
  183. <!-- Funfact -->
  184.  
  185. <!-- Team -->
  186. <?php
  187. if($consultstreet_about_team_disabled == true) :
  188.  
  189. $consultstreet_team_content = get_theme_mod('consultstreet_team_content');
  190. $consultstreet_team_area_des = get_theme_mod('consultstreet_team_area_des', 'Our creative and technical team here for your best consultation.');
  191. $consultstreet_team_area_title = get_theme_mod('consultstreet_team_area_title', 'Meet Our Best Team');
  192. $consultstreet_team_front_container_size = get_theme_mod('consultstreet_team_front_container_size', 'container');
  193. ?>
  194. <section class="theme-block team-mambers theme-bg-grey">
  195. <div class="<?php echo $consultstreet_team_front_container_size; ?>">
  196. <?php if($consultstreet_team_area_title != null || $consultstreet_team_area_des != null): ?>
  197. <div class="row">
  198. <div class="col-lg-12 col-md-12 col-xs-12">
  199. <div class="theme-section-module text-center">
  200. <?php if($consultstreet_team_area_title != null): ?>
  201. <h2 class="theme-section-title"><?php echo $consultstreet_team_area_title; ?></h2>
  202. <?php endif; ?>
  203. <?php if($consultstreet_team_area_des != null): ?>
  204. <p class="theme-section-subtitle"><?php echo $consultstreet_team_area_des; ?></p>
  205. <?php endif; ?>
  206. <div class="theme-separator-line-horrizontal-full"></div>
  207. </div>
  208. </div>
  209. </div>
  210. <?php endif; ?>
  211. <div class="row theme-team-content">
  212. <?php
  213. $consultstreet_team_content = json_decode($consultstreet_team_content);
  214. if( $consultstreet_team_content!='' )
  215. {
  216. foreach($consultstreet_team_content as $team_content){
  217. $image = ! empty( $team_content->image_url ) ? apply_filters( 'consultstreet_translate_single_string', $team_content->image_url, 'Theme Team' ) : '';
  218. $title = ! empty( $team_content->title ) ? apply_filters( 'consultstreet_translate_single_string', $team_content->title, 'Theme Team' ) : '';
  219. $subtitle = ! empty( $team_content->subtitle ) ? apply_filters( 'consultstreet_translate_single_string', $team_content->subtitle, 'Theme Team' ) : '';
  220. $text = ! empty( $team_content->text ) ? apply_filters( 'consultstreet_translate_single_string', $team_content->text, 'Theme Team' ) : '';
  221. $link = ! empty( $team_content->link ) ? apply_filters( 'consultstreet_translate_single_string', $team_content->link, 'Theme Team' ) : '';
  222. $open_new_tab = $team_content->open_new_tab;
  223. ?>
  224. <div class="col-lg-4 col-md-6 col-sm-12">
  225. <div class="team-block">
  226. <div class="team-thumbnail">
  227. <?php if ( ! empty( $image ) ) : ?>
  228. <?php
  229. if ( ! empty( $link ) ) :
  230. $link_html = '<a href="' . esc_url( $link ) . '"';
  231. if ( function_exists( 'consultstreet_is_external_url' ) ) {
  232. $link_html .= consultstreet_is_external_url( $link );
  233. }
  234. $link_html .= '>';
  235. echo wp_kses_post( $link_html );
  236. endif;
  237. echo '<img class="img-fluid" src="' . esc_url( $image ) . '"';
  238. if ( ! empty( $title ) ) {
  239. echo 'alt="' . esc_attr( $title ) . '" title="' . esc_attr( $title ) . '"';
  240. }
  241. echo '/>';
  242. if ( ! empty( $link ) ) {
  243. echo '</a>';
  244. }
  245. ?>
  246. <?php endif; ?>
  247.  
  248. </div>
  249.  
  250. <div class="team-content">
  251. <?php if ( ! empty( $title ) ) : ?>
  252. <?php if ( ! empty( $link ) ) : ?>
  253. <a href="<?php echo $link ?>" <?php if($open_new_tab == 'yes'){ echo 'target="_blank"';}?>>
  254. <?php endif; ?>
  255. <h5 class="team-name"><?php echo esc_html( $title ); ?></h5>
  256. <?php if ( ! empty( $link ) ) : ?>
  257. </a>
  258. <?php endif; ?>
  259. <?php endif; ?>
  260. <?php if ( ! empty( $subtitle ) ) : ?>
  261. <span class="position"><?php echo esc_html( $subtitle ); ?></span>
  262. <?php endif; ?>
  263.  
  264. <?php if ( ! empty( $text ) ) : ?>
  265. <p><?php echo wp_kses_post( html_entity_decode( $text ) ); ?></p>
  266. <?php endif; ?>
  267.  
  268. <?php if ( ! empty( $team_content->social_repeater ) ) :
  269. $icons = html_entity_decode( $team_content->social_repeater );
  270. $icons_decoded = json_decode( $icons, true );
  271. if ( ! empty( $icons_decoded ) ) : ?>
  272. <ul class="team-social">
  273. <?php
  274. foreach ( $icons_decoded as $value ) {
  275. $social_icon = ! empty( $value['icon'] ) ? apply_filters( 'consultstreet_translate_single_string', $value['icon'], 'Team section' ) : '';
  276. $social_link = ! empty( $value['link'] ) ? apply_filters( 'consultstreet_translate_single_string', $value['link'], 'Team section' ) : '';
  277. if ( ! empty( $social_icon ) ) { ?>
  278. <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>
  279. <?php } } ?>
  280. </ul> <?php
  281. endif;
  282. endif; ?>
  283. </div>
  284. </div>
  285. </div>
  286. <?php } }else
  287. { ?>
  288. <div class="col-lg-4 col-md-6 col-sm-12">
  289. <div class="team-block">
  290. <div class="team-thumbnail">
  291. <img src="<?php echo get_template_directory_uri(); ?>/assets/img/team/theme-team1.jpg" class="img-fluid" alt="<?php echo esc_html('Mariana Huffington'); ?>">
  292. </div>
  293. <div class="team-content">
  294. <span class="position"><?php esc_html_e('Founder','consultstreet'); ?></span>
  295. <h5 class="team-name"><?php echo esc_html('Mariana Huffington'); ?></h5>
  296. <p><?php echo esc_html('Lorem ipsum dolor sit amet, consec adipisicing elit sed do tempor.'); ?></p>
  297. <ul class="team-social">
  298. <li><a class="facebook" href="#"><i class="fa fa-facebook"></i></a></li>
  299. <li><a class="twitter" href="#"><i class="fa fa-twitter"></i></a></li>
  300. <li><a class="linkedin" href="#"><i class="fa fa-linkedin"></i></a></li>
  301. <li><a class="skype" href="#"><i class="fa fa-skype"></i></a></li>
  302. </ul>
  303. </div>
  304. </div>
  305. </div>
  306.  
  307. <div class="col-lg-4 col-md-6 col-sm-12">
  308. <div class="team-block">
  309. <div class="team-thumbnail">
  310. <img src="<?php echo get_template_directory_uri(); ?>/assets/img/team/theme-team2.jpg" class="img-fluid" alt="<?php echo esc_html('Robert Starford'); ?>">
  311. </div>
  312. <div class="team-content">
  313. <span class="position"><?php esc_html_e('UI Developer','consultstreet'); ?></span>
  314. <h5 class="team-name"><?php echo esc_html('Robert Starford'); ?></h5>
  315. <p><?php echo esc_html('Lorem ipsum dolor sit amet, consec adipisicing elit sed do tempor.'); ?></p>
  316. <ul class="team-social">
  317. <li><a class="facebook" href="#"><i class="fa fa-facebook"></i></a></li>
  318. <li><a class="twitter" href="#"><i class="fa fa-twitter"></i></a></li>
  319. <li><a class="linkedin" href="#"><i class="fa fa-linkedin"></i></a></li>
  320. <li><a class="skype" href="#"><i class="fa fa-skype"></i></a></li>
  321. </ul>
  322. </div>
  323. </div>
  324. </div>
  325.  
  326. <div class="col-lg-4 col-md-6 col-sm-12">
  327. <div class="team-block">
  328. <div class="team-thumbnail">
  329. <img src="<?php echo get_template_directory_uri(); ?>/assets/img/team/theme-team3.jpg" class="img-fluid" alt="<?php echo esc_html('Olivia Kevinson'); ?>">
  330. </div>
  331. <div class="team-content">
  332. <span class="position"><?php esc_html_e('Manager','consultstreet'); ?></span>
  333. <h5 class="team-name"><?php echo esc_html('Olivia Kevinson'); ?></h5>
  334. <p><?php echo esc_html('Lorem ipsum dolor sit amet, consec adipisicing elit sed do tempor.'); ?></p>
  335. <ul class="team-social">
  336. <li><a class="facebook" href="#"><i class="fa fa-facebook"></i></a></li>
  337. <li><a class="twitter" href="#"><i class="fa fa-twitter"></i></a></li>
  338. <li><a class="linkedin" href="#"><i class="fa fa-linkedin"></i></a></li>
  339. <li><a class="skype" href="#"><i class="fa fa-skype"></i></a></li>
  340. </ul>
  341. </div>
  342. </div>
  343. </div>
  344.  
  345. <?php } ?>
  346. </div>
  347. </div>
  348. </section>
  349. <?php endif; ?>
  350. <!-- Team -->
  351.  
  352. <!-- Client -->
  353. <?php if($consultstreet_about_client_disabled == true) :
  354.  
  355. $consultstreet_client_options = get_theme_mod('consultstreet_clients_content');
  356. $consultstreet_client_front_container_size = get_theme_mod('consultstreet_client_front_container_size', 'container');
  357. $consultstreet_client_area_title = get_theme_mod('consultstreet_client_area_title', 'Our Clients');
  358. ?>
  359. <section class="theme-block theme-sponsors" id="theme-sponsors">
  360. <div class="<?php echo $consultstreet_client_front_container_size; ?>">
  361. <div class="row">
  362. <div class="col-lg-12 col-md-12 col-xs-12">
  363. <div class="theme-section-module text-center">
  364. <h2 class="theme-section-title"><?php echo $consultstreet_client_area_title; ?></h2>
  365. <div class="theme-separator-line-horrizontal-full"></div>
  366. </div>
  367. </div>
  368. </div>
  369. <div class="row theme-sponsors-content">
  370. <div id="sponsors-slider" class="owl-carousel owl-theme col-lg-12">
  371. <?php
  372. $consultstreet_client_options = json_decode($consultstreet_client_options);
  373. if( $consultstreet_client_options!='' )
  374. {
  375. foreach($consultstreet_client_options as $client_iteam){
  376. $title = ! empty( $client_iteam->title ) ? apply_filters( 'consultstreet_translate_single_string', $client_iteam->title, 'Theme Client' ) : '';
  377. $client_link = ! empty( $client_iteam->link ) ? apply_filters( 'consultstreet_translate_single_string', $client_iteam->link, 'Theme Client' ) : '';
  378. $open_new_tab = $client_iteam->open_new_tab;
  379. ?>
  380.  
  381. <div class="item">
  382. <a href="<?php echo $client_link; ?>" class="clients-scroll" <?php if($open_new_tab == 'yes'){ echo 'target="_blank"';}?>>
  383. <img src="<?php echo $client_iteam->image_url; ?>" class="img-fluid" alt="Client">
  384. </a>
  385. </div>
  386.  
  387. <?php } } else { ?>
  388.  
  389. <div class="item">
  390. <a href="#" class="clients-scroll">
  391. <img src="<?php echo get_template_directory_uri(); ?>/assets/img/sponsors/theme-client1.png" class="img-fluid" alt="Client 1">
  392. </a>
  393. </div>
  394.  
  395. <div class="item">
  396. <a href="#" class="clients-scroll">
  397. <img src="<?php echo get_template_directory_uri(); ?>/assets/img/sponsors/theme-client2.png" class="img-fluid" alt="Client 2">
  398. </a>
  399. </div>
  400.  
  401. <div class="item">
  402. <a href="#" class="clients-scroll">
  403. <img src="<?php echo get_template_directory_uri(); ?>/assets/img/sponsors/theme-client3.png" class="img-fluid" alt="Client 3">
  404. </a>
  405. </div>
  406.  
  407. <div class="item">
  408. <a href="#" class="clients-scroll">
  409. <img src="<?php echo get_template_directory_uri(); ?>/assets/img/sponsors/theme-client4.png" class="img-fluid" alt="Client 4">
  410. </a>
  411. </div>
  412.  
  413. <div class="item">
  414. <a href="#" class="clients-scroll">
  415. <img src="<?php echo get_template_directory_uri(); ?>/assets/img/sponsors/theme-client5.png" class="img-fluid" alt="Client 5">
  416. </a>
  417. </div>
  418.  
  419. <div class="item">
  420. <a href="#" class="clients-scroll">
  421. <img src="<?php echo get_template_directory_uri(); ?>/assets/img/sponsors/theme-client6.png" class="img-fluid" alt="Client 6">
  422. </a>
  423. </div>
  424.  
  425. <div class="item">
  426. <a href="#" class="clients-scroll">
  427. <img src="<?php echo get_template_directory_uri(); ?>/assets/img/sponsors/theme-client7.png" class="img-fluid" alt="Client 7">
  428. </a>
  429. </div>
  430.  
  431. <div class="item">
  432. <a href="#" class="clients-scroll">
  433. <img src="<?php echo get_template_directory_uri(); ?>/assets/img/sponsors/theme-client8.png" class="img-fluid" alt="Client 8">
  434. </a>
  435. </div>
  436.  
  437. <?php } ?>
  438. </div>
  439. </div>
  440. </div>
  441. </section>
  442. <?php endif; ?>
  443. <!-- Client -->
  444.  
  445. <?php
  446. get_footer();
RAW Paste Data Copied