Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contact info missing on Grid Layout #3

Open
septadev opened this issue Oct 3, 2019 · 3 comments
Open

contact info missing on Grid Layout #3

septadev opened this issue Oct 3, 2019 · 3 comments

Comments

@septadev
Copy link

septadev commented Oct 3, 2019

Hello we recently tested the module and we find out that that for Grid view the the contact info and social media links do not display. they are enable in the module option.

any suggestion?

@chetanmadaan
Copy link
Member

Hello,

Can you provide a link or screenshot?

Thanks,
Chetan

@ConfidantCommunications

I have this same trouble. Here are the screen shots.
Screen Shot 2020-09-11 at 2 10 25 PM
Screen Shot 2020-09-11 at 2 10 48 PM

@ConfidantCommunications

Here's how I fixed it in a template override.

<?php
defined('_JEXEC') or die;
// Licensed under the GPL v3
//echo "<pre>";
//print_r($profiles);
?>
<div class="jd-profiler-wrapper jd-grid-layout-view jd-grid-simple-layout">
	<div class="jd-row <?php echo ($params->get('gutter_space')=='nomargin') ? 'jd-nogutters' : '' ?>">
		<!-- Team Item wrapper start -->
		<?php foreach($profiles as $profile) { ?>
		<div class="jd-team-columns jd-col-12 jd-col-md-6 jd-col-lg-<?php echo  $params->get('grid_coloumns'); ?>" <?php if($params->get('gutter_space')=='custom') { ?> style="padding-right:<?php echo $params->get('margin');?>px; padding-left:<?php echo $params->get('margin');?>px;" <?php } ?>>
			<div class="card-team jd-team-items">
				<?php if(!empty($profile->image)) { ?>
					<img src="<?php echo $profile->image;  ?>" alt="<?php echo $profile->name;  ?>" class="card-img-top team-mamber-image">
				<?php }?>  
				<?php if($params->get('display_name',1) or $params->get('display_designation',1) ) { ?>
					<div class="card-team-body">
						<div class="team-member-content-wrapper">
							<?php if($params->get('display_name',1)) { ?>
								<h5 class="card-img-overlayteam-member-name">
									<?php if($params->get('enable_link')){ ?>
										<a href="<?php echo JRoute::_('index.php?option=com_jdprofiler&view=profile&id='.(int) $profile->id); ?>"><?php  echo $profile->name; ?></a>
									<?php }else {?>
										<?php  echo $profile->name; ?>
									<?php  } ?>
								</h5>
							<?php } ?>
							<?php if($params->get('display_designation',1)) { ?>
								<p class="team-member-designation">
								<small><?php echo $profile->designation;  ?></small>
								</p>
							<?php } ?>
							<?php if($params->get('show_Contact',1)) { ?>
								<p class="team-member-contact">
								<small><?php echo $profile->email;  ?></small>
								<br />
								<small><?php echo $profile->phone;  ?></small>
								</p>
							<?php } ?>
							<?php if(!empty($profile->sbio)) { ?>
								<?php if($params->get('display_sbio',1)) { ?>
									<p class="card-img-overlayteam-member-bio"><?php echo $profile->sbio;  ?></p>
								<?php } ?>
							<?php }?>
						</div>
					</div>
				<?php }?>
				<?php if($params->get('show_socialsIcon',1)) { ?>
					<?php if(!empty($profile->social)) { ?>
						<div class="card-team-footer social-profile-wrapper">
							<ul class="social-profile <?php  echo $params->get('IconStyle','none'); ?>">
								<?php  $socials=  json_decode($profile->social);?>
								<?php  foreach($socials as $social){ ?>
									<li>
										<a href="<?php echo $social->link?>" target="<?php if($params->get('new_tab')){echo '1'; } ?>" >
											<i class="<?php echo $social->icon?>"></i>
										</a>
									</li>
								<?php } ?>
							</ul>
						</div>
					<?php } ?> 
				<?php } ?>
			</div>
		</div>
		<?php  } ?>
		<!-- Team Item wrapper end -->
	</div>
</div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants