Llorix One Companion - Version 1.0.2

Version Description

Download this release

Release Info

Developer themeisle
Plugin Icon 128x128 Llorix One Companion
Version 1.0.2
Comparing to
See all releases

Code changes from version 1.0.1 to 1.0.2

css/style.css CHANGED
@@ -187,7 +187,6 @@
187
  .team {
188
  background-color: #FFF;
189
  border-bottom: 1px solid #eaebec;
190
- background: url(../images/team-img.jpg);
191
  background-position: 50% 50%;
192
  background-repeat: no-repeat;
193
  background-attachment: fixed;
@@ -253,10 +252,13 @@
253
  -webkit-border-radius: 0px;
254
  -moz-border-radius: 0px;
255
  border-radius: 0px;
 
 
256
  }
257
 
258
  .member-pic img {
259
- width: 100%;
 
260
  }
261
 
262
  .member-details {
@@ -265,8 +267,8 @@
265
  color: #FFF;
266
  display: table;
267
  overflow: hidden;
268
- height: 266px;
269
- width: 100%;
270
  bottom: 100%;
271
  -webkit-transition: all 0.3s;
272
  -moz-transition: all 0.3s;
@@ -308,4 +310,12 @@
308
  -o-transition: all 0.3s;
309
  transition: all 0.3s;
310
  background: rgba(241,108,32,0.7);
311
- }
 
 
 
 
 
 
 
 
187
  .team {
188
  background-color: #FFF;
189
  border-bottom: 1px solid #eaebec;
 
190
  background-position: 50% 50%;
191
  background-repeat: no-repeat;
192
  background-attachment: fixed;
252
  -webkit-border-radius: 0px;
253
  -moz-border-radius: 0px;
254
  border-radius: 0px;
255
+ width: 183px;
256
+ height: 183px;
257
  }
258
 
259
  .member-pic img {
260
+ width: 183px;
261
+ height: 183px;
262
  }
263
 
264
  .member-details {
267
  color: #FFF;
268
  display: table;
269
  overflow: hidden;
270
+ height: 183px;
271
+ width: 183px;
272
  bottom: 100%;
273
  -webkit-transition: all 0.3s;
274
  -moz-transition: all 0.3s;
310
  -o-transition: all 0.3s;
311
  transition: all 0.3s;
312
  background: rgba(241,108,32,0.7);
313
+ }
314
+
315
+ @media (min-width: 992px) and (max-width: 1200px) {
316
+ .team-member-wrap .team-member-box {
317
+ padding-right: 30px;
318
+ padding-left: 30px;
319
+ }
320
+ }
321
+
inc/settings.php CHANGED
@@ -97,6 +97,17 @@ function llorix_one_companion_customize_register( $wp_customize ) {
97
  'priority' => 20,
98
  ));
99
 
 
 
 
 
 
 
 
 
 
 
 
100
 
101
  /* Team content */
102
  $wp_customize->add_setting( 'llorix_one_lite_team_content', array(
@@ -113,7 +124,7 @@ function llorix_one_companion_customize_register( $wp_customize ) {
113
  'label' => esc_html__('Add new team member','llorix-companion'),
114
  'section' => 'llorix_one_lite_team_section',
115
  'active_callback' => 'llorix_one_lite_show_on_front',
116
- 'priority' => 30,
117
  'llorix_one_lite_image_control' => true,
118
  'llorix_one_lite_title_control' => true,
119
  'llorix_one_lite_subtitle_control' => true
97
  'priority' => 20,
98
  ));
99
 
100
+ /* Team Background */
101
+ $wp_customize->add_setting( 'llorix_one_lite_our_team_background', array(
102
+ 'default' => llorix_one_lite_get_file('/images/background-images/parallax-img/team-img.jpg'),
103
+ 'sanitize_callback' => 'esc_url',
104
+ ));
105
+ $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'llorix_one_lite_our_team_background', array(
106
+ 'label' => esc_html__( 'Team Background', 'llorix-one-lite' ),
107
+ 'section' => 'llorix_one_lite_team_section',
108
+ 'active_callback' => 'llorix_one_lite_show_on_front',
109
+ 'priority' => 30
110
+ )));
111
 
