Skip to content
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

Use ted skin + folders js/css #18

Closed
wants to merge 101 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
d52e0dc
Fixed JForm::bind for nested JObject argument
izharaazmi Jun 7, 2014
7873151
Update tos.php
joomdonation Feb 4, 2015
c83ddc1
[UX] Protostar: Remove hard coded css
810 Apr 8, 2015
bca6967
Update default_results.php
pjmatos Apr 14, 2015
bb54171
Some headers were missing when serving from cache
Chraneco May 15, 2015
f4d2941
JForm::filter() make sure that $data is complete
Fedik Jul 8, 2015
f9fcf23
Add unit tests for JInstallerAdapter
wilsonge Jul 27, 2015
28d8485
Increase test coverage of JInstallerAdapter::install()
wilsonge Jul 27, 2015
cafa473
Copy paste error in comment
wilsonge Jul 27, 2015
4993ba5
Use PHPUnit API & increase strength of constructor tests (thanks @mba…
wilsonge Jul 27, 2015
42c53e7
Add covers tag + minor other fixes from @mbabker
wilsonge Jul 28, 2015
b892b9b
Update JInstallerAdapterTest.php
wilsonge Jul 28, 2015
6ab866e
Try mocking the database connection
wilsonge Jul 28, 2015
c0d40d2
Load dataset
wilsonge Jul 28, 2015
2a6c1a7
Extend TestCaseDatabase again
wilsonge Jul 28, 2015
dce84c3
Remove setting JFactory::$database
wilsonge Jul 29, 2015
0b8eb64
CodeMirror updated to 5.4
okonomiyaki3000 Jun 29, 2015
7fc3760
Actually update the files...
okonomiyaki3000 Jun 29, 2015
1ea3080
CodeMirror 5.5
okonomiyaki3000 Jul 31, 2015
1fccaf3
Update CodeMirror version number in xml
okonomiyaki3000 Jul 31, 2015
5a96f29
Dataset not needed
wilsonge Aug 12, 2015
9527b28
com_config - prevent wrong database settings
alikon Aug 18, 2015
2fe2f28
Fix for PDO driver
alikon Aug 20, 2015
e3afb10
Update application.php
zero-24 Aug 20, 2015
7815088
Merge pull request #17 from zero-24/patch-8
alikon Aug 20, 2015
18d96e2
Fix wrong CSS Class on Tags
zero-24 Aug 24, 2015
edef6fe
Update view.html.php
zero-24 Aug 24, 2015
176ca45
CS
zero-24 Aug 24, 2015
3307a04
Rendering params fieldsets on site article form
laoneo Aug 25, 2015
5b60bb6
Update edit.php
zero-24 Aug 25, 2015
72f7ac4
Merge pull request #1 from zero-24/patch-8
laoneo Aug 26, 2015
7bba905
fix merge conflicts
zero-24 Aug 26, 2015
df30eb0
Set empty value for NOT NULL fields
tampe125 Aug 27, 2015
1e359f8
Fixed update of site menu entries
tampe125 Aug 27, 2015
6863840
Fixed NOT NULL fields in the file adapter, too
tampe125 Aug 27, 2015
a3710ae
$model->validate() requires the form parameter.
lecoeurlou Aug 30, 2015
123621d
Updating installation language files.
Aug 30, 2015
ebf1abd
Protostar: Correcting classes for alert messages
infograf768 Aug 31, 2015
cf751b8
Adding administrator/templates/isis/html/message.php file to delete
infograf768 Aug 31, 2015
6f44d02
Merge pull request #7789 from infograf768/missing_delete
Aug 31, 2015
4e4ee7a
Merge pull request #7785 from lecoeurlou/patch-1
wilsonge Sep 1, 2015
afcfb3c
Sync frontend en-GB.lib_joomla.ini with changes made in backend. Than…
Aug 31, 2015
e5a848f
Merge pull request #7788 from infograf768/proto_alert
Kubik-Rubik Sep 1, 2015
c32b201
Merge pull request #7768 from Digital-Peak/add-frontend-params-fieldsets
Kubik-Rubik Sep 1, 2015
a05b881
Merge pull request #7759 from zero-24/tags_css
Kubik-Rubik Sep 1, 2015
e606d12
Merge pull request #7721 from alikon/patch-39
Kubik-Rubik Sep 1, 2015
a394bda
Merge pull request #7381 from Fedik/jform-filter-completedata
Kubik-Rubik Sep 1, 2015
796ae2a
Merge pull request #7284 from okonomiyaki3000/CodeMirrorUpdate
Kubik-Rubik Sep 1, 2015
87db28b
Fixes HTML errors in com_installer #7230 Fixes #7235
OctavianC Jun 22, 2015
9c63005
Merge pull request #6771 from pjmatos/patch-3
Kubik-Rubik Sep 1, 2015
aacea5b
Tag 3.4.4 Release Candidate
wilsonge Sep 1, 2015
08ede73
CodeMirror 5.6
okonomiyaki3000 Sep 2, 2015
61acab3
Update jQuery to 1.11.3
viocassel Sep 2, 2015
4bfd9b9
HTML5 Shiv Update to 3.7.3
viocassel Sep 2, 2015
bc6d2b1
Merge pull request #7796 from okonomiyaki3000/CodeMirrorUpdate
Kubik-Rubik Sep 2, 2015
68aa78f
Fixes wrong behaviour in filter method of JForm class
Kubik-Rubik Sep 2, 2015
33260ae
Updated installation language files for ja-JP, pt-BR and ta-IN
Sep 3, 2015
abcc0eb
Merge pull request #7806 from Kubik-Rubik/jform-filter-fix
Sep 3, 2015
a6e98d4
Merge pull request #7801 from viocassel/HTML5ShivUpdate
wilsonge Sep 3, 2015
06fc13b
Merge pull request #7798 from viocassel/jQueryUpdate
wilsonge Sep 3, 2015
8c5855b
Tag 3.4.4 Release Candidate 2
wilsonge Sep 3, 2015
e2bcdab
Use http://mediaelementjs.com/ for video support in media manager (ta…
wilsonge Sep 4, 2015
ec4f6ab
Language: Error when mass changing directory to folder
infograf768 Sep 4, 2015
a0ad388
Merge pull request #7811 from infograf768/AD
wilsonge Sep 4, 2015
fdb6625
Update $explodedName with reversed array
Sep 4, 2015
1940da5
add close button on modal’s footer
Sep 4, 2015
4a3d8f4
Update view.html.php
Hils Sep 4, 2015
588c0ef
Update view.html.php
Hils Sep 4, 2015
d627511
Merge pull request #16 from dgt41/patch-2
wilsonge Sep 4, 2015
7df7bbe
Pause player when you close the modal
wilsonge Sep 4, 2015
71dcc14
Make the javascript selectors more specific
wilsonge Sep 4, 2015
1fcc029
Fix PHPDoc for JHtmlJGrid::state
Harmageddon Sep 5, 2015
fc6c045
Updated installation languages for de-DE and bs-BA
Sep 5, 2015
bc08dbf
Updated installation language strings for fa-IR
Sep 6, 2015
805dbc3
Merge pull request #7814 from ryandemmer/patch-1
Kubik-Rubik Sep 7, 2015
49ee177
Updated installation language strings for pt-BR.
Sep 7, 2015
80bb7bd
Merge pull request #7778 from tampe125/fix-mssql-ext-install
wilsonge Sep 7, 2015
dd5e5aa
Updated installation language files for nl-NL
Sep 7, 2015
5d699e4
merge with #7778
alikon Sep 8, 2015
e2c35a1
travis whitespace
alikon Sep 8, 2015
f8ab55e
Merge pull request #7832 from alikon/mssql-3dp-install
Kubik-Rubik Sep 8, 2015
6a99b5d
Prepare 3.4.4
wilsonge Sep 8, 2015
a433677
Merge pull request #7569 from wilsonge/installertests
mbabker Sep 8, 2015
dea7613
Version bump for development
mbabker Sep 8, 2015
20ed1ac
Merge pull request #5968 from joomdonation/patch-1
roland-d Sep 8, 2015
9f05d19
Merge pull request #3737 from izharaazmi/jform-bind
roland-d Sep 8, 2015
dd461c2
Merge pull request #6705 from 810/staging-protostar
roland-d Sep 9, 2015
823e965
Merge pull request #7822 from Harmageddon/lib_jgrid_comment
mbabker Sep 9, 2015
44d22db
Merge pull request #6955 from Chraneco/patch-1
roland-d Sep 9, 2015
ebc0825
Update default.php - fixing invisible menu heading
teeuwis Sep 9, 2015
f019a04
Merge pull request #7816 from Hils/staging
wilsonge Sep 9, 2015
a6b7e05
Merge pull request #7839 from teeuwis/patch-1
wilsonge Sep 9, 2015
7e130b6
Use bootstrap modal for preview on com_media Fixes #7819
dgrammatiko Sep 5, 2015
87d9e4f
Merge remote-tracking branch 'upstream/staging' into video
wilsonge Sep 10, 2015
c2b28f8
Accidentally removed the js and css file
wilsonge Sep 10, 2015
9ba1cc7
bootstrap + details
dgrammatiko Sep 10, 2015
6cc93ee
Merge pull request #17 from dgt41/video
wilsonge Sep 10, 2015
74a3a93
Remove requirement for dummy.mp4
wilsonge Sep 10, 2015
87c774b
Similar fix for details view
wilsonge Sep 10, 2015
d61eab2
Code style and comment fix
wilsonge Sep 10, 2015
678773b
Ted skin + js-css folders
dgrammatiko Sep 10, 2015
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
2 changes: 2 additions & 0 deletions administrator/components/com_admin/script.php
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,8 @@ public function deleteUnexistingFiles()
'/libraries/joomla/registry/format/json.php',
'/libraries/joomla/registry/format/php.php',
'/libraries/joomla/registry/format/xml.php',
// Joomla 3.3.1
'/administrator/templates/isis/html/message.php',
// Joomla! 3.4
'/administrator/components/com_tags/helpers/html/index.html',
'/administrator/components/com_tags/models/fields/index.html',
Expand Down
21 changes: 21 additions & 0 deletions administrator/components/com_config/model/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,27 @@ public function save($data)
{
$app = JFactory::getApplication();

// Check that we aren't setting wrong database configuration
$options = array(
'driver' => $data['dbtype'],
'host' => $data['host'],
'user' => $data['user'],
'password' => JFactory::getConfig()->get('password'),
'database' => $data['db'],
'prefix' => $data['dbprefix']
);

try
{
$dbc = JDatabaseDriver::getInstance($options)->getVersion();
}
catch (Exception $e)
{
$app->enqueueMessage(JText::_('JLIB_DATABASE_ERROR_DATABASE_CONNECT'), 'error');

return false;
}

// Save the rules
if (isset($data['rules']))
{
Expand Down
6 changes: 6 additions & 0 deletions administrator/components/com_content/models/article.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,12 @@ protected function loadFormData()
}
}

// If there are params fieldsets in the form it will fail with a registry object
if (isset($data->params) && $data->params instanceof Registry)
{
$data->params = $data->params->toArray();
}

$this->preprocessData('com_content.article', $data);

return $data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<fieldset class="panelform">
<ul>
<?php if (!$this->filterParams) : ?>
<li><?php echo JText::_('COM_INSTALLER_MSG_DATABASE_FILTER_ERROR'); ?>
<li><?php echo JText::_('COM_INSTALLER_MSG_DATABASE_FILTER_ERROR'); ?></li>
<?php endif; ?>

<?php if ($this->schemaVersion != $this->changeSet->getSchema()) : ?>
Expand Down Expand Up @@ -76,6 +76,7 @@
</fieldset>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.endTabSet'); ?>

<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
Expand Down
196 changes: 105 additions & 91 deletions administrator/components/com_installer/views/install/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,19 @@
// MooTools is loaded for B/C for extensions generating JavaScript in their install scripts, this call will be removed at 4.0
JHtml::_('behavior.framework', true);
JHtml::_('bootstrap.tooltip');

JText::script('COM_INSTALLER_MSG_INSTALL_PLEASE_SELECT_A_PACKAGE');
JText::script('COM_INSTALLER_MSG_INSTALL_PLEASE_SELECT_A_DIRECTORY');
JText::script('COM_INSTALLER_MSG_INSTALL_ENTER_A_URL');
?>
<script type="text/javascript">
Joomla.submitbutton = function()
{
var form = document.getElementById('adminForm');

// do field validation
if (form.install_package.value == ""){
alert("<?php echo JText::_('COM_INSTALLER_MSG_INSTALL_PLEASE_SELECT_A_PACKAGE', true); ?>");
if (form.install_package.value == "") {
alert(Joomla.JText._('COM_INSTALLER_MSG_INSTALL_PLEASE_SELECT_A_PACKAGE'));
}
else
{
Expand All @@ -36,8 +40,8 @@
var form = document.getElementById('adminForm');

// do field validation
if (form.install_directory.value == ""){
alert("<?php echo JText::_('COM_INSTALLER_MSG_INSTALL_PLEASE_SELECT_A_DIRECTORY', true); ?>");
if (form.install_directory.value == "") {
alert(Joomla.JText._('COM_INSTALLER_MSG_INSTALL_PLEASE_SELECT_A_DIRECTORY'));
}
else
{
Expand All @@ -53,8 +57,8 @@
var form = document.getElementById('adminForm');

// do field validation
if (form.install_url.value == "" || form.install_url.value == "http://"){
alert("<?php echo JText::_('COM_INSTALLER_MSG_INSTALL_ENTER_A_URL', true); ?>");
if (form.install_url.value == "" || form.install_url.value == "http://") {
alert(Joomla.JText._('COM_INSTALLER_MSG_INSTALL_ENTER_A_URL'));
}
else
{
Expand All @@ -78,24 +82,32 @@
jQuery(document).ready(function($) {
var outerDiv = $('#installer-install');

$('<div id="loading"></div>')
.css("background", "rgba(255, 255, 255, .8) url('../media/jui/img/ajax-loader.gif') 50% 15% no-repeat")
.css("top", outerDiv.position().top - $(window).scrollTop())
.css("left", outerDiv.position().left - $(window).scrollLeft())
.css("width", outerDiv.width())
.css("height", outerDiv.height())
.css("position", "fixed")
.css("opacity", "0.80")
.css("-ms-filter", "progid:DXImageTransform.Microsoft.Alpha(Opacity = 80)")
.css("filter", "alpha(opacity = 80)")
.css("display", "none")
.appendTo(outerDiv);
$('#loading').css({
'top': outerDiv.position().top - $(window).scrollTop(),
'left': outerDiv.position().left - $(window).scrollLeft(),
'width': outerDiv.width(),
'height': outerDiv.height(),
'display': 'none'
});
});

</script>
<style type="text/css">
#loading {
background: rgba(255, 255, 255, .8) url('<?php echo JHtml::_('image', 'jui/ajax-loader.gif', '', null, true, true); ?>') 50% 15% no-repeat;
position: fixed;
opacity: 0.8;
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity = 80);
filter: alpha(opacity = 80);
}

.j-jed-message {
margin-bottom: 40px;
line-height: 2em;
color:#333333;
}
</style>

<div id="installer-install" class="clearfix">
<form enctype="multipart/form-data" action="<?php echo JRoute::_('index.php?option=com_installer&view=install');?>" method="post" name="adminForm" id="adminForm" class="form-horizontal">
<?php if (!empty( $this->sidebar)) : ?>
<div id="j-sidebar-container" class="span2">
<?php echo $this->sidebar; ?>
Expand All @@ -105,80 +117,82 @@
<div id="j-main-container">
<?php endif;?>

<!-- Render messages set by extension install scripts here -->
<?php if ($this->showMessage) : ?>
<?php echo $this->loadTemplate('message'); ?>
<?php elseif ($this->showJedAndWebInstaller) : ?>
<div class="alert alert-info j-jed-message" style="margin-bottom: 40px; line-height: 2em; color:#333333;">
<a href="index.php?option=com_config&view=component&component=com_installer&path=&return=<?php echo urlencode(base64_encode(JUri::getInstance())); ?>" class="close hasTooltip" data-dismiss="alert" title="<?php echo str_replace('"', '&quot;', JText::_('COM_INSTALLER_SHOW_JED_INFORMATION_TOOLTIP')); ?>">&times;</a>
<p><?php echo JText::_('COM_INSTALLER_INSTALL_FROM_WEB_INFO'); ?>&nbsp;&nbsp;<?php echo JText::_('COM_INSTALLER_INSTALL_FROM_WEB_TOS'); ?></p>
<input class="btn" type="button" value="<?php echo JText::_('COM_INSTALLER_INSTALL_FROM_WEB_ADD_TAB'); ?>" onclick="Joomla.submitbuttonInstallWebInstaller()" />
</div>
<?php endif; ?>
<!-- Render messages set by extension install scripts here -->
<?php if ($this->showMessage) : ?>
<?php echo $this->loadTemplate('message'); ?>
<?php elseif ($this->showJedAndWebInstaller) : ?>
<div class="alert alert-info j-jed-message">
<a href="<?php echo JRoute::_('index.php?option=com_config&view=component&component=com_installer&path=&return=' . urlencode(base64_encode(JUri::getInstance()))); ?>" class="close hasTooltip" data-dismiss="alert" title="<?php echo $this->escape(JText::_('COM_INSTALLER_SHOW_JED_INFORMATION_TOOLTIP')); ?>">&times;</a>
<p><?php echo JText::_('COM_INSTALLER_INSTALL_FROM_WEB_INFO'); ?>&nbsp;&nbsp;<?php echo JText::_('COM_INSTALLER_INSTALL_FROM_WEB_TOS'); ?></p>
<button class="btn" type="button" onclick="Joomla.submitbuttonInstallWebInstaller()"><?php echo JText::_('COM_INSTALLER_INSTALL_FROM_WEB_ADD_TAB'); ?></button>
</div>
<?php endif; ?>

<?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'upload')); ?>
<form enctype="multipart/form-data" action="<?php echo JRoute::_('index.php?option=com_installer&view=install');?>" method="post" name="adminForm" id="adminForm" class="form-horizontal">
<?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'upload')); ?>

<?php JEventDispatcher::getInstance()->trigger('onInstallerViewBeforeFirstTab', array()); ?>
<?php JEventDispatcher::getInstance()->trigger('onInstallerViewBeforeFirstTab', array()); ?>

<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'upload', JText::_('COM_INSTALLER_UPLOAD_PACKAGE_FILE', true)); ?>
<fieldset class="uploadform">
<legend><?php echo JText::_('COM_INSTALLER_UPLOAD_INSTALL_JOOMLA_EXTENSION'); ?></legend>
<div class="control-group">
<label for="install_package" class="control-label"><?php echo JText::_('COM_INSTALLER_EXTENSION_PACKAGE_FILE'); ?></label>
<div class="controls">
<input class="input_box" id="install_package" name="install_package" type="file" size="57" />
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'upload', JText::_('COM_INSTALLER_UPLOAD_PACKAGE_FILE', true)); ?>
<fieldset class="uploadform">
<legend><?php echo JText::_('COM_INSTALLER_UPLOAD_INSTALL_JOOMLA_EXTENSION'); ?></legend>
<div class="control-group">
<label for="install_package" class="control-label"><?php echo JText::_('COM_INSTALLER_EXTENSION_PACKAGE_FILE'); ?></label>
<div class="controls">
<input class="input_box" id="install_package" name="install_package" type="file" size="57" />
</div>
</div>
</div>
<div class="form-actions">
<input class="btn btn-primary" type="button" value="<?php echo JText::_('COM_INSTALLER_UPLOAD_AND_INSTALL'); ?>" onclick="Joomla.submitbutton()" />
</div>
</fieldset>
<?php echo JHtml::_('bootstrap.endTab'); ?>

