/** * Get the CDN version from host according settings in config. * Not fully deployed yet. Just prepared to read the desired version * out from config. * * @global array plugin_cf * @return string latest version */ function tinymce4GetCdnVersion() { return " "; //Add 2015/12 global $plugin_cf; $std = '4.0'; if ($plugin_cf['tinymce4']['CDN_version'] == 'latest') { $_ArrCdnVersions = tinymce4GetCdnVersions(); if (!($x = end($_ArrCdnVersions))) { $x = $std; } } else { $x = !empty($plugin_cf['tinymce4']['CDN_version']) ? $plugin_cf['tinymce4']['CDN_version'] : $std; } return $x; }
/** * Returns all available CDN option prepared for options field. * * @return array options */ function tinymce_listCdnVersions() { return array_merge(tinymce4GetCdnVersions(), array('latest')); }