Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ptibogxiv committed Nov 3, 2024
1 parent a9410f0 commit 477cad3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
24 changes: 12 additions & 12 deletions admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ function ptibogxiv_management_page() {
'name' => 'doliaccount',
'show_option_none' => __( '- Select -', 'doliconnect' ),
'option_none_value' => '0',
'lang' => strtolower(str_replace("_", "-", get_locale())),
'lang' => doliUserLang(wp_get_current_user(), 'slug'),
'selected' => get_option('doliaccount')
);
wp_dropdown_pages($args); ?>
Expand All @@ -426,7 +426,7 @@ function ptibogxiv_management_page() {
'name' => 'dolishop',
'show_option_none' => __( '- Select -', 'doliconnect' ),
'option_none_value' => '0',
'lang' => strtolower(str_replace("_", "-", get_locale())),
'lang' => doliUserLang(wp_get_current_user(), 'slug'),
'selected' => get_option('dolishop')
);
wp_dropdown_pages($args); ?>
Expand Down Expand Up @@ -469,7 +469,7 @@ function ptibogxiv_management_page() {
'name' => 'dolishipping',
'show_option_none' => __( '- Select -', 'doliconnect' ),
'option_none_value' => '0',
'lang' => strtolower(str_replace("_", "-", get_locale())),
'lang' => doliUserLang(wp_get_current_user(), 'slug'),
'selected' => get_option('dolishipping')
);
wp_dropdown_pages($args); ?></td>
Expand All @@ -482,7 +482,7 @@ function ptibogxiv_management_page() {
'name' => 'dolisupplier',
'show_option_none' => __( '- Select -', 'doliconnect' ),
'option_none_value' => '0',
'lang' => strtolower(str_replace("_", "-", get_locale())),
'lang' => doliUserLang(wp_get_current_user(), 'slug'),
'selected' => get_option('dolisupplier')
);
wp_dropdown_pages($args); ?>
Expand All @@ -500,7 +500,7 @@ function ptibogxiv_management_page() {
'name' => 'dolicart',
'show_option_none' => __( '- Select -', 'doliconnect' ),
'option_none_value' => '0',
'lang' => strtolower(str_replace("_", "-", get_locale())),
'lang' => doliUserLang(wp_get_current_user(), 'slug'),
'selected' => get_option('dolicart')
);
wp_dropdown_pages($args); ?>
Expand All @@ -513,7 +513,7 @@ function ptibogxiv_management_page() {
'name' => 'dolifaq',
'show_option_none' => __( '- Select -', 'doliconnect' ),
'option_none_value' => '0',
'lang' => strtolower(str_replace("_", "-", get_locale())),
'lang' => doliUserLang(wp_get_current_user(), 'slug'),
'selected' => get_option('dolifaq')
);
wp_dropdown_pages($args); ?> <?php _e('(Display your knowledge base)', 'doliconnect') ?></td>
Expand All @@ -526,7 +526,7 @@ function ptibogxiv_management_page() {
'name' => 'dolidonation',
'show_option_none' => __( '- Select -', 'doliconnect' ),
'option_none_value' => '0',
'lang' => strtolower(str_replace("_", "-", get_locale())),
'lang' => doliUserLang(wp_get_current_user(), 'slug'),
'selected' => get_option('dolidonation')
);
wp_dropdown_pages($args); ?>
Expand All @@ -540,7 +540,7 @@ function ptibogxiv_management_page() {
'name' => 'dolicontact',
'show_option_none' => __( '- Select -', 'doliconnect' ),
'option_none_value' => '0',
'lang' => strtolower(str_replace("_", "-", get_locale())),
'lang' => doliUserLang(wp_get_current_user(), 'slug'),
'selected' => get_option('dolicontact')
);
wp_dropdown_pages($args); ?> </td>
Expand All @@ -552,7 +552,7 @@ function ptibogxiv_management_page() {
'name' => 'wp_page_for_privacy_policy',
'show_option_none' => __( '- Select -', 'doliconnect' ),
'option_none_value' => '0',
'lang' => strtolower(str_replace("_", "-", get_locale())),
'lang' => doliUserLang(wp_get_current_user(), 'slug'),
'selected' => get_option( 'wp_page_for_privacy_policy' )
);
wp_dropdown_pages($args); ?> <?php _e('(set your default wordpress legacy page)', 'doliconnect') ?></td>
Expand All @@ -564,7 +564,7 @@ function ptibogxiv_management_page() {
'name' => 'dolitos',
'show_option_none' => __( '- Select -', 'doliconnect' ),
'option_none_value' => '0',
'lang' => strtolower(str_replace("_", "-", get_locale())),
'lang' => doliUserLang(wp_get_current_user(), 'slug'),
'selected' => get_option('dolitos')
);
wp_dropdown_pages($args); ?> <?php _e('(Terms of service)', 'doliconnect') ?></td>
Expand All @@ -576,7 +576,7 @@ function ptibogxiv_management_page() {
'name' => 'doliagenda',
'show_option_none' => __( '- Select -', 'doliconnect' ),
'option_none_value' => '0',
'lang' => strtolower(str_replace("_", "-", get_locale())),
'lang' => doliUserLang(wp_get_current_user(), 'slug'),
'selected' => get_option('doliagenda')
);
wp_dropdown_pages($args); ?></td>
Expand All @@ -589,7 +589,7 @@ function ptibogxiv_management_page() {
'name' => 'doliclassifieds',
'show_option_none' => __( '- Select -', 'doliconnect' ),
'option_none_value' => '0',
'lang' => strtolower(str_replace("_", "-", get_locale())),
'lang' => doliUserLang(wp_get_current_user(), 'slug'),
'selected' => get_option('doliclassifieds')
);
wp_dropdown_pages($args); ?></td>
Expand Down
1 change: 1 addition & 0 deletions functions/data-request.php
Original file line number Diff line number Diff line change
Expand Up @@ -1088,6 +1088,7 @@ function dolimember_request(){

function dolimodal_request(){
global $current_user;

$response = array();
$modal = array();
if ( wp_verify_nonce( trim($_POST['dolimodal-nonce']), 'dolimodal-nonce' ) && isset($_POST['case']) && $_POST['case'] == "legacy" ) {
Expand Down

0 comments on commit 477cad3

Please sign in to comment.