Changeset 1370742
- Timestamp:
- 03/14/2016 02:32:30 PM (10 years ago)
- Location:
- netbiscuits-device-detection
- Files:
-
- 3 edited
- 4 copied
-
tags/1.4 (copied) (copied from netbiscuits-device-detection/trunk)
-
tags/1.4/admin.php (copied) (copied from netbiscuits-device-detection/trunk/admin.php) (4 diffs)
-
tags/1.4/nb-dd.php (copied) (copied from netbiscuits-device-detection/trunk/nb-dd.php) (1 diff)
-
tags/1.4/readme.txt (copied) (copied from netbiscuits-device-detection/trunk/readme.txt) (2 diffs)
-
trunk/admin.php (modified) (4 diffs)
-
trunk/nb-dd.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
netbiscuits-device-detection/tags/1.4/admin.php
r1370633 r1370742 15 15 16 16 17 add_option( 'nb_dd_account', '', '', 'yes' ); 17 18 add_option( 'nb_dd_token', '', '', 'yes' ); 18 add_option( 'nb_dd_account', '', '', 'yes' );19 19 add_option( 'nb_dd_profile', '', '', 'yes' ); 20 20 add_option( 'nb_dd_debug', 0, '', 'yes' ); … … 53 53 } 54 54 55 $opt_label1 = 'Token';56 $opt_name1 = 'nb_dd_token';57 $data_field_name1 = 'nb_dd_token';58 59 $opt_val1 = get_option( $opt_name1 );60 61 if( isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name ] == 'Y' ) {62 $opt_val1 = $_POST[ $data_field_name1 ];63 update_option( $opt_name1, $opt_val1 );64 /*?> <div class="updated"><p><strong><?php _e($opt_label1 . ' saved!', 'nb_device_detection' ) ?></strong></p></div><?php*/65 $updated = true;66 }67 68 55 $opt_label2 = 'Account Name'; 69 56 $opt_name2 = 'nb_dd_account'; … … 77 64 update_option( $opt_name2, $opt_val2 ); 78 65 /*?> <div class="updated"><p><strong><?php _e($opt_label2 . ' saved!', 'nb_device_detection' ) ?></strong></p></div><?php*/ 66 $updated = true; 67 } 68 69 $opt_label1 = 'Token'; 70 $opt_name1 = 'nb_dd_token'; 71 $data_field_name1 = 'nb_dd_token'; 72 73 $opt_val1 = get_option( $opt_name1 ); 74 75 if( isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name ] == 'Y' ) { 76 $opt_val1 = $_POST[ $data_field_name1 ]; 77 update_option( $opt_name1, $opt_val1 ); 78 /*?> <div class="updated"><p><strong><?php _e($opt_label1 . ' saved!', 'nb_device_detection' ) ?></strong></p></div><?php*/ 79 79 $updated = true; 80 80 } … … 196 196 <table class="form-table"> 197 197 <tbody> 198 <?php inputfieldrow(array ( 199 "label" => __($opt_label2, 'nb_device_detection' ), 200 "name" => $data_field_name2, 201 "value" => $opt_val2 202 )); 203 ?> 198 204 <?php inputfieldrow(array ( 199 205 "label" => __($opt_label1, 'nb_device_detection' ), 200 206 "name" => $data_field_name1, 201 207 "value" => $opt_val1 202 ));203 ?>204 <?php inputfieldrow(array (205 "label" => __($opt_label2, 'nb_device_detection' ),206 "name" => $data_field_name2,207 "value" => $opt_val2208 208 )); 209 209 ?> -
netbiscuits-device-detection/tags/1.4/nb-dd.php
r1370633 r1370742 3 3 Plugin Name: Netbiscuits Device Detection Plugin 4 4 Description: Take advantage of the world's largest device database, within your server code, by adding Netbiscuits Device Detection to your site. Make intelligent, device-specific adaptations to your pages before sending them to the user's device; send only what they need, and nothing they don't. 5 Version: 1. 36 Author: Netbiscuits ,GmbH5 Version: 1.4 6 Author: Netbiscuits GmbH 7 7 Text Domain: nb_device_detection 8 8 */ -
netbiscuits-device-detection/tags/1.4/readme.txt
r1370633 r1370742 6 6 Requires at least: 3.1 7 7 Tested up to: 4.4.2 8 Stable tag: 1. 38 Stable tag: 1.4 9 9 Text Domain: nb_device_detection 10 10 License: GPLv2 or later … … 51 51 == Changelog == 52 52 53 = 1.4 54 Cleaning code, adding deep-link to WP config. 55 53 56 = 1.0 54 57 Initial launch. -
netbiscuits-device-detection/trunk/admin.php
r1370633 r1370742 15 15 16 16 17 add_option( 'nb_dd_account', '', '', 'yes' ); 17 18 add_option( 'nb_dd_token', '', '', 'yes' ); 18 add_option( 'nb_dd_account', '', '', 'yes' );19 19 add_option( 'nb_dd_profile', '', '', 'yes' ); 20 20 add_option( 'nb_dd_debug', 0, '', 'yes' ); … … 53 53 } 54 54 55 $opt_label1 = 'Token';56 $opt_name1 = 'nb_dd_token';57 $data_field_name1 = 'nb_dd_token';58 59 $opt_val1 = get_option( $opt_name1 );60 61 if( isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name ] == 'Y' ) {62 $opt_val1 = $_POST[ $data_field_name1 ];63 update_option( $opt_name1, $opt_val1 );64 /*?> <div class="updated"><p><strong><?php _e($opt_label1 . ' saved!', 'nb_device_detection' ) ?></strong></p></div><?php*/65 $updated = true;66 }67 68 55 $opt_label2 = 'Account Name'; 69 56 $opt_name2 = 'nb_dd_account'; … … 77 64 update_option( $opt_name2, $opt_val2 ); 78 65 /*?> <div class="updated"><p><strong><?php _e($opt_label2 . ' saved!', 'nb_device_detection' ) ?></strong></p></div><?php*/ 66 $updated = true; 67 } 68 69 $opt_label1 = 'Token'; 70 $opt_name1 = 'nb_dd_token'; 71 $data_field_name1 = 'nb_dd_token'; 72 73 $opt_val1 = get_option( $opt_name1 ); 74 75 if( isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name ] == 'Y' ) { 76 $opt_val1 = $_POST[ $data_field_name1 ]; 77 update_option( $opt_name1, $opt_val1 ); 78 /*?> <div class="updated"><p><strong><?php _e($opt_label1 . ' saved!', 'nb_device_detection' ) ?></strong></p></div><?php*/ 79 79 $updated = true; 80 80 } … … 196 196 <table class="form-table"> 197 197 <tbody> 198 <?php inputfieldrow(array ( 199 "label" => __($opt_label2, 'nb_device_detection' ), 200 "name" => $data_field_name2, 201 "value" => $opt_val2 202 )); 203 ?> 198 204 <?php inputfieldrow(array ( 199 205 "label" => __($opt_label1, 'nb_device_detection' ), 200 206 "name" => $data_field_name1, 201 207 "value" => $opt_val1 202 ));203 ?>204 <?php inputfieldrow(array (205 "label" => __($opt_label2, 'nb_device_detection' ),206 "name" => $data_field_name2,207 "value" => $opt_val2208 208 )); 209 209 ?> -
netbiscuits-device-detection/trunk/nb-dd.php
r1370633 r1370742 3 3 Plugin Name: Netbiscuits Device Detection Plugin 4 4 Description: Take advantage of the world's largest device database, within your server code, by adding Netbiscuits Device Detection to your site. Make intelligent, device-specific adaptations to your pages before sending them to the user's device; send only what they need, and nothing they don't. 5 Version: 1. 36 Author: Netbiscuits ,GmbH5 Version: 1.4 6 Author: Netbiscuits GmbH 7 7 Text Domain: nb_device_detection 8 8 */ -
netbiscuits-device-detection/trunk/readme.txt
r1370633 r1370742 6 6 Requires at least: 3.1 7 7 Tested up to: 4.4.2 8 Stable tag: 1. 38 Stable tag: 1.4 9 9 Text Domain: nb_device_detection 10 10 License: GPLv2 or later … … 51 51 == Changelog == 52 52 53 = 1.4 54 Cleaning code, adding deep-link to WP config. 55 53 56 = 1.0 54 57 Initial launch.
Note: See TracChangeset
for help on using the changeset viewer.