Ofuscar enlaces prestashop

+1 voto
preguntado por Gatuno (2,180 puntos)
Hola,

Cómo puedo ofuscar los enlaces del footer de mi tienda online con prestashop ?

alguien sabe?

2 Respuestas

0 votos
respondido por Zeus (16,780 puntos)
 
Mejor respuesta

Así es como tendrías que hacerlo, yo solo lo necesito en un modulo así que he puesto tanto el codigo de css y js en el mismo módulo, adáptalo a tu web.

 

      <ul id="footer_sub_menu_{$_expand_id}" class="collapse">
        {foreach $linkBlock.links as $link}
          <li>
            <span
                id="{$link.id}-{$linkBlock.id}"
                class="puntero {$link.class}"
                onclick='letsgo("{$link.url}")'
                title="{$link.description}"
                {if !empty($link.target)} target="{$link.target}" {/if}
            >
              {$link.title}
            </span>
          </li>
        {/foreach}
      </ul>
    </div>

{/if}

  {/foreach}
  {literal}
  <style>
  .puntero {
    cursor: pointer;
  }
  </style>
  <script>
   function letsgo(url){
      window.open(url, '_blank');
   }
  </script>
  {/literal}
0 votos
respondido por winamic (140 puntos)
editado por guelo
Hola, también puedes usar este módulo winamic.es/blog/como-ofuscar-enlaces-en-prestashop-con-winamic-link-obfuscator/

Un saludo.
Bienvenido a Preguntas y respuestas para programadores o profesionales de la informática. Si tienes cualquier duda aquí obtendrás la respuesta.
...