Browse Source

amélioration de la génération des modèles pour certains services

pull/19/head
Chancellier Pierre-Jean 9 months ago
parent
commit
77c6405f66
  1. 4
      action/tarteaucitron_referencer_services.php
  2. 2
      modeles/tac_adsense.html
  3. 2
      modeles/tac_aduptech_retargeting.html
  4. 2
      modeles/tac_ausha.html
  5. 2
      modeles/tac_calameo.html
  6. 2
      modeles/tac_datingaffiliation.html
  7. 2
      modeles/tac_facebooklikebox.html
  8. 2
      modeles/tac_facebookpost.html
  9. 2
      modeles/tac_ferankpub.html
  10. 2
      modeles/tac_googleadwordsconversion.html
  11. 2
      modeles/tac_googlemaps.html
  12. 2
      modeles/tac_googlemapssearch.html
  13. 2
      modeles/tac_googlepartners.html
  14. 2
      modeles/tac_gplusbadge.html
  15. 2
      modeles/tac_helloasso.html
  16. 2
      modeles/tac_outbrain.html
  17. 2
      modeles/tac_podcloud.html
  18. 2
      modeles/tac_prezi.html
  19. 2
      modeles/tac_recaptcha.html
  20. 2
      modeles/tac_shareaholic.html
  21. 2
      modeles/tac_sharethis.html
  22. 2
      modeles/tac_slideshare.html
  23. 2
      modeles/tac_soundcloud.html
  24. 2
      modeles/tac_twitter.html
  25. 2
      modeles/tac_twitterembed.html
  26. 2
      modeles/tac_twittertimeline.html
  27. 2
      modeles/tac_vshop.html

4
action/tarteaucitron_referencer_services.php

