Commit Graph
183 Commits
Author SHA1 Message Date
attosoft 0dc053a9ca Update resources before release 2012-05-18 05:52:50 +00:00
attosoft 2ed7e788d0 Add Effect - !Title/Caption - Hide initially option 2012-05-18 03:51:53 +00:00
attosoft 4e9bb70e3a Add Effect - !Title/Caption - !Zoom/Slide/Fade/None options. !Title and caption are showed/hidden by hovering the mouse over ThickBox window. 2012-05-18 00:53:13 +00:00
attosoft 461587795b FIX: checkboxes cannot be unchecked when using Color Picker due to regression in v1.1 ([516677]) 2012-05-17 12:40:39 +00:00
attosoft ffd2d127cb Workaround code for the height of multiline title (TODO: to be modified in the future version) 2012-05-17 08:57:10 +00:00
attosoft ba0cfb540a Update thickbox.min.js 2012-05-17 07:19:11 +00:00
attosoft a87b414d29 Set svn:mime-type property to application/octet-stream in minified file 2012-05-17 07:17:34 +00:00
attosoft 5915b2f7db Multiline (line breaks) are supported in caption (title). LF (&#10;/&#x0A;), CR (&#13;/&#x0D;) and CRLF (&#13;&#10;/&#x0D;&#x0A;) codes in caption (title) are replaced with <br />. 2012-05-17 07:02:34 +00:00
attosoft ab7449c6c7 FIX: Modify the code about modal parameter in iframe/ajax content
* Correct the condition `!params['modal']` to `params['modal'] != 'true'`
 * Use close keys in options instead of fixed key (ESC)
2012-05-17 06:14:12 +00:00
attosoft aaede8a50b ThickBox accepts width/height/modal parameters in showing not only iframe/ajax content but also image content 2012-05-17 05:46:01 +00:00
attosoft fe305f2c08 !ReUpdate Dutch translations, props Michel Bats 2012-05-13 08:00:13 +00:00
attosoft 942544ff38 Add General - ThickBox Resources - !Header/Footer option. You can place ThickBox script in header/footer. If you use [http://headjs.com/ Head JS], select "Footer" at the option. 2012-05-12 04:15:59 +00:00
attosoft ef98ade170 trivial improvements
* Replace `if (tb_options)` with `jQuery(function() {})` in `<script>` output
 * Change `caption` argument to `elem` in tb_show function
 * Not bind `mousewheel`event handler in Gallery Images
2012-05-12 00:41:45 +00:00
attosoft f2d0c6aa7e Fix: anchor-utils filter does not detect an empty anchor tag (e.g. <a name="test"><a>), props Olivier Burgard. If an empty anchor tag is in front of image link, "thickbox" class cannot be added to the link then the image cannot be overlaid by click. 2012-05-11 05:03:06 +00:00
attosoft e9c173628f Support a gallery that contains images with same URL. ThickBox had regarded images with same URL as one image. Now ThickBox checks images with instance (element object) instead of its URL (href attribute). 2012-05-11 04:35:46 +00:00
attosoft dc6ea9dec5 Trivial improvements on Mouse Click action. When Mouse Click action is !Prev/Next, Close link is displayed on left/right sides in a gallery that contains only one image. 2012-05-11 04:14:33 +00:00
attosoft 042c10198b Update Dutch translations, props Michel Bats 2012-05-11 03:56:37 +00:00
attosoft fd41e6a599 When Mouse Click action is Next or Prev/Next, not show First/Last links in a gallery that contains only one image. In Firefox, a image in the gallery cannot be opened because goFirst/goLast function is undefined. 2012-05-11 03:52:54 +00:00
attosoft f1278d5aec Update resources (readme.txt, PHP header) 2012-03-29 16:56:07 +00:00
attosoft ee29c1c13c Move <script src='thickbox.js'> tag from footer to header. Now ThickBox works in themes without calling wp_footer() function. 2012-03-29 13:59:13 +00:00
attosoft 7e6e62572a Fix: Close/Loading image paths are incorrect when using built-in ThickBox in WordPress 3.1.4 or earlier. Declared tb_pathToImage and tb_closeImage in footer. 2012-03-29 13:06:43 +00:00
attosoft 9fdfc83976 Fix: Click event handlers are triggered by drag-moving images in WordPress 2.9.2 (jQuery 1.3.2) or earlier
* Event handlers are stored within array in jQuery 1.4.2 or later, and stored as object property in earlier
 * event.stopImmediatePropagation() is defined in jQuery 1.3 or later
2012-03-29 04:08:06 +00:00
attosoft dfdd538ffc Improve the compatibility with obsolete WordPress 2.7
* jQuery
   * `live()` is undefined
   * `disableSelection()` is undefined
 * WordPress
   * `plugins_url()` accepts just one argument
   * `checked()` accepts just two arguments
   * `__checked_selected_helper()` is undefined
   * `esc_attr()`, `esc_attr_e()` is undefined (deprecated `attribute_escape()` is defined)
   * `esc_url()` is undefined (deprecated `clean_url()` is defined)
   * `wp_script_is()` is undefined
2012-03-28 10:34:42 +00:00
attosoft e852bff73c Fix: Removed function at [524586] have remained 2012-03-28 09:53:04 +00:00
attosoft 56120c359a Critical: Fix the compatibility issue with older WordPress (see also [523866])
In options page, wp_enqueue_style() call is effective from WordPress 3.3. So the options using CSS stylesheets requires WordPress 3.3 or later in fact. (e.g. Color Picker, Color Preview, Media Uploader, etc.)

Move wp_enqueue_style() call into proper action hook (i.e. `admin_print_styles-{$hook_suffix}`)
2012-03-28 05:04:02 +00:00
attosoft 18e3277152 Critical: Fix the compatibility issue with older WordPress and jQuery, and refine [523684].
On display:none elements, `width/innerWidth/outerWidth()` returns 0 in jQuery 1.4.4 or earlier. So the plugin requires WordPress 3.1 (jQuery 1.4.4) or later in fact.

I implements the workaround using `jQuery.swap()` and `jQuery.fn.jquery`.
2012-03-28 04:36:16 +00:00
attosoft 5f5ca57fb7 Critical: Fix the compatibility issue with older WordPress
In options page, wp_enqueue_script() call fails since jQuery UI Slider is from WordPress 3.3. So the options using  JavaScript require WordPress 3.3 or later in fact. (e.g. Color Picker, UI Slider, PostBox, Media Uploader, dynamic disabled, etc.)

If jQuery UI Slider does not exist in WordPress, the codes on UI Slider are not output/performed. (using [http://codex.wordpress.org/Function_Reference/wp_script_is wp_script_is()] and `jQuery.isFunction(jQuery().slider)`)
2012-03-26 16:14:02 +00:00
attosoft 601343192b Critical: Fix the compatibility issue with older WordPress
In options page, wp_enqueue_script() call is effective from WordPress 3.3. So the options using JavaScript requires WordPress 3.3 or later in fact. (e.g. Color Picker, UI Slider, PostBox, Media Uploader, dynamic disabled, etc.)

Move wp_enqueue_script() call into proper action hook (i.e. `admin_print_scripts-{$hook_suffix}`)
2012-03-26 15:16:32 +00:00
attosoft ba6bcae8ef Critical: Fix the compatibility issue with older WordPress
PHP disabled() function is from WordPress 3.0. So the plugin requires WordPress 3.0 or later in fact.
2012-03-26 11:06:12 +00:00
attosoft bcbe8708c4 Critical: Fix the compatibility issue with older WordPress and jQuery
jQuery `outerWidth/Height(true)` returns only margin in version 1.6.1 or earlier. So the plugin requires WordPress 3.3 (jQuery 1.7.1) or later in fact.
2012-03-26 09:44:19 +00:00
attosoft 5ba1daddcd Maintain readme.txt (fix wording and typos, update Special Thanks, etc.) 2012-03-25 08:04:10 +00:00
attosoft 6ec4ee3f83 Update readme.txt (NextGEN Gallery, FAQ, Usage)
* Add description about [http://wordpress.org/extend/plugins/nextgen-gallery/ NextGEN Gallery] (add its tags)
 * FAQ
   * Rewrite "Auto ThickBox Plus does not work"
   * Add "Differences between Auto Thickbox and Auto ThickBox Plus"
   * Add "Can I use the improved ThickBox in NextGEN Gallery?"
   * Add "How to display images only (without margin, padding, border, caption and button)"
 * Usage
   * Add "NextGEN Gallery"
   * Write sample URLs with parameters in "Inline/iFramed/AJAX Content"
2012-03-25 07:53:58 +00:00
attosoft cf8b8e2a80 Fix: Refine caption margin and padding due to changeset [518351], [518373] 2012-03-24 17:39:49 +00:00
attosoft c04657f19b Update resources (readme.txt, PHP header, translations, etc.) with trivial changes
* Add some tags in readme.txt
 * Recapture screenshots and banner
 * Code formatting (PHP, JS, CSS)
2012-03-24 06:58:13 +00:00
attosoft 575e240af8 Fix: Modify invoking from inline/ajax content
* inline: new content is added to the bottom of current content
 * ajax: ThickBox window is not displayed at the right position without animation effect
 * ajax: multiple tb_click() handlers are bound by calling jQuery().live() at tb_init()
2012-03-23 13:54:00 +00:00
attosoft 01458635ad Fix: ThickBox window is not opened by clicking link after dragging image and releasing mouse button outside browser window. mouse up event handler breaks tb_click() binding. 2012-03-23 11:56:28 +00:00
attosoft 03152b8a58 Improve input:text and slider style as easy to notice
* set disabled style to input:text and slider
 * set resize cursor on slider handle
2012-03-23 07:24:54 +00:00
attosoft df0c6e8f20 Add "Text - !Title/Caption" options. Now title/caption can be retrieved from several elements/attributes in chosen order. For instance, title can be set to empty, and caption can be set to gallery caption.
* Add "Text" meta box, and place sortable list option ([http://jqueryui.com/demos/sortable/ jQuery UI Sortable])
   1. Link - Title (`a@title`)
   2. Link - Name (`a@name`)
   3. Blank
   4. Image - Title (`img@title`)
   5. Image - Alternate Text (`img@alt`)
   6. Image - Description (`img@longdesc`)
   7. Image - Name (`img@name`)
   8. Gallery - Caption (`dd.gallery-caption`)
 * Retrieve title/caption text from DOM according to the chosen order when opening ThickBox window
2012-03-23 07:09:24 +00:00
attosoft 18dc890ed3 Add "Action - Mouse Click - Clickable Range" option with slider widget 2012-03-22 15:31:36 +00:00
attosoft c673073064 Add "View - Opacity - Thumbnail" option (and improve opacity slider code at [514411]) 2012-03-22 14:00:17 +00:00
attosoft cf7deb573f Add "View - Position - Window - !Fixed/Absolute" option 2012-03-22 09:38:19 +00:00
attosoft 4a735e3f2c Modify loading image style
* remove getimagesize() function call, and move left/top margin calculation to thickbox.js
   * PHP warning is output when the file is in external domain or `allow_url_fopen = Off` in php.ini
 * remove background-color, border rule (use thickbox.css rule)
2012-03-22 09:26:59 +00:00
attosoft 780a13cc4e Fix: Uncaught exception occurs when opening image. Move modal code to proper scope. [thickbox.js bug] 2012-03-21 05:54:04 +00:00
attosoft cf18eafa13 Add tb_options.debug option (default is false)
* Catch exception and do nothing whew `debug` is false
 * Catch exception and alert it when `debug` is true
2012-03-21 05:24:07 +00:00
attosoft ae15e36d5b Improve compatibility with cache plugins (refine [516194] to support tb_pathToImage/tb_closeImage definition in inline script) 2012-03-21 00:35:03 +00:00
attosoft a1aad6e9e1 Update Dutch translations, props Michel Bats 2012-03-19 00:11:53 +00:00
attosoft fc568e015a Fix: link/dynamic pseudo-classes (:link, :visited, :hover, :active and :focus) are enabled even in inline/ajax content [thickbox.css bug] 2012-03-19 00:06:12 +00:00
attosoft 7da83b590b Fix: '?' or '&' before TB_iframe parameter remains in iframe source URL [thickbox.js bug] 2012-03-18 23:57:59 +00:00
attosoft f97ec49421 Wrap "if (tb_options)" around inline script in <script> tag output for safety 2012-03-18 23:41:00 +00:00
attosoft 09984f15ea Add "View - Border Radius - Image" option 2012-03-18 23:09:11 +00:00