Skip to content

Commit

Permalink
Added help icon and configuration page
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniele600 committed Oct 30, 2019
1 parent ded6000 commit bcc66a2
Show file tree
Hide file tree
Showing 14 changed files with 114 additions and 26 deletions.
4 changes: 2 additions & 2 deletions css/data_explorer.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@
/*Limited data message box */

.div_dataLimited {
background-color: #f5cccb;
color:#856162;
background-color: #fffbe5;
color:#5c3c00;
padding: 3px 15px;
margin: 15px 0 5px 0;
border-radius: 6px;
Expand Down
10 changes: 5 additions & 5 deletions de/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"files": {
"main.css": "/static/css/main.cf1d91ad.chunk.css",
"main.js": "/static/js/main.3dabd794.chunk.js",
"main.js.map": "/static/js/main.3dabd794.chunk.js.map",
"main.js": "/static/js/main.77b66a09.chunk.js",
"main.js.map": "/static/js/main.77b66a09.chunk.js.map",
"runtime~main.js": "/static/js/runtime~main.a8a9905a.js",
"runtime~main.js.map": "/static/js/runtime~main.a8a9905a.js.map",
"static/css/2.b4c733d1.chunk.css": "/static/css/2.b4c733d1.chunk.css",
"static/js/2.dd424e18.chunk.js": "/static/js/2.dd424e18.chunk.js",
"static/js/2.dd424e18.chunk.js.map": "/static/js/2.dd424e18.chunk.js.map",
"static/js/2.ac1a4832.chunk.js": "/static/js/2.ac1a4832.chunk.js",
"static/js/2.ac1a4832.chunk.js.map": "/static/js/2.ac1a4832.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.fbb2990cfdcdaef20bd91947c21925a1.js": "/precache-manifest.fbb2990cfdcdaef20bd91947c21925a1.js",
"precache-manifest.c1ee21ea2a7667bed18ad3c2f0fe9a55.js": "/precache-manifest.c1ee21ea2a7667bed18ad3c2f0fe9a55.js",
"service-worker.js": "/service-worker.js",
"static/css/2.b4c733d1.chunk.css.map": "/static/css/2.b4c733d1.chunk.css.map",
"static/css/main.cf1d91ad.chunk.css.map": "/static/css/main.cf1d91ad.chunk.css.map",
Expand Down
4 changes: 2 additions & 2 deletions de/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html><html lang="en"><head><style>.indicatorEntry{display:list-item;background-color:rgba(19,124,189,.15);color:#106ba3;padding:2px 6px;margin:5px;width:fit-content;border-radius:3px;cursor:pointer}</style><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><link rel="stylesheet" href="/preloader.css"><title>DE - Unicef</title><script>DATAFLOW={datasourceId:"fusion",dataflowId:"GLOBAL_DATAFLOW",agencyId:"UNICEF",version:"1.0",dataquery:".NT_BF_CBF_12_15+CME_TMY5T14...",period:[2015,2019],backendId:"FUSION"}</script><script>SETTINGS={sdmx:{range:[0,1e3],attributes:{flags:["LOWER_BOUND","UPPER_BOUND","UNWGTD_SAMPL_SIZE","WGTD_SAMPL_SIZE","N_CASES","STD_ERR","CONF_INTVAL","OBS_FOOTNOTE","OBS_STATUS","SERIES_FOOTNOTE"],decimals:"DECIMALS"},period:{boundaries:[1970,2020],default:[2016,2019]},datasources:{CME:{url:"https://api.data.unicef.org/sdmx/Rest",hasRangeHeader:!0,supportsReferencePartial:!1},ILO:{url:"https://ilo.org/ilostat-test/sdmx/ws/rest",hasRangeHeader:!0,supportsReferencePartial:!1},CAM:{url:"http://cambodgia-statvm1.eastasia.cloudapp.azure.com/SeptemberDisseminateNSIService/rest",hasRangeHeader:!0,supportsReferencePartial:!1},fusion:{url:"https://unicef.sdmxcloud.org/ws/public/sdmxapi/rest",hasRangeHeader:!0,supportsReferencePartial:!1}}},chart:{url:"",source:"",options:{base:{height:500,isAnnotated:!0},axis:{x:{font:{family:"'Segoe UI'"}},y:{linear:{step:20},font:{family:"'Segoe UI'"}}},serie:{annotation:{font:{family:"'Segoe UI'"}},tooltip:{font:{family:"'Segoe UI'"}}}},size:{height:400}},i18n:{localeId:"en",locales:{en:{id:"en",delimiters:{thousands:",",decimal:"."}}}},theme:{visFont:"'Segoe UI'"},unicef:{indicatorProfileUrl:"/indicator-profile"}}</script><script>I18N={en:{"de.error.title":"Whoops, something went wrong on our end.","de.visualisation.data.loading":"loading data...","de.visualisation.structure.loading":"loading structure...","de.visualisation.loading":"loading structure and data...","vx.spotlight.placeholder":"search...","vx.spotlight.placeholder.primary":"search on all","vx.spotlight.placeholder.secondary":"search on current","de.side.filters.action":"Filters","de.filter.period.title":"Period","de.filter.period.tag":"{min} - {max}","de.visualisation.toolbar.show":"Show:","de.visualisation.toolbar.table":"Table","de.visualisation.toolbar.chart":"Chart","de.visualisation.toolbar.chart.bar":"Bar chart","de.visualisation.toolbar.chart.row":"Row chart","de.visualisation.toolbar.chart.timeline":"Timeline chart","de.visualisation.toolbar.action.fullscreen":"Full screen","de.visualisation.toolbar.action.customize":"Customise","de.visualisation.toolbar.action.download":"Download","de.visualisation.toolbar.action.download.csv.selection":"Selection in CSV","de.visualisation.toolbar.action.download.csv.all":"Full data in CSV","vx.no.data":"No data","vx.filters.current.title":"Used filters","vx.filters.current.clear":"Clear all filters","de.table.layout.apply":"Apply","de.table.layout.cancel":"Cancel","de.table.layout.value.one":"In the subtitle","de.table.layout.time":"Time dimension","de.table.layout.time.asc":"ascending","de.table.layout.time.desc":"descending","de.table.layout.y":"Columns","de.table.layout.x":"Rows","de.table.layout.z":"Row sections","de.table.layout.getter.dimension":"Format","de.table.layout.help":"Drag dimensions between Columns, Row sections and Rows","de.table.layout.title":"Build your table","vx.config.display.label":"name","vx.config.display.code":"code","vx.config.display.both":"both",footnotes:"Footnotes","de.IndicatorLinkUnicef.goToIndicator":"View the indicator profile for any selected indicator:"}}</script><link href="/static/css/2.b4c733d1.chunk.css" rel="stylesheet"><link href="/static/css/main.cf1d91ad.chunk.css" rel="stylesheet"></head><body>Period<noscript>You need to enable JavaScript to run this app.</noscript><div id="root"><div class="spinner"><div class="double-bounce1"></div><div class="double-bounce2"></div></div></div><script>var ilo = {
<!doctype html><html lang="en"><head><style>.indicatorEntry{display:list-item;background-color:rgba(19,124,189,.15);color:#106ba3;padding:2px 6px;margin:5px;width:fit-content;border-radius:3px;cursor:pointer}.div_dataLimited{background-color:#fffbe5;color:#5c3c00;padding:3px 15px;margin:15px 0 5px 0;border-radius:6px}.dataLimited_msgBox_trans{-webkit-transition:1s;-moz-transition:1s;-o-transition:1s;transition:1s;opacity:0;visibility:hidden}</style><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><link rel="stylesheet" href="/preloader.css"><title>DE - Unicef</title><script>DATAFLOW={datasourceId:"fusion",dataflowId:"GLOBAL_DATAFLOW",agencyId:"UNICEF",version:"1.0",dataquery:".NT_BF_CBF_12_15...",period:[2015,2019],backendId:"FUSION"}</script><script>SETTINGS={sdmx:{range:[0,1e3],attributes:{flags:["LOWER_BOUND","UPPER_BOUND","UNWGTD_SAMPL_SIZE","WGTD_SAMPL_SIZE","N_CASES","STD_ERR","CONF_INTVAL","OBS_FOOTNOTE","OBS_STATUS","SERIES_FOOTNOTE"],decimals:"DECIMALS"},period:{boundaries:[1970,2020],default:[2016,2019]},datasources:{CME:{url:"https://api.data.unicef.org/sdmx/Rest",hasRangeHeader:!0,supportsReferencePartial:!1},ILO:{url:"https://ilo.org/ilostat-test/sdmx/ws/rest",hasRangeHeader:!0,supportsReferencePartial:!1},CAM:{url:"http://cambodgia-statvm1.eastasia.cloudapp.azure.com/SeptemberDisseminateNSIService/rest",hasRangeHeader:!0,supportsReferencePartial:!1},fusion:{url:"https://unicef.sdmxcloud.org/ws/public/sdmxapi/rest",hasRangeHeader:!0,supportsReferencePartial:!1}}},chart:{url:"",source:"",options:{base:{height:500,isAnnotated:!0},axis:{x:{font:{family:"'Segoe UI'"}},y:{linear:{step:20},font:{family:"'Segoe UI'"}}},serie:{annotation:{font:{family:"'Segoe UI'"}},tooltip:{font:{family:"'Segoe UI'"}}}},size:{height:400}},i18n:{localeId:"en",locales:{en:{id:"en",delimiters:{thousands:",",decimal:"."}}}},theme:{visFont:"'Segoe UI'"},unicef:{indicatorProfileUrl:"/indicator-profile",helpUrl:"http://www.google.it"}}</script><script>I18N={en:{"de.error.title":"Whoops, something went wrong on our end.","de.visualisation.data.loading":"loading data...","de.visualisation.structure.loading":"loading structure...","de.visualisation.loading":"loading structure and data...","vx.spotlight.placeholder":"search...","vx.spotlight.placeholder.primary":"search on all","vx.spotlight.placeholder.secondary":"search on current","de.side.filters.action":"Filters","de.filter.period.title":"Period","de.filter.period.tag":"{min} - {max}","de.visualisation.toolbar.show":"Show:","de.visualisation.toolbar.table":"Table","de.visualisation.toolbar.chart":"Chart","de.visualisation.toolbar.chart.bar":"Bar chart","de.visualisation.toolbar.chart.row":"Row chart","de.visualisation.toolbar.chart.timeline":"Timeline chart","de.visualisation.toolbar.action.fullscreen":"Full screen","de.visualisation.toolbar.action.customize":"Customise","de.visualisation.toolbar.action.download":"Download","de.visualisation.toolbar.action.download.csv.selection":"Selection in CSV","de.visualisation.toolbar.action.download.csv.all":"Full data in CSV","de.visualisation.toolbar.action.help":"Help","vx.no.data":"No data","vx.filters.current.title":"Used filters","vx.filters.current.clear":"Clear all filters","de.table.layout.apply":"Apply","de.table.layout.cancel":"Cancel","de.table.layout.value.one":"In the subtitle","de.table.layout.time":"Time dimension","de.table.layout.time.asc":"ascending","de.table.layout.time.desc":"descending","de.table.layout.y":"Columns","de.table.layout.x":"Rows","de.table.layout.z":"Row sections","de.table.layout.getter.dimension":"Format","de.table.layout.help":"Drag dimensions between Columns, Row sections and Rows","de.table.layout.title":"Build your table","vx.config.display.label":"name","vx.config.display.code":"code","vx.config.display.both":"both",footnotes:"Footnotes","de.IndicatorLinkUnicef.goToIndicator":"View the indicator profile for any selected indicator:"}}</script><link href="/static/css/2.b4c733d1.chunk.css" rel="stylesheet"><link href="/static/css/main.cf1d91ad.chunk.css" rel="stylesheet"></head><body>Period<noscript>You need to enable JavaScript to run this app.</noscript><div id="root"><div class="spinner"><div class="double-bounce1"></div><div class="double-bounce2"></div></div></div><script>var ilo = {
"datasourceId": 'ILO',
"dataflowId": 'DF_SDG_ALL_SDG_0852_SEX_DSB_RT',
"agencyId": 'ILO',
Expand All @@ -21,4 +21,4 @@
};
document.getElementById('root').addEventListener('unicef_dataflowLoaded', event =>
console.log('unicef_dataflowLoaded event dispatched', event.detail),
);</script><script>!function(l){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],f=0,i=[];f<n.length;f++)t=n[f],p[t]&&i.push(p[t][0]),p[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(l[r]=o[r]);for(s&&s(e);i.length;)i.shift()();return c.push.apply(c,u||[]),a()}function a(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==p[u]&&(n=!1)}n&&(c.splice(r--,1),e=f(f.s=t[0]))}return e}var t={},p={1:0},c=[];function f(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return l[e].call(r.exports,r,r.exports,f),r.l=!0,r.exports}f.m=l,f.c=t,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(r,e){if(1&e&&(r=f(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)f.d(t,n,function(e){return r[e]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/";var r=window.webpackJsonp=window.webpackJsonp||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;a()}([])</script><script src="/static/js/2.dd424e18.chunk.js"></script><script src="/static/js/main.3dabd794.chunk.js"></script></body></html>
);</script><script>!function(l){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],f=0,i=[];f<n.length;f++)t=n[f],p[t]&&i.push(p[t][0]),p[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(l[r]=o[r]);for(s&&s(e);i.length;)i.shift()();return c.push.apply(c,u||[]),a()}function a(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==p[u]&&(n=!1)}n&&(c.splice(r--,1),e=f(f.s=t[0]))}return e}var t={},p={1:0},c=[];function f(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return l[e].call(r.exports,r,r.exports,f),r.l=!0,r.exports}f.m=l,f.c=t,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(r,e){if(1&e&&(r=f(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)f.d(t,n,function(e){return r[e]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/";var r=window.webpackJsonp=window.webpackJsonp||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;a()}([])</script><script src="/static/js/2.ac1a4832.chunk.js"></script><script src="/static/js/main.77b66a09.chunk.js"></script></body></html>
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "a533cf230647c48a9389893e183ab7a0",
"revision": "098e368c220d0474530404c69d3656a9",
"url": "/index.html"
},
{
"revision": "548371d7013fbe77f7ea",
"revision": "b212f8f02aba35eea190",
"url": "/static/css/2.b4c733d1.chunk.css"
},
{
"revision": "b0f1c66c47e07ee3dcf0",
"revision": "46b6b15dda04d7ad75a6",
"url": "/static/css/main.cf1d91ad.chunk.css"
},
{
"revision": "548371d7013fbe77f7ea",
"url": "/static/js/2.dd424e18.chunk.js"
"revision": "b212f8f02aba35eea190",
"url": "/static/js/2.ac1a4832.chunk.js"
},
{
"revision": "b0f1c66c47e07ee3dcf0",
"url": "/static/js/main.3dabd794.chunk.js"
"revision": "46b6b15dda04d7ad75a6",
"url": "/static/js/main.77b66a09.chunk.js"
},
{
"revision": "42ac5946195a7306e2a5",
Expand Down
2 changes: 1 addition & 1 deletion de/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"/precache-manifest.fbb2990cfdcdaef20bd91947c21925a1.js"
"/precache-manifest.c1ee21ea2a7667bed18ad3c2f0fe9a55.js"
);

self.addEventListener('message', (event) => {
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions de/static/js/main.3dabd794.chunk.js

This file was deleted.

1 change: 0 additions & 1 deletion de/static/js/main.3dabd794.chunk.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions de/static/js/main.77b66a09.chunk.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions de/static/js/main.77b66a09.chunk.js.map

Large diffs are not rendered by default.

73 changes: 71 additions & 2 deletions dotstat_data_explorer.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,78 @@ function de_enqueue_style()
if (is_single() && get_post_type() == 'data_explorer') {

$css_url = plugins_url('css/', __FILE__);
wp_enqueue_style('data_expl_css', $css_url . 'data_explorer.css?v=2.05');
wp_enqueue_style('data_expl_css', $css_url . 'data_explorer.css?v=2.06');

// $js_url = plugins_url('js/', __FILE__);
// wp_enqueue_script('related_search', $js_url . 'related_search.js', array('jquery', 'algoliasearchLite', 'algolia_instantsearch'), NULL, true);
}
}
}





/*Plugin's settings*/
function de_settings_page()
{
add_submenu_page(
'options-general.php', // top level menu page
'Data Explorer Settings Page', // title of the settings page
'Data Explorer', // title of the submenu
'manage_options', // capability of the user to see this page
'de-settings-page', // slug of the settings page
'de_settings_page_html' // callback function when rendering the page
);
add_action('admin_init', 'de_settings_init');
}
add_action('admin_menu', 'de_settings_page');

function de_settings_page_html()
{
// check user capabilities
/*if (!current_user_can('manage_options')) {
return;
} */ ?>

<div class="wrap">
<?php settings_errors(); ?>
<form method="POST" action="options.php">
<?php settings_fields('de-settings-page'); ?>
<?php do_settings_sections('de-settings-page') ?>
<?php submit_button(); ?>
</form>
</div>
<?php
}


/*Groups together options, I need just one group for this plugin*/
function de_settings_init()
{
add_settings_section(
'de-settings-section', // id of the section
'Data Explorer Settings', // title to be displayed
'', // callback function to be called when opening section, currently empty
'de-settings-page' // page on which to display the section
);


// register the setting (option group, setting id)
register_setting('de-settings-page', 'de_indicator_profile_url');
register_setting('de-settings-page', 'de_help_url');
//id of the settings field, title, callback function, page on which settings display, section on which to show settings
add_settings_field('de_indicator_profile_url', 'Indicator profile URL', 'de_indicator_profile_url_callb', 'de-settings-page', 'de-settings-section');
add_settings_field('de_help_url', 'Help URL', 'de_help_url_callb', 'de-settings-page', 'de-settings-section');
}

function de_indicator_profile_url_callb()
{
$de_indicator_profile_url = esc_attr(get_option('de_indicator_profile_url', ''));
echo ("<div><input id=\"de_indicator_profile_url\" type=\"text\" name=\"de_indicator_profile_url\" size=\"100\" value=\"".$de_indicator_profile_url."\"></div>");
}
function de_help_url_callb()
{
$de_help_url = esc_attr(get_option('de_help_url', ''));
echo ("<div><input id=\"de_help_url\" type=\"text\" name=\"de_help_url\" size=\"80\" value=\"".$de_help_url."\"></div>");
}
?>
5 changes: 4 additions & 1 deletion js/de_settings/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ var SETTINGS = {
}
},
chart: { url: "", source: "", options: { base: { height: 400 }, axis: { x: { font: { family: "'Segoe UI'" } }, y: { linear: { step: 5 }, font: { family: "'Segoe UI'" } } }, serie: { annotation: { font: { family: "'Segoe UI'" } }, tooltip: { font: { family: "'Segoe UI'" } } } }, size: { height: 400 } }, i18n: { localeId: "en", locales: { en: { id: "en", delimiters: { thousands: ",", decimal: "." } } } },
unicef: { "indicatorProfileUrl": "../../../indicator-profile" }
//unicef: { "indicatorProfileUrl": "../../../indicator-profile" }
unicef:{}
}

var I18N = {
Expand All @@ -37,6 +38,7 @@ var I18N = {
"de.visualisation.toolbar.action.download": "Download",
"de.visualisation.toolbar.action.download.csv.selection": "Selection in CSV",
"de.visualisation.toolbar.action.download.csv.all": "Full data in CSV",
"de.visualisation.toolbar.action.help":"Help",
"vx.no.data": "No data", "vx.filters.current.title": "Selected filters",
"vx.filters.current.clear": "Clear all filters",
"de.table.layout.apply": "Apply",
Expand All @@ -61,3 +63,4 @@ var I18N = {


SETTINGS.sdmx.datasources = SETTINGS_override;
SETTINGS.unicef = unicef_settings;
16 changes: 16 additions & 0 deletions single-data_explorer.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,22 @@ function check() {
the_post();
$api_url = get_post_meta(get_the_ID(), 'api_url', true);
echo ('<script>SETTINGS_override = ' . $api_url . '</script>');

//$unicef_settings = get_post_meta(get_the_ID(), 'unicef_settings', true);

//$indicator_profile_url = get_post_meta(get_the_ID(), 'indicator_profile_url', true);
//$help_url = get_post_meta(get_the_ID(), 'help_url', true);

/*$indicator_profile_url = "../../../indicator-profile";
$help_url = "http://www.ansa.it";*/

$indicator_profile_url = esc_attr(get_option('de_indicator_profile_url', ''));
$help_url = esc_attr(get_option('de_help_url', ''));

$unicef_settings ='{"indicatorProfileUrl": "'.$indicator_profile_url.'", "helpUrl": "'.$help_url.'" }';

//$unicef_settings = '{"indicatorProfileUrl": "../../../indicator-profile", "helpUrl": "http://www.ansa.it" }';
echo ('<script>unicef_settings = ' . $unicef_settings . '</script>');
}

$qs_agency = sanitize_text_field(get_query_var('ag'));
Expand Down

0 comments on commit bcc66a2

Please sign in to comment.