Commit Graph
203 Commits
Author SHA1 Message Date
attosoft 90e19c3fda Update resources before release
* Update readme.txt (Support Me, FAQ, etc.)
 * Update and maintain translations
   * s/Default Display Style/Display Style/g
   * s/Contact Me/Contact/g
   * Remove attosoft.info URLs from translation files other than Japanese
 * Update URLs for Support Forum, Donate
2012-05-28 15:51:16 +00:00
attosoft 4407634a08 Add About metabox to options page, and add Localization section to readme.txt 2012-05-28 15:21:35 +00:00
attosoft 8077076063 Fix: Remove a workaround code for scroll bar issue in Google Chrome. Scroll bar had blinked in older Google Chrome when opening with Zoom/Fade effect. But the workaround code is no longer necessary in newer Google Chrome. On the contrary, by the workaround code, scroll bar is hidden in newer Google Chrome when opening external URL as iframe content with Zoom/Fade effect. (See [513383] and [http://wordpress.org/support/topic/plugin-auto-thickbox-plus-no-scroll-bar-in-chrome forum topic]) 2012-05-26 01:24:09 +00:00
attosoft 46c2928b1d Use isset() for clearing PHP Notice (Undefined index: HTTP_REFERER) 2012-05-25 15:03:46 +00:00
attosoft 9e12eef401 Refactoring PHP and JavaScript codes 2012-05-25 14:56:25 +00:00
attosoft 8b0d7200ee Fix: Title bar does not have enough height in empty title (regression by [545287] in v1.5) 2012-05-25 14:53:13 +00:00
attosoft be99fece52 Replace "TB_iframe=true" with "TB_iframe". ThickBox does not check a value of "TB_iframe" query in fact. So ThickBox opens as iframe even when "TB_iframe=false". 2012-05-25 14:42:22 +00:00
attosoft c8f60368a3 Add class="thickbox" to links automatically when URL contains "TB_iframe=true" or "#TB_inline" (i.e. class="thickbox" can be omitted in iframe/ajax content) 2012-05-25 14:30:21 +00:00
attosoft 6f06cba2d9 Improve Media Uploader called from Images options.
* Uploaded images are shown in "Gallery" tab
   * Insert a post with custom post type, uploaded images will be attached to it
 * Replace 'Insert into Post' with 'Insert Image'
2012-05-25 08:58:05 +00:00
attosoft 026f83b687 Fix: tb_show() function has lost the compatibility with original ThickBox. Revert elem argument to caption in tb_show() function. (See [542694], [543162]) 2012-05-24 14:24:27 +00:00
attosoft 8b2af41ca8 Fix: Speed text filed has lost focus (caret) when clicking itself in Firefox 2012-05-24 05:57:22 +00:00
attosoft e9b395aca5 Add French (fr_FR) translations, props Jean-Bastien Prévots 2012-05-24 05:54:15 +00:00
attosoft 968aeba10e Add "Border - WordPress Gallery" option 2012-05-24 05:17:34 +00:00
attosoft eb0cb432fd Separate border property options into border-width, border-style and border-color property options 2012-05-24 04:45:01 +00:00
attosoft fbbe193e77 Update translation files for localization 2012-05-23 14:11:17 +00:00
attosoft edff5afdcf Add "Default Display Style - Set a different gallery-id for each WordPress Gallery" option. You can use "Gallery Images" style in WordPress Gallery even when using "Single Image" style. 2012-05-20 13:32:39 +00:00
attosoft 5d5380d4e6 Add "General - No ThickBox" option. You can specify class attribute names that do not apply ThickBox. e.g. nothickbox, no_thickbox 2012-05-20 13:23:30 +00:00
attosoft 28652e6232 Add "General - Auto ThickBox - Links with target attribute" option. class="thickbox" is not added to links with target attribute by default. 2012-05-20 13:05:06 +00:00
attosoft bc62f4c4ba Refine Options page
* "Default Display Style" option - Update control label
 * "ThickBox on Text Links" option - Change from radio button to checkbox
 * Page title, CSS, etc.
2012-05-20 12:56:54 +00:00
attosoft efa4582324 Escape LF/CR/CRLF codes with ZERO WIDTH NO-BREAK SPACE (U+FEFF) in readme.txt 2012-05-18 06:15:48 +00:00
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