XPressME Integration Kit

Trac


Ignore:
Timestamp:
Sep 8, 2009, 6:18:52 PM (15 years ago)
Author:
toemon
Message:

表示設定ページに ダッシュボードのフィードにXPressMEブログとフォーラムの表示有無設定を追加
および関連言語ファイル修正
fixed #206 #207

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/dashboard_feed.php

    r376 r379  
    66function xpress_register_dashboard_widget() { 
    77        global $wp_registered_widgets, $wp_registered_widget_controls, $wp_dashboard_control_callbacks; 
     8        global $xpress_config; 
    89 
    910        $widget_options = get_option( 'xpress_dashboard_widget_options' ); 
     
    3738        } 
    3839        update_option( 'xpress_dashboard_widget_options', $widget_options ); 
    39          
    40         wp_add_dashboard_widget( 'xpress_dashboard_primary', $widget_options['xpress_dashboard_primary']['title'], 'xpress_dashboard_primary', 'xpress_dashboard_primary_control' ); 
    41         wp_add_dashboard_widget( 'xpress_dashboard_secondary', $widget_options['xpress_dashboard_secondary']['title'], 'xpress_dashboard_secondary', 'xpress_dashboard_secondary_control'); 
     40        if ($xpress_config->is_dashboard_blog_disp){ 
     41                wp_add_dashboard_widget( 'xpress_dashboard_primary', $widget_options['xpress_dashboard_primary']['title'], 'xpress_dashboard_primary', 'xpress_dashboard_primary_control' ); 
     42        } 
     43        if ($xpress_config->is_dashboard_forum_disp){ 
     44                wp_add_dashboard_widget( 'xpress_dashboard_secondary', $widget_options['xpress_dashboard_secondary']['title'], 'xpress_dashboard_secondary', 'xpress_dashboard_secondary_control'); 
     45        } 
    4246} 
    4347 
Note: See TracChangeset for help on using the changeset viewer.