Annonce

  •  » Styles
  •  » Ajouter un réseau social

#1 2021-01-09 01:10:25

dreamer
Membre
St Cyr/mer (83)
2006-02-26
1058

Ajouter un réseau social

Bonjour/Bonsoir,

J'aimerai ajouter Youtube dans les réseaux sociaux du thème Bootstap Darkroom, mais j'ai peur de faire une cagade.
J'ai trouvé où il se situe, mais me manque le code php

Code:

{include file="http_scheme.tpl"}
{if $theme_config->social_enabled}
  <div id="theImageShareButtons" class="row justify-content-center{if !$theme_config->slick_enabled} pb-4{/if}">
    <section id="share">
{if $theme_config->social_twitter}
        <a href="http://twitter.com/share?text={$current.TITLE}&amp;url={$http_scheme}://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}"
           onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;" title="Share on Twitter"{if $theme_config->social_buttons} class="btn btn-sm btn-social btn-raised btn-twitter"{/if}>
            <i class="fab fa-twitter"></i>{if $theme_config->social_buttons} Twitter{/if}
        </a>
{/if}
{if $theme_config->social_facebook}
        <a href="https://www.facebook.com/sharer/sharer.php?u={$http_scheme}://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}"
           onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;" title="Share on Facebook"{if $theme_config->social_buttons} class="btn btn-sm btn-social btn-raised btn-facebook"{/if}>
            <i class="fab fa-facebook"></i>{if $theme_config->social_buttons} Facebook{/if}
        </a>
{/if}
{if $theme_config->social_pinterest}
        <a href="https://www.pinterest.com/pin/create/button/?url={$http_scheme}://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}{if isset($current.derivatives.large)}&media={$http_scheme}://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}/../{$current.derivatives.large->get_url()}{/if}"
           onclick="window.open(this.href, 'pinterest-share', 'width=490,height=530');return false;" title="Pin on Pinterest"{if $theme_config->social_buttons} class="btn btn-sm btn-social btn-raised btn-pinterest"{/if}>
            <i class="fab fa-pinterest"></i>{if $theme_config->social_buttons} Pinterest{/if}
        </a>
{/if}
{if $theme_config->social_vk}
        <a href="https://vkontakte.ru/share.php?url={$http_scheme}://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}{if isset($current.derivatives.large)}&image={$http_scheme}://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}/../{$current.derivatives.large->get_url()}{/if}"
           onclick="window.open(this.href, 'vk-share', 'width=490,height=530');return false;" title="Share on VK"{if $theme_config->social_buttons} class="btn btn-sm btn-social btn-raised btn-vk"{/if}>
            <i class="fab fa-vk"></i>{if $theme_config->social_buttons} VK{/if}
        </a>
{/if}
    </section>
  </div>
{/if}
</div>

Donc comment remplacer vkontakte par Youtube....

Version de Piwigo: Piwigo 2.10.2
Version de PHP: 7.3.25
Version de MySQL: 5.6.50
URL Piwigo: https://beauxvoyages.fr/photos


Photos, Musiques, Camping-car,, Vidéo et le tout nouveau Recettes le tout en 14.2.0

Hors ligne

#2 2021-01-10 10:44:53

Guillaume C
Membre
Belgium
2014-04-08
335

Hors ligne

#3 2021-01-10 11:21:13

dreamer
Membre
St Cyr/mer (83)
2006-02-26
1058

Re: Ajouter un réseau social

Bonjour

J'ai essayé, mais mes lacunes en php sont un handicap, ce qui fait que je n'arrive pas à ajouter Youtube et pourtant, j'ai travaillé sur plusieurs scripts (setting.tpl, picture.tpl, config.php, etc..) sans succés.

Maintenant, je l'ai dans l'admin, je le coche, mais il se décoche quand je valide...

Ce que j'aime, c'est la présentation, c'est pour cela que je n'utilise pas le plugin [extension by mistic100] Social Buttons

A+

Dernière modification par dreamer (2021-01-10 11:22:30)


Photos, Musiques, Camping-car,, Vidéo et le tout nouveau Recettes le tout en 14.2.0

Hors ligne

  •  » Styles
  •  » Ajouter un réseau social

Pied de page des forums

Propulsé par FluxBB

github twitter newsletter Faire un don Piwigo.org © 2002-2024 · Contact