array(
'url' => addQueryStringParameter($url, 'image', 1),
'label' => "
" . __('Thumbnail')
),
'include' => $global['systemRootPath'] . 'view/managerVideosLight_image.php'
);
$assets['imageTime'] = array(
'button' =>array(
'url' => addQueryStringParameter($url, 'imageTime', 1),
'label' => "
" . __('Thumbnail in video time'),
),
'include' => $global['systemRootPath'] . 'view/managerVideosLight_imageTime.php'
);
$assets['meta'] = array(
'button' =>array(
'url' => addQueryStringParameter($url, 'image', 0),
'label' => "
" . __('Edit')
),
'include' => $global['systemRootPath'] . 'view/managerVideosLight_meta.php'
);
$buttons = array(
'image' => array(
$assets['imageTime']['button'],
$assets['meta']['button'],
),
'imageTime' => array(
$assets['image']['button'],
$assets['meta']['button'],
),
'meta' => array(
$assets['imageTime']['button'],
$assets['image']['button'],
),
);
$index = '';
if (!empty($_REQUEST['image'])) {
$index = 'image';
} else if (!empty($_REQUEST['imageTime'])) {
$index = 'imageTime';
} else {
$index = 'meta';
}
foreach ($buttons[$index] as $key => $value) {
?>