function wlcms_add_dashboard_widget_custom() { if (get_option('wlcms_o_show_rss_widget')) { $img = get_option('wlcms_o_rss_logo') ? get_option('wlcms_o_rss_logo') : ''; if ($img) { $img = '<img src="' . $img . '" height="16" width="16" alt="Logo" style="padding-right:5px;vertical-align:bottom;"/>'; } wp_add_dashboard_widget('wlcms_rss_box', $img . get_option('wlcms_o_rss_title'), 'wlcms_rss_box'); } if (get_option('wlcms_o_show_welcome')) { if (wlcmsUserCompare(strtolower(get_option('wlcms_o_welcome_visible_to')), strtolower(wlcms_get_current_user_role()))) { wp_add_dashboard_widget('custom_help_widget', get_option('wlcms_o_welcome_title'), 'wlcms_custom_dashboard_help'); } if (wlcmsUserCompare(strtolower(get_option('wlcms_o_welcome_visible_to1')), strtolower(wlcms_get_current_user_role()))) { wp_add_dashboard_widget('my_dashboard_widget', get_option('wlcms_o_welcome_title1'), 'wlcms_custom_dashboard_help_new'); } } }
function wlcms_add_dashboard_widget_custom() { if (get_option('wlcms_o_show_welcome')) { if (wlcmsUserCompare(strtolower(get_option('wlcms_o_welcome_visible_to')), strtolower(wlcms_get_current_user_role()))) { nxt_add_dashboard_widget('custom_help_widget', get_option('wlcms_o_welcome_title'), 'wlcms_custom_dashboard_help'); } if (wlcmsUserCompare(strtolower(get_option('wlcms_o_welcome_visible_to1')), strtolower(wlcms_get_current_user_role()))) { nxt_add_dashboard_widget('my_dashboard_widget', get_option('wlcms_o_welcome_title1'), 'wlcms_custom_dashboard_help_new'); } } }