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
e261e4fb2d
Fix undefined constants when e107Test::testGetCoreTemplate() runs first
...
---------
1) e_navigationTest: Admin links plugins
Test tests/unit/e_navigationTest.php:testAdminLinksPlugins
Error: ;1m [Error] Undefined constant "E_16_PLUGMANAGER"
#1 /__w/e107/e107/e107_handlers/sitelinks_class.php:882
#2 /__w/e107/e107/e107_tests/tests/unit/e_navigationTest.php:528
---------
2) e_navigationTest: Admin links legacy
Test tests/unit/e_navigationTest.php:testAdminLinksLegacy
Error: ;1m [Error] Undefined constant "E_32_MAIN"
#1 /__w/e107/e107/e107_handlers/sitelinks_class.php:735
#2 /__w/e107/e107/e107_handlers/sitelinks_class.php:887
#3 /__w/e107/e107/e107_tests/tests/unit/e_navigationTest.php:374
---------
3) e_formTest: Render value
Test tests/unit/e_formTest.php:testRenderValue
Error: ;1m [Error] Undefined constant "ADMIN_TRUE_ICON"
#1 /__w/e107/e107/e107_tests/tests/unit/e_formTest.php:943
---------
4) scriptsTest: Admin scripts
Test tests/unit/scriptsTest.php:testAdminScripts
Error: ;1m [Error] Undefined constant "E_32_MAIN"
#1 /__w/e107/e107/e107_handlers/sitelinks_class.php:735
#2 /__w/e107/e107/e107_handlers/sitelinks_class.php:887
#3 /__w/e107/e107/e107_admin/includes/infopanel.php:110
#4 /__w/e107/e107/e107_admin/includes/flexpanel.php:66
#5 /__w/e107/e107/e107_admin/admin.php:63
#6 /__w/e107/e107/e107_tests/tests/unit/scriptsTest.php:140
#7 /__w/e107/e107/e107_tests/tests/unit/scriptsTest.php:27
---------
5) e_formTest: Render value inline
Test tests/unit/e_formTest.php:testRenderValueInline
Error: ;1m [Error] Undefined constant "ADMIN_FALSE_ICON"
#1 /__w/e107/e107/e107_handlers/form_handler.php:5829
#2 /__w/e107/e107/e107_tests/tests/unit/e_formTest.php:1029
---------
6) e_navigationTest: Admin links sub
Test tests/unit/e_navigationTest.php:testAdminLinksSub
Error: ;1m [Error] Undefined constant "E_32_MAIN"
#1 /__w/e107/e107/e107_handlers/sitelinks_class.php:735
#2 /__w/e107/e107/e107_handlers/sitelinks_class.php:887
#3 /__w/e107/e107/e107_tests/tests/unit/e_navigationTest.php:418
---------
7) e_parse_shortcodeTest: Admin shortcodes
Test tests/unit/e_parse_shortcodeTest.php:testAdminShortcodes
Error: ;1m [Error] Undefined constant "E_16_NEWS"
#1 /__w/e107/e107/e107_core/shortcodes/batch/admin_shortcodes.php:518
#2 /__w/e107/e107/e107_core/shortcodes/batch/admin_shortcodes.php:602
#3 /__w/e107/e107/e107_handlers/shortcode_handler.php:1130
#4 e_parse_shortcode->doCode
#5 /__w/e107/e107/e107_handlers/shortcode_handler.php:996
#6 /__w/e107/e107/e107_handlers/e_parse_class.php:823
#7 /__w/e107/e107/e107_tests/tests/unit/e_parse_shortcodeTest.php:1588
#8 /__w/e107/e107/e107_tests/tests/unit/e_parse_shortcodeTest.php:220
---------
8) scriptsTest: Admin includes
Test tests/unit/scriptsTest.php:testAdminIncludes
Error: ;1m [Error] Undefined constant "E_32_MAIN"
#1 /__w/e107/e107/e107_handlers/sitelinks_class.php:735
#2 /__w/e107/e107/e107_handlers/sitelinks_class.php:887
#3 /__w/e107/e107/e107_admin/includes/categories.php:22
#4 /__w/e107/e107/e107_tests/tests/unit/scriptsTest.php:140
#5 /__w/e107/e107/e107_tests/tests/unit/scriptsTest.php:36
--
There was 1 failure:
---------
1) e107Test: Load admin icons
Test tests/unit/e107Test.php:testLoadAdminIcons
E_16_FACEBOOK is missing from admin_icons_template
#1 /__w/e107/e107/e107_tests/tests/unit/e107Test.php:1054
2021-04-13 15:03:36 -05:00
Nick Liu
99aa39a8e5
e107_tests: Removed usages of var_dump()
2021-04-13 15:03:36 -05:00
Cameron
8ff427cfc4
#Issue #4473 - some merged code.
2021-03-31 12:35:26 -07:00
Cameron
e4937d0819
Fixes #4427 - Also added test for diacritics in URL.
2021-03-01 18:47:45 -08:00
Cameron
e425349661
Issue #3912 - Reverse lookup e_ROUTE from e_url.php 'legacy' entry.
2021-02-21 14:10:47 -08:00
Cameron
176ae86409
Issue #3068 - Added a warning for misconfigured theme layouts.
...
Moved e_layout class to menumanager_class.php file.
Closes #4030 - Menu Layout detection test.
themeLan() was failing with themes containing hyphens in the folder name.
2021-02-20 12:15:28 -08:00
Cameron
823a228e7e
Issue #3912 Typing ':' now pops-up a menu of available routes. Bootstrap-suggest library added for this and other areas in future.
2021-02-17 14:33:35 -08:00
Cameron
800f8734bf
Tweak of isCompatible method.
2021-02-13 06:15:42 -08:00
Cameron
b0d10199b7
Added getScope() to theme handler. Added more theme handler tests. Fixed duplicate entry in _blank/theme.xml
2021-02-11 08:51:02 -08:00
Cameron
72c54371cc
e107::getSession()->set will now accept multi-dimensional key format. Test added. Form-handler PHP8 fix.
2021-02-08 11:59:04 -08:00
Cameron
0fd7ee6482
Fixes faulty parsing of _GET when debug is activated. Pref editor will now use var_export on arrays when debug mode is active.
2021-02-06 12:48:19 -08:00
Cameron
23b6ef4af7
FontAwesome upgraded to 5.15.2
2021-02-03 08:11:48 -08:00
Cameron
d7aadf5012
Removed admin_template from bootstrap3. Using core template instead. Switched admin navigation parser to simpleParse()
2021-01-27 12:53:45 -08:00
Cameron
184d920514
Extra checks added in the signup extended user fields shortcode.
...
Improved renderLayout test.
2021-01-26 11:59:57 -08:00
Cameron
ef8844b019
Use e107:: in some parts of tests.
2021-01-25 13:29:39 -08:00
Cameron
26f0d4a0a8
Added test for loadAdminIcons and verified against previous template.
2021-01-24 15:33:39 -08:00
Cameron
a99300aed5
admin_icons_template.php reformatted to v2 standards.
2021-01-24 10:44:30 -08:00
Cameron
8b73cfee5c
Theme manager now using e107::isCompatible() method.
2021-01-23 15:48:09 -08:00
Cameron
17a9aa2822
New e107::isCompatible() method added for checking plugins/themes are compatible with the current version of e107.
...
New parser method stripBlockTags($html) to remove p, div etc.
{CPAGEBODY: strip=blocks} shortcode option added (uses the method above)
2021-01-23 14:20:51 -08:00
Cameron
7557d07622
Rewrote getTemplate test and added example theme template override (bootstrap3) of plugin template (gallery)
2021-01-22 15:43:57 -08:00
Cameron
acc1a9af0d
Plugin script tests and PHP8 fixes.
2021-01-22 13:44:10 -08:00
Cameron
4b0edad459
Various PHP8 Fixes
2021-01-22 06:32:59 -08:00
Cameron
ab75f150f8
PHP8 Fixes. Renamed 'search' class (in search.php) to 'search_front' to avoid conflicts.
2021-01-20 12:07:29 -08:00
Cameron
b19f9ffbc3
Frontend scripts tests. (may break some things)
2021-01-19 18:52:56 -08:00
Cameron
f091709847
Issue #4352 - Canonical added for page, forum and download. Replaced some e_PAGETITLE with e107::title()
2021-01-19 09:50:02 -08:00
Cameron
76144e6b4f
Issue #4352 e107::canonical() method added.
...
Use define('e_DEBUG_CANONICAL', true); in e107_config.php to test usage.
2021-01-19 07:54:13 -08:00
Cameron
419a0e727a
Fix for HTML used on text_truncate(). Ignore setcookie() in CLI mode.
2021-01-18 07:40:17 -08:00
Cameron
299c3717a7
Legacy Admin layout fixes and tests.
2021-01-17 10:36:17 -08:00
Cameron
8db0278a9f
Clean shutdown flag now using $GLOBAL
2021-01-16 15:42:23 -08:00
Cameron
cc5fbe87ef
Skip admin path check for now. Correct LAN conflict.
2021-01-16 14:32:55 -08:00
Cameron
7279e0273e
Valid login event added. Session conflict fix. Session test added. Featurebox tree() fix.
2021-01-14 10:31:51 -08:00
Cameron
992b7b4bfe
Tests for SEF URLs. Search page fix.
2021-01-13 16:16:50 -08:00
Cameron
56f8389417
CoreTemplate tests. FPW BC constant fix.
2021-01-11 18:05:29 -08:00
Cameron
78a70b687d
Truncate extended table if _system_ fields found. (eg. from forum test)
2021-01-11 10:12:17 -08:00
Cameron
d4df39bc75
More User Extended Tests.
2021-01-10 18:07:05 -08:00
Cameron
bdab296cae
Possible test fix.
2021-01-08 10:15:40 -08:00
Cameron
452f594ad2
Issue #4336 and tests for e107::plugLan() (e107::lan()) . Error message will be displayed in debug mode when a LAN file failed to load.
2021-01-08 09:56:33 -08:00
Cameron
6ed9ad3e0d
Simplified inAdminDir().
2020-12-27 12:13:51 -08:00
Cameron
026415b476
Moved the "in admin area" check into its own method. Added a test for it. Removed the outdated user/usersettings check.
2020-12-27 11:25:48 -08:00
Cameron
153cf33aa7
Fix test for PHP 5.6
2020-12-20 13:44:18 -08:00
Cameron
bdb4104f9c
Moved parseheader() to e107 class as renderLayout() Added test.
2020-12-20 13:25:03 -08:00
Cameron
39691620ae
wysiwyg test.
2020-12-13 07:40:41 -08:00
Cameron
a8c79eda5b
e107::wysiwyg() test. Still needs some work for reliable result.
2020-12-12 20:10:41 -08:00
Cameron
c1f5a6f8dc
Increase speed of TinyMce footer.
2020-12-12 12:40:26 -08:00
Cameron
b4596dda47
Old PHPThumb class removed. (Replaced by Intervention)
2020-12-06 11:33:09 -08:00
Cameron
86690cee65
Parser staticUrl() test and JS manager addLink() test added.
2020-12-03 14:20:34 -08:00
Cameron
a200d312d8
Added e107::getThumb() to get thumbnailer class. Added a test for it. Styling fix for admin-ui grid.
2020-03-09 13:41:00 -07:00
Cameron
1925ce5264
Three dependencies updated and moved to vendor directory:
...
PHPMailer (upgraded to v6 - more testing required)
JsShink
Mysqldump-php
2020-02-29 11:56:05 -08:00
Nick Liu
a91fa2c9b8
Don't duplicate Hybridauth config in e107::getHybridAuth()
2020-02-19 17:11:26 +01:00