Plugin Directory

Changeset 2009206


Ignore:
Timestamp:
01/09/2019 03:29:29 PM (7 years ago)
Author:
mechter
Message:

added filter bbpmd_help_content

Location:
bbp-markdown
Files:
2 edited
14 copied

Legend:

Unmodified
Added
Removed
  • bbp-markdown/tags/1.4/bbp-markdown.php

    r1735113 r2009206  
    77 * Author: Markus Echterhoff
    88 * Author URI: https://www.markusechterhoff.com
    9  * Version: 1.3
     9 * Version: 1.4
    1010 * License: GPLv3 or later
    1111 * Text Domain: bbp-markdown
     
    328328
    329329function bbpmd_after_editor() {
     330    $custom_help_content = apply_filters( 'bbpmd_help_content', false );
    330331?>
    331332        </div>
     
    334335        <h2 class="bbpmd-help-header"><?php echo apply_filters( 'bbpmd_help_title', __( 'Help', 'bbp-markdown' ) ); ?></h2>
    335336        <div class="bbpmd-help-panel">
     337        <?php if ( $custom_help_content ) : ?>
     338            <?php echo $custom_help_content; ?>
     339        <?php else : ?>
    336340            <p><?php _e( 'This forum supports the Markdown(Extra) syntax, here are some examples:', 'bbp-markdown' ); ?></p>
    337341            <table>
     
    359363                <tr><td><?php _e( 'oranges', 'bbp-markdown' ); ?></td><td>5</td></tr></tbody></table></td></tr>
    360364            </table>
     365        <?php endif; ?>
    361366        </div>
    362367    </div>
  • bbp-markdown/tags/1.4/readme.txt

    r2004692 r2009206  
    55Requires at least: 3.6
    66Tested up to: 5.0
    7 Stable tag: 1.3
     7Stable tag: 1.4
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    2222
    2323== Changelog ==
     24
     25= 1.4 =
     26
     27* added new filter: bbpmd_help_content
    2428
    2529= 1.3 =
  • bbp-markdown/trunk/bbp-markdown.php

    r1735113 r2009206  
    77 * Author: Markus Echterhoff
    88 * Author URI: https://www.markusechterhoff.com
    9  * Version: 1.3
     9 * Version: 1.4
    1010 * License: GPLv3 or later
    1111 * Text Domain: bbp-markdown
     
    328328
    329329function bbpmd_after_editor() {
     330    $custom_help_content = apply_filters( 'bbpmd_help_content', false );
    330331?>
    331332        </div>
     
    334335        <h2 class="bbpmd-help-header"><?php echo apply_filters( 'bbpmd_help_title', __( 'Help', 'bbp-markdown' ) ); ?></h2>
    335336        <div class="bbpmd-help-panel">
     337        <?php if ( $custom_help_content ) : ?>
     338            <?php echo $custom_help_content; ?>
     339        <?php else : ?>
    336340            <p><?php _e( 'This forum supports the Markdown(Extra) syntax, here are some examples:', 'bbp-markdown' ); ?></p>
    337341            <table>
     
    359363                <tr><td><?php _e( 'oranges', 'bbp-markdown' ); ?></td><td>5</td></tr></tbody></table></td></tr>
    360364            </table>
     365        <?php endif; ?>
    361366        </div>
    362367    </div>
  • bbp-markdown/trunk/readme.txt

    r2004692 r2009206  
    55Requires at least: 3.6
    66Tested up to: 5.0
    7 Stable tag: 1.3
     7Stable tag: 1.4
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    2222
    2323== Changelog ==
     24
     25= 1.4 =
     26
     27* added new filter: bbpmd_help_content
    2428
    2529= 1.3 =
Note: See TracChangeset for help on using the changeset viewer.