WordPress.org

Plugin Directory

Changeset 601974


Ignore:
Timestamp:
09/21/12 16:01:25 (19 months ago)
Author:
mordauk
Message:

Uploading v2.1

Location:
restrict-content
Files:
6 added
8 edited
5 copied

Legend:

Unmodified
Added
Removed
  • restrict-content/tags/2.1/includes/display-functions.php

    r439773 r601974  
    1414    if ($rcUserLevel == 'Administrator') 
    1515    { 
    16         echo $rc_options['editor_message']; 
     16        return do_shortcode( $rc_options['editor_message'] ); 
    1717    } 
    1818    else 
     
    3030    if ($rcUserLevel == 'Administrator' || $rcUserLevel == 'Editor') 
    3131    { 
    32         echo $rc_options['author_message']; 
     32        return do_shortcode( $rc_options['author_message'] ); 
    3333    } 
    3434    else 
     
    4747    if ($rcUserLevel == 'Administrator' || $rcUserLevel == 'Editor' || $rcUserLevel == 'Author') 
    4848    { 
    49         echo $rc_options['contributor_message']; 
     49        return do_shortcode( $rc_options['contributor_message'] ); 
    5050    } 
    5151    else 
     
    6464    if ($rcUserLevel == 'Administrator' || $rcUserLevel == 'Editor' || $rcUserLevel == 'Author' || $rcUserLevel == 'Contributor') 
    6565    { 
    66         echo $rc_options['subscriber_message']; 
     66        return do_shortcode( $rc_options['subscriber_message'] ); 
    6767    } 
    6868    else 
     
    8484    { 
    8585        $userLevelMessage = strtolower($rcUserLevel); 
    86         echo $rc_options[$userLevelMessage . '_message']; 
     86        return do_shortcode( $rc_options[$userLevelMessage . '_message'] ); 
    8787    }  
    8888    else 
  • restrict-content/tags/2.1/includes/metabox.php

    r439773 r601974  
    1515    'fields' => array( 
    1616        array( 
    17             'name' => 'User Level', 
     17            'name' => __('User Level', 'restrict-content'), 
    1818            'id' => $prefix . 'UserLevel', 
    1919            'type' => 'select', 
    20             'desc' => 'Choose the user level that can see this page / post', 
     20            'desc' => __('Choose the user level that can see this page / post', 'restrict-content'), 
    2121            'options' => array('None', 'Administrator', 'Editor', 'Author', 'Contributor', 'Subscriber'), 
    2222            'std' => 'None' 
    2323        ), 
    2424        array( 
    25             'name' => 'Hide from Feed?', 
     25            'name' => __('Hide from Feed?', 'restrict-content'), 
    2626            'id' => $prefix . 'FeedHide', 
    2727            'type' => 'checkbox', 
    28             'desc' => 'HIde the excerpt of this post / page from the Feed?', 
     28            'desc' => __('Hide the excerpt of this post / page from the Feed?', 'restrict-content'), 
    2929            'std' => '' 
    3030        ) 
     
    5353    echo '<table class="form-table">'; 
    5454 
    55     echo '<tr><td colspan="3">Use these options to restrict this entire entry, or the [restrict ...] ... [/restrict] short code to restrict partial content.</td></tr>'; 
     55    echo '<tr><td colspan="3">' . __('Use these options to restrict this entire entry, or the [restrict ...] ... [/restrict] short code to restrict partial content.', 'restrict-content') . '</td></tr>'; 
    5656     
    5757    foreach ($rc_meta_box['fields'] as $field) { 
  • restrict-content/tags/2.1/includes/settings.php

    r439773 r601974  
    1313    <div class="wrap"> 
    1414        <div id="upb-wrap" class="upb-help"> 
    15             <h2>Restrict Content Settings</h2> 
     15            <h2><?php _e('Restrict Content Settings', 'restrict-content'); ?></h2> 
    1616            <?php 
    1717            if ( ! isset( $_REQUEST['updated'] ) ) 
     
    1919            ?> 
    2020            <?php if ( false !== $_REQUEST['updated'] ) : ?> 
    21             <div class="updated fade"><p><strong><?php _e( 'Options saved' ); ?></strong></p></div> 
     21            <div class="updated fade"><p><strong><?php _e( 'Options saved', 'restrict-content'); ?> ); ?></strong></p></div> 
    2222            <?php endif; ?> 
    2323            <form method="post" action="options.php"> 
    2424 
    2525                <?php settings_fields( 'rc_settings_group' ); ?> 
    26                  
    27                 <h4>Short Code Messages</h4> 
    28                 <p> 
    29                     <label class="description" for="rc_settings[shortcode_message]"><?php _e( 'When using the [restrict ... ] .... [/restrict] Short Code, this is the message displayed when a user does not have the appropriate permissions.' ); ?></label><br/>     <input id="rc_settings[shortcode_message]" style="width: 300px;" name="rc_settings[shortcode_message]" type="text" value="<?php echo $rc_options['shortcode_message'];?>" /> <small style="color: #666;">The <strong>{userlevel}</strong> tag will be automatically replaced with the permission level needed.</small> 
    30                 </p> 
    31                  
    32                 <h4>User Level Restriction Messages</h4> 
    33                 <p> 
    34                     <label class="description" for="rc_settings[administrator_message]"><?php _e( 'Message displayed when a user does not have permission to view Adminstrator restricted content' ); ?></label><br/> 
    35                     <input id="rc_settings[administrator_message]" style="width: 300px;" name="rc_settings[administrator_message]" type="text" value="<?php echo $rc_options['administrator_message'];?>" /> 
    36                 </p> 
    37                 <p> 
    38                     <label class="description" for="rc_settings[editor_message]"><?php _e( 'Message displayed when a user does not have permission to view Editor restricted content' ); ?></label><br/> 
    39                     <input id="rc_settings[editor_message]" style="width: 300px;" name="rc_settings[editor_message]" type="text" value="<?php echo $rc_options['editor_message'];?>" /> 
    40                 <p> 
    41                     <label class="description" for="rc_settings[author_message]"><?php _e( 'Message displayed when a user does not have permission to view Author restricted content' ); ?></label><br/> 
    42                     <input id="rc_settings[author_message]" style="width: 300px;" name="rc_settings[author_message]" type="text" value="<?php echo $rc_options['author_message'];?>" /> 
    43                 </p> 
    44                 <p> 
    45                     <label class="description" for="rc_settings[contributor_message]"><?php _e( 'Message displayed when a user does not have permission to view Contributor restricted content' ); ?></label><br/> 
    46                     <input id="rc_settings[contributor_message]" style="width: 300px;" name="rc_settings[contributor_message]" type="text" value="<?php echo $rc_options['contributor_message'];?>" /> 
    47                 </p> 
    48                 <p> 
    49                     <label class="description" for="rc_settings[subscriber_message]"><?php _e( 'Message displayed when a user does not have permission to view Subscriber restricted content' ); ?></label><br/> 
    50                     <input id="rc_settings[subscriber_message]" style="width: 300px;" name="rc_settings[subscriber_message]" type="text" value="<?php echo $rc_options['subscriber_message'];?>" /> 
    51                 </p> 
    52  
     26                                 
     27                <table class="form-table"> 
     28                    <tr valign="top"> 
     29                        <th colspan="2"><strong><?php _e('Short Code Messages', 'restrict-content'); ?></strong></th> 
     30                    </tr> 
     31                    <tr valign="top">    
     32                        <th><?php _e('Restricted Message', 'restrict-content'); ?></th> 
     33                        <td> 
     34                            <input id="rc_settings[shortcode_message]" class="large-text" name="rc_settings[shortcode_message]" type="text" value="<?php echo isset( $rc_options['shortcode_message'] ) ? esc_html( $rc_options['shortcode_message'] ) : ''; ?>" /><br/> 
     35                            <label class="description" for="rc_settings[shortcode_message]"><?php _e( 'When using the [restrict ... ] .... [/restrict] Short Code, this is the message displayed when a user does not have the appropriate permissions.', 'restrict-content'); ?></label><br/> 
     36                            <small style="color: #666;"><?php _e('The <strong>{userlevel}</strong> tag will be automatically replaced with the permission level needed.', 'restrict-content'); ?></small> 
     37                        </td> 
     38                    </tr> 
     39                    <tr> 
     40                        <th colspan="2"><strong><?php _e('User Level Restriction Messages', 'restrict-content'); ?></strong></th> 
     41                    </tr> 
     42                    <tr valign="top"> 
     43                        <th><?php _e('Adminstrators', 'restrict-content'); ?></th> 
     44                        <td> 
     45                            <input id="rc_settings[administrator_message]" class="large-text" name="rc_settings[administrator_message]" type="text" value="<?php echo isset( $rc_options['administrator_message'] ) ? esc_html( $rc_options['administrator_message'] ) : '';?>" /><br/> 
     46                            <label class="description" for="rc_settings[administrator_message]"><?php _e( 'Message displayed when a user does not have permission to view Adminstrator restricted content', 'restrict-content' ); ?></label><br/> 
     47                        </td> 
     48                    </tr> 
     49                    <tr valign="top"> 
     50                        <th><?php _e('Editors', 'restrict-content'); ?></th> 
     51                        <td> 
     52                            <input id="rc_settings[editor_message]" class="large-text" name="rc_settings[editor_message]" type="text" value="<?php echo isset( $rc_options['editor_message'] ) ? esc_html( $rc_options['editor_message'] ) : '';?>" /><br/> 
     53                            <label class="description" for="rc_settings[editor_message]"><?php _e( 'Message displayed when a user does not have permission to view Editor restricted content', 'restrict-content' ); ?></label><br/> 
     54                        </td> 
     55                    </tr> 
     56                    <tr valign="top"> 
     57                        <th><?php _e('Authors', 'restrict-content'); ?></th> 
     58                        <td> 
     59                            <input id="rc_settings[author_message]" class="large-text" name="rc_settings[author_message]" type="text" value="<?php echo isset( $rc_options['author_message'] ) ? esc_html( $rc_options['author_message'] ) : '';?>" /><br/> 
     60                            <label class="description" for="rc_settings[author_message]"><?php _e( 'Message displayed when a user does not have permission to view Author restricted content', 'restrict-content' ); ?></label><br/> 
     61                        </td> 
     62                    </tr> 
     63                    <tr valign="top"> 
     64                        <th><?php _e('Contributors', 'restrict-content'); ?></th> 
     65                        <td> 
     66                            <input id="rc_settings[contributor_message]" class="large-text" name="rc_settings[contributor_message]" type="text" value="<?php echo isset( $rc_options['contributor_message'] ) ? esc_html( $rc_options['contributor_message'] ) : '';?>" /><br/> 
     67                            <label class="description" for="rc_settings[contributor_message]"><?php _e( 'Message displayed when a user does not have permission to view Contributor restricted content', 'restrict-content' ); ?></label><br/> 
     68                        </td> 
     69                    </tr> 
     70                    <tr valign="top"> 
     71                        <th><?php _e('Subscribers', 'restrict-content'); ?></th> 
     72                        <td> 
     73                            <input id="rc_settings[subscriber_message]" class="large-text" name="rc_settings[subscriber_message]" type="text" value="<?php echo isset( $rc_options['subscriber_message'] ) ? esc_html( $rc_options['subscriber_message'] ) : '';?>" /><br/> 
     74                            <label class="description" for="rc_settings[subscriber_message]"><?php _e( 'Message displayed when a user does not have permission to view Subscriber restricted content', 'restrict-content' ); ?></label><br/> 
     75                        </td> 
     76                    </tr> 
     77                </table> 
    5378                 
    5479                <!-- save the options --> 
    5580                <p class="submit"> 
    56                     <input type="submit" class="button-primary" value="<?php _e( 'Save Options' ); ?>" /> 
     81                    <input type="submit" class="button-primary" value="<?php _e( 'Save Options', 'restrict-content' ); ?>" /> 
    5782                </p> 
    5883                                 
     
    78103 
    79104    // add settings page 
    80     add_submenu_page('options-general.php', 'Restrict Content Settings', 'Restrict Content','manage_options', 'restrict-content-settings', 'rc_settings_page'); 
     105    add_submenu_page('options-general.php', __('Restrict Content Settings', 'restrict-content'), __('Restrict Content', 'restrict-content'), 'manage_options', 'restrict-content-settings', 'rc_settings_page'); 
    81106} 
    82107add_action('admin_menu', 'rc_settings_menu'); 
  • restrict-content/tags/2.1/readme.txt

    r596607 r601974  
    66Tags: Restrict content, member only, registered, logged in, restricted access, restrict access, limiit access, read-only, read only 
    77Requires at least 2.8 
    8 Tested up to 3.4.1 
    9 Stable tag: 2.0.4 
     8Tested up to 3.4.2 
     9Stable tag: 2.1 
    1010 
    1111Restrict Content to registered users only. This is a simple plugin that will allow you to easily restrict complete posts / pages to logged in users only. Levels of restriction may also be set. For example, you can restrict content to only Administrators, Editors, Authors, and Subscribers. 
     
    6363== Changelog == 
    6464 
     65= 2.1 = 
     66 
     67* Improved settings page to match core WordPress UI 
     68* Fixed problem with unescaped HTML in restricted messages options 
     69* Added complete internationalization on default language files 
     70 
    6571= 2.0.4 = 
    6672 
     
    8389== Upgrade Notice == 
    8490 
     91= 2.1 = 
     92 
     93* Improved settings page to match core WordPress UI 
     94* Fixed problem with unescaped HTML in restricted messages options 
     95* Added complete internationalization on default language files 
     96 
    8597= 2.0.4 = 
    8698 
  • restrict-content/tags/2.1/restrictcontent.php

    r596607 r601974  
    44Plugin URL: http://pippinsplugins.com/restricted-content-plugin-free/ 
    55Description: Restrict Content to registered users only. This is a simple plugin that will allow you to easily restrict complete posts / pages to logged in users only. 
    6 Version: 2.0.4 
     6Version: 2.1 
    77Author: Pippin Williamson 
    88Author URI: http://pippinsplugins.com 
     
    2222    define('RC_PLUGIN_DIR', dirname(__FILE__)); 
    2323 
     24 
     25function rc_textdomain() { 
     26 
     27    // Set filter for plugin's languages directory 
     28    $rc_lang_dir = dirname( plugin_basename( __FILE__ ) ) . '/languages/'; 
     29    $rc_lang_dir = apply_filters( 'rc_languages_directory', $rc_lang_dir ); 
     30 
     31    // Load the translations 
     32    load_plugin_textdomain( 'restrict-content', false, $rc_lang_dir ); 
     33} 
     34add_action('init', 'rc_textdomain'); 
     35 
     36 
     37 
    2438/******************************************* 
    2539* file includes 
  • restrict-content/trunk/includes/display-functions.php

    r439773 r601974  
    1414    if ($rcUserLevel == 'Administrator') 
    1515    { 
    16         echo $rc_options['editor_message']; 
     16        return do_shortcode( $rc_options['editor_message'] ); 
    1717    } 
    1818    else 
     
    3030    if ($rcUserLevel == 'Administrator' || $rcUserLevel == 'Editor') 
    3131    { 
    32         echo $rc_options['author_message']; 
     32        return do_shortcode( $rc_options['author_message'] ); 
    3333    } 
    3434    else 
     
    4747    if ($rcUserLevel == 'Administrator' || $rcUserLevel == 'Editor' || $rcUserLevel == 'Author') 
    4848    { 
    49         echo $rc_options['contributor_message']; 
     49        return do_shortcode( $rc_options['contributor_message'] ); 
    5050    } 
    5151    else 
     
    6464    if ($rcUserLevel == 'Administrator' || $rcUserLevel == 'Editor' || $rcUserLevel == 'Author' || $rcUserLevel == 'Contributor') 
    6565    { 
    66         echo $rc_options['subscriber_message']; 
     66        return do_shortcode( $rc_options['subscriber_message'] ); 
    6767    } 
    6868    else 
     
    8484    { 
    8585        $userLevelMessage = strtolower($rcUserLevel); 
    86         echo $rc_options[$userLevelMessage . '_message']; 
     86        return do_shortcode( $rc_options[$userLevelMessage . '_message'] ); 
    8787    }  
    8888    else 
  • restrict-content/trunk/includes/metabox.php

    r439773 r601974  
    1515    'fields' => array( 
    1616        array( 
    17             'name' => 'User Level', 
     17            'name' => __('User Level', 'restrict-content'), 
    1818            'id' => $prefix . 'UserLevel', 
    1919            'type' => 'select', 
    20             'desc' => 'Choose the user level that can see this page / post', 
     20            'desc' => __('Choose the user level that can see this page / post', 'restrict-content'), 
    2121            'options' => array('None', 'Administrator', 'Editor', 'Author', 'Contributor', 'Subscriber'), 
    2222            'std' => 'None' 
    2323        ), 
    2424        array( 
    25             'name' => 'Hide from Feed?', 
     25            'name' => __('Hide from Feed?', 'restrict-content'), 
    2626            'id' => $prefix . 'FeedHide', 
    2727            'type' => 'checkbox', 
    28             'desc' => 'HIde the excerpt of this post / page from the Feed?', 
     28            'desc' => __('Hide the excerpt of this post / page from the Feed?', 'restrict-content'), 
    2929            'std' => '' 
    3030        ) 
     
    5353    echo '<table class="form-table">'; 
    5454 
    55     echo '<tr><td colspan="3">Use these options to restrict this entire entry, or the [restrict ...] ... [/restrict] short code to restrict partial content.</td></tr>'; 
     55    echo '<tr><td colspan="3">' . __('Use these options to restrict this entire entry, or the [restrict ...] ... [/restrict] short code to restrict partial content.', 'restrict-content') . '</td></tr>'; 
    5656     
    5757    foreach ($rc_meta_box['fields'] as $field) { 
  • restrict-content/trunk/includes/settings.php

    r439773 r601974  
    1313    <div class="wrap"> 
    1414        <div id="upb-wrap" class="upb-help"> 
    15             <h2>Restrict Content Settings</h2> 
     15            <h2><?php _e('Restrict Content Settings', 'restrict-content'); ?></h2> 
    1616            <?php 
    1717            if ( ! isset( $_REQUEST['updated'] ) ) 
     
    1919            ?> 
    2020            <?php if ( false !== $_REQUEST['updated'] ) : ?> 
    21             <div class="updated fade"><p><strong><?php _e( 'Options saved' ); ?></strong></p></div> 
     21            <div class="updated fade"><p><strong><?php _e( 'Options saved', 'restrict-content'); ?> ); ?></strong></p></div> 
    2222            <?php endif; ?> 
    2323            <form method="post" action="options.php"> 
    2424 
    2525                <?php settings_fields( 'rc_settings_group' ); ?> 
    26                  
    27                 <h4>Short Code Messages</h4> 
    28                 <p> 
    29                     <label class="description" for="rc_settings[shortcode_message]"><?php _e( 'When using the [restrict ... ] .... [/restrict] Short Code, this is the message displayed when a user does not have the appropriate permissions.' ); ?></label><br/>     <input id="rc_settings[shortcode_message]" style="width: 300px;" name="rc_settings[shortcode_message]" type="text" value="<?php echo $rc_options['shortcode_message'];?>" /> <small style="color: #666;">The <strong>{userlevel}</strong> tag will be automatically replaced with the permission level needed.</small> 
    30                 </p> 
    31                  
    32                 <h4>User Level Restriction Messages</h4> 
    33                 <p> 
    34                     <label class="description" for="rc_settings[administrator_message]"><?php _e( 'Message displayed when a user does not have permission to view Adminstrator restricted content' ); ?></label><br/> 
    35                     <input id="rc_settings[administrator_message]" style="width: 300px;" name="rc_settings[administrator_message]" type="text" value="<?php echo $rc_options['administrator_message'];?>" /> 
    36                 </p> 
    37                 <p> 
    38                     <label class="description" for="rc_settings[editor_message]"><?php _e( 'Message displayed when a user does not have permission to view Editor restricted content' ); ?></label><br/> 
    39                     <input id="rc_settings[editor_message]" style="width: 300px;" name="rc_settings[editor_message]" type="text" value="<?php echo $rc_options['editor_message'];?>" /> 
    40                 <p> 
    41                     <label class="description" for="rc_settings[author_message]"><?php _e( 'Message displayed when a user does not have permission to view Author restricted content' ); ?></label><br/> 
    42                     <input id="rc_settings[author_message]" style="width: 300px;" name="rc_settings[author_message]" type="text" value="<?php echo $rc_options['author_message'];?>" /> 
    43                 </p> 
    44                 <p> 
    45                     <label class="description" for="rc_settings[contributor_message]"><?php _e( 'Message displayed when a user does not have permission to view Contributor restricted content' ); ?></label><br/> 
    46                     <input id="rc_settings[contributor_message]" style="width: 300px;" name="rc_settings[contributor_message]" type="text" value="<?php echo $rc_options['contributor_message'];?>" /> 
    47                 </p> 
    48                 <p> 
    49                     <label class="description" for="rc_settings[subscriber_message]"><?php _e( 'Message displayed when a user does not have permission to view Subscriber restricted content' ); ?></label><br/> 
    50                     <input id="rc_settings[subscriber_message]" style="width: 300px;" name="rc_settings[subscriber_message]" type="text" value="<?php echo $rc_options['subscriber_message'];?>" /> 
    51                 </p> 
    52  
     26                                 
     27                <table class="form-table"> 
     28                    <tr valign="top"> 
     29                        <th colspan="2"><strong><?php _e('Short Code Messages', 'restrict-content'); ?></strong></th> 
     30                    </tr> 
     31                    <tr valign="top">    
     32                        <th><?php _e('Restricted Message', 'restrict-content'); ?></th> 
     33                        <td> 
     34                            <input id="rc_settings[shortcode_message]" class="large-text" name="rc_settings[shortcode_message]" type="text" value="<?php echo isset( $rc_options['shortcode_message'] ) ? esc_html( $rc_options['shortcode_message'] ) : ''; ?>" /><br/> 
     35                            <label class="description" for="rc_settings[shortcode_message]"><?php _e( 'When using the [restrict ... ] .... [/restrict] Short Code, this is the message displayed when a user does not have the appropriate permissions.', 'restrict-content'); ?></label><br/> 
     36                            <small style="color: #666;"><?php _e('The <strong>{userlevel}</strong> tag will be automatically replaced with the permission level needed.', 'restrict-content'); ?></small> 
     37                        </td> 
     38                    </tr> 
     39                    <tr> 
     40                        <th colspan="2"><strong><?php _e('User Level Restriction Messages', 'restrict-content'); ?></strong></th> 
     41                    </tr> 
     42                    <tr valign="top"> 
     43                        <th><?php _e('Adminstrators', 'restrict-content'); ?></th> 
     44                        <td> 
     45                            <input id="rc_settings[administrator_message]" class="large-text" name="rc_settings[administrator_message]" type="text" value="<?php echo isset( $rc_options['administrator_message'] ) ? esc_html( $rc_options['administrator_message'] ) : '';?>" /><br/> 
     46                            <label class="description" for="rc_settings[administrator_message]"><?php _e( 'Message displayed when a user does not have permission to view Adminstrator restricted content', 'restrict-content' ); ?></label><br/> 
     47                        </td> 
     48                    </tr> 
     49                    <tr valign="top"> 
     50                        <th><?php _e('Editors', 'restrict-content'); ?></th> 
     51                        <td> 
     52                            <input id="rc_settings[editor_message]" class="large-text" name="rc_settings[editor_message]" type="text" value="<?php echo isset( $rc_options['editor_message'] ) ? esc_html( $rc_options['editor_message'] ) : '';?>" /><br/> 
     53                            <label class="description" for="rc_settings[editor_message]"><?php _e( 'Message displayed when a user does not have permission to view Editor restricted content', 'restrict-content' ); ?></label><br/> 
     54                        </td> 
     55                    </tr> 
     56                    <tr valign="top"> 
     57                        <th><?php _e('Authors', 'restrict-content'); ?></th> 
     58                        <td> 
     59                            <input id="rc_settings[author_message]" class="large-text" name="rc_settings[author_message]" type="text" value="<?php echo isset( $rc_options['author_message'] ) ? esc_html( $rc_options['author_message'] ) : '';?>" /><br/> 
     60                            <label class="description" for="rc_settings[author_message]"><?php _e( 'Message displayed when a user does not have permission to view Author restricted content', 'restrict-content' ); ?></label><br/> 
     61                        </td> 
     62                    </tr> 
     63                    <tr valign="top"> 
     64                        <th><?php _e('Contributors', 'restrict-content'); ?></th> 
     65                        <td> 
     66                            <input id="rc_settings[contributor_message]" class="large-text" name="rc_settings[contributor_message]" type="text" value="<?php echo isset( $rc_options['contributor_message'] ) ? esc_html( $rc_options['contributor_message'] ) : '';?>" /><br/> 
     67                            <label class="description" for="rc_settings[contributor_message]"><?php _e( 'Message displayed when a user does not have permission to view Contributor restricted content', 'restrict-content' ); ?></label><br/> 
     68                        </td> 
     69                    </tr> 
     70                    <tr valign="top"> 
     71                        <th><?php _e('Subscribers', 'restrict-content'); ?></th> 
     72                        <td> 
     73                            <input id="rc_settings[subscriber_message]" class="large-text" name="rc_settings[subscriber_message]" type="text" value="<?php echo isset( $rc_options['subscriber_message'] ) ? esc_html( $rc_options['subscriber_message'] ) : '';?>" /><br/> 
     74                            <label class="description" for="rc_settings[subscriber_message]"><?php _e( 'Message displayed when a user does not have permission to view Subscriber restricted content', 'restrict-content' ); ?></label><br/> 
     75                        </td> 
     76                    </tr> 
     77                </table> 
    5378                 
    5479                <!-- save the options --> 
    5580                <p class="submit"> 
    56                     <input type="submit" class="button-primary" value="<?php _e( 'Save Options' ); ?>" /> 
     81                    <input type="submit" class="button-primary" value="<?php _e( 'Save Options', 'restrict-content' ); ?>" /> 
    5782                </p> 
    5883                                 
     
    78103 
    79104    // add settings page 
    80     add_submenu_page('options-general.php', 'Restrict Content Settings', 'Restrict Content','manage_options', 'restrict-content-settings', 'rc_settings_page'); 
     105    add_submenu_page('options-general.php', __('Restrict Content Settings', 'restrict-content'), __('Restrict Content', 'restrict-content'), 'manage_options', 'restrict-content-settings', 'rc_settings_page'); 
    81106} 
    82107add_action('admin_menu', 'rc_settings_menu'); 
  • restrict-content/trunk/readme.txt

    r596607 r601974  
    66Tags: Restrict content, member only, registered, logged in, restricted access, restrict access, limiit access, read-only, read only 
    77Requires at least 2.8 
    8 Tested up to 3.4.1 
    9 Stable tag: 2.0.4 
     8Tested up to 3.4.2 
     9Stable tag: 2.1 
    1010 
    1111Restrict Content to registered users only. This is a simple plugin that will allow you to easily restrict complete posts / pages to logged in users only. Levels of restriction may also be set. For example, you can restrict content to only Administrators, Editors, Authors, and Subscribers. 
     
    6363== Changelog == 
    6464 
     65= 2.1 = 
     66 
     67* Improved settings page to match core WordPress UI 
     68* Fixed problem with unescaped HTML in restricted messages options 
     69* Added complete internationalization on default language files 
     70 
    6571= 2.0.4 = 
    6672 
     
    8389== Upgrade Notice == 
    8490 
     91= 2.1 = 
     92 
     93* Improved settings page to match core WordPress UI 
     94* Fixed problem with unescaped HTML in restricted messages options 
     95* Added complete internationalization on default language files 
     96 
    8597= 2.0.4 = 
    8698 
  • restrict-content/trunk/restrictcontent.php

    r596607 r601974  
    44Plugin URL: http://pippinsplugins.com/restricted-content-plugin-free/ 
    55Description: Restrict Content to registered users only. This is a simple plugin that will allow you to easily restrict complete posts / pages to logged in users only. 
    6 Version: 2.0.4 
     6Version: 2.1 
    77Author: Pippin Williamson 
    88Author URI: http://pippinsplugins.com 
     
    2222    define('RC_PLUGIN_DIR', dirname(__FILE__)); 
    2323 
     24 
     25function rc_textdomain() { 
     26 
     27    // Set filter for plugin's languages directory 
     28    $rc_lang_dir = dirname( plugin_basename( __FILE__ ) ) . '/languages/'; 
     29    $rc_lang_dir = apply_filters( 'rc_languages_directory', $rc_lang_dir ); 
     30 
     31    // Load the translations 
     32    load_plugin_textdomain( 'restrict-content', false, $rc_lang_dir ); 
     33} 
     34add_action('init', 'rc_textdomain'); 
     35 
     36 
     37 
    2438/******************************************* 
    2539* file includes 
Note: See TracChangeset for help on using the changeset viewer.