Changeset 1715235
- Timestamp:
- 08/18/2017 11:12:55 AM (9 years ago)
- Location:
- galdget
- Files:
-
- 10 edited
- 1 copied
-
tags/1.0.2 (copied) (copied from galdget/trunk)
-
tags/1.0.2/galdget-admin.js (modified) (1 diff)
-
tags/1.0.2/galdget.js (modified) (4 diffs)
-
tags/1.0.2/galdget.php (modified) (10 diffs)
-
tags/1.0.2/help/page2.html (modified) (1 diff)
-
tags/1.0.2/readme.txt (modified) (5 diffs)
-
trunk/galdget-admin.js (modified) (1 diff)
-
trunk/galdget.js (modified) (4 diffs)
-
trunk/galdget.php (modified) (10 diffs)
-
trunk/help/page2.html (modified) (1 diff)
-
trunk/readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
galdget/tags/1.0.2/galdget-admin.js
r1710885 r1715235 445 445 window.addEventListener('beforeunload', galdget_quitting); 446 446 } else { 447 window.attachEvent('onload', galdget_sorting_i); 447 448 window.attachEvent('onload', galdget_validate); 448 449 window.attachEvent('onbeforeunload', galdget_quitting); -
galdget/tags/1.0.2/galdget.js
r1709633 r1715235 408 408 409 409 function galdget_m1(D) { try { 410 D.style.opacity = '1.0'; 410 411 var P = D.parentElement.lastElementChild; 411 412 if (galdget_timer[P.id] != null) { … … 414 415 galdget_auto[P.id] = false; 415 416 } 416 D.style.opacity = '1.0';417 417 } catch(e) { console.log('galdget_m1: '+e.message); }} 418 418 419 419 420 420 function galdget_m0(D) { try { 421 D.style.opacity = '0.0'; 421 422 var P = D.parentElement.lastElementChild; 423 if (galdget_current[P.id] == null) return; 422 424 var Q = D.querySelector('#galdget_start'); 423 425 if ((Q == null) || (Q.innerHTML == galdget_btnstop)) { … … 425 427 galdget_auto[P.id] = true; 426 428 } 427 D.style.opacity = '0.0';428 429 } catch(e) { console.log('galdget_m0: '+e.message); }} 429 430 … … 447 448 if (P==null) return; 448 449 var U = galdget_config[galdget_links[P.id][galdget_current[P.id]]][0]; 449 if (galdget_config[galdget_links[P.id][galdget_current[P.id]]].length == 4)450 if (galdget_config[galdget_links[P.id][galdget_current[P.id]]].length >= 4) 450 451 U = galdget_config[galdget_links[P.id][galdget_current[P.id]]][3]; 451 452 if (galdget_linak[P.id]) U = galdget_linak[P.id]; -
galdget/tags/1.0.2/galdget.php
r1710885 r1715235 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. 16 Version: 1.0.2 7 7 Author: Unforget 8 8 Author URI: https://unforget.rs 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 Tags: gallery, s hortcode, widget, images, sites, urls11 Tags: gallery, slider, shortcode, widget, images, sites, urls 12 12 Text Domain: galdget_widget 13 13 Domain Path: /languages … … 28 28 defined('ABSPATH') or die('Lorem ipsum dolor sit amet galdget!'); 29 29 30 define('galdget_version', '1.0. 1');30 define('galdget_version', '1.0.2'); 31 31 32 32 register_activation_hook( __FILE__,'galdget_activate'); … … 156 156 $p = pathinfo(substr($u, strlen($galdget_rooturl))); 157 157 if ( isset($p['extension']) 158 and (array_search(strtolower($p['extension']), array('png','jpg','jpeg','gif','bmp' )) !== false)158 and (array_search(strtolower($p['extension']), array('png','jpg','jpeg','gif','bmp','php','html','htm')) !== false) 159 159 and (is_file($f = $galdget_rootdir . $p['dirname'].'/'.$p['filename'].'.txt'))) { 160 160 $L = file($f, FILE_IGNORE_NEW_LINES); … … 246 246 $a = 0; 247 247 if (substr($sl,0,5)==='hour.') { $po = false; self::ininterval(substr($sl,5), current_time('G'), $a); if ($a==0) { $inc = 0; break; } } 248 if (substr($sl,0,4)==='min.') { $po = false; self::ininterval(substr($sl,4), current_time('i'), $a); if ($a==0) { $inc = 0; break; } } 248 249 if (substr($sl,0,4)==='dow.') { $po = false; self::ininterval(substr($sl,4), current_time('N'), $a); if ($a==0) { $inc = 0; break; } } 249 250 if (substr($sl,0,4)==='dom.') { $po = false; self::ininterval(substr($sl,4), current_time('j'), $a); if ($a==0) { $inc = 0; break; } } … … 253 254 $a = 0; 254 255 if (substr($sl,0,6)==='-hour.') self::ininterval(substr($sl,6), current_time('G'), $a); 256 if (($a==0) and (substr($sl,0,5)==='-min.')) self::ininterval(substr($sl,5), current_time('i'), $a); 255 257 if (($a==0) and (substr($sl,0,5)==='-dow.')) self::ininterval(substr($sl,5), current_time('N'), $a); 256 258 if (($a==0) and (substr($sl,0,5)==='-dom.')) self::ininterval(substr($sl,5), current_time('j'), $a); … … 548 550 . __('Scalling %<br>(0 to 500)','galdget_widget') . '</th><th>' 549 551 . __('Duration sec.<br>(1 to 600)','galdget_widget') . '</th><th>' 550 . __('Group<br>(0...)','galdget_widget') . "</th><th title=\"front.page\r\nhome.page\r\n\r\ncat.category\r\nin.category\r\n\r\ntag.posttag\r\nas.posttag\r\n\r\n hour.9-17\r\nhour.11-\r\nhour.-22\r\n-hour.0-11\r\n\r\ndow.1-7\r\ndom.1-31\r\ndoy.1-366\r\nmoy.1-12\r\n-moy.6-8\">"552 . __('Group<br>(0...)','galdget_widget') . "</th><th title=\"front.page\r\nhome.page\r\n\r\ncat.category\r\nin.category\r\n\r\ntag.posttag\r\nas.posttag\r\n\r\nmin.0-59\r\n\r\nhour.9-17\r\nhour.11-\r\nhour.-22\r\n-hour.0-11\r\n\r\ndow.1-7\r\ndom.1-31\r\ndoy.1-366\r\nmoy.1-12\r\n-moy.6-8\">" 551 553 . __('Slugs (comma separated)','galdget_widget') . '</th>' 552 554 . '<th onclick="galdget_append(this,\'P\');" title="'. $ap .'"><span class="dashicons dashicons-plus"></span></th>' … … 672 674 add_action('admin_enqueue_scripts', 'galdget_admin_scripts'); 673 675 674 675 676 function galdget_sc($atts) { 676 677 global $wp_widget_factory; … … 686 687 'embedded' => '0', 687 688 'animation' => '7', 688 'link' => site_url()689 'link' => '' //site_url() 689 690 ), $atts ); 690 691 … … 692 693 $w = $a['width']; 693 694 settype($w,'integer'); 694 if ($w < 50) $w =0;695 if ($w < 30) $w = 30; 695 696 if ($w > 3000) $w = 3000; 696 } else $w = 0;697 } else $w = 30; 697 698 $al = 'margin-left: auto; margin-right: auto;'; 698 699 if ($a['align'] == 'left') $al = 'margin-left: 0; margin-right: auto;'; … … 741 742 add_shortcode('galdget','galdget_sc'); 742 743 744 function galdget_slug_sc($atts) { 745 746 $a = shortcode_atts( array('slug' => ''), $atts ); 747 748 if ($a['slug'] == 'hour') return current_time('G'); 749 if ($a['slug'] == 'min' ) return current_time('i'); 750 if ($a['slug'] == 'dow' ) return current_time('N'); 751 if ($a['slug'] == 'dom' ) return current_time('j'); 752 if ($a['slug'] == 'doy' ) return current_time('z')+1; 753 if ($a['slug'] == 'moy' ) return current_time('n'); 754 if ($a['slug'] == 'all' ) return 'doy.'.(current_time('z')+1).' moy.'.current_time('n').' dom.'.current_time('j').' dow.'.current_time('N').' hour.'.current_time('G').' min.'.current_time('i'); 755 } 756 add_shortcode('galdget_slug','galdget_slug_sc'); 743 757 744 758 function galdget_sc_metabox() { -
galdget/tags/1.0.2/help/page2.html
r1709633 r1715235 18 18 <li><strong>as.tagslug</strong> the item will be displayed only on pages or posts tagged with respective tag.</li> 19 19 <li><strong>-as.tagslug</strong> the item will be displayed on all other places except on pages or posts tagged with respective tag.</li> 20 <li><strong>min.0-59</strong> e.g. <code>min.15-45</code>, the item will be displayed only between 15<sup>th</sup> and 45<sup>th</sup> minute of each hour.</li> 21 <li><strong>-min.0-59</strong> e.g. <code>-min.15-30</code>, the item will be displayed at all other times except in the specified interval.</li> 20 22 <li><strong>hour.0-24</strong> e.g. <code>hour.8-13</code>, the item will be displayed only between 8:00 and 13:59.</li> 21 23 <li><strong>-hour.0-24</strong> e.g. <code>-hour.8-13</code>, the item will be displayed at all other times except in the specified interval.</li> -
galdget/tags/1.0.2/readme.txt
r1710885 r1715235 5 5 Requires at least: 4.5.0 6 6 Tested up to: 4.8.1 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 42 42 * [Restaurant menu demo and tutorial][galdget restaurant menu] 43 43 * [5 minute setup][galdget 5 minute setup] 44 * [Detailed URL list setup desc tiption][galdget url list setup]44 * [Detailed URL list setup description][galdget url list setup] 45 45 46 46 … … 107 107 == Changelog == 108 108 109 = 1.0.2 = 110 * Added minutely content schedule. 111 * Fixed "Open" and "Open in new window" behavior 112 * Improved folder URL processing, now web pages in gallery can have separate URLs and descriptions. 113 109 114 = 1.0.1 = 110 115 * Fixed bad interpretation of tags and categories. … … 116 121 == Upgrade Notice == 117 122 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.123 = 1.0.2 = 124 Version 1.0.2 has improved content scheduling and configurable links for each gallery item. 120 125 121 126 == URL list setup == … … 140 145 [galdget url list setup]: https://plugins.unforget.rs/galdget/galdget_url-list-setup/ "Galdget URL list setup" 141 146 [galdget plugin site]: https://plugins.unforget.rs/galdget/ "Galdget plugin site, demos, documentation, tutorials" 142 [to pirot]: https://www.topirot.com "Local tourist organi sation of a small city"147 [to pirot]: https://www.topirot.com "Local tourist organization of a small city" -
galdget/trunk/galdget-admin.js
r1710885 r1715235 445 445 window.addEventListener('beforeunload', galdget_quitting); 446 446 } else { 447 window.attachEvent('onload', galdget_sorting_i); 447 448 window.attachEvent('onload', galdget_validate); 448 449 window.attachEvent('onbeforeunload', galdget_quitting); -
galdget/trunk/galdget.js
r1709633 r1715235 408 408 409 409 function galdget_m1(D) { try { 410 D.style.opacity = '1.0'; 410 411 var P = D.parentElement.lastElementChild; 411 412 if (galdget_timer[P.id] != null) { … … 414 415 galdget_auto[P.id] = false; 415 416 } 416 D.style.opacity = '1.0';417 417 } catch(e) { console.log('galdget_m1: '+e.message); }} 418 418 419 419 420 420 function galdget_m0(D) { try { 421 D.style.opacity = '0.0'; 421 422 var P = D.parentElement.lastElementChild; 423 if (galdget_current[P.id] == null) return; 422 424 var Q = D.querySelector('#galdget_start'); 423 425 if ((Q == null) || (Q.innerHTML == galdget_btnstop)) { … … 425 427 galdget_auto[P.id] = true; 426 428 } 427 D.style.opacity = '0.0';428 429 } catch(e) { console.log('galdget_m0: '+e.message); }} 429 430 … … 447 448 if (P==null) return; 448 449 var U = galdget_config[galdget_links[P.id][galdget_current[P.id]]][0]; 449 if (galdget_config[galdget_links[P.id][galdget_current[P.id]]].length == 4)450 if (galdget_config[galdget_links[P.id][galdget_current[P.id]]].length >= 4) 450 451 U = galdget_config[galdget_links[P.id][galdget_current[P.id]]][3]; 451 452 if (galdget_linak[P.id]) U = galdget_linak[P.id]; -
galdget/trunk/galdget.php
r1710885 r1715235 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. 16 Version: 1.0.2 7 7 Author: Unforget 8 8 Author URI: https://unforget.rs 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 Tags: gallery, s hortcode, widget, images, sites, urls11 Tags: gallery, slider, shortcode, widget, images, sites, urls 12 12 Text Domain: galdget_widget 13 13 Domain Path: /languages … … 28 28 defined('ABSPATH') or die('Lorem ipsum dolor sit amet galdget!'); 29 29 30 define('galdget_version', '1.0. 1');30 define('galdget_version', '1.0.2'); 31 31 32 32 register_activation_hook( __FILE__,'galdget_activate'); … … 156 156 $p = pathinfo(substr($u, strlen($galdget_rooturl))); 157 157 if ( isset($p['extension']) 158 and (array_search(strtolower($p['extension']), array('png','jpg','jpeg','gif','bmp' )) !== false)158 and (array_search(strtolower($p['extension']), array('png','jpg','jpeg','gif','bmp','php','html','htm')) !== false) 159 159 and (is_file($f = $galdget_rootdir . $p['dirname'].'/'.$p['filename'].'.txt'))) { 160 160 $L = file($f, FILE_IGNORE_NEW_LINES); … … 246 246 $a = 0; 247 247 if (substr($sl,0,5)==='hour.') { $po = false; self::ininterval(substr($sl,5), current_time('G'), $a); if ($a==0) { $inc = 0; break; } } 248 if (substr($sl,0,4)==='min.') { $po = false; self::ininterval(substr($sl,4), current_time('i'), $a); if ($a==0) { $inc = 0; break; } } 248 249 if (substr($sl,0,4)==='dow.') { $po = false; self::ininterval(substr($sl,4), current_time('N'), $a); if ($a==0) { $inc = 0; break; } } 249 250 if (substr($sl,0,4)==='dom.') { $po = false; self::ininterval(substr($sl,4), current_time('j'), $a); if ($a==0) { $inc = 0; break; } } … … 253 254 $a = 0; 254 255 if (substr($sl,0,6)==='-hour.') self::ininterval(substr($sl,6), current_time('G'), $a); 256 if (($a==0) and (substr($sl,0,5)==='-min.')) self::ininterval(substr($sl,5), current_time('i'), $a); 255 257 if (($a==0) and (substr($sl,0,5)==='-dow.')) self::ininterval(substr($sl,5), current_time('N'), $a); 256 258 if (($a==0) and (substr($sl,0,5)==='-dom.')) self::ininterval(substr($sl,5), current_time('j'), $a); … … 548 550 . __('Scalling %<br>(0 to 500)','galdget_widget') . '</th><th>' 549 551 . __('Duration sec.<br>(1 to 600)','galdget_widget') . '</th><th>' 550 . __('Group<br>(0...)','galdget_widget') . "</th><th title=\"front.page\r\nhome.page\r\n\r\ncat.category\r\nin.category\r\n\r\ntag.posttag\r\nas.posttag\r\n\r\n hour.9-17\r\nhour.11-\r\nhour.-22\r\n-hour.0-11\r\n\r\ndow.1-7\r\ndom.1-31\r\ndoy.1-366\r\nmoy.1-12\r\n-moy.6-8\">"552 . __('Group<br>(0...)','galdget_widget') . "</th><th title=\"front.page\r\nhome.page\r\n\r\ncat.category\r\nin.category\r\n\r\ntag.posttag\r\nas.posttag\r\n\r\nmin.0-59\r\n\r\nhour.9-17\r\nhour.11-\r\nhour.-22\r\n-hour.0-11\r\n\r\ndow.1-7\r\ndom.1-31\r\ndoy.1-366\r\nmoy.1-12\r\n-moy.6-8\">" 551 553 . __('Slugs (comma separated)','galdget_widget') . '</th>' 552 554 . '<th onclick="galdget_append(this,\'P\');" title="'. $ap .'"><span class="dashicons dashicons-plus"></span></th>' … … 672 674 add_action('admin_enqueue_scripts', 'galdget_admin_scripts'); 673 675 674 675 676 function galdget_sc($atts) { 676 677 global $wp_widget_factory; … … 686 687 'embedded' => '0', 687 688 'animation' => '7', 688 'link' => site_url()689 'link' => '' //site_url() 689 690 ), $atts ); 690 691 … … 692 693 $w = $a['width']; 693 694 settype($w,'integer'); 694 if ($w < 50) $w =0;695 if ($w < 30) $w = 30; 695 696 if ($w > 3000) $w = 3000; 696 } else $w = 0;697 } else $w = 30; 697 698 $al = 'margin-left: auto; margin-right: auto;'; 698 699 if ($a['align'] == 'left') $al = 'margin-left: 0; margin-right: auto;'; … … 741 742 add_shortcode('galdget','galdget_sc'); 742 743 744 function galdget_slug_sc($atts) { 745 746 $a = shortcode_atts( array('slug' => ''), $atts ); 747 748 if ($a['slug'] == 'hour') return current_time('G'); 749 if ($a['slug'] == 'min' ) return current_time('i'); 750 if ($a['slug'] == 'dow' ) return current_time('N'); 751 if ($a['slug'] == 'dom' ) return current_time('j'); 752 if ($a['slug'] == 'doy' ) return current_time('z')+1; 753 if ($a['slug'] == 'moy' ) return current_time('n'); 754 if ($a['slug'] == 'all' ) return 'doy.'.(current_time('z')+1).' moy.'.current_time('n').' dom.'.current_time('j').' dow.'.current_time('N').' hour.'.current_time('G').' min.'.current_time('i'); 755 } 756 add_shortcode('galdget_slug','galdget_slug_sc'); 743 757 744 758 function galdget_sc_metabox() { -
galdget/trunk/help/page2.html
r1709633 r1715235 18 18 <li><strong>as.tagslug</strong> the item will be displayed only on pages or posts tagged with respective tag.</li> 19 19 <li><strong>-as.tagslug</strong> the item will be displayed on all other places except on pages or posts tagged with respective tag.</li> 20 <li><strong>min.0-59</strong> e.g. <code>min.15-45</code>, the item will be displayed only between 15<sup>th</sup> and 45<sup>th</sup> minute of each hour.</li> 21 <li><strong>-min.0-59</strong> e.g. <code>-min.15-30</code>, the item will be displayed at all other times except in the specified interval.</li> 20 22 <li><strong>hour.0-24</strong> e.g. <code>hour.8-13</code>, the item will be displayed only between 8:00 and 13:59.</li> 21 23 <li><strong>-hour.0-24</strong> e.g. <code>-hour.8-13</code>, the item will be displayed at all other times except in the specified interval.</li> -
galdget/trunk/readme.txt
r1710885 r1715235 5 5 Requires at least: 4.5.0 6 6 Tested up to: 4.8.1 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 42 42 * [Restaurant menu demo and tutorial][galdget restaurant menu] 43 43 * [5 minute setup][galdget 5 minute setup] 44 * [Detailed URL list setup desc tiption][galdget url list setup]44 * [Detailed URL list setup description][galdget url list setup] 45 45 46 46 … … 107 107 == Changelog == 108 108 109 = 1.0.2 = 110 * Added minutely content schedule. 111 * Fixed "Open" and "Open in new window" behavior 112 * Improved folder URL processing, now web pages in gallery can have separate URLs and descriptions. 113 109 114 = 1.0.1 = 110 115 * Fixed bad interpretation of tags and categories. … … 116 121 == Upgrade Notice == 117 122 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.123 = 1.0.2 = 124 Version 1.0.2 has improved content scheduling and configurable links for each gallery item. 120 125 121 126 == URL list setup == … … 140 145 [galdget url list setup]: https://plugins.unforget.rs/galdget/galdget_url-list-setup/ "Galdget URL list setup" 141 146 [galdget plugin site]: https://plugins.unforget.rs/galdget/ "Galdget plugin site, demos, documentation, tutorials" 142 [to pirot]: https://www.topirot.com "Local tourist organi sation of a small city"147 [to pirot]: https://www.topirot.com "Local tourist organization of a small city"
Note: See TracChangeset
for help on using the changeset viewer.