Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mod-social
- <?php
- /**
- * @package Joomla.Site
- * @subpackage mod_custom
- *
- * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
- * @license GNU General Public License version 2 or later; see LICENSE.txt
- */
- defined('_JEXEC') or die;
- $iterador = 5;
- for($i = 1; $i <= $iterador; $i++){
- $icon = "icon".$i;
- $icon2 = "icon-hover".$i;
- $link = "link".$i;
- if (!empty($params->get($link))){
- $items[] = $params->get($link);
- }else {
- $items[] = "#";
- }
- if (!empty($params->get($icon))){
- $items[] = $params->get($icon);
- }
- if (!empty($params->get($icon2))){
- $items[] = $params->get($icon2);
- }
- }
- ?>
- <div class="social-content">
- <nav>
- <ul>
- <?php $n = -1; ?>
- <?php for($i=0; $i < $iterador; $i++): ?>
- <li>
- <a href="<?php echo $items[++$n]; ?>" target="_blank" class="btn-social">
- <img src="<?php echo $items[++$n]; ?>" alt="icon-social" />
- <img src="<?php echo $items[++$n]; ?>" alt="icon-social" />
- </a>
- </li>
- <?php endfor; ?>
- </ul>
- </nav>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement