Hi,
I want to have the ES login dropdown module in all pages (see attached image below). Unfortunately this type of module is not available with ES built in modules. So I thought of using the toolbar module for this. But here I dont want to display everything that a toolbar displays. I only want to show the login icon that drop-down the login forms when clicked similar to the way it is in frosty theme but nothing else (meaning no notifications, search bar, bottom links, etc.). So for this, I tried creating a module override for 'mod_easysocial_toolbar'. For this I thought of replacing the default.php file from this:
<?php echo $toolbar->render( $options );?>
to something like this so only the login dropdown shows when using the toolbar module:
<div id="fd" class="es mod-es-toolbar <?php echo ($options['responsive']) ? 'es-responsive' : ''; ?> module-social<?php echo $suffix;?>">
<?php if( ( !$this->my->id && ( $login ) ) ){ ?>
<div class="es-toolbar-avatar">
<ul class="fd-nav">
<?php if( !$this->my->id && ( $login ) ){ ?>
<li class="dropdown_">
<?php echo $this->includeTemplate( 'site/toolbar/default.login' , array( 'facebook' => $facebook )); ?>
</li>
<?php } ?>
</ul>
</div>
<?php } ?>
</div>
Obviously the above doesnt work since it then shows the error: "Using $this when not in object context."
Can you tell me how I can edit the toolbar module so the following is possible:
1) Use this module to
only display the login drop-down for users not logged in and nothing else.
2) This module override doesnt affect the settings / layout of the toolbar component that is shown in ES pages when using frosty theme.
I also tried the 'EasySocial Log Box ' and 'EasySocial Login' module and thats not what I want. I want to show a login in a drop-down style only like it is in frosty toolbar. Any help will be appreciated please...