112
  /* Team content */
113
  $wp_customize->add_setting( 'llorix_one_lite_team_content', array(
124
  'label' => esc_html__('Add new team member','llorix-companion'),
125
  'section' => 'llorix_one_lite_team_section',
126
  'active_callback' => 'llorix_one_lite_show_on_front',
127
+ 'priority' => 40,
128
  'llorix_one_lite_image_control' => true,
129
  'llorix_one_lite_title_control' => true,
130
  'llorix_one_lite_subtitle_control' => true
llorix-one-companion.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Llorix One Companion
4
  Plugin URI: https://github.com/Codeinwp/llorix-one-companion
5
  Description: Add Our team, Our Services and Testimonials sections to Llorix One Lite theme.
6
- Version: 1.0.1
7
  Author: Themeisle
8
  Author URI: http://themeisle.com
9
  Domain Path: /languages
3
  Plugin Name: Llorix One Companion
4
  Plugin URI: https://github.com/Codeinwp/llorix-one-companion
5
  Description: Add Our team, Our Services and Testimonials sections to Llorix One Lite theme.
6
+ Version: 1.0.2
7
  Author: Themeisle
8
  Author URI: http://themeisle.com
9
  Domain Path: /languages
sections/llorix_one_lite_our_team_section.php CHANGED
@@ -4,6 +4,7 @@
4
  <?php
5
  global $wp_customize;
6
  $llorix_one_lite_our_team_title = get_theme_mod('llorix_one_lite_our_team_title',esc_html__('Our Team','llorix-one'));
 
7
  $llorix_one_lite_our_team_subtitle = get_theme_mod('llorix_one_lite_our_team_subtitle',esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','llorix-one'));
8
  $llorix_one_lite_team_content = get_theme_mod('llorix_one_lite_team_content',
9
  json_encode(
@@ -15,9 +16,15 @@
15
  )
16
  );
17
 
18
- if(!empty($llorix_one_lite_our_team_title) || !empty($llorix_one_lite_our_team_subtitle) || !llorix_one_lite_general_repeater_is_empty($llorix_one_lite_team_content) ){
 
 
 
 
 
 
 
19
  ?>
20
- <section class="team" id="team" role="region" aria-label="<?php esc_html_e('Team','llorix-one') ?>">
21
  <div class="section-overlay-layer">
22
  <div class="container">
23
 
4
  <?php
5
  global $wp_customize;
6
  $llorix_one_lite_our_team_title = get_theme_mod('llorix_one_lite_our_team_title',esc_html__('Our Team','llorix-one'));
7
+ $llorix_one_lite_our_team_background = get_theme_mod('llorix_one_lite_our_team_background',llorix_one_lite_get_file('/images/background-images/parallax-img/team-img.jpg'));
8
  $llorix_one_lite_our_team_subtitle = get_theme_mod('llorix_one_lite_our_team_subtitle',esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.','llorix-one'));
9
  $llorix_one_lite_team_content = get_theme_mod('llorix_one_lite_team_content',
10
  json_encode(
16
  )
17
  );
18
 
19
+ if( !empty($llorix_one_lite_our_team_title) || !empty($llorix_one_lite_our_team_subtitle) || !llorix_one_lite_general_repeater_is_empty($llorix_one_lite_team_content) ){
20
+
21
+ if( !empty($llorix_one_lite_our_team_background) ) {
22
+ echo '<section class="team" id="team" role="region" aria-label="'.esc_html__('Team','llorix-one').'" style="background:url('.$llorix_one_lite_our_team_background.');">';
23
+ }
24
+ else {
25
+ echo '<section class="team" id="team" role="region" aria-label="'.esc_html__('Team','llorix-one').'">';
26
+ }
27
  ?>
 
28
  <div class="section-overlay-layer">
29
  <div class="container">
30