Plugin Directory

Changeset 1715235


Ignore:
Timestamp:
08/18/2017 11:12:55 AM (9 years ago)
Author:
unforget
Message:

Version 1.0.2

Location:
galdget
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • galdget/tags/1.0.2/galdget-admin.js

    r1710885 r1715235  
    445445    window.addEventListener('beforeunload', galdget_quitting);
    446446} else {
     447    window.attachEvent('onload', galdget_sorting_i);
    447448    window.attachEvent('onload', galdget_validate);
    448449    window.attachEvent('onbeforeunload', galdget_quitting);
  • galdget/tags/1.0.2/galdget.js

    r1709633 r1715235  
    408408
    409409function galdget_m1(D) { try {
     410    D.style.opacity = '1.0';
    410411    var P = D.parentElement.lastElementChild;
    411412    if (galdget_timer[P.id] != null) {
     
    414415        galdget_auto[P.id] = false;
    415416    }
    416     D.style.opacity = '1.0';
    417417} catch(e) { console.log('galdget_m1: '+e.message); }}
    418418
    419419
    420420function galdget_m0(D) { try {
     421    D.style.opacity = '0.0';
    421422    var P = D.parentElement.lastElementChild;
     423    if (galdget_current[P.id] == null) return;
    422424    var Q = D.querySelector('#galdget_start');
    423425    if ((Q == null) || (Q.innerHTML == galdget_btnstop)) {
     
    425427        galdget_auto[P.id] = true;
    426428    }
    427     D.style.opacity = '0.0';
    428429} catch(e) { console.log('galdget_m0: '+e.message); }}
    429430
     
    447448    if (P==null) return;
    448449    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)
    450451        U = galdget_config[galdget_links[P.id][galdget_current[P.id]]][3];
    451452    if (galdget_linak[P.id]) U = galdget_linak[P.id];
  • galdget/tags/1.0.2/galdget.php

    r1710885 r1715235  
    44Plugin URI: https://plugins.unforget.rs/galdget
    55Description: Gallery shortcode and Widget for displaying images and web pages with timed rotation, highly customisable
    6 Version: 1.0.1
     6Version: 1.0.2
    77Author: Unforget
    88Author URI: https://unforget.rs
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
    11 Tags: gallery, shortcode, widget, images, sites, urls
     11Tags: gallery, slider, shortcode, widget, images, sites, urls
    1212Text Domain: galdget_widget
    1313Domain Path: /languages
     
    2828defined('ABSPATH') or die('Lorem ipsum dolor sit amet galdget!');
    2929
    30 define('galdget_version', '1.0.1');
     30define('galdget_version', '1.0.2');
    3131
    3232register_activation_hook( __FILE__,'galdget_activate');
     
    156156            $p = pathinfo(substr($u, strlen($galdget_rooturl)));
    157157            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)
    159159                and (is_file($f = $galdget_rootdir . $p['dirname'].'/'.$p['filename'].'.txt'))) {
    160160                $L = file($f, FILE_IGNORE_NEW_LINES);
     
    246246                            $a = 0;
    247247                            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; } }
    248249                            if (substr($sl,0,4)==='dow.')  { $po = false; self::ininterval(substr($sl,4), current_time('N'),   $a); if ($a==0) { $inc = 0; break; } }
    249250                            if (substr($sl,0,4)==='dom.')  { $po = false; self::ininterval(substr($sl,4), current_time('j'),   $a); if ($a==0) { $inc = 0; break; } }
     
    253254                            $a = 0;
    254255                            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);
    255257                            if (($a==0) and (substr($sl,0,5)==='-dow.')) self::ininterval(substr($sl,5), current_time('N'),   $a);
    256258                            if (($a==0) and (substr($sl,0,5)==='-dom.')) self::ininterval(substr($sl,5), current_time('j'),   $a);
     
    548550        . __('Scalling %<br>(0 to 500)','galdget_widget') . '</th><th>'
    549551        . __('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\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\">"
     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\">"
    551553        . __('Slugs (comma separated)','galdget_widget') . '</th>'
    552554        . '<th onclick="galdget_append(this,\'P\');" title="'. $ap .'"><span class="dashicons dashicons-plus"></span></th>'
     
    672674add_action('admin_enqueue_scripts', 'galdget_admin_scripts');
    673675
    674 
    675676function galdget_sc($atts) {
    676677    global $wp_widget_factory;
     
    686687        'embedded'  => '0',
    687688        'animation' => '7',
    688         'link'      => site_url()
     689        'link'      => ''     //site_url()
    689690    ), $atts );
    690691
     
    692693        $w = $a['width'];
    693694        settype($w,'integer');
    694         if ($w < 50) $w = 0;
     695        if ($w < 30) $w = 30;
    695696        if ($w > 3000) $w = 3000;
    696     } else $w = 0;
     697    } else $w = 30;
    697698    $al = 'margin-left: auto; margin-right: auto;';
    698699    if ($a['align'] == 'left') $al = 'margin-left: 0; margin-right: auto;';
     
    741742add_shortcode('galdget','galdget_sc');
    742743
     744function 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}
     756add_shortcode('galdget_slug','galdget_slug_sc');
    743757
    744758function galdget_sc_metabox() {
  • galdget/tags/1.0.2/help/page2.html

    r1709633 r1715235  
    1818<li><strong>as.tagslug</strong> the item will be displayed only on pages or posts tagged with respective tag.</li>
    1919<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>
    2022<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>
    2123<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  
    55Requires at least: 4.5.0
    66Tested up to: 4.8.1
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4242* [Restaurant menu demo and tutorial][galdget restaurant menu]
    4343* [5 minute setup][galdget 5 minute setup]
    44 * [Detailed URL list setup desctiption][galdget url list setup]
     44* [Detailed URL list setup description][galdget url list setup]
    4545
    4646
     
    107107== Changelog ==
    108108
     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
    109114= 1.0.1 =
    110115* Fixed bad interpretation of tags and categories.
     
    116121== Upgrade Notice ==
    117122
    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 =
     124Version 1.0.2 has improved content scheduling and configurable links for each gallery item.
    120125
    121126== URL list setup ==
     
    140145[galdget url list setup]: https://plugins.unforget.rs/galdget/galdget_url-list-setup/ "Galdget URL list setup"
    141146[galdget plugin site]: https://plugins.unforget.rs/galdget/ "Galdget plugin site, demos, documentation, tutorials"
    142 [to pirot]: https://www.topirot.com "Local tourist organisation 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  
    445445    window.addEventListener('beforeunload', galdget_quitting);
    446446} else {
     447    window.attachEvent('onload', galdget_sorting_i);
    447448    window.attachEvent('onload', galdget_validate);
    448449    window.attachEvent('onbeforeunload', galdget_quitting);
  • galdget/trunk/galdget.js

    r1709633 r1715235  
    408408
    409409function galdget_m1(D) { try {
     410    D.style.opacity = '1.0';
    410411    var P = D.parentElement.lastElementChild;
    411412    if (galdget_timer[P.id] != null) {
     
    414415        galdget_auto[P.id] = false;
    415416    }
    416     D.style.opacity = '1.0';
    417417} catch(e) { console.log('galdget_m1: '+e.message); }}
    418418
    419419
    420420function galdget_m0(D) { try {
     421    D.style.opacity = '0.0';
    421422    var P = D.parentElement.lastElementChild;
     423    if (galdget_current[P.id] == null) return;
    422424    var Q = D.querySelector('#galdget_start');
    423425    if ((Q == null) || (Q.innerHTML == galdget_btnstop)) {
     
    425427        galdget_auto[P.id] = true;
    426428    }
    427     D.style.opacity = '0.0';
    428429} catch(e) { console.log('galdget_m0: '+e.message); }}
    429430
     
    447448    if (P==null) return;
    448449    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)
    450451        U = galdget_config[galdget_links[P.id][galdget_current[P.id]]][3];
    451452    if (galdget_linak[P.id]) U = galdget_linak[P.id];
  • galdget/trunk/galdget.php

    r1710885 r1715235  
    44Plugin URI: https://plugins.unforget.rs/galdget
    55Description: Gallery shortcode and Widget for displaying images and web pages with timed rotation, highly customisable
    6 Version: 1.0.1
     6Version: 1.0.2
    77Author: Unforget
    88Author URI: https://unforget.rs
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
    11 Tags: gallery, shortcode, widget, images, sites, urls
     11Tags: gallery, slider, shortcode, widget, images, sites, urls
    1212Text Domain: galdget_widget
    1313Domain Path: /languages
     
    2828defined('ABSPATH') or die('Lorem ipsum dolor sit amet galdget!');
    2929
    30 define('galdget_version', '1.0.1');
     30define('galdget_version', '1.0.2');
    3131
    3232register_activation_hook( __FILE__,'galdget_activate');
     
    156156            $p = pathinfo(substr($u, strlen($galdget_rooturl)));
    157157            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)
    159159                and (is_file($f = $galdget_rootdir . $p['dirname'].'/'.$p['filename'].'.txt'))) {
    160160                $L = file($f, FILE_IGNORE_NEW_LINES);
     
    246246                            $a = 0;
    247247                            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; } }
    248249                            if (substr($sl,0,4)==='dow.')  { $po = false; self::ininterval(substr($sl,4), current_time('N'),   $a); if ($a==0) { $inc = 0; break; } }
    249250                            if (substr($sl,0,4)==='dom.')  { $po = false; self::ininterval(substr($sl,4), current_time('j'),   $a); if ($a==0) { $inc = 0; break; } }
     
    253254                            $a = 0;
    254255                            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);
    255257                            if (($a==0) and (substr($sl,0,5)==='-dow.')) self::ininterval(substr($sl,5), current_time('N'),   $a);
    256258                            if (($a==0) and (substr($sl,0,5)==='-dom.')) self::ininterval(substr($sl,5), current_time('j'),   $a);
     
    548550        . __('Scalling %<br>(0 to 500)','galdget_widget') . '</th><th>'
    549551        . __('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\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\">"
     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\">"
    551553        . __('Slugs (comma separated)','galdget_widget') . '</th>'
    552554        . '<th onclick="galdget_append(this,\'P\');" title="'. $ap .'"><span class="dashicons dashicons-plus"></span></th>'
     
    672674add_action('admin_enqueue_scripts', 'galdget_admin_scripts');
    673675
    674 
    675676function galdget_sc($atts) {
    676677    global $wp_widget_factory;
     
    686687        'embedded'  => '0',
    687688        'animation' => '7',
    688         'link'      => site_url()
     689        'link'      => ''     //site_url()
    689690    ), $atts );
    690691
     
    692693        $w = $a['width'];
    693694        settype($w,'integer');
    694         if ($w < 50) $w = 0;
     695        if ($w < 30) $w = 30;
    695696        if ($w > 3000) $w = 3000;
    696     } else $w = 0;
     697    } else $w = 30;
    697698    $al = 'margin-left: auto; margin-right: auto;';
    698699    if ($a['align'] == 'left') $al = 'margin-left: 0; margin-right: auto;';
     
    741742add_shortcode('galdget','galdget_sc');
    742743
     744function 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}
     756add_shortcode('galdget_slug','galdget_slug_sc');
    743757
    744758function galdget_sc_metabox() {
  • galdget/trunk/help/page2.html

    r1709633 r1715235  
    1818<li><strong>as.tagslug</strong> the item will be displayed only on pages or posts tagged with respective tag.</li>
    1919<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>
    2022<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>
    2123<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  
    55Requires at least: 4.5.0
    66Tested up to: 4.8.1
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4242* [Restaurant menu demo and tutorial][galdget restaurant menu]
    4343* [5 minute setup][galdget 5 minute setup]
    44 * [Detailed URL list setup desctiption][galdget url list setup]
     44* [Detailed URL list setup description][galdget url list setup]
    4545
    4646
     
    107107== Changelog ==
    108108
     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
    109114= 1.0.1 =
    110115* Fixed bad interpretation of tags and categories.
     
    116121== Upgrade Notice ==
    117122
    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 =
     124Version 1.0.2 has improved content scheduling and configurable links for each gallery item.
    120125
    121126== URL list setup ==
     
    140145[galdget url list setup]: https://plugins.unforget.rs/galdget/galdget_url-list-setup/ "Galdget URL list setup"
    141146[galdget plugin site]: https://plugins.unforget.rs/galdget/ "Galdget plugin site, demos, documentation, tutorials"
    142 [to pirot]: https://www.topirot.com "Local tourist organisation 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.