HEX
Server: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: iestorre (46869)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/iestorre/www2/modules/service_links/js/google_plus_one.js
if (Drupal.jsEnabled) {
  $(document).ready(function(){
    $('a.service-links-google-plus-one').each(function(){
      var g_text = document.createElement('g:plusone');

      g_text.setAttribute('href', $(this).attr('href'));
      g_text.setAttribute('width', Drupal.settings.ws_gpo.width);
      
      if (Drupal.settings.ws_gpo.size != '') {
        g_text.setAttribute('size', Drupal.settings.ws_gpo.size);
      }
      if (Drupal.settings.ws_gpo.annotation != '') {
        g_text.setAttribute('annotation', Drupal.settings.ws_gpo.annotation);
      }
      if (Drupal.settings.ws_gpo.callback) {
        g_text.setAttribute('callback', Drupal.settings.ws_gpo.callback);
      }

      $(this).replaceWith(g_text);

      var params = { parsetags: "explicit" };

      if (Drupal.settings.ws_gpo.lang != '') {
        params.lang = Drupal.settings.ws_gpo.lang;
      }

      window.___gcfg = params

      $.ajax({
        url: "https://apis.google.com/js/plusone.js",
        dataType: "script",
        cache: true,
        success: function () {
          this.scriptadded = true;
          gapi.plusone.go();
        }
      });

    });
  });
}