Skip to content

Commit

Permalink
Code quality for beez3.
Browse files Browse the repository at this point in the history
  • Loading branch information
realityking committed Sep 9, 2012
1 parent e406c27 commit ecb620d
Show file tree
Hide file tree
Showing 19 changed files with 31 additions and 36 deletions.
2 changes: 1 addition & 1 deletion templates/beez3/component.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
/**
* @package Joomla.Site
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

// No direct access.
defined('_JEXEC') or die;

$doc = JFactory::getDocument();
Expand Down
11 changes: 6 additions & 5 deletions templates/beez3/error.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<?php
/**
* @package Joomla.Site
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @package Joomla.Site
* @subpackage Templates.beez3
*
* @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;

$params = JFactory::getApplication()->getTemplate(true)->params;
$logo = $params->get('logo');
$showRightColumn = 0;
Expand Down Expand Up @@ -99,8 +102,6 @@
$logo = $params->get('logo');
?>

<?php jimport('joomla.application.module.helper'); ?>

<h1 id="logo">

<?php if ($logo): ?>
Expand Down
2 changes: 1 addition & 1 deletion templates/beez3/html/com_contact/contact/encyclopedia.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @package Joomla.Site
* @subpackage Template.beez5
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
Expand Down
2 changes: 1 addition & 1 deletion templates/beez3/html/com_content/article/default.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @package Joomla.Site
* @subpackage Template.beez5
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
Expand Down
2 changes: 1 addition & 1 deletion templates/beez3/html/com_content/article/default_links.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @package Joomla.Site
* @subpackage com_content
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
Expand Down
2 changes: 1 addition & 1 deletion templates/beez3/html/com_content/category/blog.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @package Joomla.Site
* @subpackage Template.beez5
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @package Joomla.Site
* @subpackage Template.beez5
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
Expand Down
2 changes: 1 addition & 1 deletion templates/beez3/html/com_content/category/blog_item.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @package Joomla.Site
* @subpackage Template.beez5
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
Expand Down
2 changes: 1 addition & 1 deletion templates/beez3/html/com_content/category/blog_links.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @package Joomla.Site
* @subpackage Template.beez5
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
Expand Down
2 changes: 1 addition & 1 deletion templates/beez3/html/com_content/category/default.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @package Joomla.Site
* @subpackage Template.beez5
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @package Joomla.Site
* @subpackage Template.beez5
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @package Joomla.Site
* @subpackage Template.beez5
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
Expand Down
2 changes: 1 addition & 1 deletion templates/beez3/html/com_content/featured/default.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @package Joomla.Site
* @subpackage Template.beez5
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
Expand Down
2 changes: 1 addition & 1 deletion templates/beez3/html/com_content/featured/default_item.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @package Joomla.Site
* @subpackage Template.beez5
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
Expand Down
4 changes: 1 addition & 3 deletions templates/beez3/html/com_content/featured/default_links.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<?php
/**
* @package Joomla.Site
* @subpackage Template.beez5
* @subpackage Templates.beez3
*
* @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;

$app = JFactory::getApplication();

?>

<h3><?php echo JText::_('COM_CONTENT_MORE_ARTICLES'); ?></h3>
Expand Down
2 changes: 1 addition & 1 deletion templates/beez3/html/mod_breadcrumbs/default.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @package Joomla.Site
* @subpackage mod_breadcrumbs
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
Expand Down
8 changes: 4 additions & 4 deletions templates/beez3/html/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
/**
* @package Joomla.Site
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

// No direct access.
defined('_JEXEC') or die;

/**
* beezDivision chrome.
*
* @since 1.6
* @since 3.0
*/
function modChrome_beezDivision($module, &$params, &$attribs)
{
Expand All @@ -27,7 +27,7 @@ function modChrome_beezDivision($module, &$params, &$attribs)
/**
* beezHide chrome.
*
* @since 1.6
* @since 3.0
*/
function modChrome_beezHide($module, &$params, &$attribs)
{
Expand All @@ -54,7 +54,7 @@ class="no"><img src="templates/beez3/images/plus.png"
/**
* beezTabs chrome.
*
* @since 1.6
* @since 3.0
*/
function modChrome_beezTabs($module, $params, $attribs)
{
Expand Down
5 changes: 1 addition & 4 deletions templates/beez3/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@
/**
* @package Joomla.Site
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

// No direct access.
defined('_JEXEC') or die;

jimport('joomla.filesystem.file');


// check modules
$showRightColumn = ($this->countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8'));
$showbottom = ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11'));
Expand Down
11 changes: 5 additions & 6 deletions templates/beez3/jsstrings.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?php
/**
* @package Joomla.Site
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @package Joomla.Site
* @subpackage Templates.beez3
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

JText::script('TPL_BEEZ3_ALTOPEN');
Expand All @@ -20,12 +22,9 @@
JText::script('TPL_BEEZ3_CLOSEMENU');
?>



<script type="text/javascript">
var big = '<?php echo (int) $this->params->get('wrapperLarge');?>%';
var small = '<?php echo (int) $this->params->get('wrapperSmall'); ?>%';
var bildauf = '<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/plus.png';
var bildzu = '<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/images/minus.png';

</script>

0 comments on commit ecb620d

Please sign in to comment.