Changeset 1004084
- Timestamp:
- 10/08/2014 08:34:44 PM (11 years ago)
- Location:
- suggest-review
- Files:
-
- 2 edited
- 3 copied
-
tags/1.3.1 (copied) (copied from suggest-review/trunk)
-
tags/1.3.1/readme.txt (copied) (copied from suggest-review/trunk/readme.txt) (3 diffs)
-
tags/1.3.1/suggest-review.php (copied) (copied from suggest-review/trunk/suggest-review.php) (8 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/suggest-review.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
suggest-review/tags/1.3.1/readme.txt
r980092 r1004084 5 5 Requires at least: 3.5.2 6 6 Tested up to: 4.0.0 7 Stable tag: 1.3. 07 Stable tag: 1.3.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 7. Admins see the settings and post list in the dashboard. 50 50 51 == Changelog == 51 == Changelog === 52 53 = 1.3.1 = 54 * Added option to change the text of the button. 52 55 53 56 = 1.3.0 = … … 87 90 * Initial version. 88 91 89 == Upgrade Notice == 92 == Upgrade Notice === 93 94 = 1.3.1 = 95 New option. Upgrade optional. 90 96 91 97 = 1.3.0 = -
suggest-review/tags/1.3.1/suggest-review.php
r969174 r1004084 2 2 /** 3 3 * @package Suggest_Review 4 * @version 1.3. 04 * @version 1.3.1 5 5 */ 6 6 /* … … 9 9 Description: Lets users suggest that content may need to be reviewed or re-examined. 10 10 Author: Michael George 11 Version: 1.3. 011 Version: 1.3.1 12 12 13 13 This program is free software; you can redistribute it and/or modify … … 39 39 //Returns an array of admin options 40 40 function getAdminOptions() { 41 $suggestReviewAdminOptions = array('allow_unregistered' => 'false' 41 $suggestReviewAdminOptions = array( 42 'allow_unregistered' => 'false' 42 43 ,'send_email_to_author' => 'true' 43 44 ,'subject_for_email_to_author' => 'Blog content flagged for review' … … 60 61 Author: [author_login] 61 62 Last Modified: [post_modified] 62 Link: [permalink]'); 63 Link: [permalink]' 64 ,'flag_button_text' => 'Flag this information for review' // since 1.3.1 65 ); 63 66 $devOptions = get_option( $this->adminOptionsName ); 64 67 if ( ! empty( $devOptions ) ) { … … 149 152 if ( ! $excluded ) { 150 153 //Be advised this same stuff should appear here and just below, so if you change one, change both! 151 $return .= '<div><p style=\'text-align: ' . $devOptions['footer_alignment'] . '\'><button id="SuggestReviewButton"> Flag this information for review</button></p></div>154 $return .= '<div><p style=\'text-align: ' . $devOptions['footer_alignment'] . '\'><button id="SuggestReviewButton">' . $devOptions['flag_button_text'] . '</button></p></div> 152 155 153 156 <div id="SuggestReviewComment" style="display:none"><p style="margin-bottom:0px;"><strong>Suggest Review:</strong> Please leave a comment below explaining why.</p> … … 181 184 if ( ! $excluded ) { 182 185 //Be advised this same stuff should appear here and just above, so if you change one, change both! 183 $return .= '<div><p style=\'text-align: ' . $devOptions['footer_alignment'] . '\'><button id="SuggestReviewButton"> Flag this information for review</button></p></div>186 $return .= '<div><p style=\'text-align: ' . $devOptions['footer_alignment'] . '\'><button id="SuggestReviewButton">' . $devOptions['flag_button_text'] . '</button></p></div> 184 187 185 188 <div id="SuggestReviewComment" style="display:none"><p style="margin-bottom:0px;"><strong>Suggest Review:</strong> Please leave a comment below explaining why.</p> … … 375 378 $devOptions['item_for_digest_email'] = apply_filters( 'content_save_pre', $_POST['suggestReviewItemForDigestEmail'] ); 376 379 } 380 if ( isset($_POST['suggestReviewFlagButtonText']) ) { 381 $devOptions['flag_button_text'] = apply_filters( 'content_save_pre', $_POST['suggestReviewFlagButtonText'] ); 382 } 377 383 update_option($this->adminOptionsName, $devOptions); 378 384 … … 410 416 <h3 style="margin-bottom:0">Show comment on post when flagged</h3> 411 417 <p style="margin-top:0"><label for="suggestReviewShowComment_yes"><input type="radio" id="suggestReviewShowComment_yes" name="suggestReviewShowComment" value="true" <?php if ($devOptions['show_comment'] ) { _e('checked="checked"', "SuggestReview"); }?> /> Yes</label> <label for="suggestReviewShowComment_no"><input type="radio" id="suggestReviewShowComment_no" name="suggestReviewShowComment" value="false" <?php if ( ! $devOptions['show_comment'] ) { _e('checked="checked"', "SuggestReview"); }?>/> No</label></p> 418 419 <h3 style="margin-bottom:0">Flag button text</h3> 420 <input type="text" name="suggestReviewFlagButtonText" style="width:100%;" value="<?php _e(apply_filters('format_to_edit',$devOptions['flag_button_text']), 'SuggestReview') ?>"></p> 412 421 413 422 <h3 style="margin-bottom:0">Page, post IDs to exclude</h3> -
suggest-review/trunk/readme.txt
r980092 r1004084 5 5 Requires at least: 3.5.2 6 6 Tested up to: 4.0.0 7 Stable tag: 1.3. 07 Stable tag: 1.3.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 7. Admins see the settings and post list in the dashboard. 50 50 51 == Changelog == 51 == Changelog === 52 53 = 1.3.1 = 54 * Added option to change the text of the button. 52 55 53 56 = 1.3.0 = … … 87 90 * Initial version. 88 91 89 == Upgrade Notice == 92 == Upgrade Notice === 93 94 = 1.3.1 = 95 New option. Upgrade optional. 90 96 91 97 = 1.3.0 = -
suggest-review/trunk/suggest-review.php
r969174 r1004084 2 2 /** 3 3 * @package Suggest_Review 4 * @version 1.3. 04 * @version 1.3.1 5 5 */ 6 6 /* … … 9 9 Description: Lets users suggest that content may need to be reviewed or re-examined. 10 10 Author: Michael George 11 Version: 1.3. 011 Version: 1.3.1 12 12 13 13 This program is free software; you can redistribute it and/or modify … … 39 39 //Returns an array of admin options 40 40 function getAdminOptions() { 41 $suggestReviewAdminOptions = array('allow_unregistered' => 'false' 41 $suggestReviewAdminOptions = array( 42 'allow_unregistered' => 'false' 42 43 ,'send_email_to_author' => 'true' 43 44 ,'subject_for_email_to_author' => 'Blog content flagged for review' … … 60 61 Author: [author_login] 61 62 Last Modified: [post_modified] 62 Link: [permalink]'); 63 Link: [permalink]' 64 ,'flag_button_text' => 'Flag this information for review' // since 1.3.1 65 ); 63 66 $devOptions = get_option( $this->adminOptionsName ); 64 67 if ( ! empty( $devOptions ) ) { … … 149 152 if ( ! $excluded ) { 150 153 //Be advised this same stuff should appear here and just below, so if you change one, change both! 151 $return .= '<div><p style=\'text-align: ' . $devOptions['footer_alignment'] . '\'><button id="SuggestReviewButton"> Flag this information for review</button></p></div>154 $return .= '<div><p style=\'text-align: ' . $devOptions['footer_alignment'] . '\'><button id="SuggestReviewButton">' . $devOptions['flag_button_text'] . '</button></p></div> 152 155 153 156 <div id="SuggestReviewComment" style="display:none"><p style="margin-bottom:0px;"><strong>Suggest Review:</strong> Please leave a comment below explaining why.</p> … … 181 184 if ( ! $excluded ) { 182 185 //Be advised this same stuff should appear here and just above, so if you change one, change both! 183 $return .= '<div><p style=\'text-align: ' . $devOptions['footer_alignment'] . '\'><button id="SuggestReviewButton"> Flag this information for review</button></p></div>186 $return .= '<div><p style=\'text-align: ' . $devOptions['footer_alignment'] . '\'><button id="SuggestReviewButton">' . $devOptions['flag_button_text'] . '</button></p></div> 184 187 185 188 <div id="SuggestReviewComment" style="display:none"><p style="margin-bottom:0px;"><strong>Suggest Review:</strong> Please leave a comment below explaining why.</p> … … 375 378 $devOptions['item_for_digest_email'] = apply_filters( 'content_save_pre', $_POST['suggestReviewItemForDigestEmail'] ); 376 379 } 380 if ( isset($_POST['suggestReviewFlagButtonText']) ) { 381 $devOptions['flag_button_text'] = apply_filters( 'content_save_pre', $_POST['suggestReviewFlagButtonText'] ); 382 } 377 383 update_option($this->adminOptionsName, $devOptions); 378 384 … … 410 416 <h3 style="margin-bottom:0">Show comment on post when flagged</h3> 411 417 <p style="margin-top:0"><label for="suggestReviewShowComment_yes"><input type="radio" id="suggestReviewShowComment_yes" name="suggestReviewShowComment" value="true" <?php if ($devOptions['show_comment'] ) { _e('checked="checked"', "SuggestReview"); }?> /> Yes</label> <label for="suggestReviewShowComment_no"><input type="radio" id="suggestReviewShowComment_no" name="suggestReviewShowComment" value="false" <?php if ( ! $devOptions['show_comment'] ) { _e('checked="checked"', "SuggestReview"); }?>/> No</label></p> 418 419 <h3 style="margin-bottom:0">Flag button text</h3> 420 <input type="text" name="suggestReviewFlagButtonText" style="width:100%;" value="<?php _e(apply_filters('format_to_edit',$devOptions['flag_button_text']), 'SuggestReview') ?>"></p> 412 421 413 422 <h3 style="margin-bottom:0">Page, post IDs to exclude</h3>
Note: See TracChangeset
for help on using the changeset viewer.