Changeset 1185864
- Timestamp:
- 06/23/2015 02:26:29 AM (11 years ago)
- Location:
- the-welcomizer/trunk/includes
- Files:
-
- 2 edited
-
twiz.class.php (modified) (1 diff)
-
twiz.output.class.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
the-welcomizer/trunk/includes/twiz.class.php
r1185860 r1185864 2787 2787 or (".self::F_MOVE_LEFT_POS_B." != '')) 2788 2788 and (".self::F_DURATION_B." = '')),".self::F_DURATION.",'0') AS duration_x FROM ".$this->table.") t " . $where . $orderby; 2789 2789 2790 2790 $rows = $wpdb->get_results($sql, ARRAY_A); 2791 2791 -
the-welcomizer/trunk/includes/twiz.output.class.php
r1185853 r1185864 263 263 // generates the code 264 264 foreach( $this->listarray as $value ){ 265 265 266 266 $value[parent::F_BLOG_ID] = json_decode( str_replace('['.parent::ALL_SITES.']', '["'.parent::ALL_SITES.'"]', $value[parent::F_BLOG_ID] ) ); 267 267 … … 272 272 or ( $this->visibility_validation[$value[parent::F_SECTION_ID]] == false ) 273 273 or ( $value[parent::F_TYPE] == parent::ELEMENT_TYPE_GROUP ) 274 or ( ( !in_array( $this->BLOG_ID, $value[parent::F_BLOG_ID]) ) and ( !in_array(parent::ALL_SITES, $value[parent::F_BLOG_ID]) ) )){274 ){ 275 275 // Nothing to do 276 276 }else if($this->hasValidParendId[$value[parent::F_ID]] == true){ 277 277 278 278 $has_active = ''; 279 279 … … 1081 1081 1082 1082 if($this->hardsections[$this->DEFAULT_SECTION_ALL_ARTICLES][parent::F_STATUS] == parent::STATUS_ACTIVE){ 1083 1083 1084 // get the active data list array 1084 1085 $listarray_alla = $this->getListArray(" where ".parent::F_STATUS." = 1 and ".parent::F_SECTION_ID." = '".$this->DEFAULT_SECTION_ALL_ARTICLES."' ".$this->sqlwhereblogid); … … 1089 1090 } 1090 1091 1092 1091 1093 $and_multi_sections = $this->generateSQL($post_id); 1092 1094 … … 1102 1104 if( !isset($this->sections[$post_id]) ) $this->sections[$post_id][parent::F_STATUS] = parent::STATUS_INACTIVE; 1103 1105 if($this->sections[$post_id][parent::F_STATUS] == parent::STATUS_ACTIVE){ 1104 1106 1105 1107 $listarray_a = $this->getListArray(" where ".parent::F_STATUS." = 1 and ".parent::F_SECTION_ID." = '".$post_id."' ".$this->sqlwhereblogid); 1106 1108 … … 1129 1131 $this->listarray = $listarray_sc; 1130 1132 } 1131 1133 1132 1134 return $this->listarray; 1133 1135 }
Note: See TracChangeset
for help on using the changeset viewer.