Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
5a2b02c
Separate Metismenu, speaking names for menu items
chmst Sep 20, 2020
4db6f01
Fix parent_id in author menu
chmst Sep 21, 2020
183cb6b
Several improvements to solve issues
drmenzelit Sep 21, 2020
9fd947c
Underlines in metismenu
drmenzelit Sep 21, 2020
1805cf1
Resolve issue #97
drmenzelit Sep 21, 2020
2cba884
Merge branch 'development' into development-improvements
richard67 Sep 21, 2020
63a0ff8
Merge branch 'development' into sampledata-new-metismenu
richard67 Sep 21, 2020
6707bfa
Correct margin fieldset
drmenzelit Sep 21, 2020
f0ac7f7
Merge branch 'development' into sampledata-new-metismenu
richard67 Sep 21, 2020
37b43e9
Merge branch 'development' into development-improvements
richard67 Sep 21, 2020
96e3c63
[4.0] codestyle (#30724)
brianteeman Sep 21, 2020
e16597b
Margin for fieldset, correct underline for metismenu
drmenzelit Sep 22, 2020
9924470
Change the name "metismenu2 to "Sample Layouts"
chmst Sep 22, 2020
1ee3192
Improve error and offline pages
drmenzelit Sep 22, 2020
d318b1b
Improve error and offline page
drmenzelit Sep 22, 2020
2e20c9a
Move Route::_() calls to layout (#30733)
SharkyKZ Sep 22, 2020
bba39e9
[4.0] Composer update 19 sep (#30692)
brianteeman Sep 22, 2020
6259510
[4.0] Fix Debug plugin to display query parameters (#30717)
Fedik Sep 22, 2020
034a61d
Fix hiddenLabel and add hiddenLegend form attribute (#29710)
Ruud68 Sep 22, 2020
7a91649
[4.0] Cleanup cassiopeia chromes and rename "default" to "card" (#30729)
Sep 23, 2020
d60f3eb
apply lobotomized owl inspector on fieldsets and fields
hans2103 Sep 23, 2020
8fcc810
[4.0] Fix saving images (#30730)
SharkyKZ Sep 23, 2020
dd1f1c1
rest margin-bottom on direct children of fieldset
hans2103 Sep 23, 2020
319edca
[4.0] Remove use of ReflectionParameter::getClass() (#30581)
SharkyKZ Sep 23, 2020
74c6d06
[4.0] spelling (#30742)
brianteeman Sep 23, 2020
7047a4e
Use renderField() method to render fields (#30738)
SharkyKZ Sep 23, 2020
26db62c
Change mansory to columns, Add a link to the parent in the sample men…
chmst Sep 23, 2020
367a27a
Removing card.scss overrides as we don't use those classes
Sep 24, 2020
51f6890
Remove body definition in offline.scss
drmenzelit Sep 24, 2020
5ea9acf
Add margin to fieldset and control-group
drmenzelit Sep 24, 2020
8f0fb6c
Joomla 4, use article title as menuItem title
chmst Sep 24, 2020
9683974
Correct syntax for logo on erro.php, add margin to page-header
drmenzelit Sep 24, 2020
3fe1e7f
Remove Uri::root() from template path. Add baseurl to logo call
drmenzelit Sep 24, 2020
4b79c51
Merge pull request #99 from joomla/development-improvements
richard67 Sep 24, 2020
d7fd545
Merge pull request #101 from joomla/development-error-page
richard67 Sep 24, 2020
36c6156
Merge branch '4.0-dev' into development
richard67 Sep 24, 2020
b0619b9
Merge branch 'development' into sampledata-new-metismenu
chmst Sep 24, 2020
df5447e
fix typo
chmst Sep 24, 2020
63fc393
Name"Joomla 4" not accepted, changed to Joomla
chmst Sep 24, 2020
fd2831f
[4.0] Check out improvements related to nullable columns (#30747)
SharkyKZ Sep 24, 2020
fdfeda2
Remove obsolete html code (#30737)
hans2103 Sep 24, 2020
8f395a2
Merge branch '4.0-dev' into development
richard67 Sep 24, 2020
48a4731
Merge branch 'development' into sampledata-new-metismenu
richard67 Sep 24, 2020
3892e6f
Merge pull request #96 from joomla/sampledata-new-metismenu
richard67 Sep 24, 2020
fdb111c
Remove the chrome "cardGrey". The same effect can be achieved by usin…
Sep 24, 2020
1179464
Removing card.scss overrides as we don't use those classes (#30754)
wilsonge Sep 24, 2020
964d356
fix margin top on first element in sidebar left
hans2103 Sep 24, 2020
027989a
Merge branch '4.0-dev' into development
richard67 Sep 24, 2020
065d617
Merge branch 'cassiopeia/development' into feature/#108--Add-spacing
hans2103 Sep 24, 2020
13343d7
Roboto
brianteeman Sep 24, 2020
ceee8a7
Merge branch 'cassiopeia/development' into feature-cassiopeia/#107--p…
hans2103 Sep 24, 2020
65cc4d7
Merge pull request #112 from brianteeman/roboto
richard67 Sep 24, 2020
edb1dcd
Merge pull request #110 from hans2103/feature/#108--Add-spacing
richard67 Sep 24, 2020
3dad02d
remove white border
hans2103 Sep 25, 2020
1f6d2d2
Merge branch 'cassiopeia/development' into feature-cassiopeia/#107--p…
hans2103 Sep 25, 2020
f451ea5
Solve layout problems with search module on mobile
drmenzelit Sep 25, 2020
0f47991
fix border radius on first and last item
hans2103 Sep 25, 2020
7c99c77
removal demo-styling
hans2103 Sep 25, 2020
d0fccf6
removal border radius. Already set
hans2103 Sep 25, 2020
75520e6
Change positions
chmst Sep 25, 2020
6b03596
Merge pull request #135 from joomla/development-search-button
richard67 Sep 25, 2020
9cecc74
Merge pull request #131 from hans2103/feature-cassiopeia/#107--pagina…
richard67 Sep 25, 2020
b8c2cfa
Merge branch 'development' into change-positions-topmain-breadcrumbs
richard67 Sep 25, 2020
2d72df7
Merge pull request #138 from joomla/change-positions-topmain-breadcrumbs
richard67 Sep 25, 2020
f4f2342
Merge pull request #137 from hans2103/feature-cassiopeia/#136--remove…
richard67 Sep 25, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 31 additions & 32 deletions administrator/components/com_checkin/src/Model/CheckinModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,26 +107,31 @@ public function checkin($ids = array())
continue;
}

$query = $db->getQuery(true)
->update($db->quoteName($tn))
->set($db->quoteName('checked_out') . ' = DEFAULT');

if ($fields['checked_out_time']->Null === 'YES')
{
$query = $db->getQuery(true)
->update($db->quoteName($tn))
->set($db->quoteName('checked_out') . ' = DEFAULT')
->set($db->quoteName('checked_out_time') . ' = NULL')
->where($db->quoteName('checked_out') . ' > 0');
$query->set($db->quoteName('checked_out_time') . ' = NULL');
}
else
{
$nullDate = $db->getNullDate();

$query = $db->getQuery(true)
->update($db->quoteName($tn))
->set($db->quoteName('checked_out') . ' = DEFAULT')
->set($db->quoteName('checked_out_time') . ' = :checkouttime')
->where($db->quoteName('checked_out') . ' > 0')
$query->set($db->quoteName('checked_out_time') . ' = :checkouttime')
->bind(':checkouttime', $nullDate);
}

if ($fields['checked_out']->Null === 'YES')
{
$query->where($db->quoteName('checked_out') . ' IS NOT NULL');
}
else
{
$query->where($db->quoteName('checked_out') . ' > 0');
}

$db->setQuery($query);

if ($db->execute())
Expand Down Expand Up @@ -169,56 +174,50 @@ public function getItems()
{
$db = $this->getDbo();
$tables = $db->getTableList();
$prefix = Factory::getApplication()->get('dbprefix');

// This array will hold table name as key and checked in item count as value.
$results = array();

foreach ($tables as $i => $tn)
foreach ($tables as $tn)
{
// Make sure we get the right tables based on prefix.
if (stripos($tn, Factory::getApplication()->get('dbprefix')) !== 0)
if (stripos($tn, $prefix) !== 0)
{
unset($tables[$i]);
continue;
}

if ($this->getState('filter.search') && stripos($tn, $this->getState('filter.search')) === false)
{
unset($tables[$i]);
continue;
}

$fields = $db->getTableColumns($tn);
$fields = $db->getTableColumns($tn, false);

if (!(isset($fields['checked_out']) && isset($fields['checked_out_time'])))
{
unset($tables[$i]);
continue;
}
}

foreach ($tables as $tn)
{
$query = $db->getQuery(true)
->select('COUNT(*)')
->from($db->quoteName($tn))
->where('checked_out > 0');

$db->setQuery($query);
->from($db->quoteName($tn));

if ($db->execute())
if ($fields['checked_out']->Null === 'YES')
{
$results[$tn] = $db->loadResult();

// Show only tables with items to checkin.
if ((int) $results[$tn] === 0)
{
unset($results[$tn]);
}
$query->where($db->quoteName('checked_out') . ' IS NOT NULL');
}
else
{
continue;
$query->where($db->quoteName('checked_out') . ' > 0');
}

$db->setQuery($query);
$count = $db->loadResult();

if ($count)
{
$results[$tn] = $count;
}
}

Expand Down
24 changes: 10 additions & 14 deletions administrator/language/en-GB/plg_sampledata_blog.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,26 @@ PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_3_TITLE="About your home page"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_4_FULLTEXT=""
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_4_INTROTEXT="<p>Your site has some commonly used modules already preconfigured. </p>"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_4_TITLE="Your Modules"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_5_FULLTEXT="<p>These include:</p><ul><li>Image Module which holds the image beneath the menu. This is a Custom module that you can edit to change the image.</li><li>Most Read Posts which lists articles based on the number of times they have been read.</li><li>Older Articles which lists out articles by month.</li><li>Syndicate which allows your readers to read your posts in a news reader.</li><li>Popular Tags, which will appear if you use tagging on your articles. Enter a tag in the Tags field when editing.</li></ul><p>Each of these modules has many options which you can experiment with in the Module Manager in your site Administrator. Moving your mouse over a module and selecting the edit icon will take you to an edit screen for that module. Always be sure to save and close any module you edit.</p><p>Joomla! also includes many other modules you can incorporate in your site. As you develop your site you may want to add more module that you can find at the <a href='https://extensions.joomla.org/'>Joomla Extensions Directory.</a></p>"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_5_INTROTEXT="<p>Templates control the look and feel of your website. This blog is installed with the Cassiopeia template.</p><p>You can edit the options by selecting the Working on Your Site, Template Settings link in the top menu (visible when you login).</p><p>For example you can change the site background color, highlights color, site title, site description and title font used.<br>More options are available in the site administrator. You may also install a new template using the extension manager.</p>"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_5_FULLTEXT="<p>This blog is installed with the Cassiopeia template.</p><p>You can edit the options by selecting the Working on Your Site, Template Settings link in the top menu (visible when you login).</p><p>For example you can change the site background color, highlights color, site title, site description and title font used.</p><p>More options are available in the site administrator. You may also install a new template using the extension manager.</p>"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_5_INTROTEXT="<p>Templates control the look and feel of your website.</p>"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_5_TITLE="Your Template"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_FULLTEXT=" This will be a nice documentation on multi column Layouts in J4. <br><br>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est "
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_INTROTEXT="<p>Millions of Websites are built on Joomla!</p>"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_TITLE="Multilingual"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_FULLTEXT="Uurnip greens yarrow ricebean rutabaga endive cauliflower sea lettuce kohlrabi amaranth water spinach avocado daikon napa cabbage asparagus winter purslane kale. Celery potato scallion desert raisin horseradish spinach carrot soko. Lotus root water spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram corn pea. Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress. Corn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke. "
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_INTROTEXT="<p>We love Joomla to the moon and back! Thank you to all voluteers who have contributed!</p> "
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_TITLE="Flexible System"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_TITLE="Millions"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_FULLTEXT="<p>Uurnip greens yarrow ricebean rutabaga endive cauliflower sea lettuce kohlrabi amaranth water spinach avocado daikon napa cabbage asparagus winter purslane kale. Celery potato scallion desert raisin horseradish spinach carrot soko. Lotus root water spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram corn pea. Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress. Corn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke.</p> "
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_INTROTEXT="<p>We love Joomla to the moon and back! Thank you to all volunteers who have contributed!</p> "
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_TITLE="Love"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_FULLTEXT="<p>Cupcake ipsum dolor. Sit amet cotton candy ice cream sesame snaps cake marshmallow powder. Ice cream chocolate cake marshmallow halvah bonbon. Dragée carrot cake danish candy muffin brownie. Candy sugar plum ice cream chupa chups macaroon tiramisu soufflé oat cake. Topping cheesecake lollipop gummi bears icing sweet roll donut liquorice. Pie jelly-o candy donut oat cake cotton candy. </p>"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_INTROTEXT="<p>We proudly present Joomla Version 4!</p>"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_TITLE="Security First!"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_TITLE="Joomla"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_0_TITLE="Blog"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_1_TITLE="Help"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_2_TITLE="Template"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_2_TITLE="Joomla"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_0_TITLE="Blog"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_10_TITLE="Template Settings"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE="Template"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE="Sample Layouts"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_12_TITLE="Category List"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_14_TITLE="Article"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_15_TITLE="Archive"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_16_TITLE="Articles"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_17_TITLE="Lorem"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_18_TITLE="Ipsum"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_13_TITLE="Articles"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_1_TITLE="About"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_2_TITLE="Author Login"
PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_3_TITLE="Create a Post"
Expand Down
17 changes: 14 additions & 3 deletions build/media_source/com_media/js/edit-images.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,15 @@ Joomla.MediaManager = Joomla.MediaManager || {};
Joomla.MediaManager.Edit.Reset(true);
break;
case 'save':
Joomla.UploadFile.exec(name, JSON.stringify(forUpload), uploadPath, url, type);
window.location = `${pathName}?option=com_media&view=media&path=${fileDirectory}`;
Joomla.UploadFile.exec(name, JSON.stringify(forUpload), uploadPath, url, type, function () {
if (this.readyState === XMLHttpRequest.DONE) {
if (window.self !== window.top) {
window.location = `${pathName}?option=com_media&view=media&path=${fileDirectory}&tmpl=component`;
} else {
window.location = `${pathName}?option=com_media&view=media&path=${fileDirectory}`;
}
}
});
break;
case 'cancel':
if (window.self !== window.top) {
Expand Down Expand Up @@ -190,13 +197,17 @@ Joomla.MediaManager = Joomla.MediaManager || {};
/**
* @TODO Extend Joomla.request and drop this code!!!!
*/
Joomla.UploadFile.exec = (name, data, uploadPath, url, type) => {
Joomla.UploadFile.exec = (name, data, uploadPath, url, type, stateChangeCallback) => {
const xhr = new XMLHttpRequest();

xhr.upload.onprogress = (e) => {
Joomla.MediaManager.Edit.updateProgressBar((e.loaded / e.total) * 100);
};

if (typeof stateChangeCallback === 'function') {
xhr.onreadystatechange = stateChangeCallback;
}

xhr.onload = () => {
let resp;
try {
Expand Down
17 changes: 11 additions & 6 deletions build/media_source/plg_system_debug/widgets/sqlqueries/widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,26 +100,28 @@ div.phpdebugbar-widgets-sqlqueries span.phpdebugbar-widgets-eye-dash {
div.phpdebugbar-widgets-sqlqueries table.phpdebugbar-widgets-params {
display: none;
width: 70%;
margin: 10px;
margin: 10px 0;
border: 1px solid #ddd;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
border-collapse: collapse;
}

div.phpdebugbar-widgets-sqlqueries table.phpdebugbar-widgets-params td {
div.phpdebugbar-widgets-sqlqueries table.phpdebugbar-widgets-params td,
div.phpdebugbar-widgets-sqlqueries table.phpdebugbar-widgets-explain td {
border: 1px solid #ddd;
text-align: center;
padding: 3px;
}

div.phpdebugbar-widgets-sqlqueries table.phpdebugbar-widgets-params .phpdebugbar-widgets-name {
width: 20%;
font-weight: bold;
}

div.phpdebugbar-widgets-sqlqueries table.phpdebugbar-widgets-callstack {
div.phpdebugbar-widgets-sqlqueries table.phpdebugbar-widgets-callstack,
div.phpdebugbar-widgets-sqlqueries table.phpdebugbar-widgets-explain{
display: none;
width: 100%;
margin: 10px;
margin: 10px 0;
border: 1px solid #ddd;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
border-collapse: collapse;
Expand All @@ -133,8 +135,11 @@ div.phpdebugbar-widgets-sqlqueries table.phpdebugbar-widgets-callstack tbody tr:
background-color: #eee;
}

div.phpdebugbar-widgets-sqlqueries table.phpdebugbar-widgets-callstack th {
div.phpdebugbar-widgets-sqlqueries table.phpdebugbar-widgets-callstack th,
div.phpdebugbar-widgets-sqlqueries table.phpdebugbar-widgets-explain th,
div.phpdebugbar-widgets-sqlqueries table.phpdebugbar-widgets-params th{
font-weight: bold;
padding: 3px;
}

div.phpdebugbar-widgets-sqlqueries li.phpdebugbar-widgets-list-item {
Expand Down
Loading