You've already forked joomla_test
first commit
This commit is contained in:
1
templates/as002036free/html/com_search/index.html
Normal file
1
templates/as002036free/html/com_search/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
34
templates/as002036free/html/com_search/search/default.php
Normal file
34
templates/as002036free/html/com_search/search/default.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_search
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
|
||||
<div class="page page-search page-search__<?php echo $this->pageclass_sfx; ?>">
|
||||
|
||||
<?php if ($this->params->get('show_page_heading', 1)) : ?>
|
||||
<div class="page_header">
|
||||
<h1>
|
||||
<?php if ($this->escape($this->params->get('page_heading'))) :?>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
<?php else : ?>
|
||||
<?php echo $this->escape($this->params->get('page_title')); ?>
|
||||
<?php endif; ?>
|
||||
</h1>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php echo $this->loadTemplate('form'); ?>
|
||||
<?php if ($this->error == null && count($this->results) > 0) :
|
||||
echo $this->loadTemplate('results');
|
||||
else :
|
||||
echo $this->loadTemplate('error');
|
||||
endif; ?>
|
||||
</div>
|
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_search
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
|
||||
<?php if($this->error): ?>
|
||||
<div class="error">
|
||||
<?php echo $this->escape($this->error); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_search
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
$lang = JFactory::getLanguage();
|
||||
$upper_limit = $lang->getUpperLimitSearchWord();
|
||||
|
||||
JHtml::_('bootstrap.tooltip');
|
||||
?>
|
||||
<form id="searchForm" action="<?php echo JRoute::_('index.php?option=com_search');?>" method="post">
|
||||
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group pull-left">
|
||||
<input type="text" name="searchword" placeholder="<?php echo JText::_('COM_SEARCH_SEARCH_KEYWORD'); ?>" id="search-searchword" size="30" maxlength="<?php echo $upper_limit; ?>" value="<?php echo $this->escape($this->origkeyword); ?>" class="inputbox" />
|
||||
</div>
|
||||
<div class="btn-group pull-left">
|
||||
<button name="Search" onclick="this.form.submit()" class="btn hasTooltip btn-primary" title="<?php echo JText::_('COM_SEARCH_SEARCH');?>"><i class="icon-search"></i></button>
|
||||
</div>
|
||||
<input type="hidden" name="task" value="search" />
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<div class="searchintro<?php echo $this->params->get('pageclass_sfx'); ?>">
|
||||
<?php if (!empty($this->searchword)):?>
|
||||
<p><?php echo JText::plural('COM_SEARCH_SEARCH_KEYWORD_N_RESULTS', '<span class="badge badge-info">'. $this->total. '</span>');?></p>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
|
||||
<fieldset class="phrases">
|
||||
<legend><?php echo JText::_('COM_SEARCH_FOR');?>
|
||||
</legend>
|
||||
<div class="phrases-box">
|
||||
<?php echo $this->lists['searchphrase']; ?>
|
||||
</div>
|
||||
<div class="ordering-box">
|
||||
<label for="ordering" class="ordering">
|
||||
<?php echo JText::_('COM_SEARCH_ORDERING');?>
|
||||
</label>
|
||||
<?php echo $this->lists['ordering'];?>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<?php if ($this->params->get('search_areas', 1)) : ?>
|
||||
<fieldset class="only">
|
||||
<legend><?php echo JText::_('COM_SEARCH_SEARCH_ONLY');?></legend>
|
||||
<?php foreach ($this->searchareas['search'] as $val => $txt) :
|
||||
$checked = is_array($this->searchareas['active']) && in_array($val, $this->searchareas['active']) ? 'checked="checked"' : '';
|
||||
?>
|
||||
<label for="area-<?php echo $val;?>" class="checkbox">
|
||||
<input type="checkbox" name="areas[]" value="<?php echo $val;?>" id="area-<?php echo $val;?>" <?php echo $checked;?> >
|
||||
<?php echo JText::_($txt); ?>
|
||||
</label>
|
||||
<?php endforeach; ?>
|
||||
</fieldset>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->total > 0) : ?>
|
||||
|
||||
<div class="form-limit well">
|
||||
<label for="limit">
|
||||
<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?>
|
||||
</label>
|
||||
<?php echo $this->pagination->getLimitBox(); ?>
|
||||
</div>
|
||||
<p class="counter">
|
||||
<?php echo $this->pagination->getPagesCounter(); ?>
|
||||
</p>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</form>
|
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_search
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
|
||||
<dl class="search-results<?php echo $this->pageclass_sfx; ?>">
|
||||
<?php foreach($this->results as $result) : ?>
|
||||
<dt class="result-title">
|
||||
<?php echo $this->pagination->limitstart + $result->count.'. ';?>
|
||||
<?php if ($result->href) :?>
|
||||
<a href="<?php echo JRoute::_($result->href); ?>"<?php if ($result->browsernav == 1) :?> target="_blank"<?php endif;?>>
|
||||
<?php echo $this->escape($result->title);?>
|
||||
</a>
|
||||
<?php else:?>
|
||||
<?php echo $this->escape($result->title);?>
|
||||
<?php endif; ?>
|
||||
</dt>
|
||||
<?php if ($result->section) : ?>
|
||||
<dd class="result-category">
|
||||
<span class="small<?php echo $this->pageclass_sfx; ?>">
|
||||
(<?php echo $this->escape($result->section); ?>)
|
||||
</span>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<dd class="result-text">
|
||||
<?php echo $result->text; ?>
|
||||
</dd>
|
||||
<?php if ($this->params->get('show_date')) : ?>
|
||||
<dd class="result-created<?php echo $this->pageclass_sfx; ?>">
|
||||
<?php echo JText::sprintf('JGLOBAL_CREATED_DATE_ON', $result->created); ?>
|
||||
</dd>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</dl>
|
||||
|
||||
<div class="pagination">
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
1
templates/as002036free/html/com_search/search/index.html
Normal file
1
templates/as002036free/html/com_search/search/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
Reference in New Issue
Block a user