-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Version 2.2.0 - Update der LazyLoad Library von Version 4.0.0 auf Version 5.3.2 - Neue Funktion mmp::getLazyLoad() zum einbinden der jeweiligen Version der LazyLoad Library (siehe Doku) - Anpassung der filenamesByBreakpoint - Anpassung der Doku * Funktionserweiterung - Sortierung von Breakpoints - Bereinigung von media_manager_type beim löschen von Breakpoints - Bereinigung von media_manager_type_effect beim löschen von Breakpoints - Anpassung der Doku * Versions Anpassung Co-authored-by: [email protected] <!R1e5i7U8SFMKx6ssw3x2Tk>
- Loading branch information
1 parent
3178dd2
commit 7f086f1
Showing
7 changed files
with
116 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,28 @@ | ||
<?php | ||
$addon = rex_addon::get('media_manager_plus'); | ||
|
||
|
||
rex_sql_table::get(rex::getTable('media_manager_type')) | ||
->ensureColumn(new rex_sql_column('group', 'int(10)')) | ||
->ensureColumn(new rex_sql_column('subgroup', 'int(10)')) | ||
->ensureColumn(new rex_sql_column('breakpointId', 'int(10)')) | ||
->alter(); | ||
|
||
|
||
rex_sql_table::get(rex::getTable('media_manager_plus_breakpoints')) | ||
->ensureColumn(new rex_sql_column('prio', 'int(10)')) | ||
->ensureColumn(new rex_sql_column('createdate', 'datetime'), 'prio') | ||
->ensureColumn(new rex_sql_column('createuser', 'varchar(255)'), 'createdate') | ||
->ensureColumn(new rex_sql_column('updatedate', 'datetime'), 'createuser') | ||
->ensureColumn(new rex_sql_column('updateuser', 'varchar(255)'), 'updatedate') | ||
->alter(); | ||
|
||
$s = rex_sql::factory(); | ||
$breakpoints = $s->getArray('Select * from '.rex::getTablePrefix().'media_manager_plus_breakpoints order by id'); | ||
$i = 1; | ||
foreach($breakpoints as $bp) { | ||
if($bp['prio'] === 0) { | ||
$s->setQuery("Update " . rex::getTablePrefix() . "media_manager_plus_breakpoints set prio=" . $i . " where id=".$bp['id']); | ||
$i++; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
CREATE TABLE IF NOT EXISTS `%TABLE_PREFIX%media_manager_plus_breakpoints` ( | ||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, | ||
`name` varchar(30) NOT NULL DEFAULT '', | ||
`mediaquery` varchar(255) NOT NULL DEFAULT '', | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
INSERT IGNORE INTO `%TABLE_PREFIX%media_manager_plus_breakpoints` (`id`, `name`, `mediaquery`) VALUES (1, 'XS', '(max-width: 375px)'); | ||
INSERT IGNORE INTO `%TABLE_PREFIX%media_manager_plus_breakpoints` (`id`, `name`, `mediaquery`) VALUES (2, 'S', '(min-width: 376px) and (max-width: 750px)'); | ||
INSERT IGNORE INTO `%TABLE_PREFIX%media_manager_plus_breakpoints` (`id`, `name`, `mediaquery`) VALUES (3, 'M', '(min-width: 751px) and (max-width: 1024px)'); | ||
INSERT IGNORE INTO `%TABLE_PREFIX%media_manager_plus_breakpoints` (`id`, `name`, `mediaquery`) VALUES (4, 'L', '(min-width: 1025px) and (max-width: 1300px)'); | ||
INSERT IGNORE INTO `%TABLE_PREFIX%media_manager_plus_breakpoints` (`id`, `name`, `mediaquery`) VALUES (5, 'XL', '(min-width: 1301px)'); | ||
-- CREATE TABLE IF NOT EXISTS `%TABLE_PREFIX%media_manager_plus_breakpoints` ( | ||
-- `id` int(10) unsigned NOT NULL AUTO_INCREMENT, | ||
-- `name` varchar(30) NOT NULL DEFAULT '', | ||
-- `mediaquery` varchar(255) NOT NULL DEFAULT '', | ||
-- `prio` int(10) unsigned NOT NULL, | ||
-- PRIMARY KEY (`id`) | ||
-- ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
-- | ||
-- INSERT IGNORE INTO `%TABLE_PREFIX%media_manager_plus_breakpoints` (`id`, `name`, `mediaquery`, `prio`) VALUES (1, 'XS', '(max-width: 375px)', 1); | ||
-- INSERT IGNORE INTO `%TABLE_PREFIX%media_manager_plus_breakpoints` (`id`, `name`, `mediaquery`, `prio`) VALUES (2, 'S', '(min-width: 376px) and (max-width: 750px)', 2); | ||
-- INSERT IGNORE INTO `%TABLE_PREFIX%media_manager_plus_breakpoints` (`id`, `name`, `mediaquery`, `prio`) VALUES (3, 'M', '(min-width: 751px) and (max-width: 1024px)', 3); | ||
-- INSERT IGNORE INTO `%TABLE_PREFIX%media_manager_plus_breakpoints` (`id`, `name`, `mediaquery`, `prio`) VALUES (4, 'L', '(min-width: 1025px) and (max-width: 1300px)', 4); | ||
-- INSERT IGNORE INTO `%TABLE_PREFIX%media_manager_plus_breakpoints` (`id`, `name`, `mediaquery`, `prio`) VALUES (5, 'XL', '(min-width: 1301px)', 5); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters