Changeset 1460525
- Timestamp:
- 07/25/2016 11:55:34 PM (10 years ago)
- Location:
- site-setup-wizard
- Files:
-
- 67 added
- 4 edited
-
tags/1.5.4 (added)
-
tags/1.5.4/admin (added)
-
tags/1.5.4/admin/create_new_site.php (added)
-
tags/1.5.4/admin/ssw_activate.php (added)
-
tags/1.5.4/admin/ssw_analytics_page.php (added)
-
tags/1.5.4/admin/ssw_breadcrumb_text.php (added)
-
tags/1.5.4/admin/ssw_cancel_skip_button.php (added)
-
tags/1.5.4/admin/ssw_default_options.php (added)
-
tags/1.5.4/admin/ssw_options_page.php (added)
-
tags/1.5.4/admin/ssw_save_options.php (added)
-
tags/1.5.4/admin/step1_process.php (added)
-
tags/1.5.4/admin/step2_process.php (added)
-
tags/1.5.4/admin/step3_process.php (added)
-
tags/1.5.4/admin/step4_process.php (added)
-
tags/1.5.4/admin/user_notification.php (added)
-
tags/1.5.4/css (added)
-
tags/1.5.4/css/ssw-media.css (added)
-
tags/1.5.4/css/ssw-style-admin.css (added)
-
tags/1.5.4/css/ssw-style.css (added)
-
tags/1.5.4/images (added)
-
tags/1.5.4/images/add_new_icon.png (added)
-
tags/1.5.4/images/add_new_icon@5x.png (added)
-
tags/1.5.4/images/icon.png (added)
-
tags/1.5.4/images/icon@5x.png (added)
-
tags/1.5.4/js (added)
-
tags/1.5.4/js/ssw-main.js (added)
-
tags/1.5.4/js/ssw-options.js (added)
-
tags/1.5.4/license.txt (added)
-
tags/1.5.4/readme.txt (added)
-
tags/1.5.4/site-setup-wizard.php (added)
-
tags/1.5.4/uninstall.php (added)
-
tags/1.5.4/wizard (added)
-
tags/1.5.4/wizard/finish.php (added)
-
tags/1.5.4/wizard/step1.php (added)
-
tags/1.5.4/wizard/step2.php (added)
-
tags/1.5.4/wizard/step3.php (added)
-
tags/1.5.4/wizard/step4.php (added)
-
trunk/admin/ssw_analytics_page.php (modified) (2 diffs)
-
trunk/css/bootstrap-wrapper.less (added)
-
trunk/css/ssw-style-admin.css (modified) (1 diff)
-
trunk/js/ssw-analytics.js (added)
-
trunk/lib (added)
-
trunk/lib/bootstrap (added)
-
trunk/lib/bootstrap/css (added)
-
trunk/lib/bootstrap/css/bootstrap-theme.css (added)
-
trunk/lib/bootstrap/css/bootstrap-theme.css.map (added)
-
trunk/lib/bootstrap/css/bootstrap-theme.min.css (added)
-
trunk/lib/bootstrap/css/bootstrap-theme.min.css.map (added)
-
trunk/lib/bootstrap/css/bootstrap.css (added)
-
trunk/lib/bootstrap/css/bootstrap.css.map (added)
-
trunk/lib/bootstrap/css/bootstrap.min.css (added)
-
trunk/lib/bootstrap/css/bootstrap.min.css.map (added)
-
trunk/lib/bootstrap/fonts (added)
-
trunk/lib/bootstrap/fonts/glyphicons-halflings-regular.eot (added)
-
trunk/lib/bootstrap/fonts/glyphicons-halflings-regular.svg (added)
-
trunk/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf (added)
-
trunk/lib/bootstrap/fonts/glyphicons-halflings-regular.woff (added)
-
trunk/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2 (added)
-
trunk/lib/bootstrap/js (added)
-
trunk/lib/bootstrap/js/bootstrap.js (added)
-
trunk/lib/bootstrap/js/bootstrap.min.js (added)
-
trunk/lib/bootstrap/js/npm.js (added)
-
trunk/lib/nv.d3 (added)
-
trunk/lib/nv.d3/nv.d3.css (added)
-
trunk/lib/nv.d3/nv.d3.js (added)
-
trunk/lib/nv.d3/nv.d3.min.css (added)
-
trunk/lib/nv.d3/nv.d3.min.css.map (added)
-
trunk/lib/nv.d3/nv.d3.min.js (added)
-
trunk/lib/nv.d3/nv.d3.min.js.map (added)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/site-setup-wizard.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
site-setup-wizard/trunk/admin/ssw_analytics_page.php
r1446127 r1460525 1 1 <?php 2 3 wp_enqueue_script( 'd3-min-js' ); 4 wp_enqueue_script( 'nv-d3-min-js' ); 5 wp_enqueue_script( 'ssw-analytics-js' ); 6 7 wp_enqueue_style( 'bootstrap-min-css' ); 8 wp_enqueue_style( 'nv-d3-min-css' ); 9 wp_enqueue_style( 'ssw-style-admin-css' ); 2 10 3 11 global $wpdb; … … 6 14 $is_debug_mode = $options['debug_mode']; 7 15 8 echo '<h3>Site Setup Wizard Analytics</h3>';16 $ssw_analytics = new stdClass(); 9 17 10 echo '<p>This page will be having all the available reports from the Site Setup Wizard Plugin</p>'; 18 /* Get all sites created using Site Setup Wizard */ 19 $results = $wpdb->get_results( 20 "SELECT site_type, blog_id, endtime FROM {$ssw_main_table} WHERE site_created = 1 AND blog_id <> '' AND blog_id IS NOT NULL" 21 ); 22 $ssw_analytics->allSitesInfo = $results; 11 23 12 /* Fetch count of all sites created so far using Site Setup Wizard based on their cateogory selected */ 13 $results = $wpdb->get_results( 14 'SELECT site_type, count(*) as number_of_sites FROM '.$ssw_main_table.' WHERE site_created = 1 group by site_type' 15 ); 16 17 echo '<h4>Number of Sites created using Site Setup Wizard</h4>'; 18 echo '<p>'; 19 foreach( $results as $obj ) { 20 $site_type = $obj->site_type; 21 $number_of_sites = $obj->number_of_sites; 22 if($site_type!='') { 23 echo $site_type.' - '.$number_of_sites.'<br/>'; 24 } 25 } 26 echo '</p>'; 27 28 /* Fetch count of all sites created and all steps of wizard completed so far using Site Setup Wizard based on their cateogory selected */ 29 $results2 = $wpdb->get_results( 30 'SELECT site_type, count(*) as number_of_sites FROM '.$ssw_main_table.' WHERE wizard_completed = 1 group by site_type' 31 ); 32 33 echo '<h4>Number of Sites created using Site Setup Wizard and all steps of wizard were completed by user</h4>'; 34 echo '<p>'; 35 foreach( $results2 as $obj ) { 36 $site_type = $obj->site_type; 37 $number_of_sites = $obj->number_of_sites; 38 if($site_type!='') { 39 echo $site_type.' - '.$number_of_sites.'<br/>'; 40 } 41 } 24 wp_localize_script( 'ssw-analytics-js', 'sswAnalytics', $ssw_analytics ); 42 25 43 26 ?> 27 <div class="wrap"> 28 <h1><?php echo esc_html('Site Setup Wizard Analytics') ?></h1> 29 <div class="container-fluid"> 30 <div class="row"> 31 <div class="col-md-12"> 32 <h4 id="ssw-a-total-sites"><?php echo esc_html('Total number of sites created = ') ?><span id="ssw-a-total-sites-value"></span></h4> 33 </div> 34 </div> 35 <div class="row"> 36 <div class="col-md-12"> 37 <h4><?php echo esc_html('Number of Sites Created') ?></h4> 38 </div> 39 </div> 40 <div class="row"> 41 <div class="col-md-12"> 42 <button type="button" class="btn btn-sm btn-primary" name="Based on Month" value="Based on Month" onclick="loadAllSitesInfo('%b %Y')" > <?php echo esc_html('Based on Month') ?> 43 </button> 44 <button type="button" class="btn btn-sm btn-primary" name="Based on Date" value="Based on Date" onclick="loadAllSitesInfo('%d %b %Y')" > <?php echo esc_html('Based on Date') ?> 45 </button> 46 </div> 47 </div> 48 <div class="row"> 49 <div class="col-md-12"> 50 <svg id="all-sites-info"> 51 </svg> 52 </div> 53 </div> 54 <div class="row top-buffer"> 55 <div class="col-md-4"> 56 <h4><?php echo esc_html('Types of Sites') ?></h4> 57 <svg id="site-type-info"> 58 </svg> 59 </div> 60 </div> 61 </div> 62 </div> -
site-setup-wizard/trunk/css/ssw-style-admin.css
r1441029 r1460525 64 64 65 65 /* ENDS Media CSS for Options Page */ 66 67 /* Analytics Page */ 68 body { 69 background-color: #F1F1F1; 70 font-family: "Open Sans",sans-serif; 71 } 72 73 #site-type-info { 74 max-height: 500px; 75 } 76 77 .top-buffer { 78 margin-top: 20px; 79 } 80 81 #ssw-a-total-sites { 82 83 } 84 /* ENDS Analytics Page */ -
site-setup-wizard/trunk/readme.txt
r1450867 r1460525 1 1 === Site Setup Wizard === 2 Contributors: shah neel2 Contributors: shah.neel 3 3 Tags: plugin, multisite, site setup wizard, site registration, site creation, create site, wp-signup 4 4 Requires at least: 4.0 … … 13 13 == Description == 14 14 15 Site Setup Wizard plugin allows all your multisite registered users to be able to create new sites using differentmany options such as their site type, category, address, theme, plugins they want to activate, privacy and many more in form of steps. It can be used by placing a shortcode [site_setup_wizard] on any page. Site category and addresses are seperated using a hyphen (-). For example in http://yourdomain.com/hr-benefits **hr is a site category** while **benefits is site address**. This helps in organizing sites effeciently.15 Site Setup Wizard plugin allows all your multisite registered users to be able to create new sites using many options such as their site type, category, address, theme, plugins they want to activate, privacy and many more in form of steps. It can be used by placing a shortcode [site_setup_wizard] on any page. Site category and addresses are seperated using a hyphen (-). For example in http://yourdomain.com/hr-benefits **hr is a site category** while **benefits is site address**. This helps in organizing sites effeciently. 16 16 17 17 Requires a wordpress multisite subdirectory install. … … 73 73 74 74 == Upgrade Notice == 75 = 1.5.5 = 76 Added new charts on Analytics Page. 77 75 78 = 1.5.4 = 76 79 Fixed a critical issue related to Themes Step. Please update now. … … 165 168 166 169 == Changelog == 170 = 1.5.5 = 171 * Added pretty charts on Analytics Page for meaningful insights of Plugin usage. 172 * Added new feature to allow super admins to hide Features page if required. 173 167 174 = 1.5.4 = 168 175 * Fixed an issue related to Theme step displaying all network enabled themes. Please refer to [Issue #32](https://github.com/neelakansha85/site-setup-wizard/issues/32) for additional details. -
site-setup-wizard/trunk/site-setup-wizard.php
r1450867 r1460525 7 7 * Author URI: http://neelshah.info 8 8 * License: GPL2 9 * Version: 1.5. 49 * Version: 1.5.5 10 10 */ 11 11 … … 28 28 define('SSW_USER_ROLE_KEY', 'nsd_ssw_user_role'); 29 29 define('SSW_VERSION_KEY', 'nsd_ssw_version'); 30 define('SSW_VERSION_NUM', '1.5. 4');30 define('SSW_VERSION_NUM', '1.5.5'); 31 31 32 32 … … 512 512 // Register all required Javascripts for SSW Plugin with it's wp_register_script hook 513 513 wp_register_script( 'ssw-main-js', SSW_PLUGIN_URL.'js/ssw-main.js' ); 514 515 // For Analytics Page 516 wp_register_script( 'd3-min-js', 'https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.2/d3.min.js' ); 517 wp_register_script( 'nv-d3-min-js', SSW_PLUGIN_URL.'lib/nv.d3/nv.d3.min.js', array('d3-min-js') ); 518 wp_register_script( 'ssw-analytics-js', SSW_PLUGIN_URL.'js/ssw-analytics.js' ); 519 514 520 // Include the Javascripts for the ssw plugin while trying to create a site 515 521 wp_enqueue_script( 'ssw-main-js' ); … … 529 535 wp_register_style( 'ssw-style-admin-css', SSW_PLUGIN_URL.'css/ssw-style-admin.css' ); 530 536 wp_register_style( 'ssw-media-css', SSW_PLUGIN_URL.'css/ssw-media.css' ); 537 538 // For Analytics Page 539 wp_register_style( 'bootstrap-min-css', SSW_PLUGIN_URL.'lib/bootstrap/css/bootstrap.min.css'); 540 wp_register_style( 'nv-d3-min-css', SSW_PLUGIN_URL.'lib/nv.d3/nv.d3.min.css' ); 541 531 542 wp_enqueue_style( 'ssw-style-css' ); 532 543 wp_enqueue_style( 'ssw-media-css' ); … … 1051 1062 1052 1063 else if($ssw_next_stage == 'ssw_finish') { 1053 if ( isset( $_POST['step4_nonce'] ) && wp_verify_nonce( $_POST['step4_nonce'], 'step4_action' ) ){ 1064 if ( isset( $_POST['step3_nonce'] ) && wp_verify_nonce($_POST['step3_nonce'], 'step3_action' ) ){ 1065 include(SSW_PLUGIN_DIR.'admin/step3_process.php'); 1066 1067 } 1068 else if ( isset( $_POST['step4_nonce'] ) && wp_verify_nonce( $_POST['step4_nonce'], 'step4_action' ) ){ 1054 1069 include(SSW_PLUGIN_DIR.'admin/step4_process.php'); 1055 1070
Note: See TracChangeset
for help on using the changeset viewer.