*/ //include pagination function require_once( ap_get_theme_location('pagination.php') ); add_action('wp_enqueue_scripts', 'init_scripts_front'); function init_scripts_front(){ if(is_anspress()){ wp_enqueue_script( 'jquery'); wp_enqueue_script( 'tagsinput', ap_get_theme_url('js/bootstrap-tagsinput.min.js'), 'jquery', AP_VERSION); wp_enqueue_script( 'jquery-form', array('jquery'), false, true ); wp_enqueue_script( 'ap-site-js', ANSPRESS_URL.'assets/ap-site.js', 'jquery', AP_VERSION); wp_enqueue_script( 'tooltipster', ap_get_theme_url('js/jquery.tooltipster.min.js'), 'jquery', AP_VERSION); //wp_enqueue_script( 'perfect-scrollbar', ap_get_theme_url('js/perfect-scrollbar.min.js'), 'jquery', AP_VERSION); wp_enqueue_script( 'ap-js', ap_get_theme_url('js/ap.js'), 'jquery', AP_VERSION); wp_enqueue_style( 'tagsinput', ap_get_theme_url('css/bootstrap-tagsinput.css'), array(), 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/ap.css'), array(), AP_VERSION); wp_enqueue_style( 'ap-fonts', ap_get_theme_url('fonts/style.css'), array(), AP_VERSION); do_action('ap_enqueue'); ?> __( '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' => __( 'Email already in use', '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' ), ) ); } } if ( ! function_exists( 'ap_comment' ) ) : function ap_comment( $comment ) { $GLOBALS['comment'] = $comment; ?>
  • id="li-comment-">
    comment_approved ) : ?>

    %2$s %3$s', get_comment_time( 'c' ), ap_human_time(get_comment_time('U')), __('ago', 'ap') ); ?>

    '.__('Edit', 'ap').''; if(ap_user_can_delete_comment(get_comment_ID())) echo ' '.__('Delete', 'ap').''; ?>
    __( 'AP Before', 'ap' ), 'id' => 'ap-before', 'before_widget' => '
    ', 'after_widget' => '
    ', 'description' => __( 'Widgets in this area will be shown before anspress body.', 'ap' ), 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'AP Lists Top', 'ap' ), 'id' => 'ap-top', 'before_widget' => '
    ', 'after_widget' => '
    ', 'description' => __( 'Widgets in this area will be shown before questions list.', 'ap' ), 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'AP Sidebar', 'ap' ), 'id' => 'ap-sidebar', 'before_widget' => '
    ', 'after_widget' => '
    ', 'description' => __( 'Widgets in this area will be shown in AnsPress sidebar.', 'ap' ), 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'AP Question Sidebar', 'ap' ), 'id' => 'ap-qsidebar', 'before_widget' => '
    ', 'after_widget' => '
    ', 'description' => __( 'Widgets in this area will be shown in question page sidebar.', 'ap' ), 'before_title' => '

    ', 'after_title' => '

    ', ) ); }