diff --git a/ajax.php b/ajax.php deleted file mode 100644 index 772a5a0..0000000 --- a/ajax.php +++ /dev/null @@ -1,27 +0,0 @@ -get_var("SELECT COUNT(*) FROM " . WPAM_ADMIN_BLOG_POSTS . " WHERE `post_ID` > '$p_id'") ); if ( $test !== 0 ) { - echo __('New messages available','wp_admin_blog'); + echo __('New messages available','wp-admin-microblog'); } } @@ -59,7 +59,7 @@ public static function show_likes ($message_id) { echo ''; echo ''; echo ''; - echo 'teachPress - Assessment details'; + echo 'List of likes'; echo ''; echo ''; echo '
'; diff --git a/core/class-templates.php b/core/class-templates.php index 61e4496..f22fe33 100644 --- a/core/class-templates.php +++ b/core/class-templates.php @@ -24,7 +24,7 @@ public static function message ($message, $tags, $user_info, $options, $level = $r = '
- ' . self::date($message->date, $options) . ' | ' . __('by','wp_admin_blog') . ' ' . $user_info->display_name . self::replies_menu ($message, $count_rep) . ' + ' . self::date($message->date, $options) . ' | ' . __('by','wp-admin-microblog') . ' ' . $user_info->display_name . self::replies_menu ($message, $count_rep) . '
' . self::like_menu($message) . ' @@ -49,7 +49,7 @@ public static function like_menu ($message) { if ( $number > 0 ) { $hidden = ''; } - $like_menu = ''; + $like_menu = ''; return $like_menu; } @@ -62,7 +62,7 @@ public static function like_menu ($message) { */ public static function replies_menu ($message, $count_rep) { if ($count_rep != 0) { - return ' | ' . $count_rep . ' ' . __( 'Replies', 'wp_admin_blog' ) . ''; + return ' | ' . $count_rep . ' ' . __( 'Replies', 'wp-admin-microblog' ) . ''; } return ''; } @@ -100,10 +100,10 @@ public static function action_menu ($message, $user_info, $options, $level = 1) $sticky_option = ''; if ( current_user_can( 'use_wp_admin_microblog_sticky' ) && $options['sticky_for_dash'] === true && $level == 1 ) { if ( $message->is_sticky == 0 ) { - $sticky_option = '' . __('Sticky','wp_admin_blog') . ' | '; + $sticky_option = '' . __('Sticky','wp-admin-microblog') . ' | '; } else { - $sticky_option = '' . __('Unsticky','wp_admin_blog') . ' | '; + $sticky_option = '' . __('Unsticky','wp-admin-microblog') . ' | '; } } @@ -111,21 +111,21 @@ public static function action_menu ($message, $user_info, $options, $level = 1) if ( $message->user == $options['user'] || current_user_can('manage_options') ) { // Edit button - $edit_button .= '' . __('Edit','wp_admin_blog') . ' | '; + $edit_button .= '' . __('Edit','wp-admin-microblog') . ' | '; // Sticky button $edit_button .= $sticky_option; // Delete button - $edit_button .= '' . __('Delete','wp_admin_blog') . ' | '; + $edit_button .= '' . __('Delete','wp-admin-microblog') . ' | '; } // Reply button - $edit_button .= 'user_login . "'" . ')" style="cursor:pointer; color:#009900;" title="' . __('Write a reply','wp_admin_blog') . '"> ' . __('Reply','wp_admin_blog') . ''; + $edit_button .= 'user_login . "'" . ')" style="cursor:pointer; color:#009900;" title="' . __('Write a reply','wp-admin-microblog') . '"> ' . __('Reply','wp-admin-microblog') . ''; // Like button $check = wpam_likes::check_like($message->post_ID, $current_user->ID); - $title = ( $check === false ) ? __('Like','wp_admin_blog') : __('Unlike','wp_admin_blog'); + $title = ( $check === false ) ? __('Like','wp-admin-microblog') : __('Unlike','wp-admin-microblog'); $class = ( $check === false ) ? 'dashicons-star-filled' : 'dashicons-star-empty'; $edit_button .= ' | ' . $title . ''; @@ -143,7 +143,7 @@ public static function date ($post_time, $options) { $timestamp = mktime($time[0][3], $time[0][4], $time[0][5], $time[0][1], $time[0][2], $time[0][0] ); // get human time difference - $time_difference = human_time_diff( $timestamp, current_time('timestamp') ) . ' ' . __( 'ago', 'wp_admin_blog' ); + $time_difference = human_time_diff( $timestamp, current_time('timestamp') ) . ' ' . __( 'ago', 'wp-admin-microblog' ); // get time $message_time = date($options['wp_time_format'], $timestamp); @@ -153,7 +153,7 @@ public static function date ($post_time, $options) { // handle date formats if ( date($options['wp_date_format']) == $message_date ) { - $message_date = __('Today','wp_admin_blog'); + $message_date = __('Today','wp-admin-microblog'); } // end result diff --git a/core/messages.php b/core/messages.php index e9c4b70..aa45cc9 100644 --- a/core/messages.php +++ b/core/messages.php @@ -173,11 +173,11 @@ private static function send_notifications($text, $user) { $text = wpam_message::replace_bbcode($text, 'delete'); $text = str_replace("
","",$text); $text = str_replace('(file://)', 'http://', $text); - $text = __('Author:','wp_admin_blog') . ' ' . $user->display_name . chr(13) . chr(10) . chr(13) . chr(10) . $text; - $text = $text . chr(13) . chr(10) . '________________________' . chr(13) . chr(10) . __('Login under the following address to create a reply:','wp_admin_blog') . ' ' . wp_login_url(); + $text = __('Author:','wp-admin-microblog') . ' ' . $user->display_name . chr(13) . chr(10) . chr(13) . chr(10) . $text; + $text = $text . chr(13) . chr(10) . '________________________' . chr(13) . chr(10) . __('Login under the following address to create a reply:','wp-admin-microblog') . ' ' . wp_login_url(); $headers = 'From: ' . get_bloginfo() . ' <' . get_bloginfo('admin_email') . '>' . "\r\n\\"; - $subject = get_bloginfo() . ': ' .__('New message in wp admin micoblog','wp_admin_blog'); + $subject = get_bloginfo() . ': ' .__('New message in wp admin micoblog','wp-admin-microblog'); $sql = "SELECT DISTINCT user FROM " . WPAM_ADMIN_BLOG_POSTS .""; $users = $wpdb->get_results($sql); @@ -280,7 +280,7 @@ static function update_sticky($message_ID, $is_sticky) { */ static function add_as_wp_post ($content, $title, $author_id) { if ($title == '') { - $title = __('Short message','wp_admin_blog'); + $title = __('Short message','wp-admin-microblog'); } $content = str_replace('(file://)', 'http://', $content); $message = array( @@ -398,7 +398,7 @@ private static function replace_tags ($text, $tags) { $name = trim($name); foreach ($tags as $tag) { if ($tag['name'] == $name) { - $text = str_replace($match[0][$x], ' #' . $tag['name'] . ' ', $text); + $text = str_replace($match[0][$x], ' #' . $tag['name'] . ' ', $text); } } } diff --git a/core/screen.php b/core/screen.php index d38a225..3876302 100644 --- a/core/screen.php +++ b/core/screen.php @@ -53,22 +53,22 @@ function wpam_show_screen_options( $status, $args ) { $return = $status; if ( $args->base == $wpam_admin_page ) { - $button = get_submit_button( __( 'Apply' ), 'button', 'screen-options-apply', false ); + $button = get_submit_button( __( 'Apply', 'wp-admin-microblog' ), 'primary', 'screen-options-apply', false ); $return .= ' -

' . __('Screen Options') . '

+

' . __('Screen Options', 'wp-admin-microblog') . '

-

-

-
' . __('Sort order for messages','wp_admin_blog') . '
+

+

+
' . __('Sort order for messages','wp-admin-microblog') . '

- - + +

-
' . __('Date format for messages', 'wp_admin_blog') . '
+
' . __('Date format for messages', 'wp-admin-microblog') . '

- - + +

' . $button; } @@ -105,10 +105,10 @@ function wpam_add_help_tab () { $screen = get_current_screen(); $screen->add_help_tab( array( 'id' => 'wpam_help_tab', - 'title' => __('Microblog','wp_admin_blog'), - 'content' => '

' . __('E-mail notification','wp_admin_blog') . ' - ' . __('If you will send your message as an E-Mail to any user, so write @username (example: @admin)','wp_admin_blog') . ' -

' . __('Text formatting','wp_admin_blog') . ' - ' . __('You can use simple bbcodes: [b]bold[/b], [i]italic[/i], [u]underline[/u], [s]strikethrough[/s], [red]red[/red], [blue]blue[/blue], [green]green[/green], [orange]orange[/orange], [code]code[/code]. Combinations like [red][s]text[/s][/red] are possible. The using of HTML tags is not possible.','wp_admin_blog') . '

-

' . __('Tags') . ' - ' . __('You can add tags directly to your message, if you use hashtags. Examples: #monday #2012','wp_admin_blog') . '

', + 'title' => __('Microblog','wp-admin-microblog'), + 'content' => '

' . __('E-mail notification','wp-admin-microblog') . ' - ' . __('If you will send your message as an E-Mail to any user, so write @username (example: @admin)','wp-admin-microblog') . ' +

' . __('Text formatting','wp-admin-microblog') . ' - ' . __('You can use simple bbcodes: [b]bold[/b], [i]italic[/i], [u]underline[/u], [s]strikethrough[/s], [red]red[/red], [blue]blue[/blue], [green]green[/green], [orange]orange[/orange], [code]code[/code]. Combinations like [red][s]text[/s][/red] are possible. The using of HTML tags is not possible.','wp-admin-microblog') . '

+

' . __('Tags', 'wp-admin-microblog') . ' - ' . __('You can add tags directly to your message, if you use hashtags. Examples: #monday #2012','wp-admin-microblog') . '

', ) ); } @@ -139,7 +139,7 @@ public static function get_tagcloud ($tag, $author, $search, $tags_per_page) { $min = $tagcloud_temp['min']; // if there are no tags in database if ( $min == '' ) { - return __('No tags available','wp_admin_blog') ; + return __('No tags available','wp-admin-microblog') ; } // compose tags and their numbers $sql = "SELECT tagPeak, name, tag_ID FROM ( SELECT COUNT(b.tag_ID) as tagPeak, t.name AS name, t.tag_ID as tag_ID FROM " . WPAM_ADMIN_BLOG_RELATIONS . " b LEFT JOIN " . WPAM_ADMIN_BLOG_TAGS . " t ON b.tag_ID = t.tag_ID GROUP BY b.tag_ID ORDER BY tagPeak DESC LIMIT $tags_per_page ) AS temp WHERE tagPeak>=$min ORDER BY name"; @@ -163,10 +163,10 @@ public static function get_tagcloud ($tag, $author, $search, $tags_per_page) { } // active tag if ($tagcloud['tag_ID'] == $tag){ - $end .= '' . $tagcloud['name'] . ' '; + $end .= '' . $tagcloud['name'] . ' '; } else{ - $end .= '' . $tagcloud['name'] . ' '; + $end .= '' . $tagcloud['name'] . ' '; } } return $end; @@ -188,7 +188,7 @@ public static function get_users ($tag, $author, $search) { $user_info = get_userdata($users->user); $name = '' . $user_info->display_name . ' (' . $user_info->user_login . ')'; if ($author == $user_info->ID) { - $end .= '
  • '; + $end .= '
  • '; } else { $end .= '
  • '; @@ -207,15 +207,15 @@ public static function get_users ($tag, $author, $search) { public static function print_javascript_paramenters ($args) { ?> - + @@ -238,21 +238,21 @@ public static function get_new_message_form () {
    -

    +

    -

    +

    +

    +

    - + @@ -275,10 +275,10 @@ public static function get_new_message_form () { */ public static function get_headline ($args) { if ( $args['search'] != '' || $args['author'] != '' || $args['tag'] != '' || $args['rpl'] != '' ) { - echo __('Search Results', 'wp_admin_blog') . ' | ' . __('Show all','wp_admin_blog') . ''; + echo __('Search Results', 'wp-admin-microblog') . ' | ' . __('Show all','wp-admin-microblog') . ''; } else { - echo __('Messages', 'wp_admin_blog'); + echo __('Messages', 'wp-admin-microblog'); } } @@ -293,7 +293,7 @@ public static function print_messages ($post, $args) { // IF there are no messages if ( $args['num_all_messages'] == 0 ) { - echo ''; + echo ''; return; } @@ -387,7 +387,7 @@ public static function print_replies ($post, $replies, $args, $options) { // show the number of replies text if ( $count > 3 && $rpl == 0 ) { echo ''; - echo ''; + echo ''; echo '
    post_ID . "'" . ', ' . "'" . $reply_number . "'" . ')" style="cursor:pointer;" title="' . __('Show all replies','wp_admin_blog') . '">' . $count . ' ' . __('Replies','wp_admin_blog') . '
    post_ID . "'" . ', ' . "'" . $reply_number . "'" . ')" style="cursor:pointer;" title="' . __('Show all replies','wp-admin-microblog') . '">' . $count . ' ' . __('Replies','wp-admin-microblog') . '
    '; } // echo table of replies @@ -570,19 +570,19 @@ function wpam_page() { -