<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'directory', JText::_('COM_INSTALLER_INSTALL_FROM_DIRECTORY', true)); ?>
<fieldset class="uploadform">
<legend><?php echo JText::_('COM_INSTALLER_INSTALL_FROM_DIRECTORY'); ?></legend>
<div class="control-group">
<label for="install_directory" class="control-label"><?php echo JText::_('COM_INSTALLER_INSTALL_DIRECTORY'); ?></label>
<div class="controls">
<input type="text" id="install_directory" name="install_directory" class="span5 input_box" size="70" value="<?php echo $this->state->get('install.directory'); ?>" />
<div class="form-actions">
<button class="btn btn-primary" type="button" onclick="Joomla.submitbutton()"><?php echo JText::_('COM_INSTALLER_UPLOAD_AND_INSTALL'); ?></button>
</div>
</div>
<div class="form-actions">
<input type="button" class="btn btn-primary" value="<?php echo JText::_('COM_INSTALLER_INSTALL_BUTTON'); ?>" onclick="Joomla.submitbutton3()" />
</div>
</fieldset>
<?php echo JHtml::_('bootstrap.endTab'); ?>

<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'url', JText::_('COM_INSTALLER_INSTALL_FROM_URL', true)); ?>
<fieldset class="uploadform">
<legend><?php echo JText::_('COM_INSTALLER_INSTALL_FROM_URL'); ?></legend>
<div class="control-group">
<label for="install_url" class="control-label"><?php echo JText::_('COM_INSTALLER_INSTALL_URL'); ?></label>
<div class="controls">
<input type="text" id="install_url" name="install_url" class="span5 input_box" size="70" value="http://" />
</fieldset>
<?php echo JHtml::_('bootstrap.endTab'); ?>