@ -126,7 +126,7 @@ function action_tarteaucitron_referencer_services_dist(){
} else {
array_unshift($list_services[$service]['params_modele'],$nom_param);
$nom_param = "(#ENV{" . $nom_param . "})";
$pattern[] = '/(\s?[\w.]+\s?=\s?[\'\"]?' . quotemeta($nom_param) . '[\'\"]?;?)/';
$pattern[] = '/(\s?[\w\-.]*\s?[=:]?\s?[\'\"]?' . quotemeta($nom_param) . '[\'\"]?\w*[,;]?)/';
}
$newelement = $doc->createTextNode($nom_param);
@ -137,8 +137,10 @@ function action_tarteaucitron_referencer_services_dist(){
$script = trim($span->nodeValue);
if (!$is_service_hidden) {
// On ajoute les crochets pour la syntaxe SPIP
$script = preg_replace($pattern,'[${1}]',$script);
}
$script = preg_replace('/(\n\s+)/', "\n", $script);
$script = str_replace("''","'",$script);

2
modeles/tac_adsense.html

@ -1 +1 @@
<ins class="adsbygoogle" style="display:inline-block;width:(#ENV{width})px;height:(#ENV{height})px" data-ad-[client="(#ENV{ca_pub_xxxxxxxxxxxxxxx})"] data-ad-[slot="(#ENV{ad_slot})"]></ins><script type="text/javascript">(adsbygoogle = window.adsbygoogle || []).push({});</script>
<ins class="adsbygoogle" style="display:inline-block;[width:(#ENV{width})px;][height:(#ENV{height})px]"[ data-ad-client="(#ENV{ca_pub_xxxxxxxxxxxxxxx})"][ data-ad-slot="(#ENV{ad_slot})"]></ins><script type="text/javascript">(adsbygoogle = window.adsbygoogle || []).push({});</script>

2
modeles/tac_aduptech_retargeting.html

@ -1,4 +1,4 @@
<div class="aduptech_retargeting"
[ account="(#ENV{ACCOUNT_ID})"]
product='["(#ENV{PRODUCT_ID1})", "(#ENV{PRODUCT_ID2})"]'
product='[["(#ENV{PRODUCT_ID1})",][ "(#ENV{PRODUCT_ID2})"]]'
track="productList" ></div>

2
modeles/tac_ausha.html

@ -1 +1 @@
<div class="ausha_player" data-[height="(#ENV{data-height})"] data-podcast-[id="(#ENV{data-podcast-id})"] data-player-[id="(#ENV{data-player-id})"] data-[playlist="(#ENV{data-playlist})"] data-[color="(#ENV{data-color})"]></div>
<div class="ausha_player"[ data-height="(#ENV{data-height})"][ data-podcast-id="(#ENV{data-podcast-id})"][ data-player-id="(#ENV{data-player-id})"][ data-playlist="(#ENV{data-playlist})"][ data-color="(#ENV{data-color})"]></div>

2
modeles/tac_calameo.html

@ -1 +1 @@
<div class="calameo-canvas" data-[id="(#ENV{bkcode})"][ width="(#ENV{width})"][ height="(#ENV{height})"]></div>
<div class="calameo-canvas"[ data-id="(#ENV{bkcode})"][ width="(#ENV{width})"][ height="(#ENV{height})"]></div>

2
modeles/tac_datingaffiliation.html

@ -1 +1 @@
<div class="datingaffiliation-canvas" data-[comfrom="(#ENV{data-comfrom})"] data-[r="(#ENV{data-r})"] data-[p="(#ENV{data-p})"] data-[cf0="(#ENV{data-cf0})"] data-[langue="(#ENV{data-langue})"] data-[forwardAffiliate="(#ENV{data-forwardAffiliate})"] data-[cf2="(#ENV{data-cf2})"] data-[cfsa2="(#ENV{data-cfsa2})"][ width="(#ENV{width})"][ height="(#ENV{height})"]></div>
<div class="datingaffiliation-canvas"[ data-comfrom="(#ENV{data-comfrom})"][ data-r="(#ENV{data-r})"][ data-p="(#ENV{data-p})"][ data-cf0="(#ENV{data-cf0})"][ data-langue="(#ENV{data-langue})"][ data-forwardAffiliate="(#ENV{data-forwardAffiliate})"][ data-cf2="(#ENV{data-cf2})"][ data-cfsa2="(#ENV{data-cfsa2})"][ width="(#ENV{width})"][ height="(#ENV{height})"]></div>

2
modeles/tac_facebooklikebox.html

@ -1 +1 @@
<div class="fb-like-box" data-[href="(#ENV{page_url})"] data-[width="(#ENV{width})"] data-[height="(#ENV{height})"] data-colorscheme="light" data-show-[faces="(#ENV{faces})"] data-[header="(#ENV{header})"] data-[stream="(#ENV{posts})"] data-show-[border="(#ENV{border})"]></div>
<div class="fb-like-box"[ data-href="(#ENV{page_url})"][ data-width="(#ENV{width})"][ data-height="(#ENV{height})"] data-colorscheme="light"[ data-show-faces="(#ENV{faces})"][ data-header="(#ENV{header})"][ data-stream="(#ENV{posts})"][ data-show-border="(#ENV{border})"]></div>

2
modeles/tac_facebookpost.html

@ -1 +1 @@
<div class="tac_facebookpost" data-[appId="(#ENV{appId})"] data-[url="(#ENV{url})"][ width="(#ENV{width})"][ height="(#ENV{height})"]></div>
<div class="tac_facebookpost"[ data-appId="(#ENV{appId})"][ data-url="(#ENV{url})"][ width="(#ENV{width})"][ height="(#ENV{height})"]></div>

2
modeles/tac_ferankpub.html

@ -1 +1 @@
<ins class="ferank-publicite"[ client="(#ENV{id_client})"] style="display:inline-block;width:(#ENV{width})px;height:(#ENV{height})px"[ titre="(#ENV{couleur_titre})"][ texte="(#ENV{couleur_texte})"]></ins>
<ins class="ferank-publicite"[ client="(#ENV{id_client})"] style="display:inline-block;[width:(#ENV{width})px;][height:(#ENV{height})px]"[ titre="(#ENV{couleur_titre})"][ texte="(#ENV{couleur_texte})"]></ins>

2
modeles/tac_googleadwordsconversion.html

@ -1 +1 @@
<script type="text/javascript">[tarteaucitron.user.adwordsconversionId = '(#ENV{id})';][tarteaucitron.user.adwordsconversionLabel = '(#ENV{label})';]tarteaucitron.user.adwordsconversionLanguage = '(#ENV{language})';[tarteaucitron.user.adwordsconversionFormat = '(#ENV{format})';][tarteaucitron.user.adwordsconversionColor = '(#ENV{color})';][tarteaucitron.user.adwordsconversionValue = '(#ENV{value})';][tarteaucitron.user.adwordsconversionCurrency = '(#ENV{currency})';][tarteaucitron.user.adwordsconversionCustom1 = '(#ENV{custom1})';][tarteaucitron.user.adwordsconversionCustom2 = '(#ENV{custom2})';]</script>
<script type="text/javascript">[tarteaucitron.user.adwordsconversionId = '(#ENV{id})';][tarteaucitron.user.adwordsconversionLabel = '(#ENV{label})';]tarteaucitron.user.adwordsconversionLanguage[ = '(#ENV{language})';][tarteaucitron.user.adwordsconversionFormat = '(#ENV{format})';][tarteaucitron.user.adwordsconversionColor = '(#ENV{color})';][tarteaucitron.user.adwordsconversionValue = '(#ENV{value})';][tarteaucitron.user.adwordsconversionCurrency = '(#ENV{currency})';][tarteaucitron.user.adwordsconversionCustom1 = '(#ENV{custom1})';][tarteaucitron.user.adwordsconversionCustom2 = '(#ENV{custom2})';]</script>

2
modeles/tac_googlemaps.html

@ -1 +1 @@
<div class="googlemaps-canvas"[ zoom="(#ENV{zoom})"][ latitude="(#ENV{latitude})"][ longitude="(#ENV{longitude})"] style="width: (#ENV{width})px; height: (#ENV{height})px;"></div><script>[tarteaucitron.user.mapscallback = '(#ENV{callback_function})';][tarteaucitron.user.googlemapsLibraries = '(#ENV{LIBRARIES})';]</script>
<div class="googlemaps-canvas"[ zoom="(#ENV{zoom})"][ latitude="(#ENV{latitude})"][ longitude="(#ENV{longitude})"] style="[width: (#ENV{width})px;][ height: (#ENV{height})px;]"></div><script>[tarteaucitron.user.mapscallback = '(#ENV{callback_function})';][tarteaucitron.user.googlemapsLibraries = '(#ENV{LIBRARIES})';]</script>

2
modeles/tac_googlemapssearch.html

@ -1 +1 @@
<div class="googlemapssearch" data-[search="(#ENV{SEARCHWORDS})"] data-api-[key="(#ENV{YOUR_GOOGLE_MAP_API_KEY})"][ width="(#ENV{WIDTH})"][ height="(#ENV{HEIGHT})"] ></div>
<div class="googlemapssearch"[ data-search="(#ENV{SEARCHWORDS})"][ data-api-key="(#ENV{YOUR_GOOGLE_MAP_API_KEY})"][ width="(#ENV{WIDTH})"][ height="(#ENV{HEIGHT})"] ></div>

2
modeles/tac_googlepartners.html

@ -1 +1 @@
<div class="g-partnersbadge" data-agency-[id="(#ENV{id})"]></div>
<div class="g-partnersbadge"[ data-agency-id="(#ENV{id})"]></div>

2
modeles/tac_gplusbadge.html

@ -1 +1 @@
<div class="g-page" data-[width="(#ENV{width})"] data-href="//plus.google.com/u/0/(#ENV{page_id})" data-rel="publisher" data-[showtagline="(#ENV{description})"] data-[showcoverphoto="(#ENV{cover})"]></div>
<div class="g-page"[ data-width="(#ENV{width})"] data-href="//plus.google.com/u/0/[(#ENV{page_id})"] data-rel="publisher"[ data-showtagline="(#ENV{description})"][ data-showcoverphoto="(#ENV{cover})"]></div>

