if ( is_array( $this -> languages ) ): foreach ( $this -> languages as $lg ):?>
if ( $lg['status'] ):?>
- if ( $lg['id'] == \front\factory\Languages::default_language() ) echo ' ';?>= $lg['name'];?>
endif;?>
endforeach; endif;?>
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;?>
$authors[0] = '--- wybierz autora ---';
if ( is_array( $this -> authors ) ):
foreach ( $this -> authors as $author ):
$authors[ $author['id'] ] = $author['author'];
endforeach;
endif;
?>
= \Html::select( [
'label' => 'Autor',
'name' => "id_author",
'id' => 'id_author',
'values' => $authors,
'value' => $this -> article['id_author']
] );?>
= \Html::input_switch(
array(
'label' => 'Opublikowany',
'name' => 'status',
'checked' => $this -> article['status'] == 1 or !$this -> article['id'] ? true : false
)
);?>
= \Html::input_switch(
array(
'label' => 'Artykuł priorytetowy',
'name' => 'priority',
'checked' => $this -> article['priority'] == 1 ? true : false
)
);?>
= \Html::input_switch(
array(
'label' => 'Pokaż tytuł',
'name' => 'show_title',
'checked' => $this -> article['show_title'] == 1 ? true : false
)
);?>
= \Html::input_switch( [
'label' => 'Pokaż spis treści',
'name' => 'show_table_of_contents',
'checked' => $this -> article['show_table_of_contents'] == 1 ? true : false
] );?>
= \Html::input_switch(
array(
'label' => 'Pokaż datę dodania',
'name' => 'show_date_add',
'checked' => $this -> article['show_date_add'] == 1 ? true : false
)
);?>
= \Html::input( [
'label' => 'Data dodania',
'class' => 'date-time',
'name' => 'date_add',
'id' => 'date_add',
'value' => $this -> article['date_add']
] );?>
= \Html::input_switch(
array(
'label' => 'Pokaż datę modyfikacji',
'name' => 'show_date_modify',
'checked' => $this -> article['show_date_modify'] == 1 ? true : false
)
);?>
= \Html::input(
array(
'label' => 'Data modyfikacji',
'class' => 'date-time',
'name' => 'date_modify',
'id' => 'date_modify',
'value' => $this -> article['date_modify'] ? $this -> article['date_modify'] : date( 'Y-m-d H:i:s' )
)
);?>
= \Html::input_switch(
array(
'label' => 'Powtórz wprowadzenie',
'name' => 'repeat_entry',
'checked' => $this -> article['repeat_entry'] == 1 ? true : false
)
);?>
= \Html::input_switch(
array(
'label' => 'Linki do portali społecznościowych',
'name' => 'social_icons',
'checked' => $this -> article['social_icons'] == 1 ? true : false
)
); ?>
= \Html::input(
array(
'label' => 'Zabezpiecz hasłem',
'name' => 'password',
'id' => 'password',
'value' => $this -> article['password']
)
);?>
= \Html::select( [
'label' => 'Moduł Pixieset',
'name' => "pixieset",
'id' => 'pixieset',
'values' => [ 0 => 'wyłączony', 1 => 'pobieranie', 2 => 'pobieranie i wybieranie' ],
'value' => $this -> article['pixieset']
] );?>
if ( $settings['calendar'] ):?>
= \Html::input_icon(
array(
'label' => 'Data wydarzenia',
'class' => 'date-range',
'name' => 'event_date',
'id' => 'event_date',
'value' => ( $this -> article['date_start' ] and $this -> article['date_end'] ) ? $this -> article['date_start'] . ' - ' . $this -> article['date_end'] : '',
'icon_class' => 'date-range-icon',
'icon_content' => ''
)
);?>
endif;?>
if ( $settings['tags'] ):?>
endif;?>
if ( is_array( $this -> languages ) ): foreach ( $this -> languages as $lg ):?>
if ( $lg['status'] ):?>
- if ( $lg['id'] == \front\factory\Languages::default_language() ) echo ' ';?>= $lg['name'];?>
endif;?>
endforeach; endif;?>
if ( is_array( $this -> languages ) ): foreach ( $this -> languages as $lg ):?>
if ( $lg['status'] ):?>
= \Html::input_icon(
array(
'label' => 'Link SEO',
'name' => 'seo_link',
'id' => 'seo_link_' . $lg['id'],
'value' => $this -> article['languages' ][ $lg['id'] ]['seo_link'],
'icon_content' => 'generuj',
'icon_js' => 'generate_seo_links( "' . $lg['id'] . '", $( "#title_' . $lg['id'] . '" ).val(), ' . (int)$this -> article['id'] . ' );',
'js_key' => 'google_preview( "' . $lg['id'] . '" ); return false;'
)
);?>
= \Html::input(
array(
'label' => 'Meta title',
'name' => 'meta_title',
'id' => 'meta_title_' . $lg['id'],
'value' => $this -> article['languages'][ $lg['id'] ]['meta_title'],
'js_key' => 'google_preview( "' . $lg['id'] . '" ); return false;'
)
);?>
= \Html::textarea(
array(
'label' => 'Meta description',
'name' => 'meta_description',
'id' => 'meta_description_' . $lg['id'],
'value' => $this -> article['languages'][ $lg['id'] ]['meta_description'],
'js_key' => 'google_preview( "' . $lg['id'] . '" ); return false;'
)
);?>
= \Html::textarea(
array(
'label' => 'Meta keywords',
'name' => 'meta_keywords',
'id' => 'meta_keywords_' . $lg['id'],
'value' => $this -> article['languages'][ $lg['id'] ]['meta_keywords']
)
);?>
= \Html::select(
array(
'label' => 'Blokuj indeksację',
'name' => "noindex",
'id' => 'noindex_' . $lg['id'],
'values' => array(
0 => 'nie', 1 => 'tak'
),
'value' => $this -> article['languages'][ $lg['id'] ]['noindex'] == 1 ? 1 : 0
)
);?>
= \Html::select(
array(
'label' => 'Blokuj bezpośredni dostęp',
'name' => "block_direct_access",
'id' => 'block_direct_access_' . $lg['id'],
'values' => array(
0 => 'nie', 1 => 'tak'
),
'value' => $this -> article['languages'][ $lg['id'] ]['block_direct_access'] == 1 ? 1 : 0
)
);?>
endif;?>
endforeach; endif;?>
$layouts[''] = '---- szablon domyślny ----';
if ( is_array( $this -> layouts ) ): foreach ( $this -> layouts as $layout ):
$layouts[ $layout['id'] ] = $layout['name'];
endforeach; endif;
?>
= \Html::select(
array(
'label' => 'Szablon',
'name' => 'layout_id',
'id' => 'layout_id',
'values' => $layouts,
'value' => $this -> article['layout_id']
)
);?>
You browser doesn't have Flash installed.
$files_count = 0;
if ( is_array( $this -> article['files'] ) ): foreach ( $this -> article['files'] as $file ):
if ( $file['name'] )
$name = $file['name'];
else
{
$name = explode( '/', $file['src'] );
$name = $name[ count( $name ) - 1 ];
}
?>
-
$files_count++;
endforeach; endif;
?>
You browser doesn't have Flash installed.
if ( is_array( $this -> additional_params_lon ) and count( $this -> additional_params_lon ) or is_array( $this -> additional_params_loff ) and count( $this -> additional_params_loff ) ):?>
if ( is_array( $this -> article['params'] ) ) foreach ( $this -> article['params'] as $param )
$params[ $param['param_id'] . '_' . $param['language_id'] ] = $param['value'];
?>
if ( is_array( $this -> additional_params_loff ) and count( $this -> additional_params_loff ) ):?>
foreach ( $this -> additional_params_loff as $param ):?>
if ( $param['type'] == 'input-date' ):?>
= \Html::input(
array(
'label' => $param['display_name'],
'class' => 'date',
'name' => 'ap_' . $param['name'],
'id' => 'ap_' . $param['name'],
'value' => $params[ $param['id'] . '_' ]
)
);?>
endif;?>
if ( $param['type'] == 'switch' ):?>
= \Html::input_switch(
array(
'label' => $param['display_name'],
'name' => 'ap_' . $param['name'],
'id' => 'ap_' . $param['name'],
'checked' => $params[ $param['id'] . '_' ] == 'on' ? true : false
)
);?>
endif;?>
if ( $param['type'] == 'input-text' ):?>
= \Html::input(
array(
'label' => $param['display_name'],
'name' => 'ap_' . $param['name'],
'id' => 'ap_' . $param['name'],
'value' => $params[ $param['id'] . '_' ]
)
);?>
endif;?>
if ( $param['type'] == 'ckeditor' ):?>
= \Html::textarea(
array(
'label' => $param['display_name'],
'name' => 'ap_' . $param['name'],
'id' => 'ap_' . $param['name'],
'value' => $params[ $param['id'] . '_' ],
'inline' => true
)
);?>
endif;?>
endforeach;?>
endif;?>
if ( is_array( $this -> additional_params_lon ) and count( $this -> additional_params_lon ) ):?>
if ( is_array( $this -> languages ) ): foreach ( $this -> languages as $lg ):?>
if ( $lg['status'] ):?>
- if ( $lg['id'] == \front\factory\Languages::default_language() ) echo ' ';?>= $lg['name'];?>
endif;?>
endforeach; endif;?>
if ( is_array( $this -> languages ) ): foreach ( $this -> languages as $lg ):?>
if ( $lg['status'] ):?>
foreach ( $this -> additional_params_lon as $param ):?>
if ( $param['type'] == 'input-text' ):?>
= \Html::input(
array(
'label' => $param['display_name'],
'name' => 'ap_' . $param['name'] . '_' . $lg['id'],
'id' => 'ap_' . $param['name'] . '_' . $lg['id'],
'value' => $params[ $param['id'] . '_' . $lg['id'] ]
)
);?>
endif;?>
if ( $param['type'] == 'ckeditor' ):?>
= \Html::textarea(
array(
'label' => $param['display_name'],
'name' => 'ap_' . $param['name'] . '_' . $lg['id'],
'id' => 'ap_' . $param['name'] . '_' . $lg['id'],
'value' => $params[ $param['id'] . '_' . $lg['id'] ],
'inline' => true
)
);?>
endif;?>
endforeach;?>
endif;?>
endforeach; endif;?>
endif;?>
endif;?>
Zdjęcia wybrane przez użytkownika (wymagany włączony moduł Pixieset)
if ( is_array( $this -> article['images'] ) ):?>
foreach ( $this -> article['images'] as $image ):?>
if ( $image['favorite'] ):?>
- = basename( $image['src'] );?>
endif;?>
endforeach;?>
endif;?>