Conditional showing elements

Elements (i.e. menu links or divs) can be conditional hidden based on whether caller is authenticated or not. Login or logout from this page to see the effect.

Secure content

This message should only be seen when user is logged on.

Public content

This message has 'auth=false' and should always be visible.

The following 'boolean' values can be used as element attribute to flag content that should only be displayed when user is logged on:

Example:

Menu:


UUP\Site\Page\Context\Menu\StandardMenu Object
(
    [storage:ArrayObject:private] => Array
        (
            [0] => UUP\Site\Page\Context\Menu\MenuData Object
                (
                    [parent] => 
                    [name] => Conditional
                    [data] => Array
                        (
                            [Public 1] => Array
                                (
                                    [href] => public.php
                                )

                            [Secure 1] => Array
                                (
                                    [href] => protected.php
                                    [auth] => 1
                                )

                            [Secure 2] => Array
                                (
                                    [href] => protected.php
                                    [auth] => true
                                )

                            [Secure 3] => Array
                                (
                                    [href] => protected.php
                                    [auth] => yes
                                )

                            [Public 2] => Array
                                (
                                    [href] => public.php
                                )

                        )

                )

        )

)