backend_sidebar

Adds custom content to left-hand sidebar.

Blog

Input (passed by reference)

No specific parameters.
… your plugin code …

Output

{$backend_sidebar.%plugin_id%.menu}
Custom LI element in top menu, next to “All posts”, “Comments”, etc.
{$backend_sidebar.%plugin_id%.section}
Custom section next to “Blogs”, “Drafts”, etc.
{$backend_sidebar.%plugin_id%.system}
Custom LI element in bottom menu next to “Settings”, “Pages”, “Design".
Blog

Plugin code example

PHP

public function backendSidebar()
{
    return array(
        'menu'    => '<li><a href="">Top section link</a></li>',
        'section' => '<div class="block">
            <h5 class="heading">My sidebar section</h5>
            <ul class="menu-v">
                <li><a href="">Link 1</a></li>
                <li><a href="">Link 2</a></li>
                <li><a href="">Link 3</a></li>
            </ul></div>',
        'system'  => '<li><a href="">Bottom section link</a></li>',
    );
}