lianglee / Flexi

0 stars 0 forks source link

feature request: Repositiong the searbar in side panel and support for logo in title bar #11

Closed s1-ranjan closed 4 years ago

s1-ranjan commented 4 years ago

It would be great if the position of the search bar is moved to the top of the side bar list as shown in the following image. Screenshot from 2019-12-31 01-22-37 Along with this request it would be nice if this theme is capable to render .svg logos in the header.

lianglee commented 4 years ago

See Flexi/plugins/default/theme/page/elements/sidebar.php , example you can move those elements

<?php
    if(!ossn_isLoggedin()){
        return;
    }
?>
        <div class="sidebar ">
            <div class="sidebar-contents">

                 <?php
                    echo ossn_view_form('search', array(
                                'component' => 'OssnSearch',
                                'class' => 'ossn-search visible-xs visible-sm visible',
                                'autocomplete' => 'off',
                                'method' => 'get',
                                'security_tokens' => false,
                                'action' => ossn_site_url("search"),
                    ), false);               
                    if (ossn_is_hook('newsfeed', "sidebar:left")) {
                            $newsfeed_left = ossn_call_hook('newsfeed', "sidebar:left", NULL, array());
                            echo implode('', $newsfeed_left);
                    }
                 ?>                
            </div>
        </div>