WordPress.org

Plugin Directory

Changeset 175122


Ignore:
Timestamp:
11/18/09 21:58:29 (4 years ago)
Author:
brandondove
Message:

Removed empty box for posts that have no prompt.

Location:
conversation-starter
Files:
4 edited
10 copied

Legend:

Unmodified
Added
Removed
  • conversation-starter/tags/1.1.1/javascripts/frontend.php

    r175055 r175122  
    1 <?php header("Content-type: text/javascript"); ?> 
     1<?php 
     2    header("Content-type: text/javascript"); 
     3    global $post; 
     4    if (get_post_meta($post->ID, 'prompt', true) != '') : 
     5?> 
    26jQuery(document).ready(function($) { 
    37    $("textarea[name='comment']").parents() 
    48        .map(function () { 
    59            if (this.tagName == "FORM") 
    6                 $(this).before('<div id="pj-convo-comment-prompt"><?php global $post; esc_attr_e(get_post_meta($post->ID, 'prompt', true)); ?></div>'); 
     10                $(this).before('<div id="pj-convo-comment-prompt"><?php esc_attr_e(get_post_meta($post->ID, 'prompt', true)); ?></div>'); 
    711        }) 
    812}); 
     13<?php 
     14    endif; 
     15?> 
  • conversation-starter/tags/1.1.1/pj-convo.php

    r175055 r175122  
    55Description: This plugin prompts readers to answer a question in your comments. 
    66Author: brandondove, lordleiter, STDestiny, vegasgeek, drewstrojny 
    7 Version: 1.1 
     7Version: 1.1.1 
    88Author URI: http://www.think-press.com 
    99 
  • conversation-starter/tags/1.1.1/readme.txt

    r175055 r175122  
    55Requires at least: 2.8 
    66Tested up to: 2.8.6 
    7 Stable tag: 1.1 
     7Stable tag: 1.1.1 
    88 
    99== Description == 
     
    43431. The security holes have been patched up. 
    44442. Reworked how the prompt was attached to the comment form to allow for greater compatibility with more themes. 
     45 
     46= Version 1.1.1 = 
     47 
     48Stopped the box from showing up when no message was defined for a post (posts written before the plugin was installed) 
  • conversation-starter/trunk/javascripts/frontend.php

    r175055 r175122  
    1 <?php header("Content-type: text/javascript"); ?> 
     1<?php 
     2    header("Content-type: text/javascript"); 
     3    global $post; 
     4    if (get_post_meta($post->ID, 'prompt', true) != '') : 
     5?> 
    26jQuery(document).ready(function($) { 
    37    $("textarea[name='comment']").parents() 
    48        .map(function () { 
    59            if (this.tagName == "FORM") 
    6                 $(this).before('<div id="pj-convo-comment-prompt"><?php global $post; esc_attr_e(get_post_meta($post->ID, 'prompt', true)); ?></div>'); 
     10                $(this).before('<div id="pj-convo-comment-prompt"><?php esc_attr_e(get_post_meta($post->ID, 'prompt', true)); ?></div>'); 
    711        }) 
    812}); 
     13<?php 
     14    endif; 
     15?> 
  • conversation-starter/trunk/pj-convo.php

    r175055 r175122  
    55Description: This plugin prompts readers to answer a question in your comments. 
    66Author: brandondove, lordleiter, STDestiny, vegasgeek, drewstrojny 
    7 Version: 1.1 
     7Version: 1.1.1 
    88Author URI: http://www.think-press.com 
    99 
  • conversation-starter/trunk/readme.txt

    r175055 r175122  
    55Requires at least: 2.8 
    66Tested up to: 2.8.6 
    7 Stable tag: 1.1 
     7Stable tag: 1.1.1 
    88 
    99== Description == 
     
    43431. The security holes have been patched up. 
    44442. Reworked how the prompt was attached to the comment form to allow for greater compatibility with more themes. 
     45 
     46= Version 1.1.1 = 
     47 
     48Stopped the box from showing up when no message was defined for a post (posts written before the plugin was installed) 
Note: See TracChangeset for help on using the changeset viewer.