library/Theme/FixedActionBar.php
public static function getFab()
    {
        if (!get_field('fab_settings', 'options') || get_field('fab_settings', 'options') == 'disabled') {
            return false;
        }

        $fab = array();

        if (get_field('fab_settings', 'options') == 'wp' && get_field('fab_wp_menu', 'options')) {
            $fab['menu'] = self::wpMenu(get_field('fab_wp_menu', 'options'));
        }

        if (self::generateClasses() && isset($fab['menu'])) {
            $fab['classes'] = self::generateClasses();
        }

        if (isset($fab['menu'])) {
            return $fab;
        }

        return false;
    }
public static function getFab()
    {
        if (!get_field('fab_settings', 'options') || get_field('fab_settings', 'options') == 'disabled') {
            return false;
        }

        $fab = array();

        if (get_field('fab_settings', 'options') == 'wp' && get_field('fab_wp_menu', 'options')) {
            $fab['menu'] = self::wpMenu(get_field('fab_wp_menu', 'options'));
        }

        if (self::generateClasses() && isset($fab['menu'])) {
            $fab['classes'] = self::generateClasses();
        }

        if (isset($fab['menu'])) {
            return $fab;
        }

        return false;
    }
public static function getFab ( ) { if ( ! get_field ( 'fab_settings' , 'options' ) || get_field ( 'fab_settings' , 'options' ) == 'disabled' ) { return false ; } $ fab = array ( ) ; if ( get_field ( 'fab_settings' , 'options' ) == 'wp' && get_field ( 'fab_wp_menu' , 'options' ) ) { $ fab [ 'menu' ] = self :: wpMenu ( get_field ( 'fab_wp_menu' , 'options' ) ) ; } if ( self :: generateClasses ( ) && isset ( $ fab [ 'menu' ] ) ) { $ fab [ 'classes' ] = self :: generateClasses ( ) ; } if ( isset ( $ fab [ 'menu' ] ) ) { return $ fab ; } return false ; }
Get fixed action bar
@return array/boolean
Get fixed action bar