66 Commits
Author SHA1 Message Date
attosoft 995f44d9f0 FIXED: Modified Settings screen with CSS width properties and CSS3 Media Queries for small-width screen 2012-10-16 07:35:41 +00:00
attosoft 424b5e6301 Minor updates on readme.txt, Settings screen and a screenshot
* readme.txt
   * Added "Output JS/CSS files to footer" to "Auto ThickBox Plus does not work" in FAQ
   * Rewrote "How to insert line feeds in title/caption" in FAQ
 * Settings screen
   * Swapped "Header/Footer" option with "Modified/Built-in ThickBox" option
   * Replaced "Mobile Support" with "Mobile Support (beta)"
 * Updated screenshot-2.jpg with more margin
2012-10-11 01:32:50 +00:00
attosoft f07a809b58 CHANGED: Modified Settings screen
* Added "Preview" links with ThickBox to "General - Display Style" setting
   * Resolved a conflict with resizing ThickBox code in media-upload.js
 * Defaults to "JavaScript" option instead of "WordPress Filters" option in "General - Auto ThickBox" setting, because ThickBox cannot be applied to codes output by current theme or plugins without using WordPress filters
 * Added "Image links to images" option to "General - Auto ThickBox" setting. It is useful when showing only image links with other than ThickBox.
   * Added the condition code to both WordPress filters callback and custom JavaScript
 * Changed "Use WordPress built-in thickbox.js/css" checkbox to "Modified ThickBox / Built-in ThickBox" drop-down list in "General - ThickBox Resources"
   * From `<input type="checkbox" />` to `<select><option></option></select>`
   * Selects disabled "Footer" option when selecting "Built-in ThickBox" option
2012-10-11 01:13:02 +00:00
attosoft 8a902905ed CHANGED: Replaced the word "Content" with "HTML"
* Replaced "Content" with "HTML"
   * s/Content/HTML/g
 * Added "_img"
   * s/auto_resize/auto_resize_img/g
   * s/margin_win/margin_win_img/g
 * Replaced "_content" with "_html"
   * s/auto_resize_content/auto_resize_html/g
   * s/move_content/move_html/g
   * s/resize_content/resize_html/g
   * s/bgcolor_content/bgcolor_html/g
   * s/margin_win_content/margin_win_html/g
 * Added transition code of options for v1.8 or earlier
2012-10-07 23:26:57 +00:00
attosoft 9fb49e5820 NEW: Enhanced Auto Resize feature so that it works even when showing iframe/ajax/inline content. Changed "Enabled" option to "Image/Content" option at "General - Auto Resize" setting, and added "View - Margin - Window (Content)" option. 2012-10-07 22:55:48 +00:00
attosoft 310c6029c4 NEW: "General - Mobile Support" options that has "No Window Margin"/"No ThickBox" option and "Width"/"Height" option (See also [605631] and [604041]) 2012-09-30 05:26:44 +00:00
attosoft eed5a8fd8d NEW: "View - Margin - Window" option
* Updated `readme.txt`
   * Added "mobile", "iphone", "android" tags, and removed "semiologic", "simple" tags
   * Added `screenshot-5.jpg` that is a screenshot on iPhone
   * Updated "Changelog" section
 * Updated `thickbox.min.js`
2012-09-29 05:42:14 +00:00
attosoft 90b176f864 Updated resources before the release
* Updated to version 1.8
 * Tested up to WordPress 3.4.2
 * Updated readme.txt
 * Reupdated translations from source
2012-09-23 17:40:43 +00:00
attosoft 51100b8c25 Trivial changes on PHP files and readme.txt
* Maintained several links
 * Removed `ATBP_NAME` and `ATBP_SLUG` variables
 * Renamed `ATBP_VER` variable to `AUTO_THICKBOX_PLUS_VER`
 * Changed Settings page title from "Options" to "Settings"
2012-09-23 17:28:33 +00:00
attosoft ac118febc7 Improved localization support. Modified custom __() and _e() functions to accept variable-length argument, then removed unnecessary _s() and _es() functions. Note that Poedit extracts functions with common name such as __(), _e(), esc_attr__() and esc_attr_e() generally. 2012-09-23 14:35:31 +00:00
attosoft 2eb551d1f2 NEW: "Mouse Wheel - Image - Scroll" option and "Mouse Wheel - Background - Scroll/None" option 2012-08-14 19:55:39 +00:00
attosoft 1d61516698 CHANGED: Modified "Mouse Wheel - Image - Scale" option. Uses calculated size instead of CSS3 transform so now it is not buggy in Drag & Drop action and it works at all browsers, and it scales only an image not ThickBox window. In addition fixed an issue that "Mouse Wheel - Image - Scale" action do not work in "Single Image" style. (See [575200]) 2012-08-14 04:28:28 +00:00
attosoft 14076fbb82 NEW: "Action - Mouse Click - Image - Expand / Shrink" option. You can expand an image to actual size then shrink it to fit window, and vice versa. 2012-08-14 00:43:36 +00:00
attosoft e07b3e8bb0 NEW: "Action - Mouse Click - Image - Download (beta)" option. You can click an image to download it. This is experimental feature so I'm not sure whether it works on all server environments.
* Added download.php that is Force Download script
 * Updated translations
