1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-09 03:56:24 +02:00
Commit Graph

47 Commits

Author SHA1 Message Date
Cameron
35808e5eb9 Issue #4609 - Was still failing in earlier PHP versions. More tests added. 'empty' attribute added to news_render_type 2021-11-04 13:58:05 -07:00
Cameron
7930aba4ca Fixes #4609 - Quick fix for inconsistent drop-down behavior PHP7 -> PHP8. 2021-11-01 14:41:40 -07:00
Cameron
c3036f975c Issue #4609 - Test added for option_multi() to check for consistent behavior. 2021-11-01 14:23:57 -07:00
Cameron
9de838b93e Admin-ui type=dropdown tests added with 'multiple' option enabled. 2021-11-01 13:01:07 -07:00
Cameron
73dfbf0d74 Issue #4299 - PHP8 fatal error fixes 2021-10-17 08:43:07 -07:00
Cameron
d6b0391a2d Fixed corruption of carousel attributes and other 'data-' keys. Test added. 2021-10-14 08:08:43 -07:00
Cameron
7755dd1743 Added option for themes to load only the css or js portion of a library via theme.xml attribute. See bootstrap5/theme.xml for an example.
Empty comments in glyphs removed due to conflict with Fontawesome JS. Tests updated.
2021-10-11 12:33:59 -07:00
Nick Liu
840e818f40 e_form: Allow HTML attribute "value" keys with blank values
Otherwise, something like `<option>Nope</option>` will get a value of
"Nope" instead of "" as in `<option value=''>Nope</option>`.
2021-10-08 18:03:44 -05:00
Nick Liu
2fa9d10c57 e_form: Handle attribute HTML entities properly for most form elements
The result is a much more consistent form experience with less fear that
some values put into an `e_form` method will break the web page.

This commit covers the most common uses of `e_form` with HTML attribute
quoting via `e_form::attributes()`.
2021-10-06 20:14:51 -05:00
Nick Liu
45bce2a7aa #4572: e_form: No htmlspecialchars() on "other" attributes
Fixes: #4572

