WordPress.org

Plugin Directory

Changeset 1447917


Ignore:
Timestamp:
07/03/16 00:14:59 (18 months ago)
Author:
filkaris
Message:

1.2.0 YouTube added

Location:
statistinator/trunk
Files:
1 added
9 edited

Legend:

Unmodified
Added
Removed
  • statistinator/trunk/inc/class-statistinator-options.php

    r1446027 r1447917  
    5454            'facebook' => 'Facebook', 
    5555            'twitter' => 'Twitter', 
    56             'mailchimp' => 'Mailchimp' 
     56            'mailchimp' => 'Mailchimp', 
     57            'youtube' => 'YouTube' 
    5758        ); 
    5859        foreach ( $fields as $slug => $title ) { 
     
    8788        $args[] = 'twitter_token'; 
    8889        $args[] = 'mailchimp_token'; 
     90        $args[] = 'youtube_token'; 
    8991        return $args; 
    9092    } 
  • statistinator/trunk/inc/class-statistinator-tab-account.php

    r1446156 r1447917  
    9696            break; 
    9797 
     98        case 'youtube': 
     99            if ( empty( $value ) ) { 
     100                $value = array( 
     101                    'id'    => '', 
     102                    'name'  => '', 
     103                ); 
     104            } 
     105            echo "<select class='set_name' id='statistinator_account_{$slug}_id' name='{$field}[id]' ><option value='{$value['id']}'>{$value['name']}</option></select>"; 
     106            echo "<input type='hidden' class='get_name' id='statistinator_account_{$slug}_name' name='{$field}[name]' value='{$value['name']}' />"; 
     107            echo "<p class='description'>Select your YouTube Channel</p>"; 
     108            break; 
     109 
    98110        } 
    99111    } 
  • statistinator/trunk/inc/class-statistinator-tab-authentication.php

    r1446156 r1447917  
    5555    ?> 
    5656        <div class="checkbox-switch"> 
    57             <input type="checkbox" <?= $checked ?> onclick='window.location.assign("<?= $url ?>")' class="input-checkbox" /> 
     57            <input type="checkbox" <?= $checked ?> onclick="window.location.assign('<?= $url ?>')" class="input-checkbox" /> 
    5858            <div class="checkbox-animate"></div> 
    5959        </div> 
  • statistinator/trunk/inc/class-statistinator-tab-graph.php

    r1446027 r1447917  
    3131            'facebook' => array('title' => 'Facebook', 'data' => $data['facebook'], 'metric' => 'likes'), 
    3232            'twitter' => array('title' => 'Twitter', 'data' => $data['twitter'], 'metric' => 'followers'), 
    33             'mailchimp' => array('title' => 'Mailchimp', 'data' => $data['mailchimp'], 'metric' => 'subscribers') 
     33            'mailchimp' => array('title' => 'Mailchimp', 'data' => $data['mailchimp'], 'metric' => 'subscribers'), 
     34            'youtube' => array('title' => 'YouTube', 'data' => $data['youtube'], 'metric' => 'subscribers') 
    3435        ); 
    3536?> 
  • statistinator/trunk/inc/class-statistinator.php

    r1446156 r1447917  
    3030            'twitter' => 'initial', 
    3131            'mailchimp' => 'initial', 
     32            'youtube' => 'initial', 
    3233        ); 
    3334        update_option( 'statistinator_status', $status ); 
     
    144145            'twitter' => $value['twitter'], 
    145146            'mailchimp' => $value['mailchimp']['id'], 
     147            'youtube' => $value['youtube']['id'], 
    146148        ); 
    147149 
     
    182184                'twitter' => '', 
    183185                'mailchimp' => '', 
     186                'youtube' => '', 
    184187            ); 
    185188        } 
  • statistinator/trunk/js/account.js

    r1446080 r1447917  
    3737        var data = { action: "mailchimp_lists", }; 
    3838        populateCall( "#statistinator_account_mailchimp_id", data );  
     39    } 
     40 
     41    // YouTube lists autocomplete 
     42    if ( $( "#statistinator_account_youtube_id" ).length > 0 ) { 
     43        var data = { action: "youtube_channels", }; 
     44        populateCall( "#statistinator_account_youtube_id", data );  
    3945    } 
    4046 
  • statistinator/trunk/js/graph.js

    r1431950 r1447917  
    11jQuery( document ).ready( function($) { 
    2  
    3  
    4     // var graph_php = { data: '' }; 
    5     // graph_php.data = JSON.parse('{"google":["1000","1043","1125","1129","1184","1222","1281","1358","1382","1454","1552","1557","1567","1600","1644","1680","1745","1801","1834","1919","1983","2064","2120","2201","2201","2211","2231","2250","2318","2410"],"facebook":["1770","1743","1661","1630","1602","1538","1486","1479","1406","1404","1345","1322","1231","1229","1204","1106","1076","1082","1035","938","908","913","877","877","780","727","674","632","584","582"],"twitter":["470","546","600","619","669","755","841","880","946","1114","1303","1409","1581","1665","1758","1922","1968","2146","2225","2326","2414","2584","2634","2801","2993","3034","3107","3130","3176","3319"],"mailchimp":["770","777","780","786","792","794","797","798","803","807","812","817","823","832","839","841","847","852","859","864","869","875","880","884","894","899","899","901","908","911"],"date":["04/24","04/25","04/26","04/27","04/28","04/29","04/30","05/01","05/02","05/03","05/04","05/05","05/06","05/07","05/08","05/09","05/10","05/11","05/12","05/13","05/14","05/15","05/16","05/17","05/18","05/19","05/20","05/21","05/22","05/23"]}'); 
    62 
    73    var colors = { 
     
    106        twitter: '#55ACEE', 
    117        mailchimp: '#756154', 
     8        youtube: '#E52D27', 
    129        no: 'rgba(0,0,0,0)' 
    1310    } 
     
    7168        }); 
    7269    } 
     70    if ( graph_php.status.youtube == 'enabled' ) { 
     71        datasets.push({ 
     72            label: "YouTube", 
     73            fill: false, 
     74            borderJoinStyle: 'miter', 
     75            borderColor: colors.youtube, 
     76            backgroundColor: colors.youtube, 
     77            pointBorderColor: colors.no, 
     78            pointBackgroundColor: colors.no, 
     79            pointHoverRadius: 6, 
     80            pointHoverBackgroundColor: colors.youtube, 
     81            data: graph_php.data.youtube 
     82        }); 
     83    } 
    7384 
    7485         
  • statistinator/trunk/readme.txt

    r1446156 r1447917  
    11=== Statistinator === 
    22Contributors: filkaris 
    3 Tags: analytics, statistics, social media, social, media, facebook, twitter, google analytics, mailchimp, mailing list, site views, likes, followers, subscribers, aggregator, social media aggregator, social media analytics, social media statistics 
     3Tags: analytics, statistics, social media, social, media, facebook, twitter, google analytics, mailchimp, mailing list, site views, likes, followers, subscribers, aggregator, social media aggregator, social media analytics, social media statistics, youtube, youtube subscribers 
    44Requires at least: 3.9 
    5 Tested up to: 4.5.2 
    6 Stable tag: 1.1.6 
     5Tested up to: 4.5.3 
     6Stable tag: 1.2.0 
    77License: GPLv2 or later 
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    1919*   Twitter Followers 
    2020*   Mailchimp Subscribers 
     21*   YouTube Subscribers 
    2122 
    2223all in one convenient place. 
     
    5051== Changelog == 
    5152 
     53= 1.2.0 = 
     54* YouTube is now supported 
     55 
     56 
    5257= 1.1.6 = 
    5358* Empty arrays changed from '[]' to 'array()' for compatibility 
  • statistinator/trunk/statistinator.php

    r1446156 r1447917  
    44 * Description: Your social media analytics in one place. 
    55 * Author: Filippos Karailanidis 
    6  * Version: 1.1.6 
     6 * Version: 1.2.0 
    77 */ 
    88 
Note: See TracChangeset for help on using the changeset viewer.