<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'directory', JText::_('COM_INSTALLER_INSTALL_FROM_DIRECTORY', true)); ?>
<fieldset class="uploadform">
<legend><?php echo JText::_('COM_INSTALLER_INSTALL_FROM_DIRECTORY'); ?></legend>
<div class="control-group">
<label for="install_directory" class="control-label"><?php echo JText::_('COM_INSTALLER_INSTALL_DIRECTORY'); ?></label>
<div class="controls">
<input type="text" id="install_directory" name="install_directory" class="span5 input_box" size="70" value="<?php echo $this->state->get('install.directory'); ?>" />
</div>
</div>
</div>
<div class="form-actions">
<input type="button" class="btn btn-primary" value="<?php echo JText::_('COM_INSTALLER_INSTALL_BUTTON'); ?>" onclick="Joomla.submitbutton4()" />
</div>
</fieldset>

<?php echo JHtml::_('bootstrap.endTab'); ?>

<?php JEventDispatcher::getInstance()->trigger('onInstallerViewAfterLastTab', array()); ?>

<?php if ($this->ftp) : ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'ftp', JText::_('COM_INSTALLER_MSG_DESCFTPTITLE', true)); ?>
<?php echo $this->loadTemplate('ftp'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php endif; ?>

<input type="hidden" name="type" value="" />
<input type="hidden" name="installtype" value="upload" />
<input type="hidden" name="task" value="install.install" />
<?php echo JHtml::_('form.token'); ?>

<?php echo JHtml::_('bootstrap.endTabSet'); ?>
</form>
</div>
<div class="form-actions">
<button type="button" class="btn btn-primary" onclick="Joomla.submitbutton3()"><?php echo JText::_('COM_INSTALLER_INSTALL_BUTTON'); ?></button>
</div>
</fieldset>
<?php echo JHtml::_('bootstrap.endTab'); ?>

<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'url', JText::_('COM_INSTALLER_INSTALL_FROM_URL', true)); ?>
<fieldset class="uploadform">
<legend><?php echo JText::_('COM_INSTALLER_INSTALL_FROM_URL'); ?></legend>
<div class="control-group">
<label for="install_url" class="control-label"><?php echo JText::_('COM_INSTALLER_INSTALL_URL'); ?></label>
<div class="controls">
<input type="text" id="install_url" name="install_url" class="span5 input_box" size="70" value="http://" />
</div>
</div>
<div class="form-actions">
<button type="button" class="btn btn-primary" onclick="Joomla.submitbutton4()"><?php echo JText::_('COM_INSTALLER_INSTALL_BUTTON'); ?></button>
</div>
</fieldset>
<?php echo JHtml::_('bootstrap.endTab'); ?>

