commons
1 month ago
dashboard
1 month ago
dialogs
1 month ago
email-lists
9 months ago
embedded
3 years ago
global
5 months ago
integrations
1 month ago
integrations-page
5 months ago
popup
3 years ago
settings
1 month ago
slidein
3 years ago
sshare
9 months ago
dashboard.php
1 month ago
entries.php
2 years ago
image-markup.php
3 years ago
integrations.php
1 month ago
settings.php
1 month ago
tutorials.php
3 years ago
upsell.php
2 years ago
widget-analytics.php
3 years ago
dashboard.php
63 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Main wrapper for Hustle's dashboard. |
| 4 | * |
| 5 | * @uses ./../global/sui-components/sui-header |
| 6 | * @uses ./../global/sui-components/sui-footer |
| 7 | * @uses ./components/sui-summary |
| 8 | * @uses ./components/blocks-free |
| 9 | * @uses ./components/blocks-pro |
| 10 | * @uses ./components/dialogs |
| 11 | * @uses ./dialogs/modal-preview |
| 12 | * |
| 13 | * @package Hustle |
| 14 | * @since 4.0.0 |
| 15 | */ |
| 16 | |
| 17 | $capability = array( |
| 18 | 'hustle_create' => current_user_can( 'hustle_create' ), |
| 19 | 'hustle_access_emails' => current_user_can( 'hustle_access_emails' ), |
| 20 | ); |
| 21 | |
| 22 | $is_free = Opt_In_Utils::is_free(); |
| 23 | |
| 24 | $header = array( |
| 25 | 'title' => 'Dashboard', |
| 26 | 'docs_section' => 'dashboard', |
| 27 | ); |
| 28 | |
| 29 | $summary = array( |
| 30 | 'sui' => $sui, |
| 31 | 'metrics' => $metrics, |
| 32 | 'active_modules' => $active_modules, |
| 33 | 'last_conversion' => $last_conversion, |
| 34 | ); |
| 35 | |
| 36 | $blocks = array( |
| 37 | 'popups' => $popups, |
| 38 | 'slideins' => $slideins, |
| 39 | 'embeds' => $embeds, |
| 40 | 'capability' => $capability, |
| 41 | 'social_sharings' => $social_sharings, |
| 42 | ); |
| 43 | |
| 44 | $footer = array( |
| 45 | 'is_large' => true, |
| 46 | 'is_free' => $is_free, |
| 47 | ); |
| 48 | ?> |
| 49 | |
| 50 | <?php |
| 51 | $this->render( 'admin/global/sui-components/sui-header', $header ); |
| 52 | |
| 53 | $this->render( 'admin/dashboard/components/sui-summary', $summary ); |
| 54 | |
| 55 | $this->render( 'admin/global/sui-components/sui-tutorials' ); |
| 56 | |
| 57 | $this->render( 'admin/dashboard/components/blocks', $blocks ); |
| 58 | |
| 59 | $this->render( 'admin/global/sui-components/sui-footer', $footer ); |
| 60 | |
| 61 | // Preview. |
| 62 | $this->render( 'admin/dialogs/modal-preview', array( 'module_type' => __( 'Module', 'hustle' ) ) ); |
| 63 |