|
...
|
...
|
@@ -215,7 +215,7 @@ class BTemplateLogic extends BaseLogic |
|
|
|
public function getCommonMain($source,$source_id,$is_custom){
|
|
|
|
$data = [];
|
|
|
|
if($is_custom == BTemplate::SOURCE_CUSTOM){
|
|
|
|
if($source_id != 0){$type = BTemplate::TYPE_SIX;}else{$type = BTemplate::TYPE_SEVEN;}
|
|
|
|
if($source_id != 0){$type = BTemplate::TYPE_CUSTOM_DETAIL;}else{$type = BTemplate::TYPE_CUSTOM_LIST;}
|
|
|
|
}else{
|
|
|
|
if ($source == BTemplate::SOURCE_PRODUCT) {if ($source_id != 0) {$type = BTemplate::TYPE_TWO;} else {$type = BTemplate::TYPE_THREE;}}
|
|
|
|
if ($source == BTemplate::SOURCE_BLOG) {if ($source_id != 0) {$type = BTemplate::TYPE_FOUR;} else {$type = BTemplate::TYPE_FIVE;}}
|
...
|
...
|
|