Guest User

Untitled

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