Changeset 391775
- Timestamp:
- 06/01/2011 05:01:27 PM (15 years ago)
- Location:
- wordpress-connect/branches/2.0.1
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
src/admin/WordpressConnectAdminPanelLikeButton.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wordpress-connect/branches/2.0.1/readme.txt
r391013 r391775 203 203 asynchronously so that other elements/modules on pages are not blocked 204 204 while the social plugins are loading 205 * Spelling fixes (Homapage -> Homepage, etc.) 205 206 = 2.0 = 206 207 * API for plugin and theme developers -
wordpress-connect/branches/2.0.1/src/admin/WordpressConnectAdminPanelLikeButton.php
r390321 r391775 37 37 if ( !current_user_can( 'manage_options' ) ) { 38 38 wp_die( __('You do not have sufficient permissions to access this page.') ); 39 } 40 39 } 40 41 41 register_setting( WPC_OPTIONS_LIKE_BUTTON, WPC_OPTIONS_LIKE_BUTTON, array( &$this, 'admin_like_button_settings_validate' ) ); 42 42 … … 64 64 // like button display settings 65 65 add_settings_field( WPC_OPTIONS_DISPLAY_EVERYWHERE, __( 'Everywhere', WPC_TEXT_DOMAIN ), array( &$this, 'admin_setting_like_button_enable_everywhere' ), WPC_SETTINGS_LIKE_BUTTON_PAGE, WPC_SETTINGS_SECTION_LIKE_BUTTON_DISPLAY ); 66 add_settings_field( WPC_OPTIONS_DISPLAY_HOMEPAGE, __( 'Hom apage', WPC_TEXT_DOMAIN ), array( &$this, 'admin_setting_like_button_enable_homepage' ), WPC_SETTINGS_LIKE_BUTTON_PAGE, WPC_SETTINGS_SECTION_LIKE_BUTTON_DISPLAY );66 add_settings_field( WPC_OPTIONS_DISPLAY_HOMEPAGE, __( 'Homepage', WPC_TEXT_DOMAIN ), array( &$this, 'admin_setting_like_button_enable_homepage' ), WPC_SETTINGS_LIKE_BUTTON_PAGE, WPC_SETTINGS_SECTION_LIKE_BUTTON_DISPLAY ); 67 67 add_settings_field( WPC_OPTIONS_DISPLAY_CATEGORIES, __( 'Categories', WPC_TEXT_DOMAIN ), array( &$this, 'admin_setting_like_button_enable_categories' ), WPC_SETTINGS_LIKE_BUTTON_PAGE, WPC_SETTINGS_SECTION_LIKE_BUTTON_DISPLAY ); 68 68 add_settings_field( WPC_OPTIONS_DISPLAY_TAGS, __( 'Tags', WPC_TEXT_DOMAIN ), array( &$this, 'admin_setting_like_button_enable_tags' ), WPC_SETTINGS_LIKE_BUTTON_PAGE, WPC_SETTINGS_SECTION_LIKE_BUTTON_DISPLAY ); … … 207 207 */ 208 208 function admin_setting_like_button_layout(){ 209 209 210 210 $options = get_option( WPC_OPTIONS_LIKE_BUTTON ); 211 211 $default_value = $options[ WPC_OPTIONS_LIKE_BUTTON_LAYOUT ];
Note: See TracChangeset
for help on using the changeset viewer.