コード例 #1
0
ファイル: relations.php プロジェクト: nlescure/ezpublish
    }
}
if (!$embedObject instanceof eZContentObject || !$embedObject->canRead()) {
    echo ezpI18n::tr('design/standard/ezoe', 'Invalid parameter: %parameter = %value', null, array('%parameter' => 'EmbedID', '%value' => $Params['EmbedID']));
    eZExecution::cleanExit();
}
$imageSizeArray = $imageIni->variable('AliasSettings', 'AliasList');
$ini = eZINI::instance('site.ini');
$contentIni = eZINI::instance('content.ini');
$ezoeIni = eZINI::instance('ezoe.ini');
$embedClassIdentifier = $embedObject->attribute('class_identifier');
$embedClassID = $embedObject->attribute('contentclass_id');
$sizeTypeArray = array();
if ($contentType === 'auto') {
    // figgure out what content type group this class is in
    $contentType = eZOEXMLInput::embedTagContentType($embedClassIdentifier, $embedClassID);
}
if ($embedSize && $contentType === 'images') {
    $params['imagePreGenerateSizes'][] = $embedSize;
}
foreach ($imageSizeArray as $size) {
    if ($imageIni->hasVariable($size, 'HideFromRelations') && $imageIni->variable($size, 'HideFromRelations') === 'enabled') {
        continue;
    }
    if ($imageIni->hasVariable($size, 'GUIName')) {
        $sizeTypeArray[$size] = $imageIni->variable($size, 'GUIName');
    } else {
        $sizeTypeArray[$size] = ucfirst($size);
    }
    $imagePixelSize = '';
    foreach ($imageIni->variable($size, 'Filters') as $filter) {