You've already forked joomla_test
							
							first commit
This commit is contained in:
		| @ -0,0 +1,92 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @package     Joomla.Administrator | ||||
|  * @subpackage  com_media | ||||
|  * | ||||
|  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. | ||||
|  * @license     GNU General Public License version 2 or later; see LICENSE.txt | ||||
|  */ | ||||
|  | ||||
| defined('_JEXEC') or die; | ||||
|  | ||||
| $user  = JFactory::getUser(); | ||||
| $input = JFactory::getApplication()->input; | ||||
| ?> | ||||
| <div class="row-fluid"> | ||||
| 	<!-- Begin Sidebar --> | ||||
| 	<div class="span2"> | ||||
| 		<div id="treeview"> | ||||
| 			<div id="media-tree_tree" class="sidebar-nav"> | ||||
| 				<?php echo $this->loadTemplate('folders'); ?> | ||||
| 			</div> | ||||
| 		</div> | ||||
| 	</div> | ||||
| 	<style> | ||||
| 		.overall-progress, | ||||
| 		.current-progress { | ||||
| 			width: 150px; | ||||
| 		} | ||||
| 	</style> | ||||
| 	<!-- End Sidebar --> | ||||
| 	<!-- Begin Content --> | ||||
| 	<div class="span10"> | ||||
| 		<?php echo $this->loadTemplate('navigation'); ?> | ||||
| 		<?php if (($user->authorise('core.create', 'com_media')) and $this->require_ftp) : ?> | ||||
| 			<form action="index.php?option=com_media&task=ftpValidate" name="ftpForm" id="ftpForm" method="post"> | ||||
| 				<fieldset title="<?php echo JText::_('COM_MEDIA_DESCFTPTITLE'); ?>"> | ||||
| 					<legend><?php echo JText::_('COM_MEDIA_DESCFTPTITLE'); ?></legend> | ||||
| 					<?php echo JText::_('COM_MEDIA_DESCFTP'); ?> | ||||
| 					<label for="username"><?php echo JText::_('JGLOBAL_USERNAME'); ?></label> | ||||
| 					<input type="text" id="username" name="username" class="inputbox" size="70" value="" /> | ||||
|  | ||||
| 					<label for="password"><?php echo JText::_('JGLOBAL_PASSWORD'); ?></label> | ||||
| 					<input type="password" id="password" name="password" class="inputbox" size="70" value="" /> | ||||
| 				</fieldset> | ||||
| 			</form> | ||||
| 		<?php endif; ?> | ||||
|  | ||||
| 		<form action="index.php?option=com_media" name="adminForm" id="mediamanager-form" method="post" enctype="multipart/form-data" > | ||||
| 			<input type="hidden" name="task" value="" /> | ||||
| 			<input type="hidden" name="cb1" id="cb1" value="0" /> | ||||
| 			<input class="update-folder" type="hidden" name="folder" id="folder" value="<?php echo $this->state->folder; ?>" /> | ||||
| 		</form> | ||||
|  | ||||
| 		<?php if ($user->authorise('core.create', 'com_media')):?> | ||||
| 		<!-- File Upload Form --> | ||||
| 		<div id="collapseUpload" class="collapse"> | ||||
| 			<form action="<?php echo JUri::base(); ?>index.php?option=com_media&task=file.upload&tmpl=component&<?php echo $this->session->getName().'='.$this->session->getId(); ?>&<?php echo JSession::getFormToken();?>=1&format=html" id="uploadForm" class="form-inline" name="uploadForm" method="post" enctype="multipart/form-data"> | ||||
| 				<div id="uploadform"> | ||||
| 					<fieldset id="upload-noflash" class="actions"> | ||||
| 							<label for="upload-file" class="control-label"><?php echo JText::_('COM_MEDIA_UPLOAD_FILE'); ?></label> | ||||
| 								<input type="file" id="upload-file" name="Filedata[]" multiple /> <button class="btn btn-primary" id="upload-submit"><i class="icon-upload icon-white"></i> <?php echo JText::_('COM_MEDIA_START_UPLOAD'); ?></button> | ||||
| 								<p class="help-block"><?php echo $this->config->get('upload_maxsize') == '0' ? JText::_('COM_MEDIA_UPLOAD_FILES_NOLIMIT') : JText::sprintf('COM_MEDIA_UPLOAD_FILES', $this->config->get('upload_maxsize')); ?></p> | ||||
| 					</fieldset> | ||||
| 					<input class="update-folder" type="hidden" name="folder" id="folder" value="<?php echo $this->state->folder; ?>" /> | ||||
| 					<input type="hidden" name="return-url" value="<?php echo base64_encode('index.php?option=com_media'); ?>" /> | ||||
| 				</div> | ||||
| 			</form> | ||||
| 		</div> | ||||
| 		<div id="collapseFolder" class="collapse"> | ||||
| 			<form action="index.php?option=com_media&task=folder.create&tmpl=<?php echo $input->getCmd('tmpl', 'index');?>" name="folderForm" id="folderForm" class="form-inline" method="post"> | ||||
| 					<div class="path"> | ||||
| 						<input class="inputbox" type="text" id="folderpath" readonly="readonly" /> | ||||
| 						<input class="inputbox" type="text" id="foldername" name="foldername"  /> | ||||
| 						<input class="update-folder" type="hidden" name="folderbase" id="folderbase" value="<?php echo $this->state->folder; ?>" /> | ||||
| 						<button type="submit" class="btn"><i class="icon-folder-open"></i> <?php echo JText::_('COM_MEDIA_CREATE_FOLDER'); ?></button> | ||||
| 					</div> | ||||
| 					<?php echo JHtml::_('form.token'); ?> | ||||
| 			</form> | ||||
| 		</div> | ||||
| 		<?php endif;?> | ||||
|  | ||||
| 		<form action="index.php?option=com_media&task=folder.create&tmpl=<?php echo $input->getCmd('tmpl', 'index');?>" name="folderForm" id="folderForm" method="post"> | ||||
| 			<div id="folderview"> | ||||
| 				<div class="view"> | ||||
| 					<iframe class="thumbnail" src="index.php?option=com_media&view=mediaList&tmpl=component&folder=<?php echo $this->state->folder;?>" id="folderframe" name="folderframe" width="100%" height="500px" marginwidth="0" marginheight="0" scrolling="auto"></iframe> | ||||
| 				</div> | ||||
| 				<?php echo JHtml::_('form.token'); ?> | ||||
| 			</div> | ||||
| 		</form> | ||||
| 	</div> | ||||
| 	<!-- End Content --> | ||||
| </div> | ||||
| @ -0,0 +1,30 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @package     Joomla.Administrator | ||||
|  * @subpackage  com_media | ||||
|  * | ||||
|  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. | ||||
|  * @license     GNU General Public License version 2 or later; see LICENSE.txt | ||||
|  */ | ||||
|  | ||||
| defined('_JEXEC') or die; | ||||
|  | ||||
| // Set up the sanitised target for the ul | ||||
| $ulTarget = str_replace('/', '-', $this->folders['data']->relative); | ||||
|  | ||||
| ?> | ||||
| <ul class="nav nav-list collapse in" id="collapseFolder-<?php echo $ulTarget; ?>"> | ||||
| <?php if (isset($this->folders['children'])) : | ||||
| 	foreach ($this->folders['children'] as $folder) : | ||||
| 	// Get a sanitised name for the target | ||||
| 	$target = str_replace('/', '-', $folder['data']->relative); ?> | ||||
| 	<li id="<?php echo $target; ?>"> | ||||
| 		<i class="icon-folder-2 pull-left" data-toggle="collapse" data-target="#collapseFolder-<?php echo $target; ?>"></i> | ||||
| 		<a href="index.php?option=com_media&view=mediaList&tmpl=component&folder=<?php echo $folder['data']->relative; ?>" target="folderframe"> | ||||
| 			<?php echo $folder['data']->name; ?> | ||||
| 		</a> | ||||
| 		<?php echo $this->getFolderLevel($folder); ?> | ||||
| 	</li> | ||||
| <?php endforeach; | ||||
| endif; ?> | ||||
| </ul> | ||||
| @ -0,0 +1,19 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @package     Joomla.Administrator | ||||
|  * @subpackage  com_media | ||||
|  * | ||||
|  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. | ||||
|  * @license     GNU General Public License version 2 or later; see LICENSE.txt | ||||
|  */ | ||||
|  | ||||
| defined('_JEXEC') or die; | ||||
| $app	= JFactory::getApplication(); | ||||
| $style = $app->getUserStateFromRequest('media.list.layout', 'layout', 'thumbs', 'word'); | ||||
| ?> | ||||
| <div class="media btn-group"> | ||||
| 	<a href="#" id="thumbs" onclick="MediaManager.setViewType('thumbs')" class="btn <?php echo ($style == "thumbs") ? 'active' : '';?>"> | ||||
| 	<i class="icon-grid-view-2"></i> <?php echo JText::_('COM_MEDIA_THUMBNAIL_VIEW'); ?></a> | ||||
| 	<a href="#" id="details" onclick="MediaManager.setViewType('details')" class="btn <?php echo ($style == "details") ? 'active' : '';?>"> | ||||
| 	<i class="icon-list-view"></i> <?php echo JText::_('COM_MEDIA_DETAIL_VIEW'); ?></a> | ||||
| </div> | ||||
| @ -0,0 +1 @@ | ||||
| <!DOCTYPE html><title></title> | ||||
		Reference in New Issue
	
	Block a user
	 alazhar
					alazhar