*/ /** * Enqueue scripts * */ add_action('wp_enqueue_scripts', 'init_scripts_front', 11); function init_scripts_front(){ //if(is_anspress()){ wp_enqueue_script( 'jquery'); wp_enqueue_script( 'jquery-form', array('jquery'), false, true ); wp_enqueue_script( 'ap-functions-js', ANSPRESS_URL.'assets/ap-functions.js', 'jquery'); wp_enqueue_script( 'anspress_acript', ANSPRESS_URL.'assets/anspress_site.js', 'jquery', AP_VERSION); wp_enqueue_script( 'tooltipster', ap_get_theme_url('js/jquery.tooltipster.min.js'), 'jquery', AP_VERSION); wp_enqueue_script( 'ap-js', ap_get_theme_url('js/ap.js'), 'jquery', AP_VERSION); wp_enqueue_style( 'tooltipster', ap_get_theme_url('css/tooltipster.css'), array(), AP_VERSION); //wp_enqueue_style( 'perfect-scrollbar', ap_get_theme_url('css/perfect-scrollbar.min.css'), array(), AP_VERSION); wp_enqueue_style( 'ap-style', ap_get_theme_url('css/main.css'), array(), AP_VERSION); wp_enqueue_style( 'ap-fonts', ap_get_theme_url('fonts/style.css'), array(), AP_VERSION); do_action('ap_enqueue'); wp_enqueue_style( 'ap-overrides', ap_get_theme_url('css/overrides.css'), array(), AP_VERSION); ?> __( 'Password not matching', 'ap' ), 'password_length_less' => __( 'Password length must be 6 or higher', 'ap' ), 'not_valid_email' => __( 'Not a valid email', 'ap' ), 'username_less' => __( 'Username length must be 4 or higher', 'ap' ), 'username_not_avilable' => __( 'Username not available', 'ap' ), 'email_already_in_use' => sprintf(__( 'Email already in use. %sDo you want to reset your password?%s', 'ap' ), '', ''), 'loading' => __( 'Loading', 'ap' ), 'sending' => __( 'Sending request', 'ap' ), 'adding_to_fav' => __( 'Adding question to your favorites', 'ap' ), 'voting_on_post' => __( 'Sending your vote', 'ap' ), 'requesting_for_closing' => __( 'Requesting for closing this question', 'ap' ), 'sending_request' => __( 'Submitting request', 'ap' ), 'loading_comment_form' => __( 'Loading comment form', 'ap' ), 'submitting_your_question' => __( 'Sending your question', 'ap' ), 'submitting_your_answer' => __( 'Sending your answer', 'ap' ), 'submitting_your_comment' => __( 'Sending your comment', 'ap' ), 'deleting_comment' => __( 'Deleting comment', 'ap' ), 'updating_comment' => __( 'Updating comment', 'ap' ), 'loading_form' => __( 'Loading form', 'ap' ), 'saving_labels' => __( 'Saving labels', 'ap' ), 'loading_suggestions' => __( 'Loading suggestions', 'ap' ), 'uploading_cover' => __( 'Uploading cover', 'ap' ), 'saving_profile' => __( 'Saving profile', 'ap' ), 'sending_message' => __( 'Sending message', 'ap' ), 'loading_conversation' => __( 'Loading conversation', 'ap' ), 'loading_new_message_form' => __( 'Loading new message form', 'ap' ), 'loading_more_conversations' => __( 'Loading more conversations', 'ap' ), 'searching_conversations' => __( 'Searching conversations', 'ap' ), 'loading_message_edit_form' => __( 'Loading message form', 'ap' ), 'updating_message' => __( 'Updating message', 'ap' ), 'deleting_message' => __( 'Deleting message', 'ap' ), 'uploading' => __( 'Uploading', 'ap' ), 'error' => ap_icon('error'), 'warning' => ap_icon('warning'), 'success' => ap_icon('success'), ) ); wp_localize_script( 'ap-site-js', 'apoptions', array( 'ajaxlogin' => ap_opt('ajax_login'), )); //} } if ( ! function_exists( 'ap_comment' ) ) : function ap_comment( $comment ) { $GLOBALS['comment'] = $comment; ?>