You've already forked joomla_test
first commit
This commit is contained in:
1
administrator/components/com_admin/views/help/index.html
Normal file
1
administrator/components/com_admin/views/help/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @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;
|
||||
|
||||
JHtml::_('bootstrap.tooltip');
|
||||
?>
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_admin&view=help'); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<div class="row-fluid">
|
||||
<div id="sidebar" class="span3">
|
||||
<div id="filter-bar" class="btn-toolbar">
|
||||
<div class="filter-search input-append">
|
||||
<label for="helpsearch" class="element-invisible"><?php echo JText::_('COM_ADMIN_SEARCH'); ?></label>
|
||||
<input type="text" name="helpsearch" id="helpsearch" placeholder="<?php echo JText::_('JSEARCH_FILTER'); ?>" value="<?php echo $this->escape($this->help_search); ?>" class="input-small hasTooltip" title="<?php echo JHtml::tooltipText('COM_ADMIN_SEARCH'); ?>" />
|
||||
<button type="submit" class="btn hasTooltip" title="<?php JHtml::tooltipText('JSEARCH_FILTER_SUBMIT'); ?>">
|
||||
<i class="icon-search"></i></button>
|
||||
<button type="button" class="btn hasTooltip" title="<?php echo JHtml::tooltipText('JSEARCH_FILTER_CLEAR'); ?>" onclick="f=document.adminForm;f.helpsearch.value='';f.submit()">
|
||||
<i class="icon-remove"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"> </div>
|
||||
<div class="sidebar-nav">
|
||||
<ul class="nav nav-list">
|
||||
<li><?php echo JHtml::_('link', JHelp::createUrl('JHELP_START_HERE'), JText::_('COM_ADMIN_START_HERE'), array('target' => 'helpFrame')) ?></li>
|
||||
<li><?php echo JHtml::_('link', $this->latest_version_check, JText::_('COM_ADMIN_LATEST_VERSION_CHECK'), array('target' => 'helpFrame')) ?></li>
|
||||
<li><?php echo JHtml::_('link', 'http://www.gnu.org/licenses/gpl-2.0.html', JText::_('COM_ADMIN_LICENSE'), array('target' => 'helpFrame')) ?></li>
|
||||
<li><?php echo JHtml::_('link', JHelp::createUrl('JHELP_GLOSSARY'), JText::_('COM_ADMIN_GLOSSARY'), array('target' => 'helpFrame')) ?></li>
|
||||
<hr class="hr-condensed" />
|
||||
<li class="nav-header"><?php echo JText::_('COM_ADMIN_ALPHABETICAL_INDEX'); ?></li>
|
||||
<?php foreach ($this->toc as $k => $v):?>
|
||||
<li>
|
||||
<?php $url = JHelp::createUrl('JHELP_'.strtoupper($k)); ?>
|
||||
<?php echo JHtml::_('link', $url, $v, array('target' => 'helpFrame'));?>
|
||||
</li>
|
||||
<?php endforeach;?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<iframe name="helpFrame" height="2100px" src="<?php echo $this->page;?>" class="helpFrame table table-bordered"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
<input class="textarea" type="hidden" name="option" value="com_admin" />
|
||||
</form>
|
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
74
administrator/components/com_admin/views/help/view.html.php
Normal file
74
administrator/components/com_admin/views/help/view.html.php
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
*
|
||||
* @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;
|
||||
|
||||
/**
|
||||
* HTML View class for the Admin component
|
||||
*
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_admin
|
||||
* @since 1.6
|
||||
*/
|
||||
class AdminViewHelp extends JViewLegacy
|
||||
{
|
||||
/**
|
||||
* @var string the search string
|
||||
*/
|
||||
protected $help_search = null;
|
||||
|
||||
/**
|
||||
* @var string the page to be viewed
|
||||
*/
|
||||
protected $page = null;
|
||||
|
||||
/**
|
||||
* @var string the iso language tag
|
||||
*/
|
||||
protected $lang_tag = null;
|
||||
|
||||
/**
|
||||
* @var array Table of contents
|
||||
*/
|
||||
protected $toc = null;
|
||||
|
||||
/**
|
||||
* @var string url for the latest version check
|
||||
*/
|
||||
protected $latest_version_check = 'http://www.joomla.org/download.html';
|
||||
|
||||
/**
|
||||
* @var string url for the start here link.
|
||||
*/
|
||||
protected $start_here = null;
|
||||
|
||||
/**
|
||||
* Display the view
|
||||
*/
|
||||
public function display($tpl = null)
|
||||
{
|
||||
$this->help_search = $this->get('HelpSearch');
|
||||
$this->page = $this->get('Page');
|
||||
$this->toc = $this->get('Toc');
|
||||
$this->lang_tag = $this->get('LangTag');
|
||||
$this->latest_version_check = $this->get('LatestVersionCheck');
|
||||
|
||||
$this->addToolbar();
|
||||
parent::display($tpl);
|
||||
}
|
||||
/**
|
||||
* Setup the Toolbar
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function addToolbar()
|
||||
{
|
||||
JToolbarHelper::title(JText::_('COM_ADMIN_HELP'), 'help_header.png');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user