Skip to content
Snippets Groups Projects
Commit b47bdf8c authored by Maximilian Giller's avatar Maximilian Giller
Browse files

Removed commented out code

parent 9d8180d8
No related branches found
No related tags found
No related merge requests found
......@@ -14,13 +14,10 @@ function ks_add_graph($atts = []): string
$div = '<div id="3d-graph"></div>'; // The id "3d-graph" indicates, that the javascript associated with this should automatically be executed
$script_path = 'build' . DIRECTORY_SEPARATOR . $GLOBALS['build'] . DIRECTORY_SEPARATOR . 'graph.js';
// $script = "<script src='$script_path'></script>";
//wp_enqueue_script('kg-script', $script_path);
wp_enqueue_script("ks-display-js", plugins_url($script_path, __FILE__), array('jquery'), false);
ks_localize();
return $div;
// return $div . $variables . $script;
}
function ks_echo_graph($atts = []): void
......@@ -54,12 +51,7 @@ function ks_add_editor($atts = [])
function ks_add_editor_dependencies()
{
$script_path = 'build' . DIRECTORY_SEPARATOR . $GLOBALS['build'] . DIRECTORY_SEPARATOR . 'graph.js';
// wp_enqueue_script('jquery');
wp_enqueue_script("ks-editor-js", plugins_url($script_path, __FILE__), array('jquery'), false);
//wp_register_script("ks-editor-js", plugins_url($script_path, __FILE__), array('jquery'), false);
//wp_enqueue_script("ks-editor-js");
$style_file_version = date("ymd-Gis", filemtime(plugin_dir_path(__FILE__) . "editor/css/editor.css"));
wp_enqueue_style("ks-editor-css", plugins_url("editor/css/editor.css", __FILE__), array(), $style_file_version);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment