PluginProbe
SpiceBox / 0.2.4
SpiceBox v0.2.4
trunk 0.2.2 0.2.3 0.2.4 0.2.5 0.2.6 0.2.7 0.2.8 0.2.9 0.3 0.3.1 0.3.2 0.3.3 0.3.4 0.3.5 0.3.6 0.3.7 0.3.8 0.3.9.1 0.3.9.2 0.4 0.5 0.6 0.7 1.0 All 76 releases
spicebox / inc / spicepress / sections / spicepress-portfolio-section.php

spicepress-portfolio-section.php in SpiceBox 0.2.4, at inc/spicepress/sections/spicepress-portfolio-section.php

104 lines 4.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Portfolio section for the homepage.
4 */
5 if ( ! function_exists( 'spiceb_spicepress_portfolio' ) ) :
6
7 function spiceb_spicepress_portfolio() {
8
9 $home_portfolio_section_title = get_theme_mod('home_portfolio_section_title',__('Our Portfolio','spicepress'));
10 $home_portfolio_section_discription = get_theme_mod('home_portfolio_section_discription','Sea summo mazim ex, ea errem eleifend definitionem vim. Ut nec hinc dolor possim mei ludus efficiendi ei sea summo mazim ex.');
11 $portfolio_one_title = get_theme_mod('portfolio_one_title',__('Art Office Design','spicebox'));
12 $portfolio_one_desc = get_theme_mod('portfolio_one_desc','Lorem ipsum dolor sit amet, consectetur adipisicing elit..');
13 $portfolio_one_thumb = get_theme_mod('portfolio_one_thumb',SPICEB_PLUGIN_URL .'/inc/spicepress/images/portfolio/item1.jpg');
14
15 $portfolio_two_title = get_theme_mod('portfolio_two_title',__('Art Office Design','spicebox'));
16 $portfolio_two_desc = get_theme_mod('portfolio_two_desc','Lorem ipsum dolor sit amet, consectetur adipisicing elit..');
17 $portfolio_two_thumb = get_theme_mod('portfolio_two_thumb',SPICEB_PLUGIN_URL .'/inc/spicepress/images/portfolio/item2.jpg');
18
19 $portfolio_three_title = get_theme_mod('portfolio_three_title',__('Art Office Design','spicebox'));
20 $portfolio_three_desc = get_theme_mod('portfolio_three_desc','Lorem ipsum dolor sit amet, consectetur adipisicing elit..');
21 $portfolio_three_thumb = get_theme_mod('portfolio_three_thumb',SPICEB_PLUGIN_URL .'/inc/spicepress/images/portfolio/item3.jpg');
22 $portfolio_section_enable = get_theme_mod('portfolio_section_enable','on');
23 if($portfolio_section_enable !='off'){
24 ?>
25 <!-- Portfolio Section -->
26 <section class="portfolio-section">
27 <div class="container">
28
29 <!-- Section Title -->
30 <div class="row">
31 <div class="col-md-12">
32 <div class="section-header">
33 <h1 class="widget-title wow fadeInUp animated animated" data-wow-duration="500ms" data-wow-delay="0ms"><?php echo $home_portfolio_section_title; ?></h1>
34 <div class="widget-separator"><span></span></div>
35 <p class="wow fadeInDown animated"><?php echo $home_portfolio_section_discription; ?></p>
36 </div>
37 </div>
38 </div>
39 <!-- /Section Title -->
40
41 <!-- Item Scroll -->
42 <div class="row">
43 <div id="portfolio-carousel">
44 <div class="col-md-4 col-sm-6 col-xs-12 port1">
45 <article class="post">
46 <figure class="post-thumbnail">
47 <img class="img-responsive" alt="img" src="<?php echo $portfolio_one_thumb; ?>">
48 </figure>
49 <header class="entry-header">
50 <h4 class="entry-title"><a href="#"><?php echo $portfolio_one_title; ?></a></h4>
51 </header>
52 <div class="entry-content">
53 <p><?php echo $portfolio_one_desc; ?></p>
54 </div>
55 </article>
56 </div>
57
58 <div class="col-md-4 col-sm-6 col-xs-12 port2">
59 <article class="post">
60 <figure class="post-thumbnail">
61 <img class="img-responsive" alt="img" src="<?php echo $portfolio_two_thumb?>">
62 </figure>
63 <header class="entry-header">
64 <h4 class="entry-title"><a href="#"><?php echo $portfolio_two_title; ?></a></h4>
65 </header>
66 <div class="entry-content">
67 <p><?php echo $portfolio_two_desc; ?></p>
68 </div>
69 </article>
70 </div>
71
72 <div class="col-md-4 col-sm-6 col-xs-12 port3">
73 <article class="post">
74 <figure class="post-thumbnail">
75 <img class="img-responsive" alt="img" src="<?php echo $portfolio_three_thumb?>">
76 </figure>
77 <header class="entry-header">
78 <h4 class="entry-title"><a href="#"><?php echo $portfolio_three_title; ?></a></h4>
79 </header>
80 <div class="entry-content">
81 <p><?php echo $portfolio_three_desc; ?></p>
82 </div>
83 </article>
84 </div>
85
86
87 </div>
88 </div>
89 <!-- /Item Scroll -->
90
91 </div>
92 </section>
93 <!-- /Portfolio Section -->
94
95 <div class="clearfix"></div>
96 <?php } }
97
98 endif;
99
100 if ( function_exists( 'spiceb_spicepress_portfolio' ) ) {
101 $section_priority = apply_filters( 'spicepress_section_priority', 12, 'spiceb_spicepress_portfolio' );
102 add_action( 'spiceb_spicepress_sections', 'spiceb_spicepress_portfolio', absint( $section_priority ) );
103
104 }