added ajax call inside class plugin

This commit is contained in:
asus
2024-02-14 02:49:14 +01:00
parent 259cb8aa00
commit 7b8e61a59f
3 changed files with 97 additions and 99 deletions

View File

@@ -55,63 +55,37 @@ plugin shortcode
*/
function fipfcard_main_shortcode() {
$fipfcard_tools = new PLGNTOOLS();
$test_path_plgntools = $fipfcard_tools->get_path();
$test_url_plgntools = $fipfcard_tools->get_url();
error_log("-------------");
error_log($test_path_plgntools);
error_log($test_url_plgntools);
$fipfcard_tools = new PLGNTOOLS();
// fipfcard_add_files_to_front( array(
// "example_style.css",
// "example_init.js",
// "example_script2.js",
// "example_script3.js",
// ));
$fipfcard_tools->add_files_to_front( array(
"example_style.css",
"example_init.js",
"example_script2.js",
"example_script3.js",
));
$fipfcard_tools->add_files_to_front( array(
"example_style.css",
"example_init.js",
"example_script2.js",
"example_script3.js",
));
$myvar_1 = "I am one";
$myvar_2 = "I am two";
// fipfcard_add_var_to_front( compact(
// "myvar_1",
// "myvar_2",
// ));
$fipfcard_tools->add_var_to_front( compact(
"myvar_1",
"myvar_2",
));
$fipfcard_tools->add_var_to_front( compact(
"myvar_1",
"myvar_2",
));
$names = ["hugo", "camille"];
$ages = ["13", "34", "56"];
// $html_front = fipfcard_create_html(
// array(
// "example_index.html",
// "example_index2.html",
// ),
// compact(
// "names",
// "ages",
// )
// );
$html_front = $fipfcard_tools->create_html(
array(
"example_index.html",
"example_index2.html",
),
compact(
"names",
"ages",
)
);
$html_front = $fipfcard_tools->create_html(
array(
"example_index.html",
"example_index2.html",
),
compact(
"names",
"ages",
)
);
return $html_front;
}