Commit 5ae5c66a0ffa08b2134ada8e2f97609076fc72a4

Authored by Julien Verneuil
2 parents ff004d8b 4eee4bb6

Merge branch 'release/ANUBIS_1_14' of ssh://gitlab.calexium.com:33022/calexium/c…

…alexium_lib into release/ANUBIS_1_14
web/CXM_jquery.anubis
@@ -44,7 +44,7 @@ define String @@ -44,7 +44,7 @@ define String
44 if c is 44 if c is
45 { 45 {
46 resizable then jquery_button_get_onclick_action_window_options( 46 resizable then jquery_button_get_onclick_action_window_options(
47 - t, formated_options+ comma+ "resizable=yes" ), 47 + t, formated_options+ comma + "resizable=yes"),
48 48
49 scrollbars then jquery_button_get_onclick_action_window_options( 49 scrollbars then jquery_button_get_onclick_action_window_options(
50 t, formated_options+ comma + "scrollbars=yes"), 50 t, formated_options+ comma + "scrollbars=yes"),
web/CXM_making_a_web_site.anubis
@@ -1224,7 +1224,7 @@ public type HTML_In_Form: @@ -1224,7 +1224,7 @@ public type HTML_In_Form:
1224 text_input (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, InitialValue init, Int width), 1224 text_input (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, InitialValue init, Int width),
1225 text_input_ro (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, InitialValue init, Int width), 1225 text_input_ro (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, InitialValue init, Int width),
1226 password_input (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, InitialValue init, Int width), 1226 password_input (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, InitialValue init, Int width),
1227 - text_area (List(TextAreaOption), HTML_Label label, HTML_Id id, WebArgName name, InitialValue init, Int width, Int height), 1227 + text_area (List(TextAreaOption), HTML_Label label, HTML_Id id, WebArgName name, InitialValue init, Int width, Int height),
1228 file_upload (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, Int width), 1228 file_upload (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, Int width),
1229 selector (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, Int size, List(String) choices), 1229 selector (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, Int size, List(String) choices),
1230 selector (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, Int size, List(String) choices, InitialValue selected), 1230 selector (List(CoreAttrs), HTML_Label label, HTML_Id id, WebArgName name, Int size, List(String) choices, InitialValue selected),
web/piwik/CXM_piwik.anubis 0 → 100644
  1 +/*
  2 + * Created by PyramIDE.
  3 + * User: Julien
  4 + * Date: 28/06/2016
  5 + * Time: 11:50
  6 + *
  7 + * Contain functions related to Piwik Analytics (Piwik 2.16.x)
  8 + *
  9 + * https://piwik.org/
  10 + *
  11 + * To change this template use Tools | Options | Coding | Edit Standard Headers.
  12 + */
  13 +
  14 +read calexium_lib/web/CXM_making_a_web_site.anubis
  15 +read tools/basis.anubis
  16 +
  17 +// this js code is to include in the <head> section of a webpage, it enable Piwik tracking for the given site/domains (Note: Only if the website was added to the Piwik tracker)
  18 +public define HTML_Head_Tag
  19 + piwik_js_code
  20 + (
  21 + String piwik_tracker,
  22 + Int site_id,
  23 + List(String) piwik_domains
  24 + )=
  25 + meta(literal(
  26 + "
  27 + <!-- Piwik -->
  28 + <script type=\"text/javascript\">
  29 + var _paq = _paq || [];
  30 + _paq.push([\"setDomains\", [" + concat(map((String domain) |-> "\"" + domain + "\"", piwik_domains), ",") + "]]);
  31 + _paq.push(['trackPageView']);
  32 + _paq.push(['enableLinkTracking']);
  33 + (function() {
  34 + var u=((\"https:\" == document.location.protocol) ? \"https\" : \"http\") + \"://" + piwik_tracker + "/\";
  35 + _paq.push(['setTrackerUrl', u+'piwik.php']);
  36 + _paq.push(['setSiteId', \"" + site_id + "\" ]);
  37 + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  38 + g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  39 + })();
  40 + </script>
  41 + <noscript><p><img src=\"//" + piwik_tracker + "/piwik.php?idsite=" + site_id + "\" style=\"border:0;\" alt=\"\" /></p></noscript>
  42 + <!-- End Piwik Code -->
  43 + ")).