mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-20 02:42:23 +09:00
issue 2369 hide a theme layout when layout type is mobile type.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11850 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
733cf1d71e
commit
9362e4c026
1 changed files with 26 additions and 23 deletions
|
|
@ -53,34 +53,37 @@
|
|||
|
||||
$layoutList = $this->getLayoutInstanceList($siteSrl, $layoutType);
|
||||
$thumbs = array();
|
||||
foreach($layoutList as $key => $val)
|
||||
|
||||
if($layoutType != 'M')
|
||||
{
|
||||
if($thumbs[$val->layouts])
|
||||
foreach($layoutList as $key => $val)
|
||||
{
|
||||
$val->thumbnail = $thumbs[$val->layouts];
|
||||
continue;
|
||||
}
|
||||
if($thumbs[$val->layouts])
|
||||
{
|
||||
$val->thumbnail = $thumbs[$val->layouts];
|
||||
continue;
|
||||
}
|
||||
|
||||
$token = explode('|@|', $val->layout);
|
||||
if(count($token) == 2)
|
||||
{
|
||||
$thumbnailPath = sprintf('./themes/%s/layouts/%s/thumbnail.png' , $token[0], $token[1]);
|
||||
$token = explode('|@|', $val->layout);
|
||||
if(count($token) == 2)
|
||||
{
|
||||
$thumbnailPath = sprintf('./themes/%s/layouts/%s/thumbnail.png' , $token[0], $token[1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
$thumbnailPath = sprintf('./layouts/%s/thumbnail.png' , $val->layout);
|
||||
}
|
||||
if(is_readable($thumbnailPath))
|
||||
{
|
||||
$val->thumbnail = $thumbnailPath;
|
||||
}
|
||||
else
|
||||
{
|
||||
$val->thumbnail = sprintf('./modules/layout/tpl/images/noThumbnail.jpg');
|
||||
}
|
||||
$thumbs[$val->layout] = $val->thumbnail;
|
||||
}
|
||||
else
|
||||
{
|
||||
$thumbnailPath = sprintf('./layouts/%s/thumbnail.png' , $val->layout);
|
||||
}
|
||||
if(is_readable($thumbnailPath))
|
||||
{
|
||||
$val->thumbnail = $thumbnailPath;
|
||||
}
|
||||
else
|
||||
{
|
||||
$val->thumbnail = sprintf('./modules/layout/tpl/images/noThumbnail.jpg');
|
||||
}
|
||||
$thumbs[$val->layout] = $val->thumbnail;
|
||||
}
|
||||
|
||||
$this->add('layout_list', $layoutList);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue