if ( is_array( $this -> languages ) ): foreach ( $this -> languages as $lg ):?>
if ( $lg['status'] ):?>
= \Html::input_icon( [
'label' => 'Link SEO',
'name' => 'seo_link[' . $lg['id'] . ']',
'id' => 'seo_link_' . $lg['id'],
'value' => $this -> page['languages' ][ $lg['id'] ]['seo_link'],
'icon_content' => 'generuj',
'icon_js' => 'generate_seo_links( "' . $lg['id'] . '", $( "#title_' . $lg['id'] . '" ).val(), ' . (int)$this -> page['id'] . ' );'
] );?>
= \Html::input( [
'label' => 'Tytuł strony (h1)',
'name' => 'page_title[' . $lg['id'] . ']',
'id' => 'page_title_' . $lg['id'],
'value' => $this -> page['languages' ][ $lg['id'] ]['page_title']
] );?>
= \Html::input( [
'label' => 'Meta title',
'name' => 'meta_title[' . $lg['id'] . ']',
'id' => 'meta_title_' . $lg['id'],
'value' => $this -> page['languages'][ $lg['id'] ]['meta_title']
] );?>
= \Html::textarea( [
'label' => 'Meta description',
'name' => 'meta_description[' . $lg['id'] . ']',
'id' => 'meta_description_' . $lg['id'],
'value' => $this -> page['languages'][ $lg['id'] ]['meta_description']
] );?>
= \Html::textarea( [
'label' => 'Meta keywords',
'name' => 'meta_keywords[' . $lg['id'] . ']',
'id' => 'meta_keywords_' . $lg['id'],
'value' => $this -> page['languages'][ $lg['id'] ]['meta_keywords']
] );?>
= \Html::select( [
'label' => 'Blokuj indeksację',
'name' => 'noindex[' . $lg['id'] . ']',
'id' => 'noindex_' . $lg['id'],
'values' => [ 0 => 'nie', 1 => 'tak' ],
'value' => $this -> page['languages'][ $lg['id'] ]['noindex'] == 1 ? 1 : 0
] );?>
= \Html::input( [
'label' => 'Rel canonical',
'name' => 'canonical[' . $lg['id'] . ']',
'id' => 'canonical_' . $lg['id'],
'value' => $this -> page['languages'][ $lg['id'] ]['canonical']
] );?>
endif;?>
endforeach; endif;?>