Plugin Directory

Changeset 1004084


Ignore:
Timestamp:
10/08/2014 08:34:44 PM (11 years ago)
Author:
george_michael
Message:

new version 1.3.1 with new option

Location:
suggest-review
Files:
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • suggest-review/tags/1.3.1/readme.txt

    r980092 r1004084  
    55Requires at least: 3.5.2
    66Tested up to: 4.0.0
    7 Stable tag: 1.3.0
     7Stable tag: 1.3.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    49497. Admins see the settings and post list in the dashboard.
    5050
    51 == Changelog ==
     51== Changelog ===
     52
     53= 1.3.1 =
     54* Added option to change the text of the button.
    5255
    5356= 1.3.0 =
     
    8790* Initial version.
    8891
    89 == Upgrade Notice ==
     92== Upgrade Notice ===
     93
     94= 1.3.1 =
     95New option. Upgrade optional.
    9096
    9197= 1.3.0 =
  • suggest-review/tags/1.3.1/suggest-review.php

    r969174 r1004084  
    22/**
    33 * @package Suggest_Review
    4  * @version 1.3.0
     4 * @version 1.3.1
    55 */
    66/*
     
    99Description: Lets users suggest that content may need to be reviewed or re-examined.
    1010Author: Michael George
    11 Version: 1.3.0
     11Version: 1.3.1
    1212
    1313    This program is free software; you can redistribute it and/or modify
     
    3939        //Returns an array of admin options
    4040        function getAdminOptions() {
    41             $suggestReviewAdminOptions = array('allow_unregistered' => 'false'
     41            $suggestReviewAdminOptions = array(
     42                'allow_unregistered' => 'false'
    4243                ,'send_email_to_author' => 'true'
    4344                ,'subject_for_email_to_author' => 'Blog content flagged for review'
     
    6061Author: [author_login]
    6162Last Modified: [post_modified]
    62 Link: [permalink]');
     63Link: [permalink]'
     64                ,'flag_button_text' => 'Flag this information for review' // since 1.3.1
     65                );
    6366            $devOptions = get_option( $this->adminOptionsName );
    6467            if ( ! empty( $devOptions ) ) {
     
    149152                        if ( ! $excluded ) {
    150153                            //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>
    152155
    153156<div id="SuggestReviewComment" style="display:none"><p style="margin-bottom:0px;"><strong>Suggest Review:</strong> Please leave a comment below explaining why.</p>
     
    181184                            if ( ! $excluded ) {
    182185                                //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>
    184187
    185188<div id="SuggestReviewComment" style="display:none"><p style="margin-bottom:0px;"><strong>Suggest Review:</strong> Please leave a comment below explaining why.</p>
     
    375378                    $devOptions['item_for_digest_email'] = apply_filters( 'content_save_pre', $_POST['suggestReviewItemForDigestEmail'] );
    376379                }
     380                if ( isset($_POST['suggestReviewFlagButtonText']) ) {
     381                    $devOptions['flag_button_text'] = apply_filters( 'content_save_pre', $_POST['suggestReviewFlagButtonText'] );
     382                }
    377383                update_option($this->adminOptionsName, $devOptions);
    378384
     
    410416    <h3 style="margin-bottom:0">Show comment on post when flagged</h3>
    411417    <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>&nbsp;&nbsp;&nbsp;&nbsp;<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>
    412421
    413422    <h3 style="margin-bottom:0">Page, post IDs to exclude</h3>
  • suggest-review/trunk/readme.txt

    r980092 r1004084  
    55Requires at least: 3.5.2
    66Tested up to: 4.0.0
    7 Stable tag: 1.3.0
     7Stable tag: 1.3.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    49497. Admins see the settings and post list in the dashboard.
    5050
    51 == Changelog ==
     51== Changelog ===
     52
     53= 1.3.1 =
     54* Added option to change the text of the button.
    5255
    5356= 1.3.0 =
     
    8790* Initial version.
    8891
    89 == Upgrade Notice ==
     92== Upgrade Notice ===
     93
     94= 1.3.1 =
     95New option. Upgrade optional.
    9096
    9197= 1.3.0 =
  • suggest-review/trunk/suggest-review.php

    r969174 r1004084  
    22/**
    33 * @package Suggest_Review
    4  * @version 1.3.0
     4 * @version 1.3.1
    55 */
    66/*
     
    99Description: Lets users suggest that content may need to be reviewed or re-examined.
    1010Author: Michael George
    11 Version: 1.3.0
     11Version: 1.3.1
    1212
    1313    This program is free software; you can redistribute it and/or modify
     
    3939        //Returns an array of admin options
    4040        function getAdminOptions() {
    41             $suggestReviewAdminOptions = array('allow_unregistered' => 'false'
     41            $suggestReviewAdminOptions = array(
     42                'allow_unregistered' => 'false'
    4243                ,'send_email_to_author' => 'true'
    4344                ,'subject_for_email_to_author' => 'Blog content flagged for review'
     
    6061Author: [author_login]
    6162Last Modified: [post_modified]
    62 Link: [permalink]');
     63Link: [permalink]'
     64                ,'flag_button_text' => 'Flag this information for review' // since 1.3.1
     65                );
    6366            $devOptions = get_option( $this->adminOptionsName );
    6467            if ( ! empty( $devOptions ) ) {
     
    149152                        if ( ! $excluded ) {
    150153                            //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>
    152155
    153156<div id="SuggestReviewComment" style="display:none"><p style="margin-bottom:0px;"><strong>Suggest Review:</strong> Please leave a comment below explaining why.</p>
     
    181184                            if ( ! $excluded ) {
    182185                                //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>
    184187
    185188<div id="SuggestReviewComment" style="display:none"><p style="margin-bottom:0px;"><strong>Suggest Review:</strong> Please leave a comment below explaining why.</p>
     
    375378                    $devOptions['item_for_digest_email'] = apply_filters( 'content_save_pre', $_POST['suggestReviewItemForDigestEmail'] );
    376379                }
     380                if ( isset($_POST['suggestReviewFlagButtonText']) ) {
     381                    $devOptions['flag_button_text'] = apply_filters( 'content_save_pre', $_POST['suggestReviewFlagButtonText'] );
     382                }
    377383                update_option($this->adminOptionsName, $devOptions);
    378384
     
    410416    <h3 style="margin-bottom:0">Show comment on post when flagged</h3>
    411417    <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>&nbsp;&nbsp;&nbsp;&nbsp;<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>
    412421
    413422    <h3 style="margin-bottom:0">Page, post IDs to exclude</h3>
Note: See TracChangeset for help on using the changeset viewer.