Plugin Directory

Changeset 751169

Timestamp:
08/04/2013 04:03:50 PM (11 years ago)
Author:
jankarres
Message:

tagging version 1.6

Location:
wp-stacker
Files:
3 edited
7 copied

Legend:

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

    r736329 r751169  
    1 jQuery(document).ready(function () {
    2     // If exist, decativate loader and show linklist
    3     if (jQuery('.wpstacker .wpstacker_loader').length != 0 && jQuery('.wpstacker #update-nav-menu').length != 0) {
    4         jQuery('.wpstacker .wpstacker_loader').fadeOut(250);
     1// If exist, decativate loader and show linklist
     2if (jQuery('.wpstacker .wpstacker_loader').length != 0 && jQuery('.wpstacker #update-nav-menu').length != 0) {
     3    jQuery('.wpstacker .wpstacker_loader').fadeOut(250);
     4   
     5    setTimeout(function() {
     6        jQuery('.wpstacker #update-nav-menu').fadeIn(250);
     7        jQuery('.wpstacker .support').fadeIn(250);
     8    }, 250);
     9}
     10
     11// At submit the form, set the associate in inputs
     12jQuery('#update-nav-menu').submit(function() {
     13    // Unbind question
     14    window.onbeforeunload = null;
     15   
     16    jQuery('#update-nav-menu ul li').each(function(key, element) {
     17        var regex = /(.*)menu-item-depth-(.*)/g;
     18        var regex2 = /(.*)menu-item-depth-0(.*)/g;
     19       
     20        if (regex.test(jQuery(element).attr('class')) && !regex2.test(jQuery(element).attr('class'))) {
     21            jQuery(this).find('.associate').val('1');
     22        }
     23    });
     24});
     25
     26// Edit title of a link HTML update
     27jQuery('.menu-item-settings .input-title').keyup(function() {
     28    jQuery(this).parents('li').find('.menu-item-handle .left').html(jQuery(this).val());
     29});
     30
     31// Remove a link
     32jQuery('.menu-item-handle .item-remove').click(function() {
     33    var answer = confirm('Do you really want to delete this link?');
     34   
     35    if (answer) {
     36        var $this = jQuery(this);
     37        $this.parents('li').slideUp(300);
    538       
    639        setTimeout(function() {
    7             jQuery('.wpstacker #update-nav-menu').fadeIn(250);
    8             jQuery('.wpstacker .support').fadeIn(250);
    9         }, 250);
     40            $this.parents('li').remove();
     41           
     42            jQuery('.wpstacker .number-links').html((jQuery('.wpstacker .number-links').html() - 1));
     43        }, 300);
    1044    }
    11    
    12     // At submit the form, set the associate in inputs
    13     jQuery('#update-nav-menu').submit(function() {
    14         // Unbind question
    15         window.onbeforeunload = null;
    16        
    17         jQuery('#update-nav-menu ul li').each(function(key, element) {
    18             var regex = /(.*)menu-item-depth-(.*)/g;
    19             var regex2 = /(.*)menu-item-depth-0(.*)/g;
    20            
    21             if (regex.test(jQuery(element).attr('class')) && !regex2.test(jQuery(element).attr('class'))) {
    22                 jQuery(this).find('.associate').val('1');
    23             }
    24         });
    25     });
    26    
    27     // Edit title of a link HTML update
    28     jQuery('.menu-item-settings .input-title').keyup(function() {
    29         jQuery(this).parents('li').find('.menu-item-handle .left').html(jQuery(this).val());
    30     });
    31    
    32     // Remove a link
    33     jQuery('.menu-item-handle .item-remove').click(function() {
    34         var answer = confirm('Do you really want to delete this link?');
    35        
    36         if (answer) {
    37             var $this = jQuery(this);
    38             $this.parents('li').slideUp(300);
    39            
    40             setTimeout(function() {
    41                 $this.parents('li').remove();
    42                
    43                 jQuery('.wpstacker .number-links').html((jQuery('.wpstacker .number-links').html() - 1));
    44             }, 300);
    45         }
    46     });
    47    
    48     // Change tag field
    49     jQuery('.wpstacker input[name="onlyWithTag"]').change(function() {
    50         jQuery('.wpstacker .onlyWithTag').toggle();
    51     });
    5245});
     46
     47
     48
     49
     50
  • wp-stacker/tags/1.6/readme.txt

    r736329 r751169  
    33Tags: wp stacker, wordpress, pocket, post, automaticly, wp, links, linklist
    44Requires at least: 3.4
    5 Tested up to: 3.5.2
    6 Stable tag: 1.5
     5Tested up to: 3.
     6Stable tag: 1.
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1212== Description ==
    1313
    14 **WP Stacker** is a Wordpress plugin, with which you can post interesting links from Pocket (Get´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 (GetPocket.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 ==
     
    5151== Changelog ==
    5252
    53  = 1.5.0 =
     53= 1.6 =
     54* Fixed compatibility with WordPress 3.6
     55* Added option to set the post format
     56* Added a dynamic date output variable
     57
     58= 1.5 =
    5459* Solved database error request
    5560* Removed compatibility queries for old versions
  • wp-stacker/tags/1.6/wp-stacker.php

    r736329 r751169  
    66    Author: Jan Karres
    77    Author URI: http://jankarres.de/
    8     Version: 1.5
     8    Version: 1.
    99*/
    1010
     
    2424           
    2525            // Set plugin version
    26             $this->version = '1.5';
     26            $this->version = '1.';
    2727       
    2828            // Check WP version
     
    118118                    ("wpstacker_comment_status", "open", "yes"),
    119119                    ("wpstacker_post_status", "draft", "yes"),
     120
    120121                    ("wpstacker_post_category", "1", "yes"),
    121122                    ("wpstacker_pocket_username", "", "yes"),
     
    378379                $wpstacker_title = str_replace('%%year%%', date('Y'), $wpstacker_title);
    379380                $wpstacker_title = str_replace('%%count%%', $countLinks, $wpstacker_title);
     381
     382
     383
     384
     385
    380386            }
    381387           
     
    393399                $wpstacker_introduction_text = str_replace('%%year%%', date('Y'), $wpstacker_introduction_text);           
    394400                $wpstacker_introduction_text = str_replace('%%count%%', $countLinks, $wpstacker_introduction_text);
     401
     402
     403
     404
     405
    395406            }
    396407           
     
    408419                $wpstacker_statements_text = str_replace('%%year%%', date('Y'), $wpstacker_statements_text);
    409420                $wpstacker_statements_text = str_replace('%%count%%', $countLinks, $wpstacker_statements_text);
     421
     422
     423
     424
     425
    410426            }
    411427           
     
    851867                        </tr>
    852868                        <tr>
     869
     870
     871
     872
     873
     874
     875
     876
     877
     878
     879
     880
     881
     882
     883
     884
     885
     886
    853887                            <th>Post category</th>
    854888                            <td>
     
    894928                                    This is the title of each post, which WP Stacker generates.<br />
    895929                                    <strong>Use <i>%%day%%</i> for the day, on which the post is being generated; <i>%%month%%</i> for the month;
    896                                     <i>%%year%%</i> for the year; <i>%%count%%</i> to get the number of posted links.</strong>
     930                                    <i>%%year%%</i> for the year; <i>%%count%%</i> to get the number of posted links. For a custom date formate,
     931                                    please use <i>%%date::FORMAT%%</i> (e.g. <i>%%date::d F Y%%</i> for <?php date('d F Y'); ?>; You have to use
     932                                    <a href="http://php.net/manual/de/function.date.php" target="_blank">PHP date format</a>).</strong>
    897933                                </p>
    898934                            </td>
     
    913949                                    <strong>Use <i>%%title%%</i> for title of the link in pocket; <i>%%description%%</i> for the meta description of the link;
    914950                                    <i>%%url%%</i> for the link itself; <i>%%tags%%</i> for added tags in pocket/metatags; <i>%%author%%</i> for the name
    915                                     of the author who wrote the article; <i>%%countwords%%</i> for the number of words, which the article has</strong>
     951                                    of the author who wrote the article; <i>%%countwords%%</i> for the number of words, which the article has</strong>
    916952                                </p>
    917953                            </td>
     
    929965                                <p class="description">
    930966                                    At the beginning of the post, before the links, this text will be shown.<br />
    931                                     <strong>Use <i>%%day%%</i> for day, on which the post is being generated; <i>%%month%%</i> for the month; <i>%%year%%</i> for the year; %%count%% to get the number of posted links.</strong>
     967                                    <strong>Use <i>%%day%%</i> for day, on which the post is being generated; <i>%%month%%</i> for the month; <i>%%year%%</i> for the
     968                                        year; %%count%% to get the number of posted links. For a custom date formate, please use <i>%%date::FORMAT%%</i> (e.g.
     969                                        <i>%%date::d F Y%%</i> for <?php date('d F Y'); ?>; You have to use
     970                                        <a href="http://php.net/manual/de/function.date.php" target="_blank">PHP date format</a>).</strong>
    932971                                </p>
    933972                            </td>
     
    945984                                <p class="description">
    946985                                    At the end of the post, after the links, this text will be shown.<br />
    947                                     <strong>Use <i>%%day%%</i> for day, on which the post is being generated; <i>%%month%%</i> for the month; <i>%%year%%</i> for the year; %%count%% to get the number of posted links.</strong>
     986                                    <strong>Use <i>%%day%%</i> for day, on which the post is being generated; <i>%%month%%</i> for the month; <i>%%year%%</i> for the
     987                                        year; %%count%% to get the number of posted links. For a custom date formate, please use <i>%%date::FORMAT%%</i> (e.g.
     988                                        <i>%%date::d F Y%%</i> for <?php date('d F Y'); ?>; You have to use
     989                                        <a href="http://php.net/manual/de/function.date.php" target="_blank">PHP date format</a>).</strong>
    948990                                </p>
    949991                            </td>
     
    10821124               
    10831125                update_option('wpstacker_post_status', $_POST['wpstacker_post_status']);
     1126
    10841127                update_option('wpstacker_post_category', $_POST['wpstacker_post_category']);
    10851128                update_option('wpstacker_comment_status', $_POST['wpstacker_comment_status']);
     
    17001743                   
    17011744                    // Insert the post
    1702                     wp_insert_post($post);
     1745                    $postId = wp_insert_post($post);
     1746                   
     1747                    // Set post format
     1748                    set_post_format($postId, get_option('wpstacker_post_format'));
    17031749                }
    17041750               
  • wp-stacker/trunk/js/main.js

    r736329 r751169  
    1 jQuery(document).ready(function () {
    2     // If exist, decativate loader and show linklist
    3     if (jQuery('.wpstacker .wpstacker_loader').length != 0 && jQuery('.wpstacker #update-nav-menu').length != 0) {
    4         jQuery('.wpstacker .wpstacker_loader').fadeOut(250);
     1// If exist, decativate loader and show linklist
     2if (jQuery('.wpstacker .wpstacker_loader').length != 0 && jQuery('.wpstacker #update-nav-menu').length != 0) {
     3    jQuery('.wpstacker .wpstacker_loader').fadeOut(250);
     4   
     5    setTimeout(function() {
     6        jQuery('.wpstacker #update-nav-menu').fadeIn(250);
     7        jQuery('.wpstacker .support').fadeIn(250);
     8    }, 250);
     9}
     10
     11// At submit the form, set the associate in inputs
     12jQuery('#update-nav-menu').submit(function() {
     13    // Unbind question
     14    window.onbeforeunload = null;
     15   
     16    jQuery('#update-nav-menu ul li').each(function(key, element) {
     17        var regex = /(.*)menu-item-depth-(.*)/g;
     18        var regex2 = /(.*)menu-item-depth-0(.*)/g;
     19       
     20        if (regex.test(jQuery(element).attr('class')) && !regex2.test(jQuery(element).attr('class'))) {
     21            jQuery(this).find('.associate').val('1');
     22        }
     23    });
     24});
     25
     26// Edit title of a link HTML update
     27jQuery('.menu-item-settings .input-title').keyup(function() {
     28    jQuery(this).parents('li').find('.menu-item-handle .left').html(jQuery(this).val());
     29});
     30
     31// Remove a link
     32jQuery('.menu-item-handle .item-remove').click(function() {
     33    var answer = confirm('Do you really want to delete this link?');
     34   
     35    if (answer) {
     36        var $this = jQuery(this);
     37        $this.parents('li').slideUp(300);
    538       
    639        setTimeout(function() {
    7             jQuery('.wpstacker #update-nav-menu').fadeIn(250);
    8             jQuery('.wpstacker .support').fadeIn(250);
    9         }, 250);
     40            $this.parents('li').remove();
     41           
     42            jQuery('.wpstacker .number-links').html((jQuery('.wpstacker .number-links').html() - 1));
     43        }, 300);
    1044    }
    11    
    12     // At submit the form, set the associate in inputs
    13     jQuery('#update-nav-menu').submit(function() {
    14         // Unbind question
    15         window.onbeforeunload = null;
    16        
    17         jQuery('#update-nav-menu ul li').each(function(key, element) {
    18             var regex = /(.*)menu-item-depth-(.*)/g;
    19             var regex2 = /(.*)menu-item-depth-0(.*)/g;
    20            
    21             if (regex.test(jQuery(element).attr('class')) && !regex2.test(jQuery(element).attr('class'))) {
    22                 jQuery(this).find('.associate').val('1');
    23             }
    24         });
    25     });
    26    
    27     // Edit title of a link HTML update
    28     jQuery('.menu-item-settings .input-title').keyup(function() {
    29         jQuery(this).parents('li').find('.menu-item-handle .left').html(jQuery(this).val());
    30     });
    31    
    32     // Remove a link
    33     jQuery('.menu-item-handle .item-remove').click(function() {
    34         var answer = confirm('Do you really want to delete this link?');
    35        
    36         if (answer) {
    37             var $this = jQuery(this);
    38             $this.parents('li').slideUp(300);
    39            
    40             setTimeout(function() {
    41                 $this.parents('li').remove();
    42                
    43                 jQuery('.wpstacker .number-links').html((jQuery('.wpstacker .number-links').html() - 1));
    44             }, 300);
    45         }
    46     });
    47    
    48     // Change tag field
    49     jQuery('.wpstacker input[name="onlyWithTag"]').change(function() {
    50         jQuery('.wpstacker .onlyWithTag').toggle();
    51     });
    5245});
     46
     47
     48
     49
     50
  • wp-stacker/trunk/readme.txt

    r736329 r751169  
    33Tags: wp stacker, wordpress, pocket, post, automaticly, wp, links, linklist
    44Requires at least: 3.4
    5 Tested up to: 3.5.2
    6 Stable tag: 1.5
     5Tested up to: 3.
     6Stable tag: 1.
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1212== Description ==
    1313
    14 **WP Stacker** is a Wordpress plugin, with which you can post interesting links from Pocket (Get´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 (GetPocket.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 ==
     
    5151== Changelog ==
    5252
    53  = 1.5.0 =
     53= 1.6 =
     54* Fixed compatibility with WordPress 3.6
     55* Added option to set the post format
     56* Added a dynamic date output variable
     57
     58= 1.5 =
    5459* Solved database error request
    5560* Removed compatibility queries for old versions
  • wp-stacker/trunk/wp-stacker.php

    r736329 r751169  
    66    Author: Jan Karres
    77    Author URI: http://jankarres.de/
    8     Version: 1.5
     8    Version: 1.
    99*/
    1010
     
    2424           
    2525            // Set plugin version
    26             $this->version = '1.5';
     26            $this->version = '1.';
    2727       
    2828            // Check WP version
     
    118118                    ("wpstacker_comment_status", "open", "yes"),
    119119                    ("wpstacker_post_status", "draft", "yes"),
     120
    120121                    ("wpstacker_post_category", "1", "yes"),
    121122                    ("wpstacker_pocket_username", "", "yes"),
     
    378379                $wpstacker_title = str_replace('%%year%%', date('Y'), $wpstacker_title);
    379380                $wpstacker_title = str_replace('%%count%%', $countLinks, $wpstacker_title);
     381
     382
     383
     384
     385
    380386            }
    381387           
     
    393399                $wpstacker_introduction_text = str_replace('%%year%%', date('Y'), $wpstacker_introduction_text);           
    394400                $wpstacker_introduction_text = str_replace('%%count%%', $countLinks, $wpstacker_introduction_text);
     401
     402
     403
     404
     405
    395406            }
    396407           
     
    408419                $wpstacker_statements_text = str_replace('%%year%%', date('Y'), $wpstacker_statements_text);
    409420                $wpstacker_statements_text = str_replace('%%count%%', $countLinks, $wpstacker_statements_text);
     421
     422
     423
     424
     425
    410426            }
    411427           
     
    851867                        </tr>
    852868                        <tr>
     869
     870
     871
     872
     873
     874
     875
     876
     877
     878
     879
     880
     881
     882
     883
     884
     885
     886
    853887                            <th>Post category</th>
    854888                            <td>
     
    894928                                    This is the title of each post, which WP Stacker generates.<br />
    895929                                    <strong>Use <i>%%day%%</i> for the day, on which the post is being generated; <i>%%month%%</i> for the month;
    896                                     <i>%%year%%</i> for the year; <i>%%count%%</i> to get the number of posted links.</strong>
     930                                    <i>%%year%%</i> for the year; <i>%%count%%</i> to get the number of posted links. For a custom date formate,
     931                                    please use <i>%%date::FORMAT%%</i> (e.g. <i>%%date::d F Y%%</i> for <?php date('d F Y'); ?>; You have to use
     932                                    <a href="http://php.net/manual/de/function.date.php" target="_blank">PHP date format</a>).</strong>
    897933                                </p>
    898934                            </td>
     
    913949                                    <strong>Use <i>%%title%%</i> for title of the link in pocket; <i>%%description%%</i> for the meta description of the link;
    914950                                    <i>%%url%%</i> for the link itself; <i>%%tags%%</i> for added tags in pocket/metatags; <i>%%author%%</i> for the name
    915                                     of the author who wrote the article; <i>%%countwords%%</i> for the number of words, which the article has</strong>
     951                                    of the author who wrote the article; <i>%%countwords%%</i> for the number of words, which the article has</strong>
    916952                                </p>
    917953                            </td>
     
    929965                                <p class="description">
    930966                                    At the beginning of the post, before the links, this text will be shown.<br />
    931                                     <strong>Use <i>%%day%%</i> for day, on which the post is being generated; <i>%%month%%</i> for the month; <i>%%year%%</i> for the year; %%count%% to get the number of posted links.</strong>
     967                                    <strong>Use <i>%%day%%</i> for day, on which the post is being generated; <i>%%month%%</i> for the month; <i>%%year%%</i> for the
     968                                        year; %%count%% to get the number of posted links. For a custom date formate, please use <i>%%date::FORMAT%%</i> (e.g.
     969                                        <i>%%date::d F Y%%</i> for <?php date('d F Y'); ?>; You have to use
     970                                        <a href="http://php.net/manual/de/function.date.php" target="_blank">PHP date format</a>).</strong>
    932971                                </p>
    933972                            </td>
     
    945984                                <p class="description">
    946985                                    At the end of the post, after the links, this text will be shown.<br />
    947                                     <strong>Use <i>%%day%%</i> for day, on which the post is being generated; <i>%%month%%</i> for the month; <i>%%year%%</i> for the year; %%count%% to get the number of posted links.</strong>
     986                                    <strong>Use <i>%%day%%</i> for day, on which the post is being generated; <i>%%month%%</i> for the month; <i>%%year%%</i> for the
     987                                        year; %%count%% to get the number of posted links. For a custom date formate, please use <i>%%date::FORMAT%%</i> (e.g.
     988                                        <i>%%date::d F Y%%</i> for <?php date('d F Y'); ?>; You have to use
     989                                        <a href="http://php.net/manual/de/function.date.php" target="_blank">PHP date format</a>).</strong>
    948990                                </p>
    949991                            </td>
     
    10821124               
    10831125                update_option('wpstacker_post_status', $_POST['wpstacker_post_status']);
     1126
    10841127                update_option('wpstacker_post_category', $_POST['wpstacker_post_category']);
    10851128                update_option('wpstacker_comment_status', $_POST['wpstacker_comment_status']);
     
    17001743                   
    17011744                    // Insert the post
    1702                     wp_insert_post($post);
     1745                    $postId = wp_insert_post($post);
     1746                   
     1747                    // Set post format
     1748                    set_post_format($postId, get_option('wpstacker_post_format'));
    17031749                }
    17041750               
Note: See TracChangeset for help on using the changeset viewer.