Changeset 1007484
- Timestamp:
- 10/14/2014 06:27:00 PM (11 years ago)
- Location:
- because/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (1 diff)
-
public/includes/class-sp_comments.php (modified) (4 diffs)
-
social-polling.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
because/trunk/README.txt
r1007332 r1007484 7 7 Tested up to: 4.0 8 8 <<<<<<< .mine 9 Stable tag: 1.3. 89 Stable tag: 1.3.9 10 10 ======= 11 Stable tag: 1.3. 811 Stable tag: 1.3.9 12 12 >>>>>>> .r969865 13 13 License: GPLv2 or later -
because/trunk/public/includes/class-sp_comments.php
r1007332 r1007484 177 177 $query = "SELECT meta_key FROM $table WHERE post_id='" . $post_id . "' AND meta_value='" . $vote_val->vote_value . "'"; 178 178 $ans_choice = $wpdb->get_row($query); 179 179 add_comment_meta($comment_id,'test','test'); 180 180 181 181 // add vote identifier to the comment … … 183 183 add_comment_meta($comment_id,'vote_choice','one'); 184 184 } 185 elseif ($ans_choice->meta_key == "social_polling_answer_two_field" || $ans_choice->meta_key == " social_polling_answer_two_field"){185 elseif ($ans_choice->meta_key == "social_polling_answer_two_field" || $ans_choice->meta_key == "_social_polling_answer_two_field"){ 186 186 add_comment_meta($comment_id,'vote_choice','two'); 187 187 } … … 189 189 } 190 190 191 192 191 193 192 /** … … 1550 1549 $comment_ID = get_comment_ID(); 1551 1550 1552 echo"<p";1551 $retVal = "<p"; 1553 1552 1554 1553 $test = get_comment_meta($comment_ID,"vote_choice",true); 1555 1554 1556 1555 if ($test == "one"){ 1557 echo" class='comment_voted_a'";1556 $retVal = $retVal . " class='comment_voted_a'"; 1558 1557 } 1559 1558 elseif ($test == "two") { 1560 echo" class='comment_voted_b'";1559 $retVal = $retVal . " class='comment_voted_b'"; 1561 1560 } 1562 1561 1563 echo ">$comment_text</p>"; 1562 $retVal = $retVal . ">$comment_text</p>"; 1563 1564 return $retVal; 1564 1565 } 1565 1566 -
because/trunk/social-polling.php
r1007332 r1007484 34 34 35 35 <<<<<<< .mine 36 * Version: 1.3. 836 * Version: 1.3.9 37 37 ======= 38 * Version: 1.3. 838 * Version: 1.3.9 39 39 >>>>>>> .r969865 40 40
Note: See TracChangeset
for help on using the changeset viewer.