Changeset 1710885
- Timestamp:
- 08/09/2017 11:14:13 AM (9 years ago)
- Location:
- galdget
- Files:
-
- 10 edited
- 1 copied
-
tags/1.0.1 (copied) (copied from galdget/trunk)
-
tags/1.0.1/galdget-admin.css (modified) (1 diff)
-
tags/1.0.1/galdget-admin.js (modified) (2 diffs)
-
tags/1.0.1/galdget.css (modified) (1 diff)
-
tags/1.0.1/galdget.php (modified) (4 diffs)
-
tags/1.0.1/readme.txt (modified) (2 diffs)
-
trunk/galdget-admin.css (modified) (1 diff)
-
trunk/galdget-admin.js (modified) (2 diffs)
-
trunk/galdget.css (modified) (1 diff)
-
trunk/galdget.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
galdget/tags/1.0.1/galdget-admin.css
r1709633 r1710885 1 /*2 Plugin Name: Gallery and Widget of images and web pages [Galdget]3 Plugin URI: https://plugins.unforget.rs/galdget4 Description: Gallery shortcode and Widget for displaying images and web pages with timed rotation, highly customisable5 Version: 1.0.06 Author: Unforget7 Author URI: https://unforget.rs8 License: GPLv29 License URI: http://www.gnu.org/licenses/gpl-2.0.html10 Tags: gallery, shortcode, widget, images, sites, urls11 Text Domain: galdget_widget12 Domain Path: /languages13 14 Copyright 2017 Unforget15 16 This program is free software; you can redistribute it and/or modify17 it under the terms of the GNU General Public License, version 2,18 as published by the Free Software Foundation.19 20 This program is distributed in the hope that it will be useful,21 but WITHOUT ANY WARRANTY; without even the implied warranty of22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the23 GNU General Public License for more details.24 25 */26 27 1 #galdget_urls, 28 2 #galdget_urls td, -
galdget/tags/1.0.1/galdget-admin.js
r1709633 r1710885 441 441 442 442 if(window.addEventListener) { 443 window.addEventListener('load', galdget_sorting_i); 443 444 window.addEventListener('load', galdget_validate); 444 445 window.addEventListener('beforeunload', galdget_quitting); … … 473 474 }; 474 475 function galdget_sorting_i() { 475 jQuery("#galdget_urls_body").sortable({ helper: galdget_sorting1, stop: galdget_sorting0 }).disableSelection(); 476 var t = jQuery("#galdget_urls_body"); 477 if (!t.hasClass('ui-sortable')) 478 t.sortable({ helper: galdget_sorting1, stop: galdget_sorting0 }).disableSelection(); 476 479 } 477 jQuery(document).ready(galdget_sorting_i());478 480 function galdget_sorting_r() { 479 481 var t = jQuery("#galdget_urls_body"); 480 t.sortable('destroy'); 482 if (t.hasClass('ui-sortable')) 483 try { t.sortable('destroy'); } catch(e) { console.log('galdget_sorting_r '+e.message); }; 481 484 galdget_sorting_i(); 482 485 } -
galdget/tags/1.0.1/galdget.css
r1709633 r1710885 1 /*2 Plugin Name: Gallery and Widget of images and web pages [Galdget]3 Plugin URI: https://plugins.unforget.rs/galdget4 Description: Gallery shortcode and Widget for displaying images and web pages with timed rotation, highly customisable5 Version: 1.0.06 Author: Unforget7 Author URI: https://unforget.rs8 License: GPLv29 License URI: http://www.gnu.org/licenses/gpl-2.0.html10 Tags: gallery, shortcode, widget, images, sites, urls11 Text Domain: galdget_widget12 Domain Path: /languages13 14 Copyright 2017 Unforget15 16 This program is free software; you can redistribute it and/or modify17 it under the terms of the GNU General Public License, version 2,18 as published by the Free Software Foundation.19 20 This program is distributed in the hope that it will be useful,21 but WITHOUT ANY WARRANTY; without even the implied warranty of22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the23 GNU General Public License for more details.24 25 */26 27 1 .galdget_main { 28 2 text-align: center; -
galdget/tags/1.0.1/galdget.php
r1709633 r1710885 4 4 Plugin URI: https://plugins.unforget.rs/galdget 5 5 Description: Gallery shortcode and Widget for displaying images and web pages with timed rotation, highly customisable 6 Version: 1.0. 06 Version: 1.0.1 7 7 Author: Unforget 8 8 Author URI: https://unforget.rs … … 28 28 defined('ABSPATH') or die('Lorem ipsum dolor sit amet galdget!'); 29 29 30 define('galdget_version', '1.0. 0');30 define('galdget_version', '1.0.1'); 31 31 32 32 register_activation_hook( __FILE__,'galdget_activate'); … … 183 183 184 184 $galdget_slugs = array(); 185 if (is_front_page()) array_push($galdget_slugs, 'front.page'); 186 if (is_home()) array_push($galdget_slugs, 'home.page'); 187 if (is_singular()) { 188 $p = get_post(); 189 array_push($galdget_slugs, get_post_field('post_name', $p)); 190 $k = wp_get_post_categories($p->ID); 191 foreach ($k as $c) 192 array_push($galdget_slugs, 'in.'.$c); 193 $k = wp_get_post_tags($p->ID); 194 foreach ($k as $c) 195 array_push($galdget_slugs, 'as.'.$c); 196 } 197 else { 198 if (is_category()) { 199 global $wp_query; 200 array_push($galdget_slugs, 'cat.'.$wp_query->query['category_name']); 185 try { 186 if (is_front_page()) array_push($galdget_slugs, 'front.page'); 187 if (is_home()) array_push($galdget_slugs, 'home.page'); 188 if (is_singular()) { 189 $p = get_post(); 190 array_push($galdget_slugs, get_post_field('post_name', $p)); 191 $k = wp_get_post_categories($p->ID); 192 foreach ($k as $c) { 193 $c = get_category($c); 194 array_push($galdget_slugs, 'in.'.$c->slug); 195 } 196 $k = wp_get_post_tags($p->ID); 197 foreach ($k as $c) 198 array_push($galdget_slugs, 'as.'.$c->slug); 201 199 } 202 if (is_tag()) { 203 global $wp_query; 204 array_push($galdget_slugs, 'tag.'.$wp_query->query['tag']); 200 else { 201 if (is_category()) { 202 global $wp_query; 203 array_push($galdget_slugs, 'cat.'.$wp_query->query['category_name']); 204 } 205 if (is_tag()) { 206 global $wp_query; 207 array_push($galdget_slugs, 'tag.'.$wp_query->query['tag']); 208 } 205 209 } 206 } 210 } catch (Exception $e) { error_log('galdget_slugs '.$e->getMessage()); } 207 211 208 212 if (!($galdget_linkdef = json_decode(get_option('galdget-urls'))) or (!is_array($galdget_linkdef))) … … 552 556 $n = count($a[$i]); 553 557 if ($n > 0) { 554 echo '<tr><td class="galdget_ordinal" >'.($i+1).'</td><td><input type="text" size="50" maxlength="2000" value="'.esc_attr(trim($a[$i][0])).'" oninput="galdget_needs_saving();" ondblclick="galdget_preview(this);" onmouseout="galdget_noview();"/></td>';558 echo '<tr><td class="galdget_ordinal" onmousedown="galdget_sorting_i();">'.($i+1).'</td><td><input type="text" size="50" maxlength="2000" value="'.esc_attr(trim($a[$i][0])).'" oninput="galdget_needs_saving();" ondblclick="galdget_preview(this);" onmouseout="galdget_noview();"/></td>'; 555 559 echo '<td><input type="number" min="0" max="500" maxlength="3" value="'. ($n>1 ? esc_attr(trim($a[$i][1])) : '40') .'" oninput="galdget_needs_saving();"/></td>'; 556 560 echo '<td><input type="number" min="1" max="600" maxlength="3" value="'. ($n>2 ? esc_attr(trim($a[$i][2])) : '5') .'" oninput="galdget_needs_saving();"/></td>'; -
galdget/tags/1.0.1/readme.txt
r1709802 r1710885 2 2 Contributors: unforget 3 3 Donate link: https://plugins.unforget.rs/galdget/#donate 4 Tags: gallery, s hortcode, widget, images, sites, urls5 Requires at least: 4. 04 Tags: gallery, slider, shortcode, widget, images, sites, urls 5 Requires at least: 4.5.0 6 6 Tested up to: 4.8.1 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 107 107 == Changelog == 108 108 109 = 1.0 = 109 = 1.0.1 = 110 * Fixed bad interpretation of tags and categories. 111 * Improved coexistence with other plugins, which tend to take onLoad event handlers for themselves. 112 113 = 1.0.0 = 110 114 * Initial version 111 115 112 116 == Upgrade Notice == 113 117 114 = 1.0 =115 Upgrade from no Galdget to Galdget 1.0 equals Installation 118 = 1.0.1 = 119 Version 1.0.1 is more stable with complex tag and category slugs, also works better in combination with other plugins. 116 120 117 121 == URL list setup == -
galdget/trunk/galdget-admin.css
r1709633 r1710885 1 /*2 Plugin Name: Gallery and Widget of images and web pages [Galdget]3 Plugin URI: https://plugins.unforget.rs/galdget4 Description: Gallery shortcode and Widget for displaying images and web pages with timed rotation, highly customisable5 Version: 1.0.06 Author: Unforget7 Author URI: https://unforget.rs8 License: GPLv29 License URI: http://www.gnu.org/licenses/gpl-2.0.html10 Tags: gallery, shortcode, widget, images, sites, urls11 Text Domain: galdget_widget12 Domain Path: /languages13 14 Copyright 2017 Unforget15 16 This program is free software; you can redistribute it and/or modify17 it under the terms of the GNU General Public License, version 2,18 as published by the Free Software Foundation.19 20 This program is distributed in the hope that it will be useful,21 but WITHOUT ANY WARRANTY; without even the implied warranty of22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the23 GNU General Public License for more details.24 25 */26 27 1 #galdget_urls, 28 2 #galdget_urls td, -
galdget/trunk/galdget-admin.js
r1709633 r1710885 441 441 442 442 if(window.addEventListener) { 443 window.addEventListener('load', galdget_sorting_i); 443 444 window.addEventListener('load', galdget_validate); 444 445 window.addEventListener('beforeunload', galdget_quitting); … … 473 474 }; 474 475 function galdget_sorting_i() { 475 jQuery("#galdget_urls_body").sortable({ helper: galdget_sorting1, stop: galdget_sorting0 }).disableSelection(); 476 var t = jQuery("#galdget_urls_body"); 477 if (!t.hasClass('ui-sortable')) 478 t.sortable({ helper: galdget_sorting1, stop: galdget_sorting0 }).disableSelection(); 476 479 } 477 jQuery(document).ready(galdget_sorting_i());478 480 function galdget_sorting_r() { 479 481 var t = jQuery("#galdget_urls_body"); 480 t.sortable('destroy'); 482 if (t.hasClass('ui-sortable')) 483 try { t.sortable('destroy'); } catch(e) { console.log('galdget_sorting_r '+e.message); }; 481 484 galdget_sorting_i(); 482 485 } -
galdget/trunk/galdget.css
r1709633 r1710885 1 /*2 Plugin Name: Gallery and Widget of images and web pages [Galdget]3 Plugin URI: https://plugins.unforget.rs/galdget4 Description: Gallery shortcode and Widget for displaying images and web pages with timed rotation, highly customisable5 Version: 1.0.06 Author: Unforget7 Author URI: https://unforget.rs8 License: GPLv29 License URI: http://www.gnu.org/licenses/gpl-2.0.html10 Tags: gallery, shortcode, widget, images, sites, urls11 Text Domain: galdget_widget12 Domain Path: /languages13 14 Copyright 2017 Unforget15 16 This program is free software; you can redistribute it and/or modify17 it under the terms of the GNU General Public License, version 2,18 as published by the Free Software Foundation.19 20 This program is distributed in the hope that it will be useful,21 but WITHOUT ANY WARRANTY; without even the implied warranty of22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the23 GNU General Public License for more details.24 25 */26 27 1 .galdget_main { 28 2 text-align: center; -
galdget/trunk/galdget.php
r1709633 r1710885 4 4 Plugin URI: https://plugins.unforget.rs/galdget 5 5 Description: Gallery shortcode and Widget for displaying images and web pages with timed rotation, highly customisable 6 Version: 1.0. 06 Version: 1.0.1 7 7 Author: Unforget 8 8 Author URI: https://unforget.rs … … 28 28 defined('ABSPATH') or die('Lorem ipsum dolor sit amet galdget!'); 29 29 30 define('galdget_version', '1.0. 0');30 define('galdget_version', '1.0.1'); 31 31 32 32 register_activation_hook( __FILE__,'galdget_activate'); … … 183 183 184 184 $galdget_slugs = array(); 185 if (is_front_page()) array_push($galdget_slugs, 'front.page'); 186 if (is_home()) array_push($galdget_slugs, 'home.page'); 187 if (is_singular()) { 188 $p = get_post(); 189 array_push($galdget_slugs, get_post_field('post_name', $p)); 190 $k = wp_get_post_categories($p->ID); 191 foreach ($k as $c) 192 array_push($galdget_slugs, 'in.'.$c); 193 $k = wp_get_post_tags($p->ID); 194 foreach ($k as $c) 195 array_push($galdget_slugs, 'as.'.$c); 196 } 197 else { 198 if (is_category()) { 199 global $wp_query; 200 array_push($galdget_slugs, 'cat.'.$wp_query->query['category_name']); 185 try { 186 if (is_front_page()) array_push($galdget_slugs, 'front.page'); 187 if (is_home()) array_push($galdget_slugs, 'home.page'); 188 if (is_singular()) { 189 $p = get_post(); 190 array_push($galdget_slugs, get_post_field('post_name', $p)); 191 $k = wp_get_post_categories($p->ID); 192 foreach ($k as $c) { 193 $c = get_category($c); 194 array_push($galdget_slugs, 'in.'.$c->slug); 195 } 196 $k = wp_get_post_tags($p->ID); 197 foreach ($k as $c) 198 array_push($galdget_slugs, 'as.'.$c->slug); 201 199 } 202 if (is_tag()) { 203 global $wp_query; 204 array_push($galdget_slugs, 'tag.'.$wp_query->query['tag']); 200 else { 201 if (is_category()) { 202 global $wp_query; 203 array_push($galdget_slugs, 'cat.'.$wp_query->query['category_name']); 204 } 205 if (is_tag()) { 206 global $wp_query; 207 array_push($galdget_slugs, 'tag.'.$wp_query->query['tag']); 208 } 205 209 } 206 } 210 } catch (Exception $e) { error_log('galdget_slugs '.$e->getMessage()); } 207 211 208 212 if (!($galdget_linkdef = json_decode(get_option('galdget-urls'))) or (!is_array($galdget_linkdef))) … … 552 556 $n = count($a[$i]); 553 557 if ($n > 0) { 554 echo '<tr><td class="galdget_ordinal" >'.($i+1).'</td><td><input type="text" size="50" maxlength="2000" value="'.esc_attr(trim($a[$i][0])).'" oninput="galdget_needs_saving();" ondblclick="galdget_preview(this);" onmouseout="galdget_noview();"/></td>';558 echo '<tr><td class="galdget_ordinal" onmousedown="galdget_sorting_i();">'.($i+1).'</td><td><input type="text" size="50" maxlength="2000" value="'.esc_attr(trim($a[$i][0])).'" oninput="galdget_needs_saving();" ondblclick="galdget_preview(this);" onmouseout="galdget_noview();"/></td>'; 555 559 echo '<td><input type="number" min="0" max="500" maxlength="3" value="'. ($n>1 ? esc_attr(trim($a[$i][1])) : '40') .'" oninput="galdget_needs_saving();"/></td>'; 556 560 echo '<td><input type="number" min="1" max="600" maxlength="3" value="'. ($n>2 ? esc_attr(trim($a[$i][2])) : '5') .'" oninput="galdget_needs_saving();"/></td>'; -
galdget/trunk/readme.txt
r1709802 r1710885 2 2 Contributors: unforget 3 3 Donate link: https://plugins.unforget.rs/galdget/#donate 4 Tags: gallery, s hortcode, widget, images, sites, urls5 Requires at least: 4. 04 Tags: gallery, slider, shortcode, widget, images, sites, urls 5 Requires at least: 4.5.0 6 6 Tested up to: 4.8.1 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 107 107 == Changelog == 108 108 109 = 1.0 = 109 = 1.0.1 = 110 * Fixed bad interpretation of tags and categories. 111 * Improved coexistence with other plugins, which tend to take onLoad event handlers for themselves. 112 113 = 1.0.0 = 110 114 * Initial version 111 115 112 116 == Upgrade Notice == 113 117 114 = 1.0 =115 Upgrade from no Galdget to Galdget 1.0 equals Installation 118 = 1.0.1 = 119 Version 1.0.1 is more stable with complex tag and category slugs, also works better in combination with other plugins. 116 120 117 121 == URL list setup ==
Note: See TracChangeset
for help on using the changeset viewer.