2012-08-12 23:56:14 +00:00
attosoft 2ada5e6e39 NEW: "Action - Mouse Click - Image - Open" option. You can click an image to open it in new tab/window. 2012-08-11 04:36:05 +00:00
attosoft f0de026412 CHANGED: Uses spinner controls (input:number) instead of text fields (input:text) in options for entering numerical values. input:number is introduced in HTML5 so now it works only at Google Chrome, Opera and Safari. 2012-08-04 07:52:57 +00:00
attosoft 9fd8b7f3d1 NEW: "View - Size - Window (Content) - !Width/Height" option. You can change the default size of ThickBox window with non-image, and it can be overridden with width/height parameters in URL. 2012-08-02 09:47:09 +00:00
attosoft ed4fed7b48 Updated resources before the release
* readme.txt (Changelog)
 * All translations
   * Added untranslated texts
   * Updated Persian and Japanese translations
   * Some improvements for Persian to translate 'WordPress', 'JavaScript', etc.
2012-08-01 04:53:52 +00:00
attosoft 9a7c667c65 _s() and _es() functions accepts variable-length arguments instead of array so that Poedit can extract strings. 2012-07-31 09:15:26 +00:00
attosoft 877eb960a2 NEW: "General - Auto !ThickBox - WordPress !Filters/JavaScript/Disabled" option. Auto !ThickBox had worked only in content, excerpt, comments and widget tests due to WordPress filters (hooks). Now using JavaScript, the feature can work in whole page such as front page, header/footer, contents output by themes or other plugins. And you can also disable it if unnecessary.
Ported PHP codes below using `filter_anchor` filter to JavaScript.

 * Add 'thickbox' class to links
 * Add 'TB_iframe' to external URL
 * "Gallery Images" option (Set `rel="gallery-id"`)
 * "Text links to images" option
 * "Links with target attribute" option
 * "No ThickBox" option
2012-07-31 05:18:39 +00:00
attosoft 7a21f3c84e FIXED: Improved Right-to-Left (RTL) support in Options page when using Persian and so on. In addition, updated Persian translations, props Mohammadi.
* Color Picker, Color Preview, UI Slider
 * Icons in About category
 * Untranslated/Inadequate texts in Persian (Font Family, Font Size, Select File, Title)
2012-07-27 05:39:30 +00:00
attosoft 359cb42a4c Refactored PHP codes as follows
* `$util->esc_attr()` did not return a value before, but now returns
   * Removed unnecessary calls for `esc_attr()`
 * Moved `plugins_url()` from auto-thickbox.php to auto-thickbox-utils.php
 * Refined translation texts
   * `$texts[]`, 'Font Family', 'Font Size'
 * Defined `ATBP_NAME`, `ATBP_SLUG`, `ATBP_VER` constants
 * Inlined/Extracted some variables
 * Maintained comments, etc.
2012-07-27 03:13:28 +00:00
attosoft 9d71afa823 CHANGED: Added auto-thickbox-utils.php that contains utility functions below. All translate() functions retrieves the translated string from both 'auto-thickbox' and 'default' domain.
* __(), _e(), _s(), _es()
   * Removed gettext() in auto-thickbox.php
 * esc_attr(), esc_attr__(), esc_attr_e()
   * Removed esc_attr() and esc_attr_e() in auto-thickbox-options.php
 * disabled(), checked()
   * Removed disabled() and checked() in auto-thickbox-options.php
2012-07-26 16:22:12 +00:00
attosoft 48b8f0693a NEW: "Mouse Wheel (Scroll) - Image - Scale (beta)" option. This is experimental feature so it's a little bit buggy in Drag & Drop action and it works only at modern browsers that support CSS3 transform such as IE9. 2012-07-20 16:31:30 +00:00
attosoft 3e930e1c0c Show "Settings reset." instead of "Settings saved." when pressing "Reset" button in options page. (using [http://codex.wordpress.org/Function_Reference/add_settings_error add_settings_error()] function) 2012-06-06 05:06:45 +00:00
attosoft 27299fbfc2 Enable "Screen Options" menu to show/hide metaboxes in options page
Note: To enable "Screen Options" menu, some function parameters should be as follows.

 * If `$menu_slug` in [http://codex.wordpress.org/Function_Reference/add_options_page add_options_page()] is 'my-unique-identifier',
   * `$post_type` in [http://codex.wordpress.org/Function_Reference/add_meta_box add_meta_box()] should be '**settings_page_**my-unique-identifier'
   * `$page` in [http://codex.wordpress.org/Function_Reference/do_meta_boxes do_meta_boxes()] should be same value as `$post_type` above
2012-05-30 07:18:43 +00:00
attosoft 3f3d457f46 Change "Gallery - Caption" item to "Image - Caption" item in "Text - Caption" option
* Support also Caption of an image that is not in WordPress Gallery
 * Fix: Remove whitespace from both ends of Gallery Caption (regression by [545261] in v1.5)
2012-05-29 00:32:22 +00:00
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 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 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 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 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 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 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 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 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 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 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