Exemple #1
0
 /**
  * Applies the format selectio to the provided tabset
  *
  * @param   Tabs $tabs The tabs object to extend with
  *
  * @see     Tabextension::apply()
  */
 public function apply(Tabs $tabs)
 {
     foreach ($this->tabs as $tab) {
         $tabs->addAsDropdown($tab->getName(), $tab);
     }
 }
 /**
  * Apply this tabextension to the provided tabs
  *
  * @param Tabs $tabs The tabbar to modify
  */
 public function apply(Tabs $tabs)
 {
     $tabs->addAsDropdown('dashboard_add', array('icon' => 'img/icons/dashboard.png', 'label' => t('Add New Pane Or Dashlet'), 'url' => Url::fromPath('dashboard/new-dashlet')));
     $tabs->addAsDropdown('dashboard_settings', array('icon' => 'img/icons/dashboard.png', 'label' => t('Settings'), 'url' => Url::fromPath('dashboard/settings')));
 }
 /**
  * Applies the dashboard actions to the provided tabset
  *
  * @param   Tabs $tabs The tabs object to extend with
  */
 public function apply(Tabs $tabs)
 {
     $tabs->addAsDropdown('dashboard', array('icon' => 'dashboard', 'label' => t('Add To Dashboard'), 'url' => Url::fromPath('dashboard/new-dashlet'), 'urlParams' => array('url' => rawurlencode(Url::fromRequest()->getRelativeUrl()))));
 }
 /**
  * Applies the dashboard actions to the provided tabset
  *
  * @param   Tabs $tabs The tabs object to extend with
  */
 public function apply(Tabs $tabs)
 {
     $tabs->addAsDropdown('basket', array('title' => 'URL Basket', 'url' => Url::fromPath('basket/add'), 'urlParams' => array('url' => Url::fromRequest()->getRelativeUrl())));
 }
Exemple #5
0
 /**
  * Applies the menu actions to the provided tabset
  *
  * @param   Tabs $tabs The tabs object to extend with
  */
 public function apply(Tabs $tabs)
 {
     $tabs->addAsDropdown('menu-entry', array('icon' => 'menu', 'label' => t('Add To Menu'), 'url' => Url::fromPath('navigation/add'), 'urlParams' => array('url' => rawurlencode(Url::fromRequest()->getRelativeUrl()))));
 }
 /**
  * Applies the dashboard actions to the provided tabset
  *
  * @param   Tabs $tabs The tabs object to extend with
  */
 public function apply(Tabs $tabs)
 {
     $tabs->addAsDropdown('dashboard', array('icon' => 'img/icons/dashboard.png', 'title' => 'Add To Dashboard', 'url' => Url::fromPath('dashboard/addurl'), 'urlParams' => array('url' => Url::fromRequest()->getRelativeUrl())));
 }