function sa_load_client_dash_addon() { if (class_exists('SI_Client_Dashboard')) { return; } require_once 'inc/Client_Dashboard.php'; require_once 'inc/Client_Dashboard_Notifications.php'; SI_Client_Dashboard::init(); Client_Dashboard_Notifications::init(); }
public static function default_user_notification() { return SI_Client_Dashboard::load_addon_view_to_string('notifications/user-created', array(), true); }
<div id="si_dashboard"> <?php if ($show_estimates) { print SI_Client_Dashboard::load_addon_view('section/dashboard-estimates', array('client_id' => $client_id, 'invoices' => $invoices, 'estimates' => $estimates), true); } ?> <?php if ($show_invoices) { print SI_Client_Dashboard::load_addon_view('section/dashboard-invoices', array('client_id' => $client_id, 'invoices' => $invoices, 'estimates' => $estimates), true); } ?> </div><!-- #si_dashboard -->