ccontent
9 years ago
common
9 years ago
dashboard
9 years ago
optins
9 years ago
provider
9 years ago
settings
9 years ago
social_sharing
9 years ago
OLD-wpoi-wizard-design.php
9 years ago
custom-content.php
9 years ago
emails_list.php
9 years ago
error_list.php
9 years ago
listing.php
9 years ago
new-custom-content.php
9 years ago
new-free-info.php
9 years ago
new-optin_success.php
9 years ago
new-social-group.php
9 years ago
new-social-restriction.php
9 years ago
new-social-sharing.php
9 years ago
new-welcome.php
9 years ago
settings.php
9 years ago
social-groups.php
9 years ago
social-restrictions.php
9 years ago
social-sharing.php
9 years ago
wpoi-wizard-design-after-submit.php
9 years ago
wpoi-wizard-design-module-fields.php
9 years ago
wpoi-wizard-design-shapes.php
9 years ago
wpoi-wizard-design-structure.php
9 years ago
wpoi-wizard-design.php
9 years ago
wpoi-wizard-services.php
9 years ago
wpoi-wizard-settings.php
9 years ago
wpoi-wizard.php
9 years ago
new-welcome.php
134 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @var $data Hustle_Dashboard_Data |
| 4 | */ |
| 5 | ?> |
| 6 | <div id="wph-dashboard" class="hustle-two"> |
| 7 | |
| 8 | <div id="container" class="container-1146"> |
| 9 | |
| 10 | <header id="header"> |
| 11 | |
| 12 | <h1><?php _e('DASHBOARD', Opt_In::TEXT_DOMAIN); ?></h1> |
| 13 | |
| 14 | </header> |
| 15 | |
| 16 | <section> |
| 17 | |
| 18 | <div class="row"> |
| 19 | |
| 20 | <?php |
| 21 | |
| 22 | $new_welcome_notice_dismissed = (bool) get_option( "hustle_new_welcome_notice_dismissed", false ); |
| 23 | |
| 24 | if ( !( (bool) $data->all_modules ) && !$new_welcome_notice_dismissed ) : ?> |
| 25 | |
| 26 | <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> |
| 27 | |
| 28 | <?php $this->render("admin/dashboard/widget-welcome" ); ?> |
| 29 | |
| 30 | </div> |
| 31 | |
| 32 | <?php endif; ?> |
| 33 | |
| 34 | <?php if ( $data->all_modules ) : ?> |
| 35 | |
| 36 | <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> |
| 37 | |
| 38 | <?php $this->render("admin/dashboard/widget-welcome-on", array( 'data_exists' => $data_exists, 'types' => $types, 'conversions' => $conversions, 'active_modules' => $active_modules, 'most_conversions' => $most_conversions ) ); ?> |
| 39 | |
| 40 | </div> |
| 41 | |
| 42 | <?php endif; ?> |
| 43 | |
| 44 | <?php if( count( $conversion_data ) ) : ?> |
| 45 | |
| 46 | <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> |
| 47 | |
| 48 | <?php $this->render("admin/dashboard/widget-module-stats", array( 'conversion_data' => $conversion_data ) ); ?> |
| 49 | |
| 50 | </div> |
| 51 | |
| 52 | <?php endif; ?> |
| 53 | |
| 54 | </div> |
| 55 | |
| 56 | <div class="row"> |
| 57 | |
| 58 | <?php if ( (!$data->all_modules) ) : ?> |
| 59 | |
| 60 | <section class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> |
| 61 | |
| 62 | <?php if ( $data->all_modules ) { ?> |
| 63 | |
| 64 | <?php |
| 65 | $this->render( "admin/dashboard/widget-module-edit", array( |
| 66 | "total_optins" => count($data->optins), |
| 67 | "optins" => $data->active_optin_modules, |
| 68 | "inactive" => $data->inactive_optin_modules, |
| 69 | "total_custom_contents" => count($data->custom_contents), |
| 70 | "custom_contents" => $data->active_cc_modules, |
| 71 | "inactive_cc" => $data->inactive_cc_modules, |
| 72 | ) ); ?> |
| 73 | |
| 74 | <?php } ?> |
| 75 | |
| 76 | <?php $this->render("admin/dashboard/widget-module-setup", array( 'has_optins' => $has_optins, 'has_custom_content' => $has_custom_content, 'has_social_sharing' => $has_social_sharing, 'has_social_rewards' => $has_social_rewards ) ); ?> |
| 77 | |
| 78 | </section> |
| 79 | |
| 80 | <?php if ( count($data->social_sharing) > 0 ) : ?> |
| 81 | |
| 82 | <section class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> |
| 83 | <?php $this->render("admin/dashboard/widget-sshare-stats", array( |
| 84 | "ss_share_stats" => $data->ss_share_stats_data |
| 85 | )); ?> |
| 86 | |
| 87 | </section> |
| 88 | |
| 89 | <?php endif; ?> |
| 90 | |
| 91 | <?php else : ?> |
| 92 | |
| 93 | <section class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> |
| 94 | |
| 95 | <?php |
| 96 | $this->render( "admin/dashboard/widget-module-edit", array( |
| 97 | "total_optins" => count($data->optins), |
| 98 | "optins" => $data->active_optin_modules, |
| 99 | "inactive" => $data->inactive_optin_modules, |
| 100 | "total_custom_contents" => count($data->custom_contents), |
| 101 | "custom_contents" => $data->active_cc_modules, |
| 102 | "inactive_cc" => $data->inactive_cc_modules, |
| 103 | ) ); ?> |
| 104 | |
| 105 | <?php $this->render("admin/dashboard/widget-module-setup", array( 'has_optins' => $has_optins, 'has_custom_content' => $has_custom_content, 'has_social_sharing' => $has_social_sharing, 'has_social_rewards' => $has_social_rewards ) ); ?> |
| 106 | |
| 107 | </section> |
| 108 | |
| 109 | <?php if ( count($data->social_sharing) > 0 ) : ?> |
| 110 | |
| 111 | <section class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> |
| 112 | |
| 113 | <?php $this->render("admin/dashboard/widget-sshare-stats", array( |
| 114 | "ss_share_stats" => $data->ss_share_stats_data |
| 115 | )); ?> |
| 116 | |
| 117 | </section> |
| 118 | |
| 119 | <?php endif; ?> |
| 120 | |
| 121 | <?php endif; ?> |
| 122 | |
| 123 | </div> |
| 124 | |
| 125 | </section> |
| 126 | |
| 127 | </div> |
| 128 | |
| 129 | </div> |
| 130 | |
| 131 | <?php $this->render("admin/dashboard/widget-sshare-stats-modal", array( |
| 132 | "ss_share_stats" => $data->ss_share_stats_data, |
| 133 | "total_stats" => $data->ss_total_share_stats |
| 134 | )); ?> |