• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

How to add notification bubble inbox gravityflow to toolbar

Dec 17, 2019
39
1
8
Hi all,
I want to add inbox of gravityflow for status pending (level approval) to toolbar website, How to do it? Please help me!

Example:
Pic 01: menu admin
1659453918733.png
Add to toolbar at:
1659453988502.png
 
i find code in source is:
public function show_inbox_count( $menu ) {

$app_settings = $this->get_app_settings();

if ( ! rgar( $app_settings, 'workflow_inbox_count' ) ) {
return $menu;
}

$custom_labels = get_option( 'gravityflow_app_settings_labels', array() );
$custom_navigation_labels = rgar( $custom_labels, 'navigation' );
$custom_workflow_label = rgar( $custom_navigation_labels, 'workflow' );
$workflow_label = $custom_workflow_label ? $custom_workflow_label : 'Workflow';

$workflow_menu_pos = -1;
foreach ( $menu as $menuitem ) {
if ( $menuitem[0] == $workflow_label ) {
$workflow_menu_pos = array_search( $menuitem, $menu, true );
}
}

$pending_count = $this->get_inbox_count();
$menu[ $workflow_menu_pos ][0] = sprintf( __( '%s %s' ), $workflow_label, "<span class='update-plugins count-$pending_count'><span class='plugin-count'>" . number_format_i18n($pending_count) . "</span></span>" );

return $menu;
}
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock