'
' . __( 'Tags:' , 'p2' ), 'tagit' => __( 'Tag it', 'p2' ), 'citation' => __( 'Citation', 'p2' ), 'title' => __( 'Post Title', 'p2' ), 'goto_homepage' => __( 'Go to homepage', 'p2' ), // the number is calculated in the javascript in a complex way, so we can't use ngettext 'n_new_updates' => __( '%d new update(s)', 'p2' ), 'n_new_comments' => __( '%d new comment(s)', 'p2' ), 'jump_to_top' => __( 'Jump to top', 'p2' ), 'not_posted_error' => __( 'An error has occurred, your post was not posted', 'p2' ), 'update_posted' => __( 'Your update has been posted', 'p2' ), 'loading' => __( 'Loading...', 'p2' ), 'cancel' => __( 'Cancel', 'p2' ), 'save' => __( 'Save', 'p2' ), 'hide_threads' => __( 'Hide threads', 'p2' ), 'show_threads' => __( 'Show threads', 'p2' ), 'unsaved_changes' => __( 'Your comments or posts will be lost if you continue.', 'p2' ), 'date_time_format' => __( '%1$s on %2$s', 'p2' ), 'date_format' => get_option( 'date_format' ), 'time_format' => get_option( 'time_format' ), // if we don't convert the entities to characters, we can't get < and > inside 'l10n_print_after' => 'try{convertEntities(p2txt);}catch(e){};', 'autocomplete_prompt' => __( 'After typing @, type a name or username to find a member of this site', 'p2' ), 'no_matches' => __( 'No matches.', 'p2' ), 'comment_cancel_ays' => __( 'Are you sure you would like to clear this comment? Its contents will be deleted.', 'p2' ), 'oops_not_logged_in' => __( 'Oops! Looks like you are not logged in.', 'p2' ), 'please_log_in' => __( 'Please log in again', 'p2' ), 'whoops_maybe_offline' => __( 'Whoops! Looks like you are not connected to the server. P2 could not connect with WordPress.', 'p2' ), 'required_filed' => __( 'This field is required.', 'p2' ), ) ); if ( p2_is_iphone() ) { wp_enqueue_script( 'iphone', get_template_directory_uri() . '/js/iphone.js', array( 'jquery' ), '20120402', true ); } add_action( 'wp_head', array( 'P2_JS', 'locale_script_data' ), 2 ); } static function locale_script_data() { global $wp_locale; ?> primary_redirect ) ) $admin_url = preg_replace( '|https?://' . preg_quote( $current_blog->domain ) . '|', 'http://' . $current_blog->primary_redirect, $admin_url ); return $admin_url; } static function ajax_read_url() { return add_query_arg( 'p2ajax', 'true', get_feed_link( 'p2.ajax' ) ); } static function print_options() { $mentions = p2_get( 'mentions' ); $page_options['nonce']= wp_create_nonce( 'ajaxnonce' ); $page_options['prologue_updates'] = 1; $page_options['prologue_comments_updates'] = 1; $page_options['prologue_tagsuggest'] = 1; $page_options['prologue_inlineedit'] = 1; $page_options['prologue_comments_inlineedit'] = 1; $page_options['is_single'] = (int)is_single(); $page_options['is_page'] = (int)is_page(); $page_options['is_front_page'] = (int)is_front_page(); $page_options['is_first_front_page'] = (int)(is_front_page() && !is_paged() ); $page_options['is_user_logged_in'] = (int)is_user_logged_in(); $page_options['login_url'] = wp_login_url( ( ( !empty($_SERVER['HTTPS'] ) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); ?>