Skip to content

Commit

Permalink
Button Site in user profile #6048
Browse files Browse the repository at this point in the history
  • Loading branch information
810 committed Jul 16, 2018
1 parent eb871d8 commit e197bd5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
Expand Up @@ -222,20 +222,20 @@
rel="nofollow"><?php echo KunenaIcons::email(); ?></a>
<?php endif; ?>
<?php
if (!empty($websiteName) && $websiteURL != 'http://')
if (!empty($websiteName) && !empty($websiteURL))
:
?>
<a class="btn btn-small" rel="nofollow noopener noreferrer" target="_blank"
href="<?php echo $websiteURL ?>"><?php echo KunenaIcons::globe() . ' ' . $websiteName ?></a>
<?php elseif (empty($websiteName) && $websiteURL != 'http://')
href="<?php echo $websiteURL ?>"><?php echo KunenaIcons::globe() . ' ' . $websiteName; ?></a>
<?php elseif (empty($websiteName) && !empty($websiteURL))
:
?>
<a class="btn btn-small"
href="<?php echo $websiteURL ?>"><?php echo KunenaIcons::globe() . ' ' . $websiteURL ?></a>
<?php elseif (!empty($websiteName) && $websiteURL == 'http://')
<a class="btn btn-small" rel="nofollow noopener noreferrer" target="_blank"
href="<?php echo $websiteURL ?>"><?php echo KunenaIcons::globe(); ?></a>
<?php elseif (!empty($websiteName) && empty($websiteURL))
:
?>
<button class="btn btn-small"><?php echo KunenaIcons::globe() . ' ' . $websiteName ?></button>
<button class="btn btn-small"><?php echo KunenaIcons::globe() . ' ' . $websiteName; ?></button>
<?php endif; ?>
</div>
</div>
Expand Down
Expand Up @@ -216,20 +216,20 @@
rel="nofollow"><?php echo KunenaIcons::email(); ?></a>
<?php endif; ?>
<?php
if (!empty($websiteName) && $websiteURL != 'http://')
:
?>
<a class="btn btn-default btn-sm" rel="nofollow noopener noreferrer" target="_blank"
href="<?php echo $websiteURL ?>"><?php echo KunenaIcons::globe() . ' ' . $websiteName ?></a>
<?php elseif (empty($websiteName) && $websiteURL != 'http://')
:
?>
<a class="btn btn-default btn-sm"
href="<?php echo $websiteURL ?>"><?php echo KunenaIcons::globe() . ' ' . $websiteURL ?></a>
<?php elseif (!empty($websiteName) && $websiteURL == 'http://')
:
?>
<button class="btn btn-default btn-sm"><?php echo KunenaIcons::globe() . ' ' . $websiteName ?></button>
if (!empty($websiteName) && !empty($websiteURL))
:
?>
<a class="btn btn-default btn-sm" rel="nofollow noopener noreferrer" target="_blank"
href="<?php echo $websiteURL ?>"><?php echo KunenaIcons::globe() . ' ' . $websiteName; ?></a>
<?php elseif (empty($websiteName) && !empty($websiteURL))
:
?>
<a class="btn btn-default btn-sm" rel="nofollow noopener noreferrer" target="_blank"
href="<?php echo $websiteURL ?>"><?php echo KunenaIcons::globe(); ?></a>
<?php elseif (!empty($websiteName) && empty($websiteURL))
:
?>
<button class="btn btn-default btn-sm"><?php echo KunenaIcons::globe() . ' ' . $websiteName; ?></button>
<?php endif; ?>
</div>
</div>
Expand Down

0 comments on commit e197bd5

Please sign in to comment.