Version 5.0.0 beta 1
This commit is contained in:
1 parent
25ddeb65d6
commit
15c7beabc5
6736 files changed
+627902
-497943
No files matched your search
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"id": 5000015,
|
||||
"name": "5.0.0 Alpha 10",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": true,
|
||||
"theme": true,
|
||||
"themeeditor": true,
|
||||
"javascript": true,
|
||||
"emailTemplates": false,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": true,
|
||||
"customOptions": false,
|
||||
"customRoutines": true
|
||||
},
|
||||
"forceMainUpgrader": false,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"files": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"global\/library\/app.js",
|
||||
"global\/framework\/common\/ui\/ips.ui.form.js",
|
||||
"global\/framework\/common\/ui\/ips.ui.menu.js",
|
||||
"global\/framework\/common\/ui\/ips.ui.tooltip.js",
|
||||
"global\/framework\/common\/ui\/ips.ui.uploader.js",
|
||||
"global\/framework\/common\/utils\/ips.utils.position.js",
|
||||
"core\/admin\/controllers\/system\/ips.system.menuManager.js",
|
||||
"global\/framework\/templates\/ips.core.templates.js",
|
||||
"global\/admin\/ui\/ips.ui.tree.js"
|
||||
],
|
||||
"removed": [
|
||||
"global\/front\/controllers\/core\/ips.core.navBar.js"
|
||||
]
|
||||
},
|
||||
"orders": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"normal": {
|
||||
"added": [
|
||||
"extension_comment_class"
|
||||
],
|
||||
"edited": [
|
||||
"menu_custom_menu",
|
||||
"menu_manager_icon"
|
||||
],
|
||||
"removed": [
|
||||
"block_twitter",
|
||||
"block_twitter_desc",
|
||||
"twitter_name",
|
||||
"twitter_style",
|
||||
"twitter_light",
|
||||
"twitter_dark",
|
||||
"twitter_color",
|
||||
"extension_commment_class"
|
||||
]
|
||||
},
|
||||
"js": {
|
||||
"added": [
|
||||
"core_pagebuilder_wrap__hide-images"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"html": {
|
||||
"added": [
|
||||
"admin\/applications\/menuManagerHeader"
|
||||
],
|
||||
"edited": [
|
||||
"global\/forms\/itemResult",
|
||||
"front\/global\/globalTemplate",
|
||||
"global\/global\/includeCSS",
|
||||
"front\/global\/navBar",
|
||||
"global\/global\/poll",
|
||||
"front\/myAttachments\/rows",
|
||||
"front\/profile\/userBadgeOverview",
|
||||
"front\/sharelinks\/shareButton",
|
||||
"front\/system\/ignore",
|
||||
"front\/system\/ignoreEditForm",
|
||||
"front\/system\/ignoreTable",
|
||||
"front\/system\/ignoreTableRows",
|
||||
"admin\/trees\/row",
|
||||
"front\/widgets\/relatedContent"
|
||||
],
|
||||
"removed": [
|
||||
"admin\/applications\/menuItem",
|
||||
"admin\/applications\/menuItemTools",
|
||||
"admin\/applications\/menuManager",
|
||||
"admin\/applications\/menuManagerDropdown",
|
||||
"admin\/applications\/menuManagerDropdownItem",
|
||||
"admin\/applications\/menuManagerForm",
|
||||
"admin\/applications\/menuManagerTypeColumn",
|
||||
"front\/widgets\/twitter"
|
||||
]
|
||||
},
|
||||
"css": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"admin\/core\/trees.css",
|
||||
"global\/framework\/1-3-variables.css",
|
||||
"global\/framework\/3-buttons.css",
|
||||
"global\/framework\/3-data-tables.css",
|
||||
"global\/framework\/3-entries.css",
|
||||
"global\/framework\/3-inputs.css",
|
||||
"global\/framework\/3-menus.css",
|
||||
"global\/framework\/3-richtext.css",
|
||||
"global\/framework\/4-header.css",
|
||||
"global\/framework\/5-other.css"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"resources": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
{
|
||||
"categories": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"lightDarkMode",
|
||||
"logos",
|
||||
"pageLayouts",
|
||||
"typography",
|
||||
"header",
|
||||
"sidePanel",
|
||||
"content",
|
||||
"footer",
|
||||
"mobileNavigation",
|
||||
"textLogo",
|
||||
"imageLogoDesktop",
|
||||
"imageLogoMobile",
|
||||
"desktopHeader",
|
||||
"mobileHeader",
|
||||
"body",
|
||||
"contentBoxes",
|
||||
"desktopFooter",
|
||||
"lightDarkMode",
|
||||
"logos",
|
||||
"pageLayouts",
|
||||
"typography",
|
||||
"header",
|
||||
"sidePanel",
|
||||
"content",
|
||||
"footer",
|
||||
"mobileNavigation",
|
||||
"textLogo",
|
||||
"imageLogoDesktop",
|
||||
"imageLogoMobile",
|
||||
"desktopHeader",
|
||||
"mobileHeader",
|
||||
"body",
|
||||
"contentBoxes",
|
||||
"desktopFooter"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"settings": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"set__i-default-scheme",
|
||||
"set__i-sidebar-ui-header--he",
|
||||
"set__i-logo-text",
|
||||
"set__i-mobile-header--he",
|
||||
"set__i-layout-width",
|
||||
"set__i-design-border",
|
||||
"i-footer--co",
|
||||
"set__i-position-logo",
|
||||
"set__i-mobile-icons-location",
|
||||
"set__logo-light",
|
||||
"set__i-font-family",
|
||||
"layout_global_view_mode",
|
||||
"set__mobile-logo-light",
|
||||
"set__i-mobile-footer-labels",
|
||||
"set__mobile-logo-dark",
|
||||
"set__logo-dark",
|
||||
"set__i-font-size",
|
||||
"i-footer--ba-co",
|
||||
"set__i-position-navigation",
|
||||
"set__i-design-radius",
|
||||
"set__i-flip-sidebar",
|
||||
"set__i-logo-slogan",
|
||||
"i-headerMobile--ba-co",
|
||||
"set__i-change-scheme",
|
||||
"i-dashHeader--ba-co",
|
||||
"set__i-mobile-logo--he",
|
||||
"set__i-logo--he",
|
||||
"i-color_root",
|
||||
"i-mobileFooter--ba-co",
|
||||
"set__i-position-user",
|
||||
"set__i-design-shadow",
|
||||
"set__i-avatar-radius",
|
||||
"set__i-logo--fo-fa",
|
||||
"i-dashHeader--co",
|
||||
"i-headerMobile--co",
|
||||
"i-color_soft",
|
||||
"set__i-sidebar-ui-logo--he",
|
||||
"i-mobileFooter--co",
|
||||
"set__i-position-breadcrumb",
|
||||
"i-navPanelLinkHover--co",
|
||||
"set__i-link-panels",
|
||||
"set__i-logo--fo-we",
|
||||
"i-body--ba-co",
|
||||
"set__i-sticky-sidebar",
|
||||
"i-box--ba-co",
|
||||
"set__i-position-search",
|
||||
"i-color_hard",
|
||||
"i-mobileFooter-active--co",
|
||||
"set__i-desktop-logo--fo-si",
|
||||
"i-navPanelLinkActive--ba-co",
|
||||
"set__i-header-primary--he",
|
||||
"i-box--bo-co",
|
||||
"i-link--co",
|
||||
"set__i-sidebar-ui-logo--fo-si",
|
||||
"i-mobileFooter-active--ba-co",
|
||||
"i-navPanel--ba-co",
|
||||
"set__i-header-secondary--he",
|
||||
"i-boxHeader--ba-co",
|
||||
"i-link-hover--co",
|
||||
"set__i-mobile-logo--fo-si",
|
||||
"i-navPanel--co",
|
||||
"set__i-nav-bar-icons",
|
||||
"i-boxHeader--co",
|
||||
"i-headerTop--ba-co",
|
||||
"i-widget-header--ba-co",
|
||||
"i-headerTop--co",
|
||||
"i-widget-header--co",
|
||||
"i-headerPrimary--ba-co",
|
||||
"i-headerPrimary--co",
|
||||
"i-headerSecondary--ba-co",
|
||||
"i-headerSecondary--co",
|
||||
"set__i-header-top--he",
|
||||
"set__i-default-scheme",
|
||||
"set__i-sidebar-ui-header--he",
|
||||
"set__i-logo-text",
|
||||
"set__i-mobile-header--he",
|
||||
"set__i-layout-width",
|
||||
"set__i-design-border",
|
||||
"i-footer--co",
|
||||
"set__i-position-logo",
|
||||
"set__i-mobile-icons-location",
|
||||
"set__logo-light",
|
||||
"set__i-font-family",
|
||||
"layout_global_view_mode",
|
||||
"set__mobile-logo-light",
|
||||
"set__i-mobile-footer-labels",
|
||||
"set__mobile-logo-dark",
|
||||
"set__logo-dark",
|
||||
"set__i-font-size",
|
||||
"i-footer--ba-co",
|
||||
"set__i-position-navigation",
|
||||
"set__i-design-radius",
|
||||
"set__i-flip-sidebar",
|
||||
"set__i-logo-slogan",
|
||||
"i-headerMobile--ba-co",
|
||||
"set__i-change-scheme",
|
||||
"i-dashHeader--ba-co",
|
||||
"set__i-mobile-logo--he",
|
||||
"set__i-logo--he",
|
||||
"i-color_root",
|
||||
"i-mobileFooter--ba-co",
|
||||
"set__i-position-user",
|
||||
"set__i-design-shadow",
|
||||
"set__i-avatar-radius",
|
||||
"set__i-logo--fo-fa",
|
||||
"i-dashHeader--co",
|
||||
"i-headerMobile--co",
|
||||
"i-color_soft",
|
||||
"set__i-sidebar-ui-logo--he",
|
||||
"i-mobileFooter--co",
|
||||
"set__i-position-breadcrumb",
|
||||
"i-navPanelLinkHover--co",
|
||||
"set__i-link-panels",
|
||||
"set__i-logo--fo-we",
|
||||
"i-body--ba-co",
|
||||
"set__i-sticky-sidebar",
|
||||
"i-box--ba-co",
|
||||
"set__i-position-search",
|
||||
"i-color_hard",
|
||||
"i-mobileFooter-active--co",
|
||||
"set__i-desktop-logo--fo-si",
|
||||
"i-navPanelLinkActive--ba-co",
|
||||
"set__i-header-primary--he",
|
||||
"i-box--bo-co",
|
||||
"i-link--co",
|
||||
"set__i-sidebar-ui-logo--fo-si",
|
||||
"i-mobileFooter-active--ba-co",
|
||||
"i-navPanel--ba-co",
|
||||
"set__i-header-secondary--he",
|
||||
"i-boxHeader--ba-co",
|
||||
"i-link-hover--co",
|
||||
"set__i-mobile-logo--fo-si",
|
||||
"i-navPanel--co",
|
||||
"set__i-nav-bar-icons",
|
||||
"i-boxHeader--co",
|
||||
"i-headerTop--ba-co",
|
||||
"i-widget-header--ba-co",
|
||||
"i-headerTop--co",
|
||||
"i-widget-header--co",
|
||||
"i-headerPrimary--ba-co",
|
||||
"i-headerPrimary--co",
|
||||
"i-headerSecondary--ba-co",
|
||||
"i-headerSecondary--co",
|
||||
"set__i-header-top--he"
|
||||
],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief {version_human} Upgrade Code
|
||||
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) Invision Power Services, Inc.
|
||||
* @license https://www.invisioncommunity.com/legal/standards/
|
||||
* @package Invision Community
|
||||
|
||||
* @since 14 Aug 2024
|
||||
*/
|
||||
|
||||
namespace IPS\core\setup\upg_5000015;
|
||||
|
||||
use IPS\core\FrontNavigation;
|
||||
use IPS\Db;
|
||||
use IPS\Data\Store;
|
||||
use IPS\Lang;
|
||||
use IPS\Member;
|
||||
use OutOfRangeException;
|
||||
use function defined;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* {version_human} Upgrade Code
|
||||
*/
|
||||
class Upgrade
|
||||
{
|
||||
/**
|
||||
* ...
|
||||
*
|
||||
* @return bool|array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
|
||||
*/
|
||||
public function step1() : bool|array
|
||||
{
|
||||
/* Modify root-level menu items that have children */
|
||||
$rootLevelItems = iterator_to_array(
|
||||
Db::i()->select( '*', 'core_menu', [ 'parent is null or parent=?', 0 ] )
|
||||
);
|
||||
foreach( $rootLevelItems as $root )
|
||||
{
|
||||
/* Does this have children? */
|
||||
$children = iterator_to_array(
|
||||
Db::i()->select( '*', 'core_menu', [ 'parent=?', $root['id'] ] )
|
||||
);
|
||||
|
||||
if( count( $children ) )
|
||||
{
|
||||
Db::i()->update( 'core_menu', [
|
||||
'app' => 'core',
|
||||
'extension' => 'Menu',
|
||||
'config' => '[]',
|
||||
'permissions' => null
|
||||
], [ 'id=?', $root['id'] ] );
|
||||
|
||||
/* Create the language string */
|
||||
$class = 'IPS\\' . $root['app'] . '\extensions\core\FrontNavigation\\' . $root['extension'];
|
||||
if( class_exists( $class ) )
|
||||
{
|
||||
/* @var FrontNavigation\FrontNavigationAbstract $class */
|
||||
$obj = new $class( json_decode( (string) $root['config'], true ), $root['id'], $root['permissions'], $root['menu_types'], json_decode( (string) $root['icon'], true ), $root['parent'] );
|
||||
$title = $obj->title();
|
||||
Member::loggedIn()->language()->parseOutputForDisplay( $title );
|
||||
Lang::saveCustom( 'core', 'menu_item_' . $root['id'], $title );
|
||||
}
|
||||
|
||||
foreach( $children as $child )
|
||||
{
|
||||
Db::i()->update( 'core_menu', [
|
||||
'is_menu_child' => ( $child['app'] == 'core' and $child['extension'] == 'Menu' ) ? 0 : 1
|
||||
], [ 'id=?', $child['id'] ] );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Drop the cache */
|
||||
try
|
||||
{
|
||||
unset( Store::i()->frontNavigation );
|
||||
}
|
||||
catch( OutOfRangeException ){}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// You can create as many additional methods (step2, step3, etc.) as is necessary.
|
||||
// Each step will be executed in a new HTTP request
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": [
|
||||
"twitter"
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user