summaryrefslogtreecommitdiff
path: root/BitThemes.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2012-08-06 22:12:39 +0100
committerlsces <lester@lsces.co.uk>2012-08-06 22:12:39 +0100
commitde09cf1212077219c468b21bbcb94d821781257e (patch)
tree83ecabc75bbb19f531be82417af0779748b4aa45 /BitThemes.php
parent8326991cd2bb943d371ee07726cedebad91a085b (diff)
downloadthemes-de09cf1212077219c468b21bbcb94d821781257e.tar.gz
themes-de09cf1212077219c468b21bbcb94d821781257e.tar.bz2
themes-de09cf1212077219c468b21bbcb94d821781257e.zip
white space messed up somewhere ... blocks not tabbed properly
Diffstat (limited to 'BitThemes.php')
-rw-r--r--BitThemes.php86
1 files changed, 43 insertions, 43 deletions
diff --git a/BitThemes.php b/BitThemes.php
index 285ca03..7644941 100644
--- a/BitThemes.php
+++ b/BitThemes.php
@@ -502,62 +502,62 @@ class BitThemes extends BitSingleton {
}
if ( defined ('ROLE_MODEL') ) {
- // transform roles to managable array
- if( empty( $row["roles"] )) {
- // default is that module is visible at all times
- $row["visible"] = TRUE;
- $row["module_roles"] = array();
- } else {
- $row['module_roles'] = $this->parseRoles( $row['roles'] );
+ // transform roles to managable array
+ if( empty( $row["roles"] )) {
+ // default is that module is visible at all times
+ $row["visible"] = TRUE;
+ $row["module_roles"] = array();
+ } else {
+ $row['module_roles'] = $this->parseRoles( $row['roles'] );
- if( $gBitUser->isAdmin() ) {
- if ( $gBitSystem->isFeatureActive('site_mods_req_admn_grp') ) {
- if( in_array(1, $row['module_roles']) ) {
- $row['visible'] = TRUE;
+ if( $gBitUser->isAdmin() ) {
+ if ( $gBitSystem->isFeatureActive('site_mods_req_admn_grp') ) {
+ if( in_array(1, $row['module_roles']) ) {
+ $row['visible'] = TRUE;
+ }
}
- }
- else {
- $row["visible"] = TRUE;
- }
- } else {
- // Check for the right roles
- foreach( $row["module_roles"] as $modRoleId ) {
- if( $gBitUser->isInRole( $modRoleId )) {
+ else {
$row["visible"] = TRUE;
- break; // no need to continue looping
+ }
+ } else {
+ // Check for the right roles
+ foreach( $row["module_roles"] as $modRoleId ) {
+ if( $gBitUser->isInRole( $modRoleId )) {
+ $row["visible"] = TRUE;
+ break; // no need to continue looping
+ }
}
}
}
- }
- } else {
- // transform groups to managable array
- if( empty( $row["groups"] )) {
- // default is that module is visible at all times
- $row["visible"] = TRUE;
- $row["module_groups"] = array();
} else {
- $row['module_groups'] = $this->parseGroups( $row['groups'] );
+ // transform groups to managable array
+ if( empty( $row["groups"] )) {
+ // default is that module is visible at all times
+ $row["visible"] = TRUE;
+ $row["module_groups"] = array();
+ } else {
+ $row['module_groups'] = $this->parseGroups( $row['groups'] );
- if( $gBitUser->isAdmin() ) {
- if ( $gBitSystem->isFeatureActive('site_mods_req_admn_grp') ) {
- if( in_array(1, $row['module_groups']) ) {
- $row['visible'] = TRUE;
+ if( $gBitUser->isAdmin() ) {
+ if ( $gBitSystem->isFeatureActive('site_mods_req_admn_grp') ) {
+ if( in_array(1, $row['module_groups']) ) {
+ $row['visible'] = TRUE;
+ }
}
- }
- else {
- $row["visible"] = TRUE;
- }
- } else {
- // Check for the right groups
- foreach( $row["module_groups"] as $modGroupId ) {
- if( $gBitUser->isInGroup( $modGroupId )) {
+ else {
$row["visible"] = TRUE;
- break; // no need to continue looping
+ }
+ } else {
+ // Check for the right groups
+ foreach( $row["module_groups"] as $modGroupId ) {
+ if( $gBitUser->isInGroup( $modGroupId )) {
+ $row["visible"] = TRUE;
+ break; // no need to continue looping
+ }
}
}
}
}
- }
if( empty( $ret[$row['layout_area']] )) {
$ret[$row['layout_area']] = array();
@@ -712,7 +712,7 @@ class BitThemes extends BitSingleton {
/**
* transform groups string to handy array
- *
+ *
* @param array $pParseString either space separated list of groups or serialised array
* @access public
* @return array of groups