Changeset 751169
- Timestamp:
- 08/04/2013 04:03:50 PM (11 years ago)
- 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 2 if (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 12 jQuery('#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 27 jQuery('.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 32 jQuery('.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); 5 38 6 39 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); 10 44 } 11 12 // At submit the form, set the associate in inputs13 jQuery('#update-nav-menu').submit(function() {14 // Unbind question15 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 update28 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 link33 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 field49 jQuery('.wpstacker input[name="onlyWithTag"]').change(function() {50 jQuery('.wpstacker .onlyWithTag').toggle();51 });52 45 }); 46 47 48 49 50 -
wp-stacker/tags/1.6/readme.txt
r736329 r751169 3 3 Tags: wp stacker, wordpress, pocket, post, automaticly, wp, links, linklist 4 4 Requires at least: 3.4 5 Tested up to: 3. 5.26 Stable tag: 1. 55 Tested up to: 3. 6 Stable tag: 1. 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 12 12 == Description == 13 13 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. 15 15 16 16 == Installation == … … 51 51 == Changelog == 52 52 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 = 54 59 * Solved database error request 55 60 * Removed compatibility queries for old versions -
wp-stacker/tags/1.6/wp-stacker.php
r736329 r751169 6 6 Author: Jan Karres 7 7 Author URI: http://jankarres.de/ 8 Version: 1. 58 Version: 1. 9 9 */ 10 10 … … 24 24 25 25 // Set plugin version 26 $this->version = '1. 5';26 $this->version = '1.'; 27 27 28 28 // Check WP version … … 118 118 ("wpstacker_comment_status", "open", "yes"), 119 119 ("wpstacker_post_status", "draft", "yes"), 120 120 121 ("wpstacker_post_category", "1", "yes"), 121 122 ("wpstacker_pocket_username", "", "yes"), … … 378 379 $wpstacker_title = str_replace('%%year%%', date('Y'), $wpstacker_title); 379 380 $wpstacker_title = str_replace('%%count%%', $countLinks, $wpstacker_title); 381 382 383 384 385 380 386 } 381 387 … … 393 399 $wpstacker_introduction_text = str_replace('%%year%%', date('Y'), $wpstacker_introduction_text); 394 400 $wpstacker_introduction_text = str_replace('%%count%%', $countLinks, $wpstacker_introduction_text); 401 402 403 404 405 395 406 } 396 407 … … 408 419 $wpstacker_statements_text = str_replace('%%year%%', date('Y'), $wpstacker_statements_text); 409 420 $wpstacker_statements_text = str_replace('%%count%%', $countLinks, $wpstacker_statements_text); 421 422 423 424 425 410 426 } 411 427 … … 851 867 </tr> 852 868 <tr> 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 853 887 <th>Post category</th> 854 888 <td> … … 894 928 This is the title of each post, which WP Stacker generates.<br /> 895 929 <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> 897 933 </p> 898 934 </td> … … 913 949 <strong>Use <i>%%title%%</i> for title of the link in pocket; <i>%%description%%</i> for the meta description of the link; 914 950 <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> 916 952 </p> 917 953 </td> … … 929 965 <p class="description"> 930 966 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> 932 971 </p> 933 972 </td> … … 945 984 <p class="description"> 946 985 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> 948 990 </p> 949 991 </td> … … 1082 1124 1083 1125 update_option('wpstacker_post_status', $_POST['wpstacker_post_status']); 1126 1084 1127 update_option('wpstacker_post_category', $_POST['wpstacker_post_category']); 1085 1128 update_option('wpstacker_comment_status', $_POST['wpstacker_comment_status']); … … 1700 1743 1701 1744 // 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')); 1703 1749 } 1704 1750 -
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 2 if (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 12 jQuery('#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 27 jQuery('.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 32 jQuery('.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); 5 38 6 39 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); 10 44 } 11 12 // At submit the form, set the associate in inputs13 jQuery('#update-nav-menu').submit(function() {14 // Unbind question15 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 update28 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 link33 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 field49 jQuery('.wpstacker input[name="onlyWithTag"]').change(function() {50 jQuery('.wpstacker .onlyWithTag').toggle();51 });52 45 }); 46 47 48 49 50 -
wp-stacker/trunk/readme.txt
r736329 r751169 3 3 Tags: wp stacker, wordpress, pocket, post, automaticly, wp, links, linklist 4 4 Requires at least: 3.4 5 Tested up to: 3. 5.26 Stable tag: 1. 55 Tested up to: 3. 6 Stable tag: 1. 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 12 12 == Description == 13 13 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. 15 15 16 16 == Installation == … … 51 51 == Changelog == 52 52 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 = 54 59 * Solved database error request 55 60 * Removed compatibility queries for old versions -
wp-stacker/trunk/wp-stacker.php
r736329 r751169 6 6 Author: Jan Karres 7 7 Author URI: http://jankarres.de/ 8 Version: 1. 58 Version: 1. 9 9 */ 10 10 … … 24 24 25 25 // Set plugin version 26 $this->version = '1. 5';26 $this->version = '1.'; 27 27 28 28 // Check WP version … … 118 118 ("wpstacker_comment_status", "open", "yes"), 119 119 ("wpstacker_post_status", "draft", "yes"), 120 120 121 ("wpstacker_post_category", "1", "yes"), 121 122 ("wpstacker_pocket_username", "", "yes"), … … 378 379 $wpstacker_title = str_replace('%%year%%', date('Y'), $wpstacker_title); 379 380 $wpstacker_title = str_replace('%%count%%', $countLinks, $wpstacker_title); 381 382 383 384 385 380 386 } 381 387 … … 393 399 $wpstacker_introduction_text = str_replace('%%year%%', date('Y'), $wpstacker_introduction_text); 394 400 $wpstacker_introduction_text = str_replace('%%count%%', $countLinks, $wpstacker_introduction_text); 401 402 403 404 405 395 406 } 396 407 … … 408 419 $wpstacker_statements_text = str_replace('%%year%%', date('Y'), $wpstacker_statements_text); 409 420 $wpstacker_statements_text = str_replace('%%count%%', $countLinks, $wpstacker_statements_text); 421 422 423 424 425 410 426 } 411 427 … … 851 867 </tr> 852 868 <tr> 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 853 887 <th>Post category</th> 854 888 <td> … … 894 928 This is the title of each post, which WP Stacker generates.<br /> 895 929 <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> 897 933 </p> 898 934 </td> … … 913 949 <strong>Use <i>%%title%%</i> for title of the link in pocket; <i>%%description%%</i> for the meta description of the link; 914 950 <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> 916 952 </p> 917 953 </td> … … 929 965 <p class="description"> 930 966 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> 932 971 </p> 933 972 </td> … … 945 984 <p class="description"> 946 985 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> 948 990 </p> 949 991 </td> … … 1082 1124 1083 1125 update_option('wpstacker_post_status', $_POST['wpstacker_post_status']); 1126 1084 1127 update_option('wpstacker_post_category', $_POST['wpstacker_post_category']); 1085 1128 update_option('wpstacker_comment_status', $_POST['wpstacker_comment_status']); … … 1700 1743 1701 1744 // 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')); 1703 1749 } 1704 1750
Note: See TracChangeset
for help on using the changeset viewer.