Plugin Directory


Ignore:
Timestamp:
03/11/2014 04:21:13 PM (12 years ago)
Author:
eoigal
Message:

Replace multiple get page url methods with just one. Add a note under the auto delete spam from old posts setting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • akismet/trunk/views/config.php

    r873032 r873492  
    1010           
    1111                <span style="float:right;margin:10px 15px -5px 0px">
    12                     <a href="<?php echo Akismet_Admin::get_stats_page_url();?>" class=""><?php _e( 'Summaries' );?></a>
     12                    <a href="<?php echo Akismet_Admin::get_page_url( 'stats' );?>" class=""><?php _e( 'Summaries' );?></a>
    1313                </span>             
    1414                           
     
    5353                            <div class="handlediv" title="Click to toggle"><br></div>
    5454                            <h3 class="hndle"><span><?php _e( 'Settings' );?></span></h3>
    55                             <form name="akismet_conf" id="akismet-conf" action="<?php echo Akismet_Admin::get_configuration_page_url();?>" method="POST">
     55                            <form name="akismet_conf" id="akismet-conf" action="<?php echo Akismet_Admin::get_page_url();?>" method="POST">
    5656                                <div class="inside">
    57                                     <table cellspacing="0">
     57                                    <table cellspacing="0" class="akismet-settings">
    5858                                        <tbody>
    5959                                            <?php if ( !defined( 'WPCOM_API_KEY' ) ):?>
     
    7171                                                <td>
    7272                                                    <p>
    73                                                         <label for="akismet_discard_month" title="<?php esc_attr_e( 'Auto-detete old spam' ); ?>"><input name="akismet_discard_month" id="akismet_discard_month" value="true" type="checkbox" <?php echo get_option('akismet_discard_month') == 'true' ? 'checked="checked"':''; ?>> <?php _e('Delete spam on posts more than a month old'); ?></label>
     73                                                        <label for="akismet_show_user_comments_approved" title="<?php esc_attr_e( 'Show approved comments' ); ?>"><input name="akismet_show_user_comments_approved" id="akismet_show_user_comments_approved" value="true" type="checkbox" <?php echo get_option('akismet_show_user_comments_approved') == 'true' ? 'checked="checked"':''; ?>> <?php _e('Show the number of approved comments beside each comment author'); ?></label>
    7474                                                    </p>
    7575                                                    <p>
    76                                                         <label for="akismet_show_user_comments_approved" title="<?php esc_attr_e( 'Show approved comments' ); ?>"><input name="akismet_show_user_comments_approved" id="akismet_show_user_comments_approved" value="true" type="checkbox" <?php echo get_option('akismet_show_user_comments_approved') == 'true' ? 'checked="checked"':''; ?>> <?php _e('Show the number of approved comments beside each comment author'); ?></label>
     76                                                        <label for="akismet_discard_month" title="<?php esc_attr_e( 'Auto-detete spam from old posts' ); ?>"><input name="akismet_discard_month" id="akismet_discard_month" value="true" type="checkbox" <?php echo get_option('akismet_discard_month') == 'true' ? 'checked="checked"':''; ?>> <?php _e('Automatically delete spam from posts older than 30 days'); ?></label><span class="note"><strong><?php _e('Note:');?></strong> <?php printf( __( 'Spam in the <a href="%s">spam folder</a> older than 15 days is automatically deleted.' ), admin_url( 'edit-comments.php?type=spam' ) );?></span><div class="clear"></div>
    7777                                                    </p>
    7878                                                </td>
     
    8484                                    <?php if ( !defined( 'WPCOM_API_KEY' ) ):?>
    8585                                    <div id="delete-action">
    86                                         <a class="submitdelete deletion" href="<?php echo Akismet_Admin::get_delete_key_url();?>"><?php _e('Disconnect this account'); ?></a>
     86                                        <a class="submitdelete deletion" href="<?php echo Akismet_Admin::get_page_url( 'delete_key' );?>"><?php _e('Disconnect this account'); ?></a>
    8787                                    </div>
    8888                                    <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.