Trean::bookmarkletLink PHP Méthode

    public static function bookmarkletLink()
    {
        $view = $GLOBALS['injector']->createInstance('Horde_View');
        $view->url = Horde::url('add.php', true, array('append_session' => -1))->add('popup', 1);
        $view->image = Horde::img('add.png');
        return $view->render('bookmarklet');
    }

Usage Example

Exemple #1
0
    ?>
</p>
  <h4><?php 
    echo _("Internet Explorer");
    ?>
</h4>
  <p><?php 
    echo _("Drag the \"Add to Bookmarks\" link below onto your \"Links\" Bar");
    ?>
</p>
  <p><?php 
    echo _("While browsing you will be able to bookmark the current page by clicking your new \"Add to Bookmarks\" shortcut.");
    ?>
</p>
  <p>
    <strong><?php 
    echo _("Note:");
    ?>
</strong>
    <?php 
    printf(_("On newer versions of Internet Explorer, you may have to add %s://%s to your Trusted Zone for this to work."), !empty($_SERVER['HTTPS']) ? 'https' : 'http', $conf['server']['name']);
    ?>
  </p>
  <p>
    <?php 
    echo Trean::bookmarkletLink();
    ?>
  </p>
</div>
<?php 
}