Plugin Directory

Changeset 736329

Timestamp:
07/04/2013 07:34:43 PM (11 years ago)
Author:
jankarres
Message:

tagging version 1.5

Location:
wp-stacker
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-stacker/tags/1.5/js/main.js

    r690828 r736329  
    4040            setTimeout(function() {
    4141                $this.parents('li').remove();
     42
     43
    4244            }, 300);
    4345        }
  • wp-stacker/tags/1.5/readme.txt

    r720792 r736329  
    33Tags: wp stacker, wordpress, pocket, post, automaticly, wp, links, linklist
    44Requires at least: 3.4
    5 Tested up to: 3.5.1
    6 Stable tag: 1.4.3
     5Tested up to: 3.5.
     6Stable tag: 1.
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    99
    10 WP Stacker is a Wordpress plugin, with which you can post interesting links from Pocket (Pocket.com) automatically on your blog - with autogenerated...
     10WP Stacker is a Wordpress plugin, with which you can post interesting links from Pocket (Pocket.com) automatically on your blog - with autogenerated...
    1111
    1212== Description ==
    1313
    14 **WP Stacker** is a Wordpress plugin, with which you can post interesting links from Pocket (Pocket.com) automatically on your blog - with autogenerated titles, discriptions and tags. You can customize the layout of the post completely. So you can save a lot of time, but show all your readers all your interesting links.
     14**WP Stacker** is a Wordpress plugin, with which you can post interesting links from Pocket (Pocket.com) automatically on your blog - with autogenerated titles, discriptions and tags. You can customize the layout of the post completely. So you can save a lot of time, but show all your readers all your interesting links.
    1515
    1616== Installation ==
     
    3434Yes, you can customize it completely! The first way of customizing is to change the settings in 'Options', 'WP Stacker'. Later, when you generate a post, by clicking on 'WP Stacker' in the main menu, you can change the order, title, description, tags and the url of the links. The last option to customize it, is to edit the articel with the normal WordPress articel editor.
    3535
    36 = If I have a question, which is not answered here, does WP-Pocker have a support? =
     36= If I have a question, which is not answered here, does WP-cker have a support? =
    3737
    3838Yes, you can ask me questions by sending an E-Mail via the form on http://wp-stacker.com/. I will answer as soon as possible!
     
    5050
    5151== Changelog ==
     52
     53
     54
     55
     56
     57
     58
    5259
    5360= 1.4.3 =
  • wp-stacker/tags/1.5/wp-stacker.php

    r720804 r736329  
    66    Author: Jan Karres
    77    Author URI: http://jankarres.de/
    8     Version: 1.4.3
     8    Version: 1.
    99*/
    1010
     
    2424           
    2525            // Set plugin version
    26             $this->version = '1.4.3';
     26            $this->version = '1.';
    2727       
    2828            // Check WP version
     
    8585
    8686        function activate() {
    87             // Remove the old WP Pocket settings and rename the link list table
    88             $sql = 'RENAME TABLE ' . $this->wpdb->prefix . 'wppocket_posted_links TO wp_wpstacker_posted_links;';
    89             @$this->wpdb->query($sql);
    90            
    91             $sql = '
    92             DELETE FROM
    93                 ' . $this->wpdb->prefix . 'options
    94             WHERE
    95                 option_name = "wppocket_version" OR
    96                 option_name = "wppocket_links_to_use" OR
    97                 option_name = "wppocket_faved" OR
    98                 option_name = "wppocket_order" OR
    99                 option_name = "wppocket_mark_as_readed" OR
    100                 option_name = "wppocket_clean_url" OR
    101                 option_name = "wppocket_meta_keyword_as_tags" OR
    102                 option_name = "wppocket_reference_wpstacker" OR
    103                 option_name = "wppocket_ping_status" OR
    104                 option_name = "wppocket_comment_status" OR
    105                 option_name = "wppocket_post_status" OR
    106                 option_name = "wppocket_post_category" OR
    107                 option_name = "wppocket_pocket_username" OR
    108                 option_name = "wppocket_pocket_access_key" OR
    109                 option_name = "wppocket_title" OR
    110                 option_name = "wppocket_introduction_text" OR
    111                 option_name = "wppocket_statements_text" OR
    112                 option_name = "wppocket_entry_building" OR
    113                 option_name = "wppocket_language" OR
    114                 option_name = "wppocket_statistics" OR
    115                 option_name = "wppocket_key_a" OR
    116                 option_name = "wppocket_key_b" OR
    117                 option_name = "wppocket_pocket_password" OR
    118                 option_name = "wppocket_pocket_api_key" OR
    119                 option_name = "wppocket_pocket_api_key_custom" OR
    120                 option_name = "wppocket_pocket_consumer_key_custom" OR
    121                 option_name = "wppocket_pocket_consumer_key"
    122             ';
    123             @$this->wpdb->query($sql);
    124            
    125             // Create database table for links
    126             $sql = '
    127             CREATE TABLE IF NOT EXISTS `' . $this->wpdb->prefix . 'wpstacker_posted_links` (
    128                 `id` int(255) NOT NULL AUTO_INCREMENT,
    129                 `url` varchar(1000) NOT NULL,
    130                 `timestamp` int(255) NOT NULL,
    131                 PRIMARY KEY (`id`)
    132             ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    133             ';
    134             $this->wpdb->query($sql);
    135            
    136             // Create settings in database
    137             $sql = '
    138             INSERT IGNORE INTO `' . $this->wpdb->prefix . 'options` (
    139                 `option_name` ,
    140                 `option_value` ,
    141                 `autoload`
    142             ) VALUES
    143                 ("wpstacker_version", "' . $this->version . '", "yes"),
    144                 ("wpstacker_links_to_use", "0", "yes"),
    145                 ("wpstacker_faved", "0", "yes"),
    146                 ("wpstacker_order", "0", "yes"),
    147                 ("wpstacker_mark_as_readed", "0", "yes"),
    148                 ("wpstacker_clean_url", "1", "yes"),
    149                 ("wpstacker_meta_keyword_as_tags", "0", "yes"),
    150                 ("wpstacker_reference_wpstacker", "0", "yes"),
    151                 ("wpstacker_ping_status", "open", "yes"),
    152                 ("wpstacker_comment_status", "open", "yes"),
    153                 ("wpstacker_post_status", "draft", "yes"),
    154                 ("wpstacker_post_category", "1", "yes"),
    155                 ("wpstacker_pocket_username", "", "yes"),
    156                 ("wpstacker_pocket_access_key", "", "yes"),
    157                 ("wpstacker_title", "WP Stacker link collection: %%month%% with %%count%% links", "yes"),
    158                 ("wpstacker_introduction_text", "", "yes"),
    159                 ("wpstacker_statements_text", "", "yes"),
    160                 ("wpstacker_entry_building", "<strong>%%title%%</strong>[[: %%description%%]][[ - by %%author%%]][[ - Tags: %%tags%%]] - %%url%%", "yes"),
    161                 ("wpstacker_language", "en", "yes"),
    162                 ("wpstacker_statistics", "1", "yes"),
    163                 ("wpstacker_key_a", "' . $this->keygen(128) . '", "yes"),
    164                 ("wpstacker_key_b", "' . $this->keygen(128) . '", "yes")
    165             ';
    166             $this->wpdb->query($sql);
    167            
    168             // Check if version under 1.0.2, if true, replace Pocket username, password and api-key
    169             if (!version_compare(get_option('wpstacker_version'), '1.0.2', '>=')) {
    170                 // Update Pocket username, password and api-key
    171                 update_option('wpstacker_pocket_username', $this->xcrypt(0, $this->xcrypt(1, get_option('wpstacker_pocket_username'), true)));
    172                 update_option('wpstacker_pocket_password', $this->xcrypt(0, $this->xcrypt(1, get_option('wpstacker_pocket_password'), true)));
    173                 update_option('wpstacker_pocket_api_key', $this->xcrypt(0, $this->xcrypt(1, get_option('wpstacker_pocket_api_key'), true)));
    174             }
    175            
    176             // Check if version under 1.2, if true, remove api-key for consumer-key, remove password, api custom key and reset username
    177             if (!version_compare(get_option('wpstacker_version'), '1.2', '>=')) {
    178                 // Remove api key
    179                 $sql = 'DELETE FROM `' . $this->wpdb->prefix . 'options` WHERE `option_name`="wpstacker_pocket_api_key" OR `option_name`="wpstacker_pocket_password" OR `option_name`="wpstacker_pocket_api_key_custom"';
     87            $currentVersion = get_option('wpstacker_version');
     88           
     89            // Check if plugin version number up to date
     90            if ($currentVersion != $this->version) {
     91                // Create database table for links
     92                $sql = '
     93                CREATE TABLE IF NOT EXISTS `' . $this->wpdb->prefix . 'wpstacker_posted_links` (
     94                    `id` int(255) NOT NULL AUTO_INCREMENT,
     95                    `url` varchar(1000) NOT NULL,
     96                    `timestamp` int(255) NOT NULL,
     97                    PRIMARY KEY (`id`)
     98                ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
     99                ';
    180100                $this->wpdb->query($sql);
    181                
    182                 // Reset username
    183                 $sql = 'UPDATE `' . $this->wpdb->prefix . 'options` SET `option_value` = "" WHERE `option_name`="wpstacker_pocket_username";';
     101           
     102                // Create settings in database
     103                $sql = '
     104                INSERT IGNORE INTO `' . $this->wpdb->prefix . 'options` (
     105                    `option_name` ,
     106                    `option_value` ,
     107                    `autoload`
     108                ) VALUES
     109                    ("wpstacker_version", "' . $this->version . '", "yes"),
     110                    ("wpstacker_links_to_use", "0", "yes"),
     111                    ("wpstacker_faved", "0", "yes"),
     112                    ("wpstacker_order", "0", "yes"),
     113                    ("wpstacker_mark_as_readed", "0", "yes"),
     114                    ("wpstacker_clean_url", "1", "yes"),
     115                    ("wpstacker_meta_keyword_as_tags", "0", "yes"),
     116                    ("wpstacker_reference_wpstacker", "0", "yes"),
     117                    ("wpstacker_ping_status", "open", "yes"),
     118                    ("wpstacker_comment_status", "open", "yes"),
     119                    ("wpstacker_post_status", "draft", "yes"),
     120                    ("wpstacker_post_category", "1", "yes"),
     121                    ("wpstacker_pocket_username", "", "yes"),
     122                    ("wpstacker_pocket_access_key", "", "yes"),
     123                    ("wpstacker_title", "WP Stacker link collection: %%month%% with %%count%% links", "yes"),
     124                    ("wpstacker_introduction_text", "", "yes"),
     125                    ("wpstacker_statements_text", "", "yes"),
     126                    ("wpstacker_entry_building", "<strong>%%title%%</strong>[[: %%description%%]][[ - by %%author%%]][[ - Tags: %%tags%%]] - %%url%%", "yes"),
     127                    ("wpstacker_language", "en", "yes"),
     128                    ("wpstacker_statistics", "1", "yes"),
     129                    ("wpstacker_key_a", "' . $this->keygen(128) . '", "yes"),
     130                    ("wpstacker_key_b", "' . $this->keygen(128) . '", "yes")
     131                ';
    184132                $this->wpdb->query($sql);
    185             }
    186            
    187             // Create Customer Key in database
    188             $sql = '
    189             INSERT IGNORE INTO `' . $this->wpdb->prefix . 'options` (
    190                 `option_name` ,
    191                 `option_value` ,
    192                 `autoload`
    193             ) VALUES
    194                 ("wpstacker_pocket_consumer_key_custom", "0", "yes"),
    195                 ("wpstacker_pocket_consumer_key", "' . $this->xcrypt(0, $this->global_pocket_consumer_key) . '", "yes")
    196             ';
    197             $this->wpdb->query($sql);
    198            
    199             // Check if plugin version number up to date
    200             if (get_option('wpstacker_version') != $this->version) {
     133           
     134                // Create Customer Key in database
     135                $sql = '
     136                INSERT IGNORE INTO `' . $this->wpdb->prefix . 'options` (
     137                    `option_name` ,
     138                    `option_value` ,
     139                    `autoload`
     140                ) VALUES
     141                    ("wpstacker_pocket_consumer_key_custom", "0", "yes"),
     142                    ("wpstacker_pocket_consumer_key", "' . $this->xcrypt(0, $this->global_pocket_consumer_key) . '", "yes")
     143                ';
     144                $this->wpdb->query($sql);
     145               
     146               
    201147                // Send statistics, if allowed
    202                 if (get_option('wpstacker_statistics') == 1) {
     148                if (get_option('wpstacker_statistics') == 1) {
    203149                    $this->statisticsUpdateVersion();
    204150                }
     
    12211167                <h2>WP Stacker</h2>
    12221168               
    1223                 <?php // Bullshot Snippet for fix navi-menu JavaScript ?>
     1169                <?php // Bullsht Snippet for fix navi-menu JavaScript ?>
    12241170                <div class="nav-tabs-nav">
    12251171                    <div class="nav-tabs-arrow nav-tabs-arrow-left" style="display: none; "><a>«</a></div>
     
    13371283                            <form id="update-nav-menu" action="" method="post" enctype="multipart/form-data" style="display: none;">
    13381284                                <p><br /><strong>Please edit, sort and associate the links. If you finished, please click on the <i>Generate post</i> button at the end of the list!</strong></p>
     1285
    13391286                               
    13401287                                <ul class="menu ui-sortable" id="menu-to-edit">
  • wp-stacker/trunk/js/main.js

    r690828 r736329  
    4040            setTimeout(function() {
    4141                $this.parents('li').remove();
     42
     43
    4244            }, 300);
    4345        }
  • wp-stacker/trunk/readme.txt

    r720792 r736329  
    33Tags: wp stacker, wordpress, pocket, post, automaticly, wp, links, linklist
    44Requires at least: 3.4
    5 Tested up to: 3.5.1
    6 Stable tag: 1.4.3
     5Tested up to: 3.5.
     6Stable tag: 1.
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
    99
    10 WP Stacker is a Wordpress plugin, with which you can post interesting links from Pocket (Pocket.com) automatically on your blog - with autogenerated...
     10WP Stacker is a Wordpress plugin, with which you can post interesting links from Pocket (Pocket.com) automatically on your blog - with autogenerated...
    1111
    1212== Description ==
    1313
    14 **WP Stacker** is a Wordpress plugin, with which you can post interesting links from Pocket (Pocket.com) automatically on your blog - with autogenerated titles, discriptions and tags. You can customize the layout of the post completely. So you can save a lot of time, but show all your readers all your interesting links.
     14**WP Stacker** is a Wordpress plugin, with which you can post interesting links from Pocket (Pocket.com) automatically on your blog - with autogenerated titles, discriptions and tags. You can customize the layout of the post completely. So you can save a lot of time, but show all your readers all your interesting links.
    1515
    1616== Installation ==
     
    3434Yes, you can customize it completely! The first way of customizing is to change the settings in 'Options', 'WP Stacker'. Later, when you generate a post, by clicking on 'WP Stacker' in the main menu, you can change the order, title, description, tags and the url of the links. The last option to customize it, is to edit the articel with the normal WordPress articel editor.
    3535
    36 = If I have a question, which is not answered here, does WP-Pocker have a support? =
     36= If I have a question, which is not answered here, does WP-cker have a support? =
    3737
    3838Yes, you can ask me questions by sending an E-Mail via the form on http://wp-stacker.com/. I will answer as soon as possible!
     
    5050
    5151== Changelog ==
     52
     53
     54
     55
     56
     57
     58
    5259
    5360= 1.4.3 =
  • wp-stacker/trunk/wp-stacker.php

    r720804 r736329  
    66    Author: Jan Karres
    77    Author URI: http://jankarres.de/
    8     Version: 1.4.3
     8    Version: 1.
    99*/
    1010
     
    2424           
    2525            // Set plugin version
    26             $this->version = '1.4.3';
     26            $this->version = '1.';
    2727       
    2828            // Check WP version
     
    8585
    8686        function activate() {
    87             // Remove the old WP Pocket settings and rename the link list table
    88             $sql = 'RENAME TABLE ' . $this->wpdb->prefix . 'wppocket_posted_links TO wp_wpstacker_posted_links;';
    89             @$this->wpdb->query($sql);
    90            
    91             $sql = '
    92             DELETE FROM
    93                 ' . $this->wpdb->prefix . 'options
    94             WHERE
    95                 option_name = "wppocket_version" OR
    96                 option_name = "wppocket_links_to_use" OR
    97                 option_name = "wppocket_faved" OR
    98                 option_name = "wppocket_order" OR
    99                 option_name = "wppocket_mark_as_readed" OR
    100                 option_name = "wppocket_clean_url" OR
    101                 option_name = "wppocket_meta_keyword_as_tags" OR
    102                 option_name = "wppocket_reference_wpstacker" OR
    103                 option_name = "wppocket_ping_status" OR
    104                 option_name = "wppocket_comment_status" OR
    105                 option_name = "wppocket_post_status" OR
    106                 option_name = "wppocket_post_category" OR
    107                 option_name = "wppocket_pocket_username" OR
    108                 option_name = "wppocket_pocket_access_key" OR
    109                 option_name = "wppocket_title" OR
    110                 option_name = "wppocket_introduction_text" OR
    111                 option_name = "wppocket_statements_text" OR
    112                 option_name = "wppocket_entry_building" OR
    113                 option_name = "wppocket_language" OR
    114                 option_name = "wppocket_statistics" OR
    115                 option_name = "wppocket_key_a" OR
    116                 option_name = "wppocket_key_b" OR
    117                 option_name = "wppocket_pocket_password" OR
    118                 option_name = "wppocket_pocket_api_key" OR
    119                 option_name = "wppocket_pocket_api_key_custom" OR
    120                 option_name = "wppocket_pocket_consumer_key_custom" OR
    121                 option_name = "wppocket_pocket_consumer_key"
    122             ';
    123             @$this->wpdb->query($sql);
    124            
    125             // Create database table for links
    126             $sql = '
    127             CREATE TABLE IF NOT EXISTS `' . $this->wpdb->prefix . 'wpstacker_posted_links` (
    128                 `id` int(255) NOT NULL AUTO_INCREMENT,
    129                 `url` varchar(1000) NOT NULL,
    130                 `timestamp` int(255) NOT NULL,
    131                 PRIMARY KEY (`id`)
    132             ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    133             ';
    134             $this->wpdb->query($sql);
    135            
    136             // Create settings in database
    137             $sql = '
    138             INSERT IGNORE INTO `' . $this->wpdb->prefix . 'options` (
    139                 `option_name` ,
    140                 `option_value` ,
    141                 `autoload`
    142             ) VALUES
    143                 ("wpstacker_version", "' . $this->version . '", "yes"),
    144                 ("wpstacker_links_to_use", "0", "yes"),
    145                 ("wpstacker_faved", "0", "yes"),
    146                 ("wpstacker_order", "0", "yes"),
    147                 ("wpstacker_mark_as_readed", "0", "yes"),
    148                 ("wpstacker_clean_url", "1", "yes"),
    149                 ("wpstacker_meta_keyword_as_tags", "0", "yes"),
    150                 ("wpstacker_reference_wpstacker", "0", "yes"),
    151                 ("wpstacker_ping_status", "open", "yes"),
    152                 ("wpstacker_comment_status", "open", "yes"),
    153                 ("wpstacker_post_status", "draft", "yes"),
    154                 ("wpstacker_post_category", "1", "yes"),
    155                 ("wpstacker_pocket_username", "", "yes"),
    156                 ("wpstacker_pocket_access_key", "", "yes"),
    157                 ("wpstacker_title", "WP Stacker link collection: %%month%% with %%count%% links", "yes"),
    158                 ("wpstacker_introduction_text", "", "yes"),
    159                 ("wpstacker_statements_text", "", "yes"),
    160                 ("wpstacker_entry_building", "<strong>%%title%%</strong>[[: %%description%%]][[ - by %%author%%]][[ - Tags: %%tags%%]] - %%url%%", "yes"),
    161                 ("wpstacker_language", "en", "yes"),
    162                 ("wpstacker_statistics", "1", "yes"),
    163                 ("wpstacker_key_a", "' . $this->keygen(128) . '", "yes"),
    164                 ("wpstacker_key_b", "' . $this->keygen(128) . '", "yes")
    165             ';
    166             $this->wpdb->query($sql);
    167            
    168             // Check if version under 1.0.2, if true, replace Pocket username, password and api-key
    169             if (!version_compare(get_option('wpstacker_version'), '1.0.2', '>=')) {
    170                 // Update Pocket username, password and api-key
    171                 update_option('wpstacker_pocket_username', $this->xcrypt(0, $this->xcrypt(1, get_option('wpstacker_pocket_username'), true)));
    172                 update_option('wpstacker_pocket_password', $this->xcrypt(0, $this->xcrypt(1, get_option('wpstacker_pocket_password'), true)));
    173                 update_option('wpstacker_pocket_api_key', $this->xcrypt(0, $this->xcrypt(1, get_option('wpstacker_pocket_api_key'), true)));
    174             }
    175            
    176             // Check if version under 1.2, if true, remove api-key for consumer-key, remove password, api custom key and reset username
    177             if (!version_compare(get_option('wpstacker_version'), '1.2', '>=')) {
    178                 // Remove api key
    179                 $sql = 'DELETE FROM `' . $this->wpdb->prefix . 'options` WHERE `option_name`="wpstacker_pocket_api_key" OR `option_name`="wpstacker_pocket_password" OR `option_name`="wpstacker_pocket_api_key_custom"';
     87            $currentVersion = get_option('wpstacker_version');
     88           
     89            // Check if plugin version number up to date
     90            if ($currentVersion != $this->version) {
     91                // Create database table for links
     92                $sql = '
     93                CREATE TABLE IF NOT EXISTS `' . $this->wpdb->prefix . 'wpstacker_posted_links` (
     94                    `id` int(255) NOT NULL AUTO_INCREMENT,
     95                    `url` varchar(1000) NOT NULL,
     96                    `timestamp` int(255) NOT NULL,
     97                    PRIMARY KEY (`id`)
     98                ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
     99                ';
    180100                $this->wpdb->query($sql);
    181                
    182                 // Reset username
    183                 $sql = 'UPDATE `' . $this->wpdb->prefix . 'options` SET `option_value` = "" WHERE `option_name`="wpstacker_pocket_username";';
     101           
     102                // Create settings in database
     103                $sql = '
     104                INSERT IGNORE INTO `' . $this->wpdb->prefix . 'options` (
     105                    `option_name` ,
     106                    `option_value` ,
     107                    `autoload`
     108                ) VALUES
     109                    ("wpstacker_version", "' . $this->version . '", "yes"),
     110                    ("wpstacker_links_to_use", "0", "yes"),
     111                    ("wpstacker_faved", "0", "yes"),
     112                    ("wpstacker_order", "0", "yes"),
     113                    ("wpstacker_mark_as_readed", "0", "yes"),
     114                    ("wpstacker_clean_url", "1", "yes"),
     115                    ("wpstacker_meta_keyword_as_tags", "0", "yes"),
     116                    ("wpstacker_reference_wpstacker", "0", "yes"),
     117                    ("wpstacker_ping_status", "open", "yes"),
     118                    ("wpstacker_comment_status", "open", "yes"),
     119                    ("wpstacker_post_status", "draft", "yes"),
     120                    ("wpstacker_post_category", "1", "yes"),
     121                    ("wpstacker_pocket_username", "", "yes"),
     122                    ("wpstacker_pocket_access_key", "", "yes"),
     123                    ("wpstacker_title", "WP Stacker link collection: %%month%% with %%count%% links", "yes"),
     124                    ("wpstacker_introduction_text", "", "yes"),
     125                    ("wpstacker_statements_text", "", "yes"),
     126                    ("wpstacker_entry_building", "<strong>%%title%%</strong>[[: %%description%%]][[ - by %%author%%]][[ - Tags: %%tags%%]] - %%url%%", "yes"),
     127                    ("wpstacker_language", "en", "yes"),
     128                    ("wpstacker_statistics", "1", "yes"),
     129                    ("wpstacker_key_a", "' . $this->keygen(128) . '", "yes"),
     130                    ("wpstacker_key_b", "' . $this->keygen(128) . '", "yes")
     131                ';
    184132                $this->wpdb->query($sql);
    185             }
    186            
    187             // Create Customer Key in database
    188             $sql = '
    189             INSERT IGNORE INTO `' . $this->wpdb->prefix . 'options` (
    190                 `option_name` ,
    191                 `option_value` ,
    192                 `autoload`
    193             ) VALUES
    194                 ("wpstacker_pocket_consumer_key_custom", "0", "yes"),
    195                 ("wpstacker_pocket_consumer_key", "' . $this->xcrypt(0, $this->global_pocket_consumer_key) . '", "yes")
    196             ';
    197             $this->wpdb->query($sql);
    198            
    199             // Check if plugin version number up to date
    200             if (get_option('wpstacker_version') != $this->version) {
     133           
     134                // Create Customer Key in database
     135                $sql = '
     136                INSERT IGNORE INTO `' . $this->wpdb->prefix . 'options` (
     137                    `option_name` ,
     138                    `option_value` ,
     139                    `autoload`
     140                ) VALUES
     141                    ("wpstacker_pocket_consumer_key_custom", "0", "yes"),
     142                    ("wpstacker_pocket_consumer_key", "' . $this->xcrypt(0, $this->global_pocket_consumer_key) . '", "yes")
     143                ';
     144                $this->wpdb->query($sql);
     145               
     146               
    201147                // Send statistics, if allowed
    202                 if (get_option('wpstacker_statistics') == 1) {
     148                if (get_option('wpstacker_statistics') == 1) {
    203149                    $this->statisticsUpdateVersion();
    204150                }
     
    12211167                <h2>WP Stacker</h2>
    12221168               
    1223                 <?php // Bullshot Snippet for fix navi-menu JavaScript ?>
     1169                <?php // Bullsht Snippet for fix navi-menu JavaScript ?>
    12241170                <div class="nav-tabs-nav">
    12251171                    <div class="nav-tabs-arrow nav-tabs-arrow-left" style="display: none; "><a>«</a></div>
     
    13371283                            <form id="update-nav-menu" action="" method="post" enctype="multipart/form-data" style="display: none;">
    13381284                                <p><br /><strong>Please edit, sort and associate the links. If you finished, please click on the <i>Generate post</i> button at the end of the list!</strong></p>
     1285
    13391286                               
    13401287                                <ul class="menu ui-sortable" id="menu-to-edit">
Note: See TracChangeset for help on using the changeset viewer.