diff --git a/plugins/fipfcard_plugin/fipfcard_plugin.php b/plugins/fipfcard_plugin/fipfcard_plugin.php index f048e73..8ce9c66 100644 --- a/plugins/fipfcard_plugin/fipfcard_plugin.php +++ b/plugins/fipfcard_plugin/fipfcard_plugin.php @@ -57,6 +57,7 @@ function fipfcard_main_shortcode() { $fipfcard_tools = new PLGNTOOLS(); + $fipfcard_tools->add_files_to_front( array( "example_style.css", "example_init.js", @@ -76,12 +77,21 @@ function fipfcard_main_shortcode() { $names = ["hugo", "camille"]; $ages = ["13", "34", "56"]; + $getPostMeta = get_post_meta( get_the_ID() ); + $getMetaData = get_metadata( 'post', get_the_ID() ); + $post_meta = $getPostMeta; + + $getUserMeta = get_metadata( 'user', get_current_user_id() ); + $user_meta = $getUserMeta; + $html_front = $fipfcard_tools->create_html( array( "example_index.html", "example_index2.html", ), compact( + "post_meta", + "user_meta", "names", "ages", ) diff --git a/plugins/fipfcard_plugin/html/example_index.html b/plugins/fipfcard_plugin/html/example_index.html index 73a333b..4af6dda 100644 --- a/plugins/fipfcard_plugin/html/example_index.html +++ b/plugins/fipfcard_plugin/html/example_index.html @@ -1,4 +1,21 @@
+
    +

    list of post meta :

    + $meta_value) { + include($html_dir."templates/print_meta.html"); + } + ?> +
+
    +

    list of user meta :

    + $meta_value) { + include($html_dir."templates/print_meta.html"); + } + ?> +
+

i am a new p

to change

diff --git a/plugins/fipfcard_plugin/html/templates/print_meta.html b/plugins/fipfcard_plugin/html/templates/print_meta.html new file mode 100644 index 0000000..1f34017 --- /dev/null +++ b/plugins/fipfcard_plugin/html/templates/print_meta.html @@ -0,0 +1,4 @@ +
  • + "" : + +
  • diff --git a/private b/private index a3f485f..3a33975 160000 --- a/private +++ b/private @@ -1 +1 @@ -Subproject commit a3f485f995fb1233b38253834d253d8938298830 +Subproject commit 3a33975c3ff0d095211ad9d89cb19e6f412a110b