Guest User

Untitled

a guest
Jul 17th, 2018
31
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $current_options = wp_parse_args( get_option( 'busiprof_pro_theme_options', array() ), theme_data_setup() );
  3. if( $current_options['home_project_section_enabled'] == 'on' ) {
  4. ?>
  5. <!-- Portfolio Section -->
  6. <section id="section" class="portfolio bg-color">
  7. <div class="container">
  8. <!-- Section Title -->
  9. <div class="row">
  10. <div class="col-md-12">
  11. <div class="section-title">
  12. <h1 class="section-heading"><?php echo $current_options['project_tag_line'];?></h1>
  13. <?php if( $current_options['project_tag_desciption'] != '' ) {?>
  14. <p><?php echo $current_options['project_tag_desciption']; ?></p>
  15. <?php } ?>
  16. </div>
  17. </div>
  18. </div>
  19. <!-- /Section Title -->
  20.  
  21. <!-- Portfolio Tabs -->
  22. <?php
  23. //for a given post type, return all
  24. $post_type = 'busiprof_project';
  25. $tax = 'project_categories';
  26. $tax_terms = get_terms($tax);
  27. //echo $defualt_tex_id = get_option('custom_texoid_busiprof');
  28. $busiprof_active=1;
  29. if($tax_terms)
  30. {?>
  31. <div class="row">
  32. <div class="col-md-12">
  33. <ul id="mytabs" class="portfolio-tabs">
  34. <?php
  35. foreach ($tax_terms as $tax_term)
  36. {?>
  37. <li <?php if($busiprof_active==1) echo "class='active'"; ?>><a data-toggle="tab" href="#<?php echo $tax_term->slug; ?>" ><?php echo $tax_term->name; ?></a></li>
  38. <?php $busiprof_active++; } ?>
  39. </ul>
  40. </div>
  41. </div>
  42. <?php } else { ?>
  43. <div class="row">
  44. <div class="col-md-12">
  45. <ul id="mytabs" class="portfolio-tabs">
  46. <li class="active"><a data-toggle="tab" href="#all"><?php _e('All','busiprof'); ?></a></li>
  47. <li><a data-toggle="tab" href="#web"><?php _e('Web design','busiprof'); ?></a></li>
  48. <li><a data-toggle="tab" href="#graphic"><?php _e('Graphic design','busiprof'); ?></a></li>
  49. <li><a data-toggle="tab" href="#development"><?php _e('Web development','busiprof'); ?></a></li>
  50. <li><a data-toggle="tab" href="#multimedia"><?php _e('Multimedia','busiprof'); ?></a></li>
  51. <li><a data-toggle="tab" href="#media"><?php _e('Print media','busiprof'); ?></a></li>
  52. </ul>
  53. </div>
  54. </div>
  55. <?php } if ($tax_terms) { ?>
  56. <!-- /Portfolio Tabs -->
  57. <div class="tab-content main-portfolio-section" id="myTabContent">
  58. <?php $busiprof_in=1;
  59. foreach ($tax_terms as $tax_term)
  60. {
  61. $args=array(
  62. 'post_type' => $post_type,
  63. "$tax" => $tax_term->slug,
  64. 'post_status' => 'publish',
  65. 'posts_per_page' => -1 ,
  66. );
  67. $home_project_query = null;
  68. $home_project_query = new WP_Query($args);
  69. if( $home_project_query->have_posts() )
  70. {
  71. ?>
  72. <!-- Portfolio Item -->
  73. <div id="<?php echo $tax_term->slug; ?>" class="tab-pane fade <?php if($busiprof_in == 1) echo "in active" ; ?>">
  74. <div class="row">
  75. <?php $k=1;
  76. while ($home_project_query->have_posts()) : $home_project_query->the_post(); ?>
  77. <div class="col-md-3 col-sm-6 col-xs-12">
  78. <aside class="post">
  79. <figure class="post-thumbnail">
  80. <?php if(has_post_thumbnail())
  81. {
  82. the_post_thumbnail( );
  83. $post_thumbnail_id = get_post_thumbnail_id();
  84. $post_thumbnail_url = wp_get_attachment_url($post_thumbnail_id );
  85. }
  86. ?>
  87. <div class="thumbnail-showcase-overlay">
  88. <div class="thumbnail-showcase-overlay-inner">
  89. <div class="thumbnail-showcase-icons">
  90. <?php if(isset($post_thumbnail_url)){ ?>
  91. <a href="<?php echo $post_thumbnail_url; ?>" data-lightbox="image" title="<?php the_title(); ?>" class="hover_thumb"><i class="fa fa-search"></i></a>
  92. <?php } ?>
  93. </div>
  94. </div>
  95. </div>
  96. </figure>
  97. <div class="portfolio-info">
  98. <div class="entry-header">
  99. <h4 class="entry-title">
  100. <?php
  101.  
  102. $Project_link = get_post_meta( get_the_ID(),'project_link', true );
  103.  
  104. if($Project_link!=='') { ?>
  105. <a href="<?php echo get_post_meta( get_the_ID(),'project_link', true ); ?>" <?php if(get_post_meta( get_the_ID(),'project_target', true )) { echo "target='_blank'"; } ?> > <?php the_title(); ?></a>
  106. <?php }
  107.  
  108. else {
  109. the_title();
  110. }
  111.  
  112. ?>
  113. </h4>
  114. </div>
  115. <div class="entry-content">
  116. <p><?php echo get_post_meta( get_the_ID(),'project_title_description', true ); ?></p>
  117. </div>
  118. </div>
  119. </aside>
  120. </div>
  121. <?php if($k%4==0){ echo '<div class="clearfix"></div>' ; } $k++; endwhile; ?>
  122. </div>
  123. </div>
  124. <?php } wp_reset_query(); $busiprof_in++; } ?>
  125. </div>
  126. <?php } else { ?>
  127. <!-- /Portfolio Item -->
  128.  
  129. <!-- Portfolio Item -->
  130. <div class="tab-content main-portfolio-section" id="myTabContent">
  131. <!-- Portfolio Item -->
  132. <div id="all" class="tab-pane fade in active">
  133. <div class="row">
  134. <div class="col-md-3 col-sm-6 col-xs-12">
  135. <aside class="post">
  136. <figure class="post-thumbnail">
  137. <img src="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg">
  138. <div class="thumbnail-showcase-overlay">
  139. <div class="thumbnail-showcase-overlay-inner">
  140. <div class="thumbnail-showcase-icons">
  141. <a href="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg" data-lightbox="image" title="Busiprof" class="hover_thumb"><i class="fa fa-search"></i></a>
  142. </div>
  143. </div>
  144. </div>
  145. </figure>
  146. <div class="portfolio-info">
  147. <div class="entry-header">
  148. <h4 class="entry-title"><a href="#"><?php _e('Business cards','busiprof'); ?></a></h4>
  149. </div>
  150. <div class="entry-content">
  151. <p><?php _e('Graphic design & web design','busiprof'); ?></p>
  152. </div>
  153. </div>
  154. </aside>
  155. </div>
  156. <div class="col-md-3 col-sm-6 col-xs-12">
  157. <aside class="post">
  158. <figure class="post-thumbnail">
  159. <img src="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg">
  160. <div class="thumbnail-showcase-overlay">
  161. <div class="thumbnail-showcase-overlay-inner">
  162. <div class="thumbnail-showcase-icons">
  163. <a href="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg" data-lightbox="image" title="Busiprof" class="hover_thumb"><i class="fa fa-search"></i></a>
  164. </div>
  165. </div>
  166. </div>
  167. </figure>
  168. <div class="portfolio-info">
  169. <div class="entry-header">
  170. <h4 class="entry-title"><a href="#"><?php _e('Clean and usable UI kit','busiprof'); ?></a></h4>
  171. </div>
  172. <div class="entry-content">
  173. <p><?php _e('Graphic design & web design','busiprof'); ?></p>
  174. </div>
  175. </div>
  176. </aside>
  177. </div>
  178. <div class="col-md-3 col-sm-6 col-xs-12">
  179. <aside class="post">
  180. <figure class="post-thumbnail">
  181. <img src="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg">
  182. <div class="thumbnail-showcase-overlay">
  183. <div class="thumbnail-showcase-overlay-inner">
  184. <div class="thumbnail-showcase-icons">
  185. <a href="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg" data-lightbox="image" title="Busiprof" class="hover_thumb"><i class="fa fa-search"></i></a>
  186. </div>
  187. </div>
  188. </div>
  189. </figure>
  190. <div class="portfolio-info">
  191. <div class="entry-header">
  192. <h4 class="entry-title"><a href="#"><?php _e('Responsive WP theme','busiprof'); ?></a></h4>
  193. </div>
  194. <div class="entry-content">
  195. <p><?php _e('Graphic design & web design','busiprof'); ?></p>
  196. </div>
  197. </div>
  198. </aside>
  199. </div>
  200. <div class="col-md-3 col-sm-6 col-xs-12">
  201. <aside class="post">
  202. <figure class="post-thumbnail">
  203. <img src="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg">
  204. <div class="thumbnail-showcase-overlay">
  205. <div class="thumbnail-showcase-overlay-inner">
  206. <div class="thumbnail-showcase-icons">
  207. <a href="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg" data-lightbox="image" title="Busiprof" class="hover_thumb"><i class="fa fa-search"></i></a>
  208. </div>
  209. </div>
  210. </div>
  211. </figure>
  212. <div class="portfolio-info">
  213. <div class="entry-header">
  214. <h4 class="entry-title"><a href="#"><?php _e('Graphic design','busiprof'); ?></a></h4>
  215. </div>
  216. <div class="entry-content">
  217. <p><?php _e('Graphic design & web design','busiprof'); ?></p>
  218. </div>
  219. </div>
  220. </aside>
  221. </div>
  222. </div>
  223. </div>
  224. <!-- /Portfolio Item -->
  225. <div id="web" class="tab-pane fade">
  226. <div class="row">
  227. <div class="col-md-3 col-sm-6 col-xs-12">
  228. <aside class="post">
  229. <figure class="post-thumbnail">
  230. <img src="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg">
  231. <div class="thumbnail-showcase-overlay">
  232. <div class="thumbnail-showcase-overlay-inner">
  233. <div class="thumbnail-showcase-icons">
  234. <a href="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg" data-lightbox="image" title="Busiprof" class="hover_thumb"><i class="fa fa-search"></i></a>
  235. </div>
  236. </div>
  237. </div>
  238. </figure>
  239. <div class="portfolio-info">
  240. <div class="entry-header">
  241. <h4 class="entry-title"><a href="#"><?php _e('Business cards','busiprof'); ?></a></h4>
  242. </div>
  243. <div class="entry-content">
  244. <p><?php _e('Graphic design & web design','busiprof'); ?></p>
  245. </div>
  246. </div>
  247. </aside>
  248. </div>
  249. <div class="col-md-3 col-sm-6 col-xs-12">
  250. <aside class="post">
  251. <figure class="post-thumbnail">
  252. <img src="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg">
  253. <div class="thumbnail-showcase-overlay">
  254. <div class="thumbnail-showcase-overlay-inner">
  255. <div class="thumbnail-showcase-icons">
  256. <a href="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg" data-lightbox="image" title="Busiprof" class="hover_thumb"><i class="fa fa-search"></i></a>
  257. </div>
  258. </div>
  259. </div>
  260. </figure>
  261. <div class="portfolio-info">
  262. <div class="entry-header">
  263. <h4 class="entry-title"><a href="#"><?php _e('Clean and usable UI kit','busiprof'); ?></a></h4>
  264. </div>
  265. <div class="entry-content">
  266. <p><?php _e('Graphic design & web design','busiprof'); ?></p>
  267. </div>
  268. </div>
  269. </aside>
  270. </div>
  271. <div class="col-md-3 col-sm-6 col-xs-12">
  272. <aside class="post">
  273. <figure class="post-thumbnail">
  274. <img src="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg">
  275. <div class="thumbnail-showcase-overlay">
  276. <div class="thumbnail-showcase-overlay-inner">
  277. <div class="thumbnail-showcase-icons">
  278. <a href="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg" data-lightbox="image" title="Busiprof" class="hover_thumb"><i class="fa fa-search"></i></a>
  279. </div>
  280. </div>
  281. </div>
  282. </figure>
  283. <div class="portfolio-info">
  284. <div class="entry-header">
  285. <h4 class="entry-title"><a href="#"><?php _e('Responsive WP theme','busiprof'); ?></a></h4>
  286. </div>
  287. <div class="entry-content">
  288. <p><?php _e('Graphic design & web design','busiprof'); ?></p>
  289. </div>
  290. </div>
  291. </aside>
  292. </div>
  293. </div>
  294. </div>
  295. <!-- /Portfolio Item -->
  296.  
  297. <!-- Portfolio Item -->
  298. <div id="graphic" class="tab-pane fade">
  299. <div class="row">
  300. <div class="col-md-3 col-sm-6 col-xs-12">
  301. <aside class="post">
  302. <figure class="post-thumbnail">
  303. <img src="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg">
  304. <div class="thumbnail-showcase-overlay">
  305. <div class="thumbnail-showcase-overlay-inner">
  306. <div class="thumbnail-showcase-icons">
  307. <a href="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg" data-lightbox="image" title="Busiprof" class="hover_thumb"><i class="fa fa-search"></i></a>
  308. </div>
  309. </div>
  310. </div>
  311. </figure>
  312. <div class="portfolio-info">
  313. <div class="entry-header">
  314. <h4 class="entry-title"><a href="#"><?php _e('Business cards','busiprof'); ?></a></h4>
  315. </div>
  316. <div class="entry-content">
  317. <p><?php _e('Graphic design & web design','busiprof'); ?></p>
  318. </div>
  319. </div>
  320. </aside>
  321. </div>
  322. <div class="col-md-3 col-sm-6 col-xs-12">
  323. <aside class="post">
  324. <figure class="post-thumbnail">
  325. <img src="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg">
  326. <div class="thumbnail-showcase-overlay">
  327. <div class="thumbnail-showcase-overlay-inner">
  328. <div class="thumbnail-showcase-icons">
  329. <a href="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg" data-lightbox="image" title="Busiprof" class="hover_thumb"><i class="fa fa-search"></i></a>
  330. </div>
  331. </div>
  332. </div>
  333. </figure>
  334. <div class="portfolio-info">
  335. <div class="entry-header">
  336. <h4 class="entry-title"><a href="#"><?php _e('Clean and usable UI kit','busiprof'); ?></a></h4>
  337. </div>
  338. <div class="entry-content">
  339. <p><?php _e('Graphic design & web design','busiprof'); ?></p>
  340. </div>
  341. </div>
  342. </aside>
  343. </div>
  344. </div>
  345. </div>
  346. <!-- /Portfolio Item -->
  347.  
  348. <!-- Portfolio Item -->
  349. <div id="development" class="tab-pane fade">
  350. <div class="row">
  351. <div class="col-md-3 col-sm-6 col-xs-12">
  352. <aside class="post">
  353. <figure class="post-thumbnail">
  354. <img src="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg">
  355. <div class="thumbnail-showcase-overlay">
  356. <div class="thumbnail-showcase-overlay-inner">
  357. <div class="thumbnail-showcase-icons">
  358. <a href="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg" data-lightbox="image" title="Busiprof" class="hover_thumb"><i class="fa fa-search"></i></a>
  359. </div>
  360. </div>
  361. </div>
  362. </figure>
  363. <div class="portfolio-info">
  364. <div class="entry-header">
  365. <h4 class="entry-title"><a href="#"><?php _e('Business cards','busiprof'); ?></a></h4>
  366. </div>
  367. <div class="entry-content">
  368. <p><?php _e('Graphic design & web design','busiprof'); ?></p>
  369. </div>
  370. </div>
  371. </aside>
  372. </div>
  373. </div>
  374. </div>
  375. <!-- /Portfolio Item -->
  376.  
  377. <!-- Portfolio Item -->
  378. <div id="multimedia" class="tab-pane fade">
  379. <div class="row">
  380. <div class="col-md-3 col-sm-6 col-xs-12">
  381. <aside class="post">
  382. <figure class="post-thumbnail">
  383. <img src="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg">
  384. <div class="thumbnail-showcase-overlay">
  385. <div class="thumbnail-showcase-overlay-inner">
  386. <div class="thumbnail-showcase-icons">
  387. <a href="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg" data-lightbox="image" title="Busiprof" class="hover_thumb"><i class="fa fa-search"></i></a>
  388. </div>
  389. </div>
  390. </div>
  391. </figure>
  392. <div class="portfolio-info">
  393. <div class="entry-header">
  394. <h4 class="entry-title"><a href="#"><?php _e('Business cards','busiprof'); ?></a></h4>
  395. </div>
  396. <div class="entry-content">
  397. <p><?php _e('Graphic design & web design','busiprof'); ?></p>
  398. </div>
  399. </div>
  400. </aside>
  401. </div>
  402. <div class="col-md-3 col-sm-6 col-xs-12">
  403. <aside class="post">
  404. <figure class="post-thumbnail">
  405. <img src="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg">
  406. <div class="thumbnail-showcase-overlay">
  407. <div class="thumbnail-showcase-overlay-inner">
  408. <div class="thumbnail-showcase-icons">
  409. <a href="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg" data-lightbox="image" title="Busiprof" class="hover_thumb"><i class="fa fa-search"></i></a>
  410. </div>
  411. </div>
  412. </div>
  413. </figure>
  414. <div class="portfolio-info">
  415. <div class="entry-header">
  416. <h4 class="entry-title"><a href="#"><?php _e('Responsive design','busiprof'); ?></a></h4>
  417. </div>
  418. <div class="entry-content">
  419. <p><?php _e('Graphic design & web design','busiprof'); ?></p>
  420. </div>
  421. </div>
  422. </aside>
  423. </div>
  424. </div>
  425. </div>
  426. <!-- /Portfolio Item -->
  427.  
  428. <!-- Portfolio Item -->
  429. <div id="media" class="tab-pane fade">
  430. <div class="row">
  431. <div class="col-md-3 col-sm-6 col-xs-12">
  432. <aside class="post">
  433. <figure class="post-thumbnail">
  434. <img src="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg">
  435. <div class="thumbnail-showcase-overlay">
  436. <div class="thumbnail-showcase-overlay-inner">
  437. <div class="thumbnail-showcase-icons">
  438. <a href="<?php echo BUSI_TEMPLATE_DIR_URI; ?>/images/item1.jpg" data-lightbox="image" title="Busiprof" class="hover_thumb"><i class="fa fa-search"></i></a>
  439. </div>
  440. </div>
  441. </div>
  442. </figure>
  443. <div class="portfolio-info">
  444. <div class="entry-header">
  445. <h4 class="entry-title"><a href="#"><?php _e('Business cards','busiprof'); ?></a></h4>
  446. </div>
  447. <div class="entry-content">
  448. <p><?php _e('Graphic design & web design','busiprof'); ?></p>
  449. </div>
  450. </div>
  451. </aside>
  452. </div>
  453. </div>
  454. </div>
  455. </div>
  456. <!-- /Portfolio Item -->
  457. <?php } ?>
  458. </div>
  459. </section>
  460. <!-- End of Portfolio Section -->
  461. <div class="clearfix"></div>
  462. <?php } ?>
RAW Paste Data