Browse Source

Merge remote-tracking branch 'upstream/master'

pull/426/head
Stefan Björk 5 years ago
parent
commit
c589fe33de
7 changed files with 190 additions and 4 deletions
  1. +2
    -0
      .gitignore
  2. +1
    -1
      README.md
  3. +2
    -2
      config/config.ini.example
  4. +86
    -0
      lang/fr.ini
  5. +86
    -0
      lang/tr.ini
  6. +11
    -1
      system/admin/views/user-draft.html.php
  7. +2
    -0
      system/htmly.php

+ 2
- 0
.gitignore View File

@ -1,2 +1,4 @@
/cache/* /cache/*
/content/* /content/*
/config/config.ini
/config/users/*.ini

+ 1
- 1
README.md View File

@ -137,7 +137,7 @@ Passwords can be stored in `username.ini` (where "username" is the user's userna
$ php -a $ php -a
> echo password_hash('desiredpassword', PASSWORD_BCRYPT); > echo password_hash('desiredpassword', PASSWORD_BCRYPT);
```` ````
This will produce a hash which is to be placed in the `password` field in `username.ini`. Ensure that the `encryption` field is set to `bcrypt`.
This will produce a hash which is to be placed in the `password` field in `username.ini`. Ensure that the `encryption` field is set to `password_hash`.
Both Online or Offline Both Online or Offline


+ 2
- 2
config/config.ini.example View File

@ -4,8 +4,8 @@ site.url = ""
; Your timezone ; Your timezone
timezone = "Asia/Jakarta" timezone = "Asia/Jakarta"
; Time format. See: https://www.php.net/manual/en/function.date.php
time.format = "d F Y"
; Date format. See: https://www.php.net/manual/en/function.strftime
date.format = "%d %B %Y"
; Your language (currently only "en" for English or "de" for German) ; Your language (currently only "en" for English or "de" for German)
language = "en" language = "en"


+ 86
- 0
lang/fr.ini View File

@ -0,0 +1,86 @@
About = "A propos"
Add_category = "Ajouter une catégorie"
Add_content = "Ajouter du contenu"
Add_sub = "Ajouter une sous-page"
Admin = "Administrateur"
All_blog_posts = "Tous les billets de blog"
Archives = "Archives"
Are_you_sure_you_want_to_delete_ = "Êtes-vous sûr que de vouloir supprimer <strong>%s</strong>?"
Audio_post = "Billet audio"
Audio_post_comment = "Créer un billet de blog avec un fichier audio"
Author = "Auteur"
Backup = "Sauvegarde"
Cancel = "Annuler"
Categories = "Catégories"
Category = "Catégorie"
Clear_cache = "Nettoyer le cache"
Config = "Configuration"
Contents = "Contenus"
Created = "Créé"
Delete = "Supprimer"
Description = "Description"
Draft = "Brouillon"
Edit = "Éditer"
Edit_profile = "Éditer le profil"
Filename = "Nom du fichier"
Follow = "Suivre"
Image_post = "Billet avec une image"
Image_post_comment = "Créer un billet de blog avec une image"
Import = "Importer"
Link_post = "Billet avec un lien"
Link_post_comment = "Créer un billet de blog avec un lien"
Login = "Connexion"
Login_page = "Page de connexion"
Logout = "Déconnexion"
Meta_description = "Meta-description"
Mine = "Mes billets"
More = "Plus"
My_draft = "Mes brouillons"
My_posts = "Mes billets"
Newer = "Plus récent"
Next = "Suivant"
Next_post = "Billet suivant"
No_draft_found = "Aucun brouillon trouvé"
No_posts_found = "Aucun billet trouvé"
No_related_post_found = "Aucun billet en rapport trouvé"
Older = "Plus vieux"
Operations = "Opérations"
Popular_posts = "Billets populaires"
Popular_tags = "Tags populaires"
Posted_in = "Posté en"
Posted_on = "Posté le"
Posts = "Billets"
Prev = "Ancien"
Prev_post = "Billet précédent"
Publish = "Publier"
Publish_draft = "Publier le brouillon"
Published = "Publié"
Quote_post = "Billet avec une citation"
Quote_post_comment = "Créer un billet avec un citation"
Recent_posts = "Billets récents"
Regular_post = "Billet simple"
Regular_post_comment = "Créer un billet de blog simple"
Related_posts = "Billets en rapport"
Revert_to_draft = "Retourner en brouillon"
Save = "Enregistrer"
Save_as_draft = "Enregistrer en brouillon"
Search = "Recherche"
Search_for = "Rechercher pour"
Static_page = "Page statique"
Static_page_comment = "Créer une page statique"
Static_pages = "Pages statiques"
Tag = "Tag"
Tags = "Tags"
Title = "Titre"
Uncategorized = "Sans catégorie"
Uncategorized_comment = "Sujets qui n'ont pas besoin de catégorie, ou qui ne conviennent a aucun catégorie existante"
Update = "Mise à jour"
Update_draft = "Mettre à jour le brouillon"
Update_post = "Mettre à jour le billet"
Video_post = "Mettre à jour la vidéo"
Video_post_comment = "Créer un billet de blog avec une vidéo"
View = "Voir"
Views = "Vues"
Your_recent_posts = "Vos billets récents"
by = "par"
read_more = "lire plus"

+ 86
- 0
lang/tr.ini View File

@ -0,0 +1,86 @@
About = "Hakkında"
Add_category = "Kategori ekle"
Add_content = "İçerik ekle"
Add_sub = "Add sub"
Admin = "Yönetici"
All_blog_posts = "Tüm blog yazıları"
Archives = "Arşivler"
Are_you_sure_you_want_to_delete_ = "<strong>%s</strong> silmek istediğinize emin misiniz?"
Audio_post = "Sesli gönderi"
Audio_post_comment = "Ses içeren bir blog gönderisi oluşturuluyor"
Author = "Yazar"
Backup = "Yedekleme"
Cancel = "İptal"
Categories = "Kategoriler"
Category = "Kategori"
Clear_cache = "Önbelleği temizle"
Config = "Ayarlar"
Contents = "İçerikler"
Created = "Oluşturuldu"
Delete = "Sil"
Description = "Açıklama"
Draft = "Taslak"
Edit = "Düzenle"
Edit_profile = "Profili düzenle"
Filename = "Dosya Adı"
Follow = "Takip Et"
Image_post = "Görsel gönderi"
Image_post_comment = "Öne çıkan görsel içeren bir blog gönderisi oluşturuluyor"
Import = "İçe Aktar"
Link_post = "Bağlantı gönderisi"
Link_post_comment = "Link içerikli bir blog gönderisi oluşturuluyor."
Login = "Giriş Yap"
Login_page = "Giriş sayfası"
Logout = "Çıkış Yap"
Meta_description = "Meta Açıklaması"
Mine = "Benim"
More = "Daha fazla"
My_draft = "Taslaklarım"
My_posts = "Gönderilerim"
Newer = "Daha Yeni"
Next = "Sonraki"
Next_post = "Sonraki yönderi"
No_draft_found = "Taslak bulunamadı"
No_posts_found = "Gönderi bulunamadı"
No_related_post_found = "Benzer gönderi bulunamadı"
Older = "Daha Eski"
Operations = "Operasyonlar"
Popular_posts = "Popüler gönderiler"
Popular_tags = "Popüler etiketler"
Posted_in = "Gönderildi"
Posted_on = "Gönderildi"
Posts = "Gönderiler"
Prev = "Eski"
Prev_post = "Eski Gönderi"
Publish = "Yayınla"
Publish_draft = "Taslak yayınla"
Published = "Yayınlandı"
Quote_post = "Alıntı gönderi"
Quote_post_comment = "Alıntı içeren blog gönderisi oluşturuluyor"
Recent_posts = "Son gönderiler"
Regular_post = "Düzenli gönderi"
Regular_post_comment = "Düzenli gönderi oluşturuluyor"
Related_posts = "Benzer gönderiler"
Revert_to_draft = "Taslağa dönüştür"
Save = "Kaydet"
Save_as_draft = "Taslak olarak kaydet"
Search = "Ara"
Search_for = "Arama:"
Static_page = "Statik sayfa"
Static_page_comment = "Statik sayfa oluşturuluyor"
Static_pages = "Statik sayfalar"
Tag = "Etiket"
Tags = "Etiketler"
Title = "Başlık"
Uncategorized = "Kategorilenmemiş"
Uncategorized_comment = "Bir kategoriye ihtiyaç duymayan veya mevcut herhangi bir kategoriye uymayan konular"
Update = "Güncelle"
Update_draft = "Taslağı güncelle"
Update_post = "Gönderiyi güncelle"
Video_post = "Video gönderi"
Video_post_comment = "Video içeren blog gönderisi oluşturuluyor"
View = "Okunma"
Views = "Okunma"
Your_recent_posts = "Son gönderilerin"
by = "tarafından"
read_more = "daha fazla oku"

+ 11
- 1
system/admin/views/user-draft.html.php View File

@ -28,6 +28,16 @@
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</table> </table>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<div class="pager">
<?php if (!empty($pagination['prev'])): ?>
<span><a href="?page=<?php echo $page - 1 ?>" class="pagination-arrow newer" rel="prev">Newer</a></span>
<?php endif; ?>
<?php if (!empty($pagination['next'])): ?>
<span><a href="?page=<?php echo $page + 1 ?>" class="pagination-arrow older" rel="next">Older</a></span>
<?php endif; ?>
</div>
<?php endif; ?>
<?php } else { <?php } else {
echo i18n('No_draft_found') . '!'; echo i18n('No_draft_found') . '!';
} ?>
} ?>

+ 2
- 0
system/htmly.php View File

@ -1088,6 +1088,7 @@ get('/admin/draft', function () {
'is_admin' => true, 'is_admin' => true,
'bodyclass' => 'admin-draft', 'bodyclass' => 'admin-draft',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; Draft for: ' . $author->name, 'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; Draft for: ' . $author->name,
'pagination' => has_pagination($total, $perpage, $page)
)); ));
die; die;
} }
@ -1105,6 +1106,7 @@ get('/admin/draft', function () {
'is_admin' => true, 'is_admin' => true,
'bodyclass' => 'admin-draft', 'bodyclass' => 'admin-draft',
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; Draft for: ' . $author->name, 'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; Draft for: ' . $author->name,
'pagination' => has_pagination($total, $perpage, $page)
)); ));
} else { } else {
$login = site_url() . 'login'; $login = site_url() . 'login';


Loading…
Cancel
Save