Vike Posted October 21, 2021 Share Posted October 21, 2021 Hello, just adding a simple panel to the clientarea homepage using the code from the WHMCS docs. Is there any way to declare that when the panel button is pressed that it can open up in a new window/tab/etc? Below is the sample code from the WHMCS docs. <?php use WHMCS\View\Menu\Item; add_hook('ClientAreaHomepagePanels', 1, function (Item $homePagePanels) { $thankYouMessage = <<<EOT <p>Thanks for beta testing our latest offerings! To show our appreciation we'd like to provide next month of service <strong>on the house</strong>.</p> EOT; // Add a homepage panel with a link to a free month promo and mode it to the // front of the panel list. $homePagePanels->addChild('thanks', array( 'label' => 'Thanks for the help!', 'icon' => 'fa-thumbs-up', 'order' => 20, 'extras' => array( 'color' => 'gold', 'btn-link' => 'https://example.org/free-month-promo', 'btn-text' => 'Redeem Your Free Month', 'btn-icon' => 'fa-arrow-right', ), 'bodyHtml' => $thankYouMessage, 'footerHtml' => 'Act fast! This offer expires soon!', )); }); 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.