var ComunicConfig = { //Production mode productionMode: ".($config::PROD_MODE ? "true" : "false").", //AppVersion appVersion: '".Config::VERSION."', //Assets URL assetsURL: '".$config::ASSETS_URL."', //Templates URL templatesURL : '".$config::ASSETS_URL.$config::TEMPLATES_PATH."', //Site URL siteURL: '".$config::SITE_URL."', //API configuration apiURL: '".$config::API_URL."', apiServiceName: '".$config::API_SERVICE_NAME."', apiServiceToken: '".$config::API_SERVICE_TOKEN."', //About website URL aboutWebsiteURL: '".$config::ABOUT_WEBSITE_URL."', //Default language defaultLanguage: '".$config::DEFAULT_LANGUAGE."', "/*LanguagesPath "languagesPath: '".$config::ASSETS_URL.$config::LANGUAGE_PATH."', */." }; "; return $js_config; } /** * Return the source code to include an array of css assets * * @param string $asset_url URL path to assets * @param array $files The list of files to include * @return string Generated source code */ function src_inc_list_css(string $assets_url, array $files) : string { $source = ""; //Process the list of files foreach($files as $file){ $source .= src_inc_css($assets_url.$file)."\n\t\t"; } return $source; } /** * Return the source code to include an array of javascript assets * * @param string $asset_url URL path to assets * @param array $files The list of files to include * @return string Generated source code */ function src_inc_list_js(string $assets_url, array $files) : string { $source = ""; //Process the list of files foreach($files as $file){ if(is_array($file)) $file = $file["path"]; $source .= src_inc_js($assets_url.$file)."\n\t\t"; } return $source; } /** * Returns the source code to include a javascript file * * @param string $file The path to the file * @return string Source code for including a javascript file */ function src_inc_js(string $file) : string{ return ""; } /** * Returns the source code to include a CSS file * * @param string $file Path to the CSS file * @return string HTML Source code to include the CSS file */ function src_inc_css(string $file) : string { return ""; }