2
modeles/tac_helloasso.html

@ -1 +1 @@
<div class="tac_helloasso" data-[url="(#ENV{url})"][ width="(#ENV{width})"][ height="(#ENV{height})"]></div>
<div class="tac_helloasso"[ data-url="(#ENV{url})"][ width="(#ENV{width})"][ height="(#ENV{height})"]></div>

2
modeles/tac_outbrain.html

@ -1 +1 @@
<div class="OUTBRAIN" data-[src="(#ENV{PERMALINK})"] data-widget-[id="(#ENV{ID})"]></div>
<div class="OUTBRAIN"[ data-src="(#ENV{PERMALINK})"][ data-widget-id="(#ENV{ID})"]></div>

2
modeles/tac_podcloud.html

@ -1 +1 @@
<div class="tac_podcloud" data-[url="(#ENV{url})"][ width="(#ENV{width})"][ height="(#ENV{height})"]></div>
<div class="tac_podcloud"[ data-url="(#ENV{url})"][ width="(#ENV{width})"][ height="(#ENV{height})"]></div>

2
modeles/tac_prezi.html

@ -1 +1 @@
<div class="prezi-canvas" data-[id="(#ENV{slide_id})"][ width="(#ENV{width})"][ height="(#ENV{height})"]></div>
<div class="prezi-canvas"[ data-id="(#ENV{slide_id})"][ width="(#ENV{width})"][ height="(#ENV{height})"]></div>

2
modeles/tac_recaptcha.html

@ -1 +1 @@
<div class="g-recaptcha" data-[sitekey="(#ENV{sitekey})"]></div>
<div class="g-recaptcha"[ data-sitekey="(#ENV{sitekey})"]></div>

2
modeles/tac_shareaholic.html

@ -1 +1 @@
<div class='shareaholic-canvas' data-app='share_buttons' data-app-[id='(#ENV{app_id})']></div>
<div class='shareaholic-canvas' data-app='share_buttons'[ data-app-id='(#ENV{app_id})']></div>

2
modeles/tac_sharethis.html

