Permalink
Browse files

team-1 external link implemented

  • Loading branch information...
1 parent a7d30b9 commit b15bc1296230b5a548cc28ca43323702e1521df2 @nadimtuhin nadimtuhin committed Oct 25, 2015
Showing with 17 additions and 5 deletions.
  1. +10 −4 blocks/teams/team-1/config.php
  2. +7 −1 blocks/teams/team-1/view.php
@@ -17,19 +17,25 @@
array('name'=>'title', 'label' => 'Name', 'value' => 'Steve Jobs'),
array('name'=>'designation', 'value' => 'CEO, Apple Inc'),
array('name'=>'image','type'=>'image', 'value' => 'http://s3.amazonaws.com/quantum-assets/images/4-thumb.jpg'),
- array('name'=> 'social', 'label' => 'Social Profiles', 'value' => array('http://facebook.com/ThemeXpert', 'http://twitter.com/themexpert', 'http://linkedin.com/themexpert'))
+ array('name'=> 'social', 'label' => 'Social Profiles', 'value' => array('http://facebook.com/ThemeXpert', 'http://twitter.com/themexpert', 'http://linkedin.com/themexpert')),
+ array('name'=>'link', 'placeholder'=> home_url()),
+ array('name'=>'target', 'label'=>'open in new window', 'type'=>'switch'),
),
array(
array('name'=>'title', 'label' => 'Name', 'value' => 'Nikola Tesla'),
array('name'=>'designation', 'value' => 'Scientist'),
array('name'=>'image','type'=>'image', 'value' => 'http://s3.amazonaws.com/quantum-assets/images/5-thumb.jpg'),
- array('name'=> 'social', 'label' => 'Social Profiles', 'value' => array('http://behance.net/ThemeXpert', 'http://dribbble.com/themexpert', 'http://twitter.com/themexpert.com'))
+ array('name'=> 'social', 'label' => 'Social Profiles', 'value' => array('http://behance.net/ThemeXpert', 'http://dribbble.com/themexpert', 'http://twitter.com/themexpert.com')),
+ array('name'=>'link', 'placeholder'=> home_url()),
+ array('name'=>'target', 'label'=>'open in new window', 'type'=>'switch'),
),
array(
array('name'=>'title', 'label' => 'Name', 'value' => 'Elon Musk'),
array('name'=>'designation', 'value' => 'CEO, Tesla Motors'),
array('name'=>'image','type'=>'image', 'value' => 'http://s3.amazonaws.com/quantum-assets/images/6-thumb.jpg'),
- array('name'=> 'social', 'label' => 'Social Profiles', 'value' => array('http://github.com/ThemeXpert', 'http://codepen.io/themexpert'))
+ array('name'=> 'social', 'label' => 'Social Profiles', 'value' => array('http://github.com/ThemeXpert', 'http://codepen.io/themexpert')),
+ array('name'=>'link', 'placeholder'=> home_url()),
+ array('name'=>'target', 'label'=>'open in new window', 'type'=>'switch'),
),
)
)
@@ -78,7 +84,7 @@
'slide-top' => 'Slide Top',
'slide-bottom' => 'Slide Bottom',
'slide-left' => 'Slide Left',
- 'slide-right' => 'Slide RIght',
+ 'slide-right' => 'Slide Right',
'fade' => 'Fade',
'scale' => 'Scale',
'spin' => 'Spin',
@@ -18,7 +18,13 @@
<img src="<?php echo $team['image']?>" alt="<?php echo $team['title']?>" />
<figcaption class="overlay-panel overlay-background overlay-<?php echo $settings['overlay_animation']?> flex flex-center flex-middle text-center">
<div>
- <h3 class="title"><?php echo $team['title']?></h3>
+ <h3 class="title">
+ <?php if(trim($team['link'])): ?>
+ <a href="<?php echo $team['link'] ?>" target="<?php echo $team['target'] ? '_blank' : ''?>"><?php echo $team['title']?></a>
+ <?php else: ?>
+ <?php echo $team['title']?>
+ <?php endif; ?>
+ </h3>
<p class="designation"><?php echo $team['designation']?></p>
<div class="social-links">
<?php foreach($team['social'] as $social):?>

0 comments on commit b15bc12

Please sign in to comment.