本文整理汇总了PHP中AkeebaHelperIncludes::includeMedia方法的典型用法代码示例。如果您正苦于以下问题:PHP AkeebaHelperIncludes::includeMedia方法的具体用法?PHP AkeebaHelperIncludes::includeMedia怎么用?PHP AkeebaHelperIncludes::includeMedia使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AkeebaHelperIncludes
的用法示例。
在下文中一共展示了AkeebaHelperIncludes::includeMedia方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
public function display($tpl = null)
{
// Add toolbar buttons
JToolBarHelper::title(JText::_('AKEEBA') . ': <small>' . JText::_('VIEWLOG') . '</small>', 'akeeba');
JToolBarHelper::back('AKEEBA_CONTROLPANEL', 'index.php?option=' . JRequest::getCmd('option'));
JToolBarHelper::spacer();
$document = JFactory::getDocument();
$document->addStyleSheet(JURI::base() . '../media/com_akeeba/theme/akeebaui.css?' . AKEEBAMEDIATAG);
// Add live help
AkeebaHelperIncludes::addHelp();
// Get a list of log names
if (!class_exists('AkeebaModelLog')) {
JLoader::import('models.log', JPATH_COMPONENT_ADMINISTRATOR);
}
$model = new AkeebaModelLog();
$this->assign('logs', $model->getLogList());
$tag = JRequest::getCmd('tag', null);
if (empty($tag)) {
$tag = null;
}
$this->assign('tag', $tag);
// Get profile ID
$profileid = AEPlatform::getInstance()->get_active_profile();
$this->assign('profileid', $profileid);
// Get profile name
if (!class_exists('AkeebaModelProfiles')) {
JLoader::import('models.profiles', JPATH_COMPONENT_ADMINISTRATOR);
}
$model = new AkeebaModelProfiles();
$model->setId($profileid);
$profile_data = $model->getProfile();
$this->assign('profilename', $profile_data->description);
AkeebaHelperIncludes::includeMedia(false);
parent::display($tpl);
}
示例2: display
public function display()
{
JToolBarHelper::title(JText::_('AKEEBA').': <small>'.JText::_('SRPRESTORATION').'</small>','akeeba');
JToolBarHelper::back('AKEEBA_CONTROLPANEL', 'index.php?option='.JRequest::getCmd('option'));
// Add references to scripts and CSS
AkeebaHelperIncludes::includeMedia(true);
$task = JRequest::getVar('task','');
$model =& $this->getModel();
if($task == 'start')
{
$password = JRequest::getVar('password','','default','none',2);
$this->assign('password', $password );
$this->setLayout('restore');
}
else
{
$model->validateRequest();
$id = $model->getId();
$ftpparams = $model->getFTPParams();
$extractionmodes = $model->getExtractionModes();
$this->assign('id', $id);
$this->assign('ftpparams', $ftpparams);
$this->assign('extractionmodes', $extractionmodes);
$this->assignRef('info', $model->info);
}
// Add live help
AkeebaHelperIncludes::addHelp();
parent::display();
}
示例3: display
function display()
{
$registry =& AEFactory::getConfiguration();
// Set the toolbar title
JToolBarHelper::title(JText::_('AKEEBA') . ':: <small>' . JText::_('AKEEBA_CONFWIZ') . '</small>', 'akeeba');
JToolBarHelper::back('AKEEBA_CONTROLPANEL', 'index.php?option=' . JRequest::getCmd('option'));
// Add references to CSS and JS files
AkeebaHelperIncludes::includeMedia(false);
// Load the Configuration Wizard Javascript file
$document = JFactory::getDocument();
$document->addScript(JURI::base() . '../media/com_akeeba/js/confwiz.js');
// Add live help
AkeebaHelperIncludes::addHelp();
$this->setLayout('wizard');
parent::display();
}