-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Add file types for media custom field plugin. #45013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sergeytolkachyov
wants to merge
73
commits into
joomla:6.0-dev
Choose a base branch
from
sergeytolkachyov:5.3-dev
base: 6.0-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 31 commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
b109423
Add file types for media custom field plugin.
sergeytolkachyov 73b3696
Update plugins/fields/media/params/media.xml
sergeytolkachyov 667d5db
Fix language string and strings sorting
sergeytolkachyov 4d745f4
Merge remote-tracking branch 'origin/5.3-dev' into 5.3-dev
sergeytolkachyov 9a36d9b
Update libraries/src/Form/Field/AccessiblemediaField.php
sergeytolkachyov dff217a
Update administrator/language/en-GB/plg_fields_media.ini
sergeytolkachyov 8a2e00b
Update plugins/fields/media/params/media.xml
sergeytolkachyov 60ff74c
Merge branch 'joomla:5.3-dev' into 5.3-dev
sergeytolkachyov 81757c4
- Rebuild XML constructing with SimpleXMLElement
sergeytolkachyov c42fd84
- add `Change file` language string for modal select window
sergeytolkachyov 0c0f885
- change new field name to `linktext`
sergeytolkachyov 2955904
language strings sorted alphabetically
sergeytolkachyov bd4ce70
fix namespace place
sergeytolkachyov eda1127
fix namespace place
sergeytolkachyov 0d03c71
fix code style for continuous-integration/drone/pr
sergeytolkachyov 2407a79
fix code style for continuous-integration/drone/pr - global_namespace…
sergeytolkachyov a426e7f
fix code style for continuous-integration/drone/pr - layouts/joomla/f…
sergeytolkachyov 02796b9
fix code style for continuous-integration/drone/pr - layouts/joomla/f…
sergeytolkachyov 7fc5168
remove the space before/after `=`
sergeytolkachyov ea80139
Update layouts/joomla/form/field/media.php
sergeytolkachyov fd46369
Update language/en-GB/lib_joomla.ini
sergeytolkachyov 2bc5c45
Merge branch 'joomla:5.3-dev' into 5.3-dev
sergeytolkachyov 10653ba
`Change file` to `Change File`
sergeytolkachyov 4ae22c2
revert space changes in layout variables list
sergeytolkachyov 742afc4
remove spaces
sergeytolkachyov 3358c7e
code style
sergeytolkachyov 2f0fc13
Alpha order namespace import
sergeytolkachyov 884ff61
Merge branch 'joomla:5.3-dev' into 5.3-dev
sergeytolkachyov 3d4cf29
Add audio and video layouts
sergeytolkachyov 887919c
Link text field only for `documents` file type. `Audios` and `videos`…
sergeytolkachyov 8e77148
Add support own layouts for `audios` and `videos` file types.
sergeytolkachyov 553f9e7
Merge branch 'joomla:5.3-dev' into 5.3-dev
sergeytolkachyov 0a073b1
fix code style
sergeytolkachyov 2455688
Merge branch '5.3-dev' into 5.3-dev
sergeytolkachyov fede1d9
Merge branch '6.0-dev' into 5.3-dev
QuyTon fac755f
Merge branch 'joomla:5.3-dev' into 5.3-dev
sergeytolkachyov d184356
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov 6afb8b7
Update administrator/language/en-GB/lib_joomla.ini
sergeytolkachyov 90cecbc
Update language/en-GB/lib_joomla.ini
sergeytolkachyov 21531e5
Update layouts/joomla/html/audio.php
sergeytolkachyov c5c43d8
Update layouts/joomla/html/video.php
sergeytolkachyov d7bcad9
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov ebfc72c
Fix relative path to absolute
sergeytolkachyov 726e9d1
Remote file url support - Update media.php
sergeytolkachyov ee7f832
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov 1a24ba9
Fix code style
sergeytolkachyov 2db9318
fix code style
sergeytolkachyov 601fd1d
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov d8a3e14
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov ab6ce9d
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov 7c8e533
Fix wrong file url
sergeytolkachyov ed992da
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov 4e50433
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov 1d1051e
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov c9ce49f
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov 3ab7941
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov 298b44f
Update lib_joomla.ini
sergeytolkachyov b526ee6
Update media.php
sergeytolkachyov 70e2732
Update media.php
sergeytolkachyov f8cc192
Update media.php
sergeytolkachyov 9cc9012
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov 12af28c
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov e90e291
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov 82a0fac
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov c1459e6
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov 5d7123c
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov 7ba7419
Update video.php
sergeytolkachyov 50b204c
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov ffef599
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov 5c5c4f4
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov 1233140
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov 82f323c
Merge branch '6.0-dev' into 5.3-dev
sergeytolkachyov a42c65f
Merge branch '6.0-dev' into 5.3-dev
HLeithner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
/** | ||
* @package Joomla.Site | ||
* @subpackage Layout | ||
* | ||
* @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org> | ||
sergeytolkachyov marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
/** | ||
* Layout variables | ||
* ----------------- | ||
* @var array $displayData Array with all the given attributes for the audio element. | ||
* Eg: src, class, controls, controlslist, autoplay, loop, style, data-* | ||
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio | ||
*/ | ||
defined('_JEXEC') or die; | ||
|
||
use Joomla\Utilities\ArrayHelper; | ||
|
||
if (array_key_exists('src', $displayData) && !empty($displayData['src'])) { | ||
$displayData['src'] = $this->escape($displayData['src']); | ||
} | ||
|
||
echo '<audio ' . ArrayHelper::toString($displayData) . '></audio>'; |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
/** | ||
* @package Joomla.Site | ||
* @subpackage Layout | ||
* | ||
* @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org> | ||
sergeytolkachyov marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
/** | ||
* Layout variables | ||
* ----------------- | ||
* @var array $displayData Array with all the given attributes for the video element. | ||
* Eg: src, class, controls, width, height, autoplay, decoding, style, data-* | ||
* Note: <source> tags for <video> - is array of arrays with `src` and `type` keys. | ||
* $displayData['source'] = [ ['src' => 'path/to/video.mp4', 'type' => 'video/mp4'] ]; | ||
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video | ||
*/ | ||
defined('_JEXEC') or die; | ||
|
||
use Joomla\Utilities\ArrayHelper; | ||
|
||
if (array_key_exists('src', $displayData) && !empty($displayData['src'])) { | ||
$displayData['src'] = $this->escape($displayData['src']); | ||
} | ||
|
||
$source = []; | ||
if (isset($displayData['source']) && is_array($displayData['source'])) { | ||
$source = $displayData['source']; | ||
unset($displayData['source']); | ||
} | ||
|
||
echo '<video ' . ArrayHelper::toString($displayData) . '>'; | ||
if (!empty($source)) { | ||
foreach ($source as $sourseData) { | ||
echo '<source src="' . $this->escape($sourseData['src']) . '" type="' . $sourseData['type'] . '" />'; | ||
} | ||
} | ||
echo '</video>'; |
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.