diff --git a/trunk/semmelstatzR.css b/trunk/semmelstatzR.css index 631875c..9573951 100644 --- a/trunk/semmelstatzR.css +++ b/trunk/semmelstatzR.css @@ -129,4 +129,16 @@ table.chartelement { input.regular-text { font-size: 11px; width: 28em; +} + +span.rahmen { + font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; + font-size:12px; + font-weight: bold; + color: #1172B9; + background-color: #E5E5E5; + padding: 0 4px 0 4px; + border-radius: 1em; + -moz-border-radius:4px; + -khtml-border-radius:4px; } \ No newline at end of file diff --git a/trunk/semmelstatzR.php b/trunk/semmelstatzR.php index dab6e33..d1fbeda 100644 --- a/trunk/semmelstatzR.php +++ b/trunk/semmelstatzR.php @@ -62,11 +62,15 @@ if(is_admin() == true) { /** * add CSS + * + * @uses wp add_action() * * @return void */ function semmelstatzR_css() { - print "\n"; + print "\n"; } add_action('admin_head', 'semmelstatzR_css'); ### End add CSS @@ -74,13 +78,15 @@ if(is_admin() == true) { /** * add toplevel menu into admin * - * @todo localization + * @uses wp add_action() admin_menu * * @return void */ function semmelstatzR_menu() { if (function_exists('add_menu_page')) { - add_menu_page('SemmelstatzR','SemmelstatzR', 'manage_statz', 'semmelstatzR/semmelstatzR-statz.php', '', plugins_url('semmelstatzR/img/statz_small.png')); + add_menu_page('SemmelstatzR','SemmelstatzR', + 'manage_statz', 'semmelstatzR/semmelstatzR-statz.php', '', + plugins_url('semmelstatzR/img/statz_small.png')); } if (function_exists('add_submenu_page')) { @@ -107,10 +113,10 @@ if(is_admin() == true) { } } add_action('admin_menu', 'semmelstatzR_menu'); + ### end add toplevel adminmenu + // include context help system include SEMMELSTATZR_SRVPATH."includes/help/start.php"; - ### end add toplevel adminmenu - /** @@ -162,7 +168,6 @@ if(is_admin() == true) { ### Anlegen der Tabellen, Optionen schreiben -add_action('activate_semmelstatzR/semmelstatzR.php', 'sem_statzsetup'); function sem_statzsetup() { global $wpdb; if(@is_file(ABSPATH.'/wp-admin/upgrade-functions.php')) { @@ -211,6 +216,7 @@ function sem_statzsetup() { $role->add_cap('manage_statz'); } } +add_action('activate_semmelstatzR/semmelstatzR.php', 'sem_statzsetup'); ### Zugriff analysieren und in statz-Tabelle schreiben add_action('wp_footer', 'sem_writeStatz'); @@ -275,33 +281,48 @@ $wpdb->query("INSERT INTO $wpdb->statz (ip, time, referer, page, username) ### Rendert eine Mini-STATZ. Idee: René Tauchnitz function sem_dashboardStatz_show() { - $widgets = get_option( 'dashboard_widget_options' ); + $widget_options = get_option( 'dashboard_widget_options' ); + echo '
'; - printf(_n("%d Visitor online", "%d Visitors online", sem_showNumUsersOnline(), "semmelstatzR"), sem_showNumUsersOnline()); + printf(semr_i18np("%d Visitor online", "%d Visitors online", sem_showNumUsersOnline()), sem_showNumUsersOnline()); echo ' - '; - printf(__("Today: %s", "semmelstatzR"),sem_showTodayStatz()); - echo ' »»'; + printf(semr_i18n("Today: %s"),sem_showTodayStatz()); + echo ' »»'; + echo '
'; + echo '';
+ printf(semr_i18n("This blog is online since %s that are %s days.
"),
+ ''.sem_showFirstPostDate()."",
+ ''.sem_showPostDays()."");
+ printf(semr_i18n("SemmelstatzR collects the statistics since %s."),
+ ''.sem_showStatzStartDate()."");
echo '
'; - echo '
'; + $number = isset( $widget_options['dashboard_sem_dashboardStatz']['items'] )? + (int) $widget_options['dashboard_sem_dashboardStatz']['items'] : ''; + $checked = isset($widget_options['dashboard_sem_dashboardStatz']['showinfo'])?'checked="checked"':''; + + echo ''; + echo '
'; + echo ''; + echo '
'; //print_r($widget_options['dashboard_sem_dashboardStatz']); }