added inline code to plugin tools

This commit is contained in:
asus
2024-03-01 17:21:03 +01:00
parent bd30c97194
commit 8aeef1dca8
5 changed files with 269 additions and 46 deletions

View File

@@ -10,8 +10,18 @@ if (!defined('ABSPATH')) {
function fipfcard_plugin_content() {
$fipfcard = new PLGNTLS_class();
$my_css = '
#mytext {
background-color: lightblue;
}
#mytext_2 {
background-color: lightgreen;
}
';
echo $fipfcard->add_to_front( array(
array("js/menu/example_menu.js", 'type'=>'module'),
"css/menu/menu.css",
"PLGNTLS_menu_css" => array('css'=>$my_css),
"js/menu/example_menu_2.js",
"html/menu/example_menu.html",
));