1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-09 12:06:29 +02:00
Commit Graph

31 Commits

Author SHA1 Message Date
Cameron
4032c2954f Issue #3778 - page/e_sitelink cleanup and optimization. Test added. Fixed bookNav() which should only return book links. 2022-03-11 18:01:56 -08:00
Nick Liu
20882920a0 Fix all PHP 8.1 test failures
* `strftime()` has been replaced with a polyfill based on `DateTime`.
* Explicit type casts/assertions added where required by PHP 8.1
* `filter_var(…, FILTER_SANITIZE_STRING)` replaced with `strip_tags()`
  or HTML entity encoding of quotation marks, depending on a guess of
  what the intended "sanitization" was
* `http_build_query()` usage type mismatches fixed
* Removed usages of the `FILE_TEXT` constant
* To avoid breaking PHP 5.6 compatibility (function return types),
  `e_session_db` no longer implements `SessionHandlerInterface`.
  Instead, the alternative non-OOP invocation of
  `session_set_save_handler()` is used instead to apply the session
  handler.
* The shim for `strptime()` still calls the native function if available
  but now suppresses the deprecation warning.

* `e_db_pdo` explicitly asks for `PDO::ATTR_STRINGIFY_FETCHES` to
  maintain consistent behavior with past versions of PHP.
* `e_db_mysql` explicitly sets `mysqli_report(MYSQLI_REPORT_OFF)` to
  maintain consistent behavior with past versions of PHP.

* Removed pointless random number generator seed from `banner` plugin
* Workaround for `COUNT(*)` SQL query in
  `validatorClass::dbValidateArray()` without a proper API for avoiding
  SQL injection
2021-09-04 15:06:19 +02:00
Jimako
2d35fd27d0 #4402 fix wrong template key,
Probably just mistypo
2021-02-24 20:33:45 +01:00
Jimako
364f41231a #4393 Available chapter id on chapter page 2021-02-17 20:23:18 +01:00
Cameron
eec9a163cb PHP8 fixes. Tests added for online shortcodes, page/e_shortcode.php 2021-01-08 11:46:30 -08:00
Cameron
4ae90b62b3 Code cleanup and PHPDoc 2019-06-06 14:25:58 -07:00
Cameron
1dbc90143f Case cleanup toHtml() should be toHTML() 2019-02-26 12:22:36 -08:00
Cameron
2ae932362f Added 'limit' parm to {CHAPTER_MENUS} 2017-11-17 14:02:16 -08:00
Cameron
e165c90575 {BOOK_CHAPTERS} shprtcode added.
Render All visible Chapters from a specific Book.
Uses "listChapter" template key. ie. $CHAPTER_TEMPLATE[---TEMPLATE --]['listChapters']
Example {BOOK_CHAPTERS: name=book-sef-url&template=xxxxx&limit=3}
2017-11-10 15:37:23 -08:00
Cameron
0e3c68f0b8 Improved the front-end inline editing feature. Now has Save and Cancel buttons. 2017-11-10 09:03:04 -08:00
Cameron
6140a2ceb0 {CHAPTER_MENUS} shortcode now has a 'class' parameter which takes array values. eg. {CHAPTER_MENUS: class[]=primary&class[]=warning&class[]=success}. These values automatically rotate and are inserted in the menu body where {CLASS} is found. 2017-10-27 13:16:26 -07:00
Cameron
747cc3b572 Fix for 'active' param on {CHAPTER_MENUS} 2017-10-26 12:01:27 -07:00
Cameron
1b3168dcbc The {CHAPTER_MENUS} shortcode now accepts the 'template' parameter. Additional Custom Menu shortcodes/aliases added:
{CMENU_TAB_ACTIVE} {CMENU_BUTTON_TEXT} {CMENU_BUTTON_URL}
2017-10-26 11:21:18 -07:00
Cameron
898e081656 Page Navigation work. 2017-10-17 16:22:56 -07:00
Cameron
17abb6a08a Fix: {CHAPTER_MENUS} shortcode now respects menu-visibility setting. 2017-03-12 10:01:19 -07:00
Cameron
5c3ce83168 Custom Field Fixes. Theme pref default fix. Shortcode updated: {CHAPTER_MENUS: name=chapter-sef-url} 2017-01-25 17:57:38 -08:00
Cameron
01801d6b94 Page/Menus : New Shortcode {CHAPTER_MENUS: id=chapter-sef-url} Render menus from a given chapter. 2017-01-25 13:08:53 -08:00
Cameron
8c0680a18a Corrected frontend modal markup. Corrected page registry identifier. 2016-02-28 20:50:09 -08:00
SecretR
656068aefb CMENU shortcode fix 2014-01-15 17:11:09 +02:00
Cameron
7bebfc1901 New SEF-URL for book/chapter/page (a few bugs remain) 2014-01-10 18:27:42 -08:00
Cameron
7c80fc6aad Page template corrections in bootstrap. 2013-06-01 14:03:18 -07:00
Cameron
7d505b8629 Book listing template added. 2013-05-30 14:16:49 -07:00
Cameron
7b88d1cb6d Pages/Menus: each book/chapter now has it's own template. 2013-05-29 23:00:55 -07:00
Cameron
19b616dae4 Page templates for listPages and listChapters 2013-05-29 19:37:06 -07:00
Cameron
e1dae6ee40 Improvements for {PAGE_NAVIGATION} shortcode. {PAGE_CHAPTER_NAME} and {PAGE_CHAPTER_DESCRIPTION} added. 2013-05-29 15:36:54 -07:00
Cameron
652cda0b3b New {CMENU=menu-name} for use with Pages/Menus. 2013-03-11 05:12:45 -07:00
SecretR
1396cfbb69 Navigation compile/parser issues solved 2013-03-08 13:08:16 +02:00
Cameron
4e138b835f Renamed class naming standard within e_sitelink.php addon. Use xxxx_sitelink (not xxxx_sitelinks) 2013-02-26 03:43:52 -08:00
SecretR
4587940ad9 Even more smarter page navigation menu;
Introduced e107::getAddon();
Upcoming addon class naming standards discussion
2013-02-14 15:38:00 +02:00
Cameron
405f488f31 Fixed conflict between page shortcodes and page plugin shortcodes. Book and Chapter listings improved and page_navigation_menu improved. 2013-02-01 18:00:53 -08:00
Cameron
ef131c1642 Page Navigation Menu 2013-02-01 01:32:43 -08:00