@@ -24,24 +24,23 @@ function VFA_simulate_as_not_rest($is_rest_api_request)
2424 return false ;
2525}
2626
27-
2827add_action ( 'admin_menu ' , 'VFA_add_plugin_page ' );
2928function VFA_add_plugin_page () {
30- $ codename = 'd_vuefront ' ;
31- $ page_hook_suffix = add_options_page ( __ ( 'Settings ' , $ codename ) . ' Vuefront ' , 'Vuefront ' , 'manage_options ' , 'd_vuefront ' , 'VFA_vuefront_options_page_output ' );
29+ $ codename = 'vuefront ' ;
30+ $ page_hook_suffix = add_options_page ( __ ( 'Settings ' , $ codename ) . ' Vuefront ' , 'Vuefront ' , 'manage_options ' , 'vuefront ' , 'VFA_vuefront_options_page_output ' );
3231 add_action ( 'admin_print_scripts- ' . $ page_hook_suffix , 'VFA_my_plugin_admin_scripts ' );
3332}
3433
3534function VFA_my_plugin_admin_scripts () {
36- wp_enqueue_style ( 'vuefront-style ' , plugins_url ( 'd_vuefront /view/stylesheet/admin.css ' ) );
37- wp_enqueue_style ( 'bootstrap-style ' , plugins_url ( 'd_vuefront /view/stylesheet/bootstrap.min.css ' ) );
35+ wp_enqueue_style ( 'vuefront-style ' , plugins_url ( 'vuefront /view/stylesheet/admin.css ' ) );
36+ wp_enqueue_style ( 'bootstrap-style ' , plugins_url ( 'vuefront /view/stylesheet/bootstrap.min.css ' ) );
3837 wp_enqueue_script ( 'jquery ' );
3938 wp_enqueue_script ( 'clipboard ' );
40- wp_enqueue_script ( 'bootstrap-script ' , plugins_url ( 'd_vuefront /view/javascript/bootstrap.min.js ' ) );
39+ wp_enqueue_script ( 'bootstrap-script ' , plugins_url ( 'vuefront /view/javascript/bootstrap.min.js ' ) );
4140}
4241
4342function VFA_vuefront_options_page_output () {
44- $ codename = 'd_vuefront ' ;
43+ $ codename = 'vuefront ' ;
4544
4645 $ data = array ();
4746 $ data ['text_title ' ] = __ ( 'CMS Connect URL ' , $ codename );
@@ -56,14 +55,14 @@ function VFA_vuefront_options_page_output() {
5655 $ data ['text_copied ' ] = __ ( 'copied! ' , $ codename );
5756 $ data ['catalog ' ] = get_rest_url ( null , '/vuefront/v1/graphql ' );
5857 $ data ['woocommerce ' ] = is_plugin_active ( 'woocommerce/woocommerce.php ' );
59- $ data ['logo ' ] = plugins_url ( 'd_vuefront /view/image/logo.png ' );
58+ $ data ['logo ' ] = plugins_url ( 'vuefront /view/image/logo.png ' );
6059 extract ( $ data );
6160 require_once 'view/template/setting.tpl ' ;
6261}
6362
6463function VFA_my_plugin_action_links ( $ links ) {
6564 $ links = array_merge ( array (
66- '<a href=" ' . esc_url ( admin_url ( 'options-general.php?page=d_vuefront ' ) ) . '"> ' . __ ( 'Settings ' ) . '</a> '
65+ '<a href=" ' . esc_url ( admin_url ( 'options-general.php?page=vuefront ' ) ) . '"> ' . __ ( 'Settings ' ) . '</a> '
6766 ), $ links );
6867
6968 return $ links ;
@@ -74,7 +73,7 @@ function VFA_my_plugin_action_links( $links ) {
7473add_action ( 'plugins_loaded ' , 'VFA_true_load_plugin_textdomain ' );
7574
7675function VFA_true_load_plugin_textdomain () {
77- load_plugin_textdomain ( 'd_vuefront ' , false , dirname ( plugin_basename ( __FILE__ ) ) . '/languages/ ' );
76+ load_plugin_textdomain ( 'vuefront ' , false , dirname ( plugin_basename ( __FILE__ ) ) . '/languages/ ' );
7877}
7978
8079function VFA_RestApi ( WP_REST_Request $ request ) {
0 commit comments