Author Topic: [module] Favorites top bar  (Read 15823 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
[module] Favorites top bar
« on: April 05, 2015, 02:42:30 PM »
This module lets you add favorites to the top of your page


Add these lines to the bottom of: /usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php

Quote
<!-- Fast access -->
<style>
.fast_access .items .op{
   display:inline-block;
   padding:5px;
   padding-bottom: 0px;
   width:100%;
}

.fast_access .items {
   position:absolute;
   background:#FFF;
   padding-bottom: 5px;
   display:none;
}
</style>
<li class="inactive fast_access">
   <a href="#" class="bt">
      <span class="icon16 icomoon-icon-star"></span> <span class="txt">Favorites</span>
      <span class="hasDrop icon16 icomoon-icon-arrow-down-2"></span>
   </a>
   <div class="items">
      <a class="op" href="index.php?module=postfix_queue">Mail Queue</a>
      <a class="op" href="http://www.google.pt" target="_blank">Google</a>
   </div>
</li>
<script>
   $(".fast_access").appendTo(".navbar .nav:first");
   $('.fast_access .bt').click(function(){
      if($('.fast_access .items').is(':visible'))
         $('.fast_access .items').hide();
      else
         $('.fast_access .items').show();
   });
</script>
<!-- //Fast access -->

The red lines above are the options you can add to that dropdown menu, if you want to add more, just follow this rules:
<a class="op" href=" [URL goes here - with no spaces between quotes] ">  [Text goes here]  </a>
Add as much as you want :)

Tip: if you want every time to open a specific option on a new page, just add: target="_blank" before the >text option</a>
<a class="op" href="http://www.google.pt" target="_blank">Google</a>
« Last Edit: April 05, 2015, 02:56:03 PM by pedromidiasf »

Offline
*
Re: [module] Favorites top bar
« Reply #1 on: April 24, 2016, 06:46:17 PM »
Olá,

Como seria para a tela de cliente?

Att..

Offline
**
Re: [module] Favorites top bar
« Reply #2 on: June 20, 2016, 10:19:19 PM »
Olá,

Como seria para a tela de cliente?

Att..

Nunca programei para "cliente", apesar de existir a pasta tal como na pasta admin não sei se é possivel acrescentar, mas se for, deve funcionar da mesma forma uma vez q a base é a mesma.