Plugin Directory

Changeset 1460525


Ignore:
Timestamp:
07/25/2016 11:55:34 PM (10 years ago)
Author:
shah.neel
Message:

Updated to v1.5.5

Location:
site-setup-wizard
Files:
67 added
4 edited

Legend:

Unmodified
Added
Removed
  • site-setup-wizard/trunk/admin/ssw_analytics_page.php

    r1446127 r1460525  
    11<?php
     2
     3wp_enqueue_script( 'd3-min-js' );
     4wp_enqueue_script( 'nv-d3-min-js' );
     5wp_enqueue_script( 'ssw-analytics-js' );
     6
     7wp_enqueue_style( 'bootstrap-min-css' );
     8wp_enqueue_style( 'nv-d3-min-css' );
     9wp_enqueue_style( 'ssw-style-admin-css' );
    210
    311global $wpdb;
     
    614$is_debug_mode = $options['debug_mode'];   
    715
    8 echo '<h3>Site Setup Wizard Analytics</h3>';
     16$ssw_analytics = new stdClass();
    917
    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;
    1123
    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 }
     24wp_localize_script( 'ssw-analytics-js', 'sswAnalytics', $ssw_analytics );
    4225
    4326?>
     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  
    6464
    6565/* ENDS Media CSS for Options Page */
     66
     67/* Analytics Page */
     68body {
     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  
    11=== Site Setup Wizard ===
    2 Contributors: shahneel
     2Contributors: shah.neel
    33Tags: plugin, multisite, site setup wizard, site registration, site creation, create site, wp-signup
    44Requires at least: 4.0
     
    1313== Description ==
    1414
    15 Site Setup Wizard plugin allows all your multisite registered users to be able to create new sites using different 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.   
     15Site 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.   
    1616
    1717Requires a wordpress multisite subdirectory install.
     
    7373
    7474== Upgrade Notice ==
     75= 1.5.5 =
     76Added new charts on Analytics Page.
     77
    7578= 1.5.4 =
    7679Fixed a critical issue related to Themes Step. Please update now.
     
    165168
    166169== 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
    167174= 1.5.4 =
    168175* 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  
    77 * Author URI: http://neelshah.info
    88 * License: GPL2
    9  * Version: 1.5.4
     9 * Version: 1.5.5
    1010 */
    1111
     
    2828define('SSW_USER_ROLE_KEY', 'nsd_ssw_user_role');
    2929define('SSW_VERSION_KEY', 'nsd_ssw_version');
    30 define('SSW_VERSION_NUM', '1.5.4');
     30define('SSW_VERSION_NUM', '1.5.5');
    3131
    3232
     
    512512            // Register all required Javascripts for SSW Plugin with it's wp_register_script hook
    513513            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           
    514520            // Include the Javascripts for the ssw plugin while trying to create a site
    515521            wp_enqueue_script( 'ssw-main-js' );
     
    529535            wp_register_style( 'ssw-style-admin-css', SSW_PLUGIN_URL.'css/ssw-style-admin.css' );
    530536            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           
    531542            wp_enqueue_style( 'ssw-style-css' );
    532543            wp_enqueue_style( 'ssw-media-css' );
     
    10511062               
    10521063                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' ) ){
    10541069                        include(SSW_PLUGIN_DIR.'admin/step4_process.php');
    10551070
Note: See TracChangeset for help on using the changeset viewer.