@ -1 +1 @@
<span class="tacSharethis"></span>(#ENV{services_list_spans})
<span class="tacSharethis"></span>[(#ENV{services_list_spans})]

2
modeles/tac_slideshare.html

@ -1 +1 @@
<div class="slideshare-canvas" data-[id="(#ENV{slide_id})"][ width="(#ENV{width})"][ height="(#ENV{height})"]></div>
<div class="slideshare-canvas"[ data-id="(#ENV{slide_id})"][ width="(#ENV{width})"][ height="(#ENV{height})"]></div>

2
modeles/tac_soundcloud.html

@ -1 +1 @@
<div class="soundcloud_player" data-playable-[id="(#ENV{track_or_playlist_id})"] data-playable-[type="(#ENV{type})"] data-[height="(#ENV{iframe_height})"] data-[color="(#ENV{accent_color})"] data-auto-[play="(#ENV{autoplay})"] data-hide-[related="(#ENV{hide_related})"] data-show-[comments="(#ENV{show_comment})"] data-show-[user="(#ENV{show_user})"] data-show-[reposts="(#ENV{show_repost})"] data-show-[teaser="(#ENV{show_teaser})"] data-[visual="(#ENV{visual})"] data-[artwork="(#ENV{artwork})"]></div>
<div class="soundcloud_player"[ data-playable-id="(#ENV{track_or_playlist_id})"][ data-playable-type="(#ENV{type})"][ data-height="(#ENV{iframe_height})"][ data-color="(#ENV{accent_color})"][ data-auto-play="(#ENV{autoplay})"][ data-hide-related="(#ENV{hide_related})"][ data-show-comments="(#ENV{show_comment})"][ data-show-user="(#ENV{show_user})"][ data-show-reposts="(#ENV{show_repost})"][ data-show-teaser="(#ENV{show_teaser})"][ data-visual="(#ENV{visual})"][ data-artwork="(#ENV{artwork})"]></div>

2
modeles/tac_twitter.html

@ -1 +1 @@
<span class="tacTwitter"></span><a href="https://twitter.com/share" class="twitter-share-button" data-[via="(#ENV{twitter_username})"] data-count="vertical" data-dnt="true"></a>
<span class="tacTwitter"></span><a href="https://twitter.com/share" class="twitter-share-button"[ data-via="(#ENV{twitter_username})"] data-count="vertical" data-dnt="true"></a>

2
modeles/tac_twitterembed.html

@ -1 +1 @@
<div class="twitterembed-canvas"[ tweetid="(#ENV{tweet_id})"] data-[width="(#ENV{width})"][ theme="(#ENV{theme})"][ cards="(#ENV{cards})"][ conversation="(#ENV{conversation})"] data-[align="(#ENV{align})"]></div>
<div class="twitterembed-canvas"[ tweetid="(#ENV{tweet_id})"][ data-width="(#ENV{width})"][ theme="(#ENV{theme})"][ cards="(#ENV{cards})"][ conversation="(#ENV{conversation})"][ data-align="(#ENV{align})"]></div>

2
modeles/tac_twittertimeline.html

@ -1 +1 @@
<span class="tacTwitterTimelines"></span><a class="twitter-timeline"[ href="(#ENV{twitter_url})"] data-tweet-[limit="(#ENV{tweet-limit})"] data-[dnt="(#ENV{dnt})"] data-[width="(#ENV{width})"] data-[height="(#ENV{height})"] data-[theme="(#ENV{theme})"] data-link-[color="(#ENV{hex_link-color})"]></a>
<span class="tacTwitterTimelines"></span><a class="twitter-timeline"[ href="(#ENV{twitter_url})"][ data-tweet-limit="(#ENV{tweet-limit})"][ data-dnt="(#ENV{dnt})"][ data-width="(#ENV{width})"][ data-height="(#ENV{height})"][ data-theme="(#ENV{theme})"][ data-link-color="(#ENV{hex_link-color})"]></a>

2
modeles/tac_vshop.html

@ -1 +1 @@
<div class="vcashW" style="width: (#ENV{width})px; height: (#ENV{height})px;" data-[key="(#ENV{key})"] data-[tracking="(#ENV{zone})"] data-[category="(#ENV{category})"] data-[keyword="(#ENV{keyword})"] data-[layout="(#ENV{layout})"] data-[theme="(#ENV{theme})"] data-[linkColor="(#ENV{link_color})"] data-[textColor="(#ENV{text_color})"] data-[backgroundColor="(#ENV{background_color})"] data-[borderColor="(#ENV{border_color})"]></div>
<div class="vcashW" style="[width: (#ENV{width})px;][ height: (#ENV{height})px;]"[ data-key="(#ENV{key})"][ data-tracking="(#ENV{zone})"][ data-category="(#ENV{category})"][ data-keyword="(#ENV{keyword})"][ data-layout="(#ENV{layout})"][ data-theme="(#ENV{theme})"][ data-linkColor="(#ENV{link_color})"][ data-textColor="(#ENV{text_color})"][ data-backgroundColor="(#ENV{background_color})"][ data-borderColor="(#ENV{border_color})"]></div>
Loading…
Cancel
Save