[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/administrator/components/com_media/views/images/ -> view.html.php (source)

   1  <?php
   2  /**
   3  * @version        $Id: view.html.php 14401 2010-01-26 14:10:00Z louis $
   4  * @package        Joomla
   5  * @subpackage    Media
   6  * @copyright    Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
   7  * @license        GNU/GPL, see LICENSE.php
   8  * Joomla! is free software. This version may have been modified pursuant
   9  * to the GNU General Public License, and as distributed it includes or
  10  * is derivative of works licensed under the GNU General Public License or
  11  * other free or open source software licenses.
  12  * See COPYRIGHT.php for copyright notices and details.
  13  */
  14  
  15  // Check to ensure this file is included in Joomla!
  16  defined('_JEXEC') or die( 'Restricted access' );
  17  
  18  jimport( 'joomla.application.component.view');
  19  
  20  /**
  21   * HTML View class for the WebLinks component
  22   *
  23   * @static
  24   * @package        Joomla
  25   * @subpackage    Media
  26   * @since 1.0
  27   */
  28  class MediaViewImages extends JView
  29  {
  30  	function display($tpl = null)
  31      {
  32          global $mainframe;
  33  
  34          $config =& JComponentHelper::getParams('com_media');
  35  
  36          $app = JFactory::getApplication();
  37          $append = '';
  38          if($app->getClientId() == 1) $append = 'administrator/';
  39  
  40          JHTML::_('script'    , 'popup-imagemanager.js', $append .'components/com_media/assets/');
  41          JHTML::_('stylesheet', 'popup-imagemanager.css', $append .'components/com_media/assets/');
  42          if ($config->get('enable_flash', 0)) {
  43              JHTML::_('behavior.uploader', 'file-upload', array('onAllComplete' => 'function(){ ImageManager.refreshFrame(); }'));
  44          }
  45  
  46          /*
  47           * Display form for FTP credentials?
  48           * Don't set them here, as there are other functions called before this one if there is any file write operation
  49           */
  50          jimport('joomla.client.helper');
  51          $ftp = !JClientHelper::hasCredentials('ftp');
  52  
  53          $this->assignRef( 'session',    JFactory::getSession());
  54          $this->assignRef( 'config',        $config);
  55          $this->assignRef( 'state',        $this->get('state'));
  56          $this->assignRef( 'folderList',    $this->get('folderList'));
  57          $this->assign('require_ftp', $ftp);
  58  
  59          parent::display($tpl);
  60      }
  61  }


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1