Plugin Directory

Changeset 1710885


Ignore:
Timestamp:
08/09/2017 11:14:13 AM (9 years ago)
Author:
unforget
Message:

Plugin version 1.0.1

Location:
galdget
Files:
10 edited
1 copied

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/galdget
    4 Description: Gallery shortcode and Widget for displaying images and web pages with timed rotation, highly customisable
    5 Version: 1.0.0
    6 Author: Unforget
    7 Author URI: https://unforget.rs
    8 License: GPLv2
    9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
    10 Tags: gallery, shortcode, widget, images, sites, urls
    11 Text Domain: galdget_widget
    12 Domain Path: /languages
    13 
    14 Copyright 2017 Unforget
    15 
    16 This program is free software; you can redistribute it and/or modify
    17 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 of
    22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    23 GNU General Public License for more details.
    24 
    25 */
    26 
    271#galdget_urls,
    282#galdget_urls td,
  • galdget/tags/1.0.1/galdget-admin.js

    r1709633 r1710885  
    441441
    442442if(window.addEventListener) {
     443    window.addEventListener('load', galdget_sorting_i);
    443444    window.addEventListener('load', galdget_validate);
    444445    window.addEventListener('beforeunload', galdget_quitting);
     
    473474    };
    474475function 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();
    476479}
    477 jQuery(document).ready(galdget_sorting_i());
    478480function galdget_sorting_r() {
    479481    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); };
    481484    galdget_sorting_i();
    482485}
  • 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/galdget
    4 Description: Gallery shortcode and Widget for displaying images and web pages with timed rotation, highly customisable
    5 Version: 1.0.0
    6 Author: Unforget
    7 Author URI: https://unforget.rs
    8 License: GPLv2
    9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
    10 Tags: gallery, shortcode, widget, images, sites, urls
    11 Text Domain: galdget_widget
    12 Domain Path: /languages
    13 
    14 Copyright 2017 Unforget
    15 
    16 This program is free software; you can redistribute it and/or modify
    17 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 of
    22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    23 GNU General Public License for more details.
    24 
    25 */
    26 
    271.galdget_main {
    282    text-align: center;
  • galdget/tags/1.0.1/galdget.php

    r1709633 r1710885  
    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.0
     6Version: 1.0.1
    77Author: Unforget
    88Author URI: https://unforget.rs
     
    2828defined('ABSPATH') or die('Lorem ipsum dolor sit amet galdget!');
    2929
    30 define('galdget_version', '1.0.0');
     30define('galdget_version', '1.0.1');
    3131
    3232register_activation_hook( __FILE__,'galdget_activate');
     
    183183
    184184            $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);
    201199                }
    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                    }
    205209                }
    206             }
     210            } catch (Exception $e) { error_log('galdget_slugs '.$e->getMessage()); }
    207211
    208212            if (!($galdget_linkdef = json_decode(get_option('galdget-urls'))) or (!is_array($galdget_linkdef)))
     
    552556        $n = count($a[$i]);
    553557        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>';
    555559            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>';
    556560            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  
    22Contributors: unforget
    33Donate link: https://plugins.unforget.rs/galdget/#donate
    4 Tags: gallery, shortcode, widget, images, sites, urls
    5 Requires at least: 4.0
     4Tags: gallery, slider, shortcode, widget, images, sites, urls
     5Requires at least: 4.5.0
    66Tested up to: 4.8.1
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    107107== Changelog ==
    108108
    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 =
    110114* Initial version
    111115
    112116== Upgrade Notice ==
    113117
    114 = 1.0 =
    115 Upgrade from no Galdget to Galdget 1.0 equals Installation
     118= 1.0.1 =
     119Version 1.0.1 is more stable with complex tag and category slugs, also works better in combination with other plugins.
    116120
    117121== 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/galdget
    4 Description: Gallery shortcode and Widget for displaying images and web pages with timed rotation, highly customisable
    5 Version: 1.0.0
    6 Author: Unforget
    7 Author URI: https://unforget.rs
    8 License: GPLv2
    9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
    10 Tags: gallery, shortcode, widget, images, sites, urls
    11 Text Domain: galdget_widget
    12 Domain Path: /languages
    13 
    14 Copyright 2017 Unforget
    15 
    16 This program is free software; you can redistribute it and/or modify
    17 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 of
    22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    23 GNU General Public License for more details.
    24 
    25 */
    26 
    271#galdget_urls,
    282#galdget_urls td,
  • galdget/trunk/galdget-admin.js

    r1709633 r1710885  
    441441
    442442if(window.addEventListener) {
     443    window.addEventListener('load', galdget_sorting_i);
    443444    window.addEventListener('load', galdget_validate);
    444445    window.addEventListener('beforeunload', galdget_quitting);
     
    473474    };
    474475function 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();
    476479}
    477 jQuery(document).ready(galdget_sorting_i());
    478480function galdget_sorting_r() {
    479481    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); };
    481484    galdget_sorting_i();
    482485}
  • 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/galdget
    4 Description: Gallery shortcode and Widget for displaying images and web pages with timed rotation, highly customisable
    5 Version: 1.0.0
    6 Author: Unforget
    7 Author URI: https://unforget.rs
    8 License: GPLv2
    9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
    10 Tags: gallery, shortcode, widget, images, sites, urls
    11 Text Domain: galdget_widget
    12 Domain Path: /languages
    13 
    14 Copyright 2017 Unforget
    15 
    16 This program is free software; you can redistribute it and/or modify
    17 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 of
    22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    23 GNU General Public License for more details.
    24 
    25 */
    26 
    271.galdget_main {
    282    text-align: center;
  • galdget/trunk/galdget.php

    r1709633 r1710885  
    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.0
     6Version: 1.0.1
    77Author: Unforget
    88Author URI: https://unforget.rs
     
    2828defined('ABSPATH') or die('Lorem ipsum dolor sit amet galdget!');
    2929
    30 define('galdget_version', '1.0.0');
     30define('galdget_version', '1.0.1');
    3131
    3232register_activation_hook( __FILE__,'galdget_activate');
     
    183183
    184184            $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);
    201199                }
    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                    }
    205209                }
    206             }
     210            } catch (Exception $e) { error_log('galdget_slugs '.$e->getMessage()); }
    207211
    208212            if (!($galdget_linkdef = json_decode(get_option('galdget-urls'))) or (!is_array($galdget_linkdef)))
     
    552556        $n = count($a[$i]);
    553557        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>';
    555559            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>';
    556560            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  
    22Contributors: unforget
    33Donate link: https://plugins.unforget.rs/galdget/#donate
    4 Tags: gallery, shortcode, widget, images, sites, urls
    5 Requires at least: 4.0
     4Tags: gallery, slider, shortcode, widget, images, sites, urls
     5Requires at least: 4.5.0
    66Tested up to: 4.8.1
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    107107== Changelog ==
    108108
    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 =
    110114* Initial version
    111115
    112116== Upgrade Notice ==
    113117
    114 = 1.0 =
    115 Upgrade from no Galdget to Galdget 1.0 equals Installation
     118= 1.0.1 =
     119Version 1.0.1 is more stable with complex tag and category slugs, also works better in combination with other plugins.
    116120
    117121== URL list setup ==
Note: See TracChangeset for help on using the changeset viewer.