Discussion:
https://github.com/e107inc/e107/pull/4554#issuecomment-926113601
2021-09-23 16:12:52 -05:00
Cameron
443c60cb52 News shortcode correction. 2021-02-24 15:43:58 -08:00
Cameron
2bf5ee3909 Admin area tool tips simplified to a single location. Pref simplified to Enable/Disable. Fixed flip-switch 'e-expandit' failures in Admin > Prefs. 2021-02-12 12:19:58 -08:00
Cameron
c8a3e6e1c8 Disabled testSignupExtendedUserFieldsShortcode until test solution found. Load admin icons sooner. 2021-02-12 08:37:26 -08:00
Cameron
7133d4bb6f Closes #4228 TinyMce can now load the frontend theme in the editor when 'wysiwyg' is found in the scope of a declared css file within theme.xml
Fixes #4371 - FontAwesome5 is now loaded in the TinyMce editor when detected in the frontend theme.
2021-02-11 16:39:50 -08:00
Moc
853cd70b88 Update help tooltip unit test so it passes
Changed in 5842e51f15
2021-02-10 19:27:24 +01:00
Cameron
c32e5bf1e2 e107::unserialize() will now return the array if the input is an array. Additional form-handler tests added for type: media, file and files. Admin-ui can now manage a change of field type from 'array' to 'json' without additional changes needed. 2021-02-08 08:44:44 -08:00
Cameron
5870fbdb84 "<div class='field-help'>" etc has been replaced by the $frm->help() method and is also used by the admin-ui. 2021-02-04 08:45:10 -08:00
Cameron
296bc650a7 Keep button class in a logical order e107::getForm()->button(); and admin_button() modified. Test added.
'button' has been removed when the action == 'button' in order to avoid BC css conflict. Use button[type="button"] if needed.
2021-01-28 09:36:27 -08:00
Cameron
835e477147 Bootstrap 5 styling. (data-bs-toggle)
Signup shortcodes now automatically load the required template.
2021-01-26 15:08:58 -08:00
Cameron
ef8844b019 Use e107:: in some parts of tests. 2021-01-25 13:29:39 -08:00
Cameron
876212d518 Make sure admin icons are loaded during testing and when initializing form handler. 2021-01-25 12:04:59 -08:00
Cameron
a99300aed5 admin_icons_template.php reformatted to v2 standards. 2021-01-24 10:44:30 -08:00
Cameron
42fbd379d4 Tweaked and tested single shortcodes. Added batch shortcode files fpw_shortcodes and search_shortcodes. {SEARCH} shortcode template was updated to v2 standards. 2021-01-12 14:46:10 -08:00
Cameron
515d81ebb7 Sigin plugin/shortcode added. 2020-12-30 14:24:38 -08:00
Cameron
a41693b4b6 Removed snippets from bootstrap3 theme. Fix for line-endings issue in cache tests. 2020-12-28 15:16:23 -08:00
Cameron
3cd4aa0018 Form handler code cleanup/optimization. Added getSupportedProviders() caching to reduce execution time. 2020-12-23 12:42:06 -08:00
Cameron
eb47eb7716 Snippet to include id attribute. 2020-12-23 08:35:31 -08:00
Cameron
ffea1449f9 Simplified snippet example. Added caching of loaded snippet. 2020-12-23 08:04:20 -08:00
Cameron
ce7fa515c3 Experimental theme snippets feature added. 2020-12-22 17:06:52 -08:00
Cameron
601df26d51 Code optimization for speed and reduced memory usage. 2020-12-20 11:50:10 -08:00
Cameron
fb575c257c Issue #4270 On-the-fly conversion to WebP format with fallback for older browsers when using toImage(). 2020-12-09 10:54:15 -08:00
Cameron
83d189e04c Fix for missing dropdown selection in admin-ui edit mode. 2020-12-03 17:31:03 -08:00
Nick Liu
f256b924ce Fix all PHP 8.0 test failures 2020-11-30 12:55:00 +01:00
Nick Liu
b074ad21b0 Updated tests to use v2.3.0 database fixtures 2020-06-19 11:15:54 -05:00
Cameron
d9037999dd Fixes #4166 - Check-all checkbox class conflict. 2020-05-15 11:47:07 -07:00
Cameron
bf00c3ad83 Bootstrap 4 Fixes on Usersettings page. 2020-05-13 13:31:43 -07:00
Cameron
6068cf1d63 Form test update. 2020-04-11 11:04:07 -07:00
Cameron
91d69898df Fix for e_form::name2id() when = and ? characters are detected is found. 2020-03-06 17:08:23 -08:00
Cameron
ca61cd7de5 Issue #4086 Boolean admin-ui form element readParm/writeParm consistency. 2020-02-20 08:12:09 -08:00
Nick Liu
d55fe8a77b Import LAN for e_formTest::testRenderElement() 2020-01-18 16:36:23 +01:00
Nick Liu
d1bdfb8546 Type checks and corrections for e_parse::thumbSrcSet() 2020-01-18 16:35:21 +01:00
Nick Liu
622be85140 Type checks involving e_formTest
- MOD: e107::getTemplate() now accepts blank strings for the plugin name to mean
       that a core template should be loaded
- FIX: e_form::progressBar() now supports input values that already have % at the end
- FIX: Null check for $options['list'] in e_form::progressBar()
- NEW: Test rounding in e_formTest::testProgressBar()
2020-01-18 16:35:17 +01:00
Nick Liu
29999eed6d Updated to Codeception 4.0 2019-12-23 19:51:18 +01:00
Tijn Kuyper
b364043125 Added two userclasses, updated e_formTest and e_user_modelTest to reflect the changes
1. TestImage1 - with a FontAwesome icon
2. TestImage2 - with a png icon (TinyMCE plugin icon)

Added user to those userclasses.
2019-12-11 17:00:17 +01:00
Cameron
3b28884b56 Possible fixes. 2019-12-04 13:12:47 -06:00
Deltik
ae9f91084b Disabled flaky and failing tests for repo migration
Related: #4030
Related: #4031
Related: #4032
Related: #4033
2019-11-27 15:49:43 -06:00
Deltik
e49ee50d31 Preparation for merge with e107 repository
Moved all test files to e107_tests subdirectory
2019-11-27 11:18:53 -06:00