'' . __( 'Generate Shortcode', 'abl_amamc_td' ) . '' ), $links ); } add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'amamc_settings_link' ); // Add Donate Link to Plugins list function amamc_plugin_row_meta( $links, $file ) { if ( strpos( $file, 'amamc_ask-me-anything.php' ) !== false ) { $new_links = array( 'donate' => 'Donate', 'kuttappi' => 'My Travelogue', ); $links = array_merge( $links, $new_links ); } return $links; } add_filter( 'plugin_row_meta', 'amamc_plugin_row_meta', 10, 2 ); // Load Text Domain function amamc_load_plugin_textdomain() { load_plugin_textdomain( 'abl_amamc_td', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' ); } add_action( 'plugins_loaded', 'amamc_load_plugin_textdomain' ); /*--------------------------------------*/ /* Admin Options Page */ /*--------------------------------------*/ // Admin Interface Renderer function amamc_admin_interface_render () { ?>

my website at the bottom of the page.','abl_amamc_td'),'http://millionclues.com/'); ?>

0, 'latest_first' => true, 'anonymous_name' => __('Someone','abl_amamc_td'), 'success_text' => __('Your question is saved and will appear when it is answered.','abl_amamc_td'), 'question_box_title'=> __('Your Question','abl_amamc_td'), 'placeholder' => __('In the spirit of keeping it anonymous, please do not leave any personal information.','abl_amamc_td'), 'test_question' => __('What is 7+5?','abl_amamc_td'), 'test_answer' => __('12','abl_amamc_td'), 'ask_button_text' => __('Ask Anonymously','abl_amamc_td'), 'answer_list_title' => __('Answers So Far..','abl_amamc_td'), 'no_answers_text' => __('Be the first to ask!','abl_amamc_td'), 'questions_per_page'=> 10, 'avatar' => 'monsterid', // 'retro' (8bit), 'monsterid' (monster), 'wavatar' (cartoon face), 'indenticon', 'mysteryman', 'blank', 'gravatar_default' 'avatar_size' => 96, // max is 512 'show_question_box' => true, 'show_answers' => true, 'show_navigation' => true, 'give_thanks' => false, ), $atts ) ); // Code ob_start(); // This function returns everything from here until ob_get_clean() ?>
Please refer Installation instructions.','abl_amamc_td'); } else if ( $post_or_page_id != 0 || in_the_loop() ) { if ( $post_or_page_id == 0 ) { $post_or_page_id = get_the_ID(); // Assign current page or post id if post_or_page_id attribute is not set. } // Load The CSS To Style The AMA Form wp_enqueue_style('amamc_ask-me-anything', plugin_dir_url( __FILE__ ) . 'css/amamc_ask-me-anything.css'); // Disable Default Comments By Loading A Blank Comments Template As Defined In amamc_disable_default_comments() When AMA Form Is Used On A Page Or Post (in_the_loop()) if ( in_the_loop() ) { add_filter( "comments_template", "amamc_disable_default_comments" ); } ?>

    $post_or_page_id, 'status' => 'approve', 'order' => $order, 'parent' => 0, // Questions are parent comments. 'number' => $questions_per_page, 'offset' => $offset, )); $class = 'alternate'; foreach ($questions as $question) { $class = ('alternate' == $class) ? '' : 'alternate'; ?>
  • comment_author_email, $avatar_size, $avatar ); ?> asked:
    comment_content; ?>
    $post_or_page_id, 'status' => 'approve', 'order' => 'DESC', 'parent' => $question->comment_ID, )); ?>
    • comment_author_email, $avatar_size ); ?> comment_author; ?> replied:
      comment_content; ?>
get_var( "SELECT COUNT(comment_ID) FROM $wpdb->comments WHERE comment_post_ID=$post_or_page_id AND comment_approved=1 AND comment_parent=0"); if ( $number_of_questions > $questions_per_page ) { echo ''; } } ?>

AMA by Million Clues!'; } ?>