<?php JEventDispatcher::getInstance()->trigger('onInstallerViewAfterLastTab', array()); ?>

<?php if ($this->ftp) : ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'ftp', JText::_('COM_INSTALLER_MSG_DESCFTPTITLE', true)); ?>
<?php echo $this->loadTemplate('ftp'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php endif; ?>

<?php echo JHtml::_('bootstrap.endTabSet'); ?>

<input type="hidden" name="type" value="" />
<input type="hidden" name="installtype" value="upload" />
<input type="hidden" name="task" value="install.install" />
<?php echo JHtml::_('form.token'); ?>
</form>
</div>
<div id="loading"></div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function display($tpl = null)
$this->assign('methodSelect', JoomlaupdateHelperSelect::getMethods($ftp['enabled']));

// Set the toolbar information.
JToolbarHelper::title(JText::_('COM_JOOMLAUPDATE_OVERVIEW'), 'arrow-up-2 install');
JToolbarHelper::title(JText::_('COM_JOOMLAUPDATE_OVERVIEW'), 'loop install');
JToolbarHelper::custom('update.purge', 'purge', 'purge', 'JTOOLBAR_PURGE_CACHE', false);

// Add toolbar buttons.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function display($tpl=null)
$returnUrl = 'index.php?option=com_joomlaupdate&task=update.finalise';

// Set the toolbar information.
JToolbarHelper::title(JText::_('COM_JOOMLAUPDATE_OVERVIEW'), 'arrow-up-2 install');
JToolbarHelper::title(JText::_('COM_JOOMLAUPDATE_OVERVIEW'), 'loop install');
JToolBarHelper::divider();
JToolBarHelper::help('JHELP_COMPONENTS_JOOMLA_UPDATE');

Expand Down
24 changes: 23 additions & 1 deletion administrator/components/com_media/models/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public function getList()
$images = array ();
$folders = array ();
$docs = array ();
$videos = array ();

$fileList = false;
$folderList = false;
Expand Down Expand Up @@ -187,6 +188,13 @@ public function getList()
$images[] = $tmp;
break;

// Video
case 'mp4':
$tmp->icon_32 = "media/mime-icon-32/" . $ext . ".png";
$tmp->icon_16 = "media/mime-icon-16/" . $ext . ".png";
$videos[] = $tmp;
break;

// Non-image document
default:
$tmp->icon_32 = "media/mime-icon-32/" . $ext . ".png";
Expand Down Expand Up @@ -215,8 +223,22 @@ public function getList()
}
}

