You've already forked joomla_test
first commit
This commit is contained in:
50
administrator/templates/isis/html/editor_content.css
Normal file
50
administrator/templates/isis/html/editor_content.css
Normal file
@ -0,0 +1,50 @@
|
||||
body {
|
||||
background: #000;
|
||||
font-family: Arial,sans-serif;
|
||||
line-height: 1.3em;
|
||||
font-size: 96%;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family:Helvetica ,Arial,sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: #ff0000;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-family: Arial, Helvetica,sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight: normal;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-weight: bold;
|
||||
font-family: Helvetica,Arial,sans-serif;
|
||||
font-size: 19px;
|
||||
color: #135cae;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-weight: bold;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
a:link, a:visited {
|
||||
color: #1B57B1; text-decoration: none;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #00c; text-decoration: underline;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
div.caption { padding: 0 10px 0 10px; }
|
||||
div.caption img { border: 1px solid #CCC; }
|
||||
div.caption p { font-size: .90em; color: #666; text-align: center; }
|
||||
|
||||
div.teaser { background:#ccc; }
|
1
administrator/templates/isis/html/index.html
Normal file
1
administrator/templates/isis/html/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
40
administrator/templates/isis/html/message.php
Normal file
40
administrator/templates/isis/html/message.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage Template.Isis
|
||||
*
|
||||
* @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;
|
||||
|
||||
function renderMessage($msgList)
|
||||
{
|
||||
$buffer = null;
|
||||
$buffer .= "\n<div id=\"system-message-container\">";
|
||||
$alert = array('error' => 'alert-error', 'warning' => '', 'notice' => 'alert-info', 'message' => 'alert-success');
|
||||
|
||||
// Only render the message list and the close button if $msgList has items
|
||||
if (is_array($msgList) && (count($msgList) >= 1))
|
||||
{
|
||||
$buffer .= '<button type="button" class="close" data-dismiss="alert">×</button>';
|
||||
foreach ($msgList as $type => $msgs)
|
||||
{
|
||||
$buffer .= '<div class="alert ' . $alert[$type]. '">';
|
||||
$buffer .= "\n<h4 class=\"alert-heading\">" . JText::_($type) . "</h4>";
|
||||
if (count($msgs))
|
||||
{
|
||||
foreach ($msgs as $msg)
|
||||
{
|
||||
$buffer .= "\n\t\t<p>" . $msg . "</p>";
|
||||
}
|
||||
}
|
||||
$buffer .= "\n</div>";
|
||||
}
|
||||
}
|
||||
|
||||
$buffer .= "\n</div>";
|
||||
|
||||
return $buffer;
|
||||
}
|
15
administrator/templates/isis/html/mod_version/default.php
Normal file
15
administrator/templates/isis/html/mod_version/default.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage mod_version
|
||||
*
|
||||
* @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;
|
||||
?>
|
||||
<?php if (!empty($version)) : ?>
|
||||
<?php echo $version; ?>
|
||||
<?php echo " — "; ?>
|
||||
<?php endif; ?>
|
1
administrator/templates/isis/html/mod_version/index.html
Normal file
1
administrator/templates/isis/html/mod_version/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
55
administrator/templates/isis/html/modules.php
Normal file
55
administrator/templates/isis/html/modules.php
Normal file
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage Templates.isis
|
||||
*
|
||||
* @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;
|
||||
|
||||
/**
|
||||
* This is a file to add template specific chrome to module rendering. To use it you would
|
||||
* set the style attribute for the given module(s) include in your template to use the style
|
||||
* for each given modChrome function.
|
||||
*
|
||||
* eg. To render a module mod_test in the submenu style, you would use the following include:
|
||||
* <jdoc:include type="module" name="test" style="submenu" />
|
||||
*
|
||||
* This gives template designers ultimate control over how modules are rendered.
|
||||
*
|
||||
* NOTICE: All chrome wrapping methods should be named: modChrome_{STYLE} and take the same
|
||||
* two arguments.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Module chrome for rendering the module in a submenu
|
||||
*/
|
||||
function modChrome_title($module, &$params, &$attribs)
|
||||
{
|
||||
if ($module->content)
|
||||
{
|
||||
echo "<div class=\"module-title\"><h6>".$module->title."</h6></div>";
|
||||
echo $module->content;
|
||||
}
|
||||
}
|
||||
|
||||
function modChrome_no($module, &$params, &$attribs)
|
||||
{
|
||||
if ($module->content)
|
||||
{
|
||||
echo $module->content;
|
||||
}
|
||||
}
|
||||
|
||||
function modChrome_well($module, &$params, &$attribs)
|
||||
{
|
||||
if ($module->content)
|
||||
{
|
||||
echo "<div class=\"well well-small\">";
|
||||
echo "<div class=\"module-title nav-header\">".$module->title."</div>";
|
||||
echo $module->content;
|
||||
echo "</div>";
|
||||
}
|
||||
}
|
243
administrator/templates/isis/html/pagination.php
Normal file
243
administrator/templates/isis/html/pagination.php
Normal file
@ -0,0 +1,243 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage Template.Isis
|
||||
*
|
||||
* @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;
|
||||
|
||||
/**
|
||||
* This is a file to add template specific chrome to pagination rendering.
|
||||
*
|
||||
* pagination_list_footer
|
||||
* Input variable $list is an array with offsets:
|
||||
* $list[limit] : int
|
||||
* $list[limitstart] : int
|
||||
* $list[total] : int
|
||||
* $list[limitfield] : string
|
||||
* $list[pagescounter] : string
|
||||
* $list[pageslinks] : string
|
||||
*
|
||||
* pagination_list_render
|
||||
* Input variable $list is an array with offsets:
|
||||
* $list[all]
|
||||
* [data] : string
|
||||
* [active] : boolean
|
||||
* $list[start]
|
||||
* [data] : string
|
||||
* [active] : boolean
|
||||
* $list[previous]
|
||||
* [data] : string
|
||||
* [active] : boolean
|
||||
* $list[next]
|
||||
* [data] : string
|
||||
* [active] : boolean
|
||||
* $list[end]
|
||||
* [data] : string
|
||||
* [active] : boolean
|
||||
* $list[pages]
|
||||
* [{PAGE}][data] : string
|
||||
* [{PAGE}][active] : boolean
|
||||
*
|
||||
* pagination_item_active
|
||||
* Input variable $item is an object with fields:
|
||||
* $item->base : integer
|
||||
* $item->link : string
|
||||
* $item->text : string
|
||||
*
|
||||
* pagination_item_inactive
|
||||
* Input variable $item is an object with fields:
|
||||
* $item->base : integer
|
||||
* $item->link : string
|
||||
* $item->text : string
|
||||
*
|
||||
* This gives template designers ultimate control over how pagination is rendered.
|
||||
*
|
||||
* NOTE: If you override pagination_item_active OR pagination_item_inactive you MUST override them both
|
||||
*/
|
||||
|
||||
/**
|
||||
* Renders the pagination footer
|
||||
*
|
||||
* @param array $list Array containing pagination footer
|
||||
*
|
||||
* @return string HTML markup for the full pagination footer
|
||||
*
|
||||
* @since 3.0
|
||||
*/
|
||||
function pagination_list_footer($list)
|
||||
{
|
||||
$html = "<div class=\"pagination pagination-toolbar\">\n";
|
||||
$html .= $list['pageslinks'];
|
||||
$html .= "\n<input type=\"hidden\" name=\"" . $list['prefix'] . "limitstart\" value=\"" . $list['limitstart'] . "\" />";
|
||||
$html .= "\n</div>";
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the pagination list
|
||||
*
|
||||
* @param array $list Array containing pagination information
|
||||
*
|
||||
* @return string HTML markup for the full pagination object
|
||||
*
|
||||
* @since 3.0
|
||||
*/
|
||||
function pagination_list_render($list)
|
||||
{
|
||||
// Calculate to display range of pages
|
||||
$currentPage = 1;
|
||||
$range = 1;
|
||||
$step = 5;
|
||||
foreach ($list['pages'] as $k => $page)
|
||||
{
|
||||
if (!$page['active'])
|
||||
{
|
||||
$currentPage = $k;
|
||||
}
|
||||
}
|
||||
if ($currentPage >= $step)
|
||||
{
|
||||
if ($currentPage % $step == 0)
|
||||
{
|
||||
$range = ceil($currentPage / $step) + 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
$range = ceil($currentPage / $step);
|
||||
}
|
||||
}
|
||||
|
||||
$html = '<ul class="pagination-list">';
|
||||
$html .= $list['start']['data'];
|
||||
$html .= $list['previous']['data'];
|
||||
|
||||
foreach ($list['pages'] as $k => $page)
|
||||
{
|
||||
if (in_array($k, range($range * $step - ($step + 1), $range * $step)))
|
||||
{
|
||||
if (($k % $step == 0 || $k == $range * $step - ($step + 1)) && $k != $currentPage && $k != $range * $step - $step)
|
||||
{
|
||||
$page['data'] = preg_replace('#(<a.*?>).*?(</a>)#', '$1...$2', $page['data']);
|
||||
}
|
||||
}
|
||||
|
||||
$html .= $page['data'];
|
||||
}
|
||||
|
||||
$html .= $list['next']['data'];
|
||||
$html .= $list['end']['data'];
|
||||
|
||||
$html .= '</ul>';
|
||||
return $html;
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders an active item in the pagination block
|
||||
*
|
||||
* @param JPaginationObject $item The current pagination object
|
||||
*
|
||||
* @return string HTML markup for active item
|
||||
*
|
||||
* @since 3.0
|
||||
*/
|
||||
function pagination_item_active(&$item)
|
||||
{
|
||||
// Check for "Start" item
|
||||
if ($item->text == JText::_('JLIB_HTML_START'))
|
||||
{
|
||||
$display = '<i class="icon-first"></i>';
|
||||
}
|
||||
|
||||
// Check for "Prev" item
|
||||
if ($item->text == JText::_('JPREV'))
|
||||
{
|
||||
$item->text = JText::_('JPREVIOUS');
|
||||
$display = '<i class="icon-previous"></i>';
|
||||
}
|
||||
|
||||
// Check for "Next" item
|
||||
if ($item->text == JText::_('JNEXT'))
|
||||
{
|
||||
$display = '<i class="icon-next"></i>';
|
||||
}
|
||||
|
||||
// Check for "End" item
|
||||
if ($item->text == JText::_('JLIB_HTML_END'))
|
||||
{
|
||||
$display = '<i class="icon-last"></i>';
|
||||
}
|
||||
|
||||
// If the display object isn't set already, just render the item with its text
|
||||
if (!isset($display))
|
||||
{
|
||||
$display = $item->text;
|
||||
}
|
||||
|
||||
if ($item->base > 0)
|
||||
{
|
||||
$limit = 'limitstart.value=' . $item->base;
|
||||
}
|
||||
else
|
||||
{
|
||||
$limit = 'limitstart.value=0';
|
||||
}
|
||||
|
||||
$title = '';
|
||||
if (!is_numeric($item->text))
|
||||
{
|
||||
JHtml::_('bootstrap.tooltip');
|
||||
$title = ' class="hasTooltip" title="' . $item->text . '"';
|
||||
}
|
||||
|
||||
return '<li><a' . $title . ' href="#" onclick="document.adminForm.' . $item->prefix . $limit . '; Joomla.submitform();return false;">' . $display . '</a></li>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders an inactive item in the pagination block
|
||||
*
|
||||
* @param JPaginationObject $item The current pagination object
|
||||
*
|
||||
* @return string HTML markup for inactive item
|
||||
*
|
||||
* @since 3.0
|
||||
*/
|
||||
function pagination_item_inactive(&$item)
|
||||
{
|
||||
// Check for "Start" item
|
||||
if ($item->text == JText::_('JLIB_HTML_START'))
|
||||
{
|
||||
return '<li class="disabled"><a><i class="icon-first"></i></a></li>';
|
||||
}
|
||||
|
||||
// Check for "Prev" item
|
||||
if ($item->text == JText::_('JPREV'))
|
||||
{
|
||||
return '<li class="disabled"><a><i class="icon-previous"></i></a></li>';
|
||||
}
|
||||
|
||||
// Check for "Next" item
|
||||
if ($item->text == JText::_('JNEXT'))
|
||||
{
|
||||
return '<li class="disabled"><a><i class="icon-next"></i></a></li>';
|
||||
}
|
||||
|
||||
// Check for "End" item
|
||||
if ($item->text == JText::_('JLIB_HTML_END'))
|
||||
{
|
||||
return '<li class="disabled"><a><i class="icon-last"></i></a></li>';
|
||||
}
|
||||
|
||||
// Check if the item is the active page
|
||||
if (isset($item->active) && ($item->active))
|
||||
{
|
||||
return '<li class="active"><a>' . $item->text . '</a></li>';
|
||||
}
|
||||
|
||||
// Doesn't match any other condition, render a normal item
|
||||
return '<li class="disabled"><a>' . $item->text . '</a></li>';
|
||||
}
|
Reference in New Issue
Block a user