Plugin Directory

Changeset 1370742


Ignore:
Timestamp:
03/14/2016 02:32:30 PM (10 years ago)
Author:
Netbiscuits
Message:

adding deep-links

Location:
netbiscuits-device-detection
Files:
3 edited
4 copied

Legend:

Unmodified
Added
Removed
  • netbiscuits-device-detection/tags/1.4/admin.php

    r1370633 r1370742  
    1515
    1616
     17add_option( 'nb_dd_account', '', '', 'yes' );
    1718add_option( 'nb_dd_token', '', '', 'yes' );
    18 add_option( 'nb_dd_account', '', '', 'yes' );
    1919add_option( 'nb_dd_profile', '', '', 'yes' );
    2020add_option( 'nb_dd_debug', 0, '', 'yes' );
     
    5353    }
    5454
    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 
    6855    $opt_label2 = 'Account Name';
    6956    $opt_name2 = 'nb_dd_account';
     
    7764        update_option( $opt_name2, $opt_val2 );
    7865        /*?> <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*/
    7979        $updated = true;
    8080    }
     
    196196                    <table class="form-table">
    197197                        <tbody>
     198                        <?php inputfieldrow(array (
     199                                "label" => __($opt_label2, 'nb_device_detection' ),
     200                                "name"  => $data_field_name2,
     201                                "value" => $opt_val2
     202                            ));
     203                        ?>
    198204                        <?php inputfieldrow(array (
    199205                                "label" => __($opt_label1, 'nb_device_detection' ),
    200206                                "name"  => $data_field_name1,
    201207                                "value" => $opt_val1
    202                             ));
    203                         ?>
    204                         <?php inputfieldrow(array (
    205                                 "label" => __($opt_label2, 'nb_device_detection' ),
    206                                 "name"  => $data_field_name2,
    207                                 "value" => $opt_val2
    208208                            ));
    209209                        ?>
  • netbiscuits-device-detection/tags/1.4/nb-dd.php

    r1370633 r1370742  
    33   Plugin Name: Netbiscuits Device Detection Plugin
    44   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.3
    6    Author: Netbiscuits, GmbH
     5   Version: 1.4
     6   Author: Netbiscuits GmbH
    77   Text Domain: nb_device_detection
    88*/
  • netbiscuits-device-detection/tags/1.4/readme.txt

    r1370633 r1370742  
    66Requires at least: 3.1
    77Tested up to: 4.4.2
    8 Stable tag: 1.3
     8Stable tag: 1.4
    99Text Domain: nb_device_detection
    1010License: GPLv2 or later
     
    5151== Changelog ==
    5252
     53= 1.4
     54Cleaning code, adding deep-link to WP config.
     55
    5356= 1.0
    5457Initial launch.
  • netbiscuits-device-detection/trunk/admin.php

    r1370633 r1370742  
    1515
    1616
     17add_option( 'nb_dd_account', '', '', 'yes' );
    1718add_option( 'nb_dd_token', '', '', 'yes' );
    18 add_option( 'nb_dd_account', '', '', 'yes' );
    1919add_option( 'nb_dd_profile', '', '', 'yes' );
    2020add_option( 'nb_dd_debug', 0, '', 'yes' );
     
    5353    }
    5454
    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 
    6855    $opt_label2 = 'Account Name';
    6956    $opt_name2 = 'nb_dd_account';
     
    7764        update_option( $opt_name2, $opt_val2 );
    7865        /*?> <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*/
    7979        $updated = true;
    8080    }
     
    196196                    <table class="form-table">
    197197                        <tbody>
     198                        <?php inputfieldrow(array (
     199                                "label" => __($opt_label2, 'nb_device_detection' ),
     200                                "name"  => $data_field_name2,
     201                                "value" => $opt_val2
     202                            ));
     203                        ?>
    198204                        <?php inputfieldrow(array (
    199205                                "label" => __($opt_label1, 'nb_device_detection' ),
    200206                                "name"  => $data_field_name1,
    201207                                "value" => $opt_val1
    202                             ));
    203                         ?>
    204                         <?php inputfieldrow(array (
    205                                 "label" => __($opt_label2, 'nb_device_detection' ),
    206                                 "name"  => $data_field_name2,
    207                                 "value" => $opt_val2
    208208                            ));
    209209                        ?>
  • netbiscuits-device-detection/trunk/nb-dd.php

    r1370633 r1370742  
    33   Plugin Name: Netbiscuits Device Detection Plugin
    44   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.3
    6    Author: Netbiscuits, GmbH
     5   Version: 1.4
     6   Author: Netbiscuits GmbH
    77   Text Domain: nb_device_detection
    88*/
  • netbiscuits-device-detection/trunk/readme.txt

    r1370633 r1370742  
    66Requires at least: 3.1
    77Tested up to: 4.4.2
    8 Stable tag: 1.3
     8Stable tag: 1.4
    99Text Domain: nb_device_detection
    1010License: GPLv2 or later
     
    5151== Changelog ==
    5252
     53= 1.4
     54Cleaning code, adding deep-link to WP config.
     55
    5356= 1.0
    5457Initial launch.
Note: See TracChangeset for help on using the changeset viewer.