Source of file FrontendLinkExtension.php
Size: 0,863 Bytes - Last Modified: 2022-02-21T10:00:27+00:00
/var/www/docs.ssmods.com/process/src/code/FrontendLinkExtension.php
123456789101112131415161718192021222324252627282930 | <?php class FrontendLinkExtension extends LeftAndMainExtension { static $base_admin_link = ""; static $base_public_link = ""; public function init() { // unique identifier for this item. Will have an ID of Menu-$ID $id = 'LinkToFrontend'; // your 'nice' title $title = 'Zurück zur Website'; // the link you want to item to go to $link = self::$base_public_link; // priority controls the ordering of the link in the stack. The // lower the number, the lower in the list $priority = -2; // Add your own attributes onto the link. In our case, we want to // open the link in a new window (not the original) $attributes = array( 'target' => '_blank' ); CMSMenu::add_link($id, $title, $link, $priority, $attributes); } } |