$list = array('folders' => $folders, 'docs' => $docs, 'images' => $images);
$list = array('folders' => $folders, 'docs' => $docs, 'images' => $images, 'videos' => $videos);

return $list;
}

/**
* Get the videos on the current folder
*
* @return array
*
* @since 1.5
*/
public function getVideos()
{
$list = $this->getList();

return $list['videos'];
}
}
15 changes: 13 additions & 2 deletions administrator/components/com_media/views/images/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,20 @@
// Load tooltip instance without HTML support because we have a HTML tag in the tip
JHtml::_('bootstrap.tooltip', '.noHtmlTip', array('html' => false));

$user = JFactory::getUser();
$input = JFactory::getApplication()->input;
$user = JFactory::getUser();
$input = JFactory::getApplication()->input;
$params = JComponentHelper::getParams('com_media');
$lang = JFactory::getLanguage();

// Include jQuery
JHtml::_('jquery.framework');
JHtml::_('script', 'media/popup-imagemanager.js', false, true);
JHtml::_('stylesheet', 'media/popup-imagemanager.css', array(), true);

if ($lang->isRtl())
{
JHtml::_('stylesheet', 'media/popup-imagemanager_rtl.css', array(), true);
}

JFactory::getDocument()->addScriptDeclaration(
"
Expand Down
Loading