Plugin Directory

Changeset 2850780


Ignore:
Timestamp:
01/18/2023 10:04:44 PM (3 years ago)
Author:
codenlassen
Message:

1.0.1 small visual fixes

Location:
simplest-analytics/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • simplest-analytics/trunk/README.txt

    r2847231 r2850780  
    66Tested up to: 6.1
    77Requires PHP: 7.4
    8 Stable tag: 1.0.0
     8Stable tag: 1.0.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6868== Changelog ==
    6969
     70= 1.0.1 - 2023-01-18 =
     71* updated style of the line charts
     72* moved php functions inside of a class
     73
    7074= 1.0.0 - 2023-01-10 =
    7175* First Release
     
    7377== Upgrade Notice ==
    7478
    75 = 1.0.0 =
    76 This is the first version of Simplest Analytics
     79= 1.0.1 =
     80Fixed small issues with styles
  • simplest-analytics/trunk/admin/class-admin.php

    r2847231 r2850780  
    7373            'manage_options',
    7474            'simplest-analytics',
    75             'admin_start_page',
     75            array( $this, 'admin_start_page' ),
    7676            'dashicons-chart-bar' );
    77            
    78         function admin_start_page(){
    79                 // require file that displays the admin settings page
    80                 require_once plugin_dir_path( __FILE__ ) . 'dashboard.php';                 
    81         }
    8277           
    8378           
     
    8883            'manage_options',
    8984            'simplest-analytics-settings',
    90             'admin_structure' );
    91            
    92            
    93         function admin_structure(){
    94                 // require file that displays the admin settings page
    95                 require_once plugin_dir_path( __FILE__ ) . 'structure.php';                 
    96         }
     85            array( $this, 'admin_structure' ) );   
    9786       
    9887       
    99        
     88    }
     89
     90    public function admin_start_page(){
     91        // require file that displays the admin settings page
     92        require_once plugin_dir_path( __FILE__ ) . 'dashboard.php';                 
     93    }
     94
     95    public function admin_structure(){
     96        // require file that displays the admin settings page
     97        require_once plugin_dir_path( __FILE__ ) . 'structure.php';                 
    10098    }
    10199   
  • simplest-analytics/trunk/admin/dashboard.php

    r2847231 r2850780  
    235235        <!-- END top cards -->
    236236
     237
    237238        <!-- daily visits -->
    238239        <script type="text/javascript">
     
    245246            <?php
    246247            if ( sizeof($daily_data) == 0 ) {
    247                 ?>
    248                 [
    249                 '<?php echo esc_html__( 'no results', 'simplest-analytics' ) ?>',
    250                 0,
    251                 ],
    252                 <?php
     248                ?>['<?php echo esc_html__( 'no results', 'simplest-analytics' ) ?>',0],<?php
    253249            }
    254250            else {
     
    262258                    $unique_visitors = array_unique($session_ids);
    263259                    $unique_visitors = sizeof($unique_visitors);
    264                     ?>
    265                         [
    266                         '<?php echo esc_html( $key ) ?>',
    267                         <?php echo esc_html( $visits ) ?>,
    268                         ],
    269                         <?php
     260                    ?>['<?php echo esc_html( $key ) ?>',<?php echo esc_html( $visits ) ?>],<?php
    270261                }
    271262            }
     
    274265
    275266            var options = {
    276             title: '<?php echo esc_html__( 'Daily visits', 'simplest-analytics' ) ?>',
    277             curveType: 'function',
    278             legend: { position: 'none' }
     267                title: '<?php echo esc_html__( 'Daily visits', 'simplest-analytics' ) ?>',
     268                curveType: 'function',
     269                legend: { position: 'none' },
     270                vAxis: {
     271                    format: '#',               
     272                }
    279273            };
    280274
     
    282276
    283277            chart.draw(data, options);
     278
    284279        }
    285280        </script>
    286         <div class="chart_table chart_table_3col" id="daily_chart"></div>
     281        <div class="chart_table chart_table_3col" style="height:300px" id="daily_chart"></div>
    287282        <!-- END daily visits -->
    288283
     
    331326            title: '<?php echo esc_html__( 'Daily unique visitors', 'simplest-analytics' ) ?>',
    332327            curveType: 'function',
    333             legend: { position: 'none' }
     328            legend: { position: 'none' },
     329            vAxis: {
     330                format: '#',               
     331            }
    334332            };
    335333
     
    339337        }
    340338        </script>
    341         <div class="chart_table chart_table_3col" id="daily_uniques"></div>
     339        <div class="chart_table chart_table_3col" style="height:300px" id="daily_uniques"></div>
    342340        <!-- END daily uniques -->
    343341
  • simplest-analytics/trunk/includes/class-activator.php

    r2847231 r2850780  
    4343         */
    4444         
    45          update_option( 'simplest_analytics_version', '1.0.0' );
     45         update_option( 'simplest_analytics_version', '1.0.1' );
    4646
    4747         /**
  • simplest-analytics/trunk/includes/class-simplest-analytics.php

    r2847231 r2850780  
    2727            $this->version = SIMPLEST_ANALYTICS_VERSION;
    2828        } else {
    29             $this->version = '1.0.0';
     29            $this->version = '1.0.1';
    3030        }
    3131        $this->simplest_analytics = 'simplest-analytics';
  • simplest-analytics/trunk/languages/simplest-analytics-de_DE.po

    r2847231 r2850780  
    22msgstr ""
    33"Project-Id-Version: simplest-analytics 1.0.0\n"
    4 "POT-Creation-Date: 2023-01-06 01:20+0100\n"
    5 "PO-Revision-Date: 2023-01-06 01:20+0100\n"
     4"POT-Creation-Date: 2023-01-18 22:32+0100\n"
     5"PO-Revision-Date: 2023-01-18 22:32+0100\n"
    66"Last-Translator: \n"
    77"Language-Team: https://www.coden-lassen.de\n"
     
    2020msgstr "Webanalytics"
    2121
    22 #: admin/class-admin.php:86 admin/class-admin.php:87
     22#: admin/class-admin.php:81 admin/class-admin.php:82
    2323msgid "Settings"
    2424msgstr "Einstellungen"
    2525
    26 #: admin/dashboard.php:67
     26#: admin/dashboard.php:69
    2727msgid "Start date or end date is empty."
    2828msgstr "Start- oder Enddatum ist leer."
    2929
    30 #: admin/dashboard.php:70
     30#: admin/dashboard.php:72
    3131msgid "End date has to be ealier than start date."
    3232msgstr "Enddatum muss vor Startdatum liegen."
    3333
    34 #: admin/dashboard.php:132
     34#: admin/dashboard.php:134
    3535msgid "Dashboard"
    3636msgstr "Dashboard"
    3737
    38 #: admin/dashboard.php:135
     38#: admin/dashboard.php:137
    3939msgid "Raw Data"
    4040msgstr "Rohdaten"
    4141
    42 #: admin/dashboard.php:216 admin/dashboard.php:242 admin/dashboard.php:355
    43 #: admin/dashboard.php:411 admin/dashboard.php:466 admin/dashboard.php:527
     42#: admin/dashboard.php:218 admin/dashboard.php:245 admin/dashboard.php:349
     43#: admin/dashboard.php:405 admin/dashboard.php:460 admin/dashboard.php:521
    4444msgid "Visits"
    4545msgstr "Aufrufe"
    4646
    47 #: admin/dashboard.php:223
     47#: admin/dashboard.php:225
    4848msgid "Unique Visitors"
    4949msgstr "Nutzer"
    5050
    51 #: admin/dashboard.php:230 admin/dashboard.php:526
     51#: admin/dashboard.php:232 admin/dashboard.php:520
    5252msgid "Tracked events"
    5353msgstr "Gemessene Events"
    5454
    55 #: admin/dashboard.php:242 admin/dashboard.php:297
     55#: admin/dashboard.php:245 admin/dashboard.php:291
    5656msgid "Date"
    5757msgstr "Datum"
    5858
    59 #: admin/dashboard.php:247 admin/dashboard.php:302 admin/dashboard.php:363
    60 #: admin/dashboard.php:419 admin/dashboard.php:474 admin/dashboard.php:535
     59#: admin/dashboard.php:248 admin/dashboard.php:296 admin/dashboard.php:357
     60#: admin/dashboard.php:413 admin/dashboard.php:468 admin/dashboard.php:529
    6161msgid "no results"
    6262msgstr "keine Ergebnisse"
    6363
    64 #: admin/dashboard.php:274
     64#: admin/dashboard.php:267
    6565msgid "Daily visits"
    6666msgstr "Tägliche Aufrufe"
    6767
    68 #: admin/dashboard.php:297 admin/dashboard.php:356 admin/dashboard.php:412
    69 #: admin/dashboard.php:467 admin/dashboard.php:528
     68#: admin/dashboard.php:291 admin/dashboard.php:350 admin/dashboard.php:406
     69#: admin/dashboard.php:461 admin/dashboard.php:522
    7070msgid "Unique visitors"
    7171msgstr "Nutzer"
    7272
    73 #: admin/dashboard.php:329
     73#: admin/dashboard.php:323
    7474msgid "Daily unique visitors"
    7575msgstr "Tägliche Nutzer"
    7676
    77 #: admin/dashboard.php:354
     77#: admin/dashboard.php:348
    7878msgid "Most visited sites"
    7979msgstr "Meistbesuchte Seiten"
    8080
    81 #: admin/dashboard.php:410
     81#: admin/dashboard.php:404
    8282msgid "Top external referrers"
    8383msgstr "Top external Referrers"
    8484
    85 #: admin/dashboard.php:464
     85#: admin/dashboard.php:458
    8686msgid "Top URL parameters"
    8787msgstr "Top URL Parameters"
    8888
    89 #: admin/dashboard.php:465
     89#: admin/dashboard.php:459
    9090msgid "Value"
    9191msgstr "Wert"
    9292
    93 #: admin/dashboard.php:667
     93#: admin/dashboard.php:661
    9494msgid "choose daterange"
    9595msgstr "Wähle eine Zeitspanne"
    9696
    97 #: admin/dashboard.php:671
     97#: admin/dashboard.php:665
    9898msgid "today"
    9999msgstr "heute"
    100100
    101 #: admin/dashboard.php:675
     101#: admin/dashboard.php:669
    102102msgid "yesterday"
    103103msgstr "gestern"
    104104
    105 #: admin/dashboard.php:679
     105#: admin/dashboard.php:673
    106106msgid "last 7 days"
    107107msgstr "letzte 7 Tage"
    108108
    109 #: admin/dashboard.php:683
     109#: admin/dashboard.php:677
    110110msgid "last 14 days"
    111111msgstr "letzte 14 Tage"
    112112
    113 #: admin/dashboard.php:687
     113#: admin/dashboard.php:681
    114114msgid "last 30 days"
    115115msgstr "letzte 30 Tage"
    116116
    117 #: admin/dashboard.php:691
     117#: admin/dashboard.php:685
    118118msgid "last month"
    119119msgstr "letzter Monat"
    120120
    121 #: admin/dashboard.php:695
     121#: admin/dashboard.php:689
    122122msgid "alltime"
    123123msgstr "Komplette Zeit"
    124124
    125 #: admin/dashboard.php:699
     125#: admin/dashboard.php:693
    126126msgid "custom"
    127127msgstr "benutzerdefiniert"
    128128
    129 #: admin/dashboard.php:706
     129#: admin/dashboard.php:700
    130130msgid "custom daterange"
    131131msgstr "Zeitspanne"
    132132
    133 #: admin/dashboard.php:709
     133#: admin/dashboard.php:703
    134134msgid "from:"
    135135msgstr "von:"
    136136
    137 #: admin/dashboard.php:713
     137#: admin/dashboard.php:707
    138138msgid "to:"
    139139msgstr "bis:"
    140140
    141 #: admin/dashboard.php:717
     141#: admin/dashboard.php:711
    142142msgid "apply daterange"
    143143msgstr "Zeitspanne auswählen"
  • simplest-analytics/trunk/languages/simplest-analytics.pot

    r2847231 r2850780  
    33msgstr ""
    44"Project-Id-Version: simplest-analytics 1.0.0\n"
    5 "POT-Creation-Date: 2022-12-27 23:09+0100\n"
     5"POT-Creation-Date: 2023-01-18 22:31+0100\n"
    66"PO-Revision-Date: 2021-04-08 20:06+0200\n"
    77"Last-Translator: \n"
     
    1717"X-Poedit-SearchPath-0: .\n"
    1818
    19 
    20 #: admin/class-admin.php:69 admin/class-admin.php:70
     19#: admin/class-admin.php:71 admin/class-admin.php:72
    2120msgid "Webanalytics"
    2221msgstr ""
    2322
    24 #: admin/class-admin.php:84 admin/class-admin.php:85
     23#: admin/class-admin.php:81 admin/class-admin.php:82
    2524msgid "Settings"
    2625msgstr ""
    2726
    28 #: admin/dashboard.php:66
     27#: admin/dashboard.php:69
    2928msgid "Start date or end date is empty."
    3029msgstr ""
    3130
    32 #: admin/dashboard.php:69
     31#: admin/dashboard.php:72
    3332msgid "End date has to be ealier than start date."
    3433msgstr ""
    3534
    36 #: admin/dashboard.php:132
     35#: admin/dashboard.php:134
    3736msgid "Dashboard"
    3837msgstr ""
    3938
    40 #: admin/dashboard.php:135
     39#: admin/dashboard.php:137
    4140msgid "Raw Data"
    4241msgstr ""
    4342
    44 #: admin/dashboard.php:210 admin/dashboard.php:239 admin/dashboard.php:295
    45 #: admin/dashboard.php:349 admin/dashboard.php:405
     43#: admin/dashboard.php:218 admin/dashboard.php:245 admin/dashboard.php:349
     44#: admin/dashboard.php:405 admin/dashboard.php:460 admin/dashboard.php:521
    4645msgid "Visits"
    4746msgstr ""
    4847
    49 #: admin/dashboard.php:217
     48#: admin/dashboard.php:225
    5049msgid "Unique Visitors"
    5150msgstr ""
    5251
    53 #: admin/dashboard.php:224 admin/dashboard.php:404
     52#: admin/dashboard.php:232 admin/dashboard.php:520
    5453msgid "Tracked events"
    5554msgstr ""
    5655
    57 #: admin/dashboard.php:238
     56#: admin/dashboard.php:245 admin/dashboard.php:291
     57msgid "Date"
     58msgstr ""
     59
     60#: admin/dashboard.php:248 admin/dashboard.php:296 admin/dashboard.php:357
     61#: admin/dashboard.php:413 admin/dashboard.php:468 admin/dashboard.php:529
     62msgid "no results"
     63msgstr ""
     64
     65#: admin/dashboard.php:267
     66msgid "Daily visits"
     67msgstr ""
     68
     69#: admin/dashboard.php:291 admin/dashboard.php:350 admin/dashboard.php:406
     70#: admin/dashboard.php:461 admin/dashboard.php:522
     71msgid "Unique visitors"
     72msgstr ""
     73
     74#: admin/dashboard.php:323
     75msgid "Daily unique visitors"
     76msgstr ""
     77
     78#: admin/dashboard.php:348
    5879msgid "Most visited sites"
    5980msgstr ""
    6081
    61 #: admin/dashboard.php:240 admin/dashboard.php:296 admin/dashboard.php:350
    62 #: admin/dashboard.php:406
    63 msgid "Unique visitors"
    64 msgstr ""
    65 
    66 #: admin/dashboard.php:247 admin/dashboard.php:303 admin/dashboard.php:357
    67 #: admin/dashboard.php:413
    68 msgid "no results"
    69 msgstr ""
    70 
    71 #: admin/dashboard.php:294
     82#: admin/dashboard.php:404
    7283msgid "Top external referrers"
    7384msgstr ""
    7485
    75 #: admin/dashboard.php:348
     86#: admin/dashboard.php:458
    7687msgid "Top URL parameters"
    7788msgstr ""
    7889
    79 #: admin/dashboard.php:545
     90#: admin/dashboard.php:459
     91msgid "Value"
     92msgstr ""
     93
     94#: admin/dashboard.php:661
    8095msgid "choose daterange"
    8196msgstr ""
    8297
    83 #: admin/dashboard.php:549
     98#: admin/dashboard.php:665
    8499msgid "today"
    85100msgstr ""
    86101
    87 #: admin/dashboard.php:553
     102#: admin/dashboard.php:669
    88103msgid "yesterday"
    89104msgstr ""
    90105
    91 #: admin/dashboard.php:557
     106#: admin/dashboard.php:673
    92107msgid "last 7 days"
    93108msgstr ""
    94109
    95 #: admin/dashboard.php:561
     110#: admin/dashboard.php:677
    96111msgid "last 14 days"
    97112msgstr ""
    98113
    99 #: admin/dashboard.php:565
     114#: admin/dashboard.php:681
    100115msgid "last 30 days"
    101116msgstr ""
    102117
    103 #: admin/dashboard.php:569
     118#: admin/dashboard.php:685
    104119msgid "last month"
    105120msgstr ""
    106121
    107 #: admin/dashboard.php:573
     122#: admin/dashboard.php:689
    108123msgid "alltime"
    109124msgstr ""
    110125
    111 #: admin/dashboard.php:577
     126#: admin/dashboard.php:693
    112127msgid "custom"
    113128msgstr ""
    114129
    115 #: admin/dashboard.php:584
     130#: admin/dashboard.php:700
    116131msgid "custom daterange"
    117132msgstr ""
    118133
    119 #: admin/dashboard.php:587
     134#: admin/dashboard.php:703
    120135msgid "from:"
    121136msgstr ""
    122137
    123 #: admin/dashboard.php:591
     138#: admin/dashboard.php:707
    124139msgid "to:"
    125140msgstr ""
    126141
    127 #: admin/dashboard.php:595
     142#: admin/dashboard.php:711
    128143msgid "apply daterange"
    129144msgstr ""
  • simplest-analytics/trunk/simplest-analytics.php

    r2847231 r2850780  
    66 *
    77 * @link              https://www.coden-lassen.de
    8  * @since             1.0.0
     8 * @since             1.0.1
    99 * @package           Simplest_Analytics
    1010 *
     
    1313 * Plugin URI:        https://www.coden-lassen.de
    1414 * Description:       Serverside and cookieless webanalytics.
    15  * Version:           1.0.0
     15 * Version:           1.0.1
    1616 * Author:            Stefan Klaes
    1717 * Author URI:        https://www.coden-lassen.de/wordpress-freelancer
     
    3232/**
    3333 * Currently plugin version:
    34  * version 1.0.0
     34 * version 1.0.1
    3535 */
    3636 
    37 define( 'SIMPLEST_ANALYTICS_VERSION', '1.0.0' );
     37define( 'SIMPLEST_ANALYTICS_VERSION', '1.0.1' );
    3838
    3939
Note: See TracChangeset for help on using the changeset viewer.