Skip to content

Commit

Permalink
team-1 external link implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
nadimtuhin committed Oct 25, 2015
1 parent a7d30b9 commit b15bc12
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
14 changes: 10 additions & 4 deletions blocks/teams/team-1/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
),
)
)
Expand Down Expand Up @@ -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',
Expand Down
8 changes: 7 additions & 1 deletion blocks/teams/team-1/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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):?>
Expand Down

0 comments on commit b15bc12

Please sign in to comment.