@@ -24,24 +24,23 @@ function VFA_simulate_as_not_rest($is_rest_api_request)
24
24
return false ;
25
25
}
26
26
27
-
28
27
add_action ( 'admin_menu ' , 'VFA_add_plugin_page ' );
29
28
function 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 ' );
32
31
add_action ( 'admin_print_scripts- ' . $ page_hook_suffix , 'VFA_my_plugin_admin_scripts ' );
33
32
}
34
33
35
34
function 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 ' ) );
38
37
wp_enqueue_script ( 'jquery ' );
39
38
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 ' ) );
41
40
}
42
41
43
42
function VFA_vuefront_options_page_output () {
44
- $ codename = 'd_vuefront ' ;
43
+ $ codename = 'vuefront ' ;
45
44
46
45
$ data = array ();
47
46
$ data ['text_title ' ] = __ ( 'CMS Connect URL ' , $ codename );
@@ -56,14 +55,14 @@ function VFA_vuefront_options_page_output() {
56
55
$ data ['text_copied ' ] = __ ( 'copied! ' , $ codename );
57
56
$ data ['catalog ' ] = get_rest_url ( null , '/vuefront/v1/graphql ' );
58
57
$ 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 ' );
60
59
extract ( $ data );
61
60
require_once 'view/template/setting.tpl ' ;
62
61
}
63
62
64
63
function VFA_my_plugin_action_links ( $ links ) {
65
64
$ 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> '
67
66
), $ links );
68
67
69
68
return $ links ;
@@ -74,7 +73,7 @@ function VFA_my_plugin_action_links( $links ) {
74
73
add_action ( 'plugins_loaded ' , 'VFA_true_load_plugin_textdomain ' );
75
74
76
75
function 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/ ' );
78
77
}
79
78
80
79
function VFA_RestApi ( WP_REST_Request $ request ) {
0 commit comments