if ( is_array( $this -> languages ) ): foreach ( $this -> languages as $lg ):?>
$languages = array();
$languages[''] = '---- wersja językowa ----';
if ( is_array( $this -> languages ) ) foreach ( $this -> languages as $lg_tmp )
{
if ( $lg_tmp['id'] != $lg['id'] )
$languages[ $lg_tmp['id'] ] = $lg_tmp['name'];
}
?>
if ( $lg['status'] ):?>
= \Html::select(
array(
'label' => 'Wyświetlaj treść z wersji',
'name' => 'copy_from',
'values' => $languages,
'value' => $this -> article['languages'][ $lg['id'] ]['copy_from'],
)
);?>
= \Html::input(
array(
'label' => 'Tytuł',
'name' => 'title',
'id' => 'title_' . $lg['id'],
'value' => $this -> article['languages'][ $lg['id'] ]['title'],
'inline' => true,
'js_key' => 'google_preview( "' . $lg['id'] . '" ); return false;'
)
);?>
= \Html::input_icon( [
'label' => 'Zdjęcie tytułowe',
'name' => 'main_image',
'id' => 'main_image_' . $lg['id'],
'value' => $this -> article['languages'][ $lg['id'] ]['main_image'],
'icon_content' => 'przeglądaj',
'inline' => true,
'icon_js' => "window.open ( '/libraries/filemanager-9.14.1/dialog.php?type=1&popup=1&field_id=main_image_" . $lg['id'] . "&akey=c3cb2537d25c0efc9e573d059d79c3b8', 'mywindow', 'location=1,status=1,scrollbars=1, width=1100,height=700');"
] );
?>
= \Html::textarea(
array(
'label' => 'Wstęp',
'name' => 'entry',
'id' => 'entry_' . $lg['id'],
'value' => $this -> article['languages'][ $lg['id'] ]['entry'],
'inline' => true
)
);?>
= \Html::textarea(
array(
'label' => 'Treść',
'name' => 'text',
'id' => 'text_' . $lg['id'],
'value' => $this -> article['languages'][ $lg['id'] ]['text'],
'inline' => true
)
);?>
= \Html::textarea( [
'label' => 'Spis treści',
'name' => 'table_of_contents',
'id' => 'table_of_contents_' . $lg['id'],
'value' => $this -> article['languages'][ $lg['id'] ]['table_of_contents'],
'inline' => true
] );?>
endif;?>
endforeach; endif;?>