WordPress.org

Plugin Directory

Changeset 1283130


Ignore:
Timestamp:
11/10/15 09:06:00 (2 years ago)
Author:
delitestudio
Message:

Fix to the debug page.

Location:
push-notifications-for-wp/trunk/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • push-notifications-for-wp/trunk/admin/class-pnfw-admin-debug.php

    r1248228 r1283130  
    8282   <?php 
    8383   if ($feedback_provider->is_active()) { 
    84     printf(__('(next scheduled event: %s)', 'pnfw'), date('Y-m-d H:i:s', $feedback_provider->next_scheduled())); 
     84    $gmt_offset = get_option('gmt_offset'); 
     85    $date_format = get_option('date_format'); 
     86    $time_format = get_option('time_format'); 
     87    $tz_format = sprintf('%s %s', $date_format, $time_format); 
     88 
     89    $human_readable_date = date_i18n($tz_format, $feedback_provider->next_scheduled() + $gmt_offset * 60 * 60); 
     90 
     91    printf(__('(next scheduled event: %s)', 'pnfw'), $human_readable_date); 
    8592   } ?> 
    8693  </div> 
     
    145152  switch ($column_name) { 
    146153   case 'type': 
    147     $res = '<div class="log-type-' . $item[$column_name] . '" title="'; 
     154    $res = ''; 
    148155 
    149156    if ($item[$column_name] == PNFW_SYSTEM_LOG) { 
     157     $res .= '<div class="log-type-' . $item[$column_name] . '" title="'; 
    150158     $res .= __('System', 'pnfw'); 
    151159    } 
    152160    else if ($item[$column_name] == PNFW_IOS_LOG) { 
     161     $res .= '<div class="log-type-' . $item[$column_name] . '" title="'; 
    153162     $res .= __('iOS', 'pnfw'); 
    154163    } 
    155164    else if ($item[$column_name] == PNFW_ANDROID_LOG) { 
     165     $res .= '<div class="log-type-' . $item[$column_name] . '" title="'; 
    156166     $res .= __('Android', 'pnfw'); 
    157167    } 
    158168    else if ($item[$column_name] == PNFW_KINDLE_LOG) { 
     169     $res .= '<div class="log-type-' . $item[$column_name] . '" title="'; 
    159170     $res .= __('Fire OS', 'pnfw'); 
    160171    } 
    161172    else if ($item[$column_name] == PNFW_FEEDBACK_PROVIDER_LOG) { 
     173     $res .= '<div class="log-type-' . $item[$column_name] . '" title="'; 
    162174     $res .= __('iOS Feedback Provider', 'pnfw'); 
    163175    } 
    164176    else if ($item[$column_name] == PNFW_ALERT_LOG) { 
     177     $res .= '<div class="log-type-' . $item[$column_name] . '" title="'; 
    165178     $res .= __('Alert', 'pnfw'); 
     179    } 
     180    else { 
     181     $res .= '<div class="log-type-other" title="'; 
     182     $res .= __('Other', 'pnfw'); 
    166183    } 
    167184 
     
    173190    $date_format = get_option('date_format'); 
    174191    $time_format = get_option('time_format'); 
    175     $tz_format = sprintf('%s H:i:s', $date_format, $time_format); 
     192    $tz_format = sprintf('%s %s', $date_format, $time_format); 
    176193 
    177194    return date_i18n($tz_format, strtotime($item[$column_name])); 
  • push-notifications-for-wp/trunk/admin/class-pnfw-admin.php

    r1248231 r1283130  
    5252  echo '.log-type-' . PNFW_FEEDBACK_PROVIDER_LOG . ' { width: 20px; height: 20px; border-radius: 50%; background-color: #3980d5; }'; 
    5353  echo '.log-type-' . PNFW_ALERT_LOG . ' { width: 20px; height: 20px; border-radius: 50%; background-color: #f27d7d; }'; 
     54  echo '.log-type-other { width: 20px; height: 20px; border-radius: 50%; background-color: #be2ad5; }'; 
    5455  echo '</style>'; 
    5556 } 
Note: See TracChangeset for help on using the changeset viewer.