/home/techb158/immovalet.com/platform/plugins/blog/src/Supports
Edit: /home/techb158/immovalet.com/platform/plugins/blog/src/Supports/PostFormat.php (1023B)
[
'key' => '',
'icon' => null,
'name' => 'Default',
],
];
/**
* @param array $formats
* @return void
* @since 16-09-2016
*/
public static function registerPostFormat(array $formats = [])
{
foreach ($formats as $key => $format) {
self::$formats[$key] = $format;
}
}
/**
* @param bool $isConvertToList
* @return array
* @since 16-09-2016
*/
public static function getPostFormats($isConvertToList = false)
{
if ($isConvertToList) {
$results = [];
foreach (self::$formats as $key => $item) {
$results[$key] = [
$key,
$item['name'],
];
}
return $results;
}
return self::$formats;
}
}