Browse Source

Merge pull request #440 from fabianosantosnet/master

added language support for other langs by @fabianosantosnet
pull/444/head
Dan 4 years ago
committed by GitHub
parent
commit
aa3ad242fa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
40 changed files with 1007 additions and 198 deletions
  1. +73
    -1
      lang/de_DE.ini
  2. +73
    -1
      lang/en_US.ini
  3. +73
    -1
      lang/es_ES.ini
  4. +73
    -1
      lang/fr_FR.ini
  5. +73
    -1
      lang/it_IT.ini
  6. +73
    -1
      lang/pl_PL.ini
  7. +79
    -2
      lang/pt_BR.ini
  8. +73
    -1
      lang/ru_RU.ini
  9. +73
    -1
      lang/sv_SE.ini
  10. +73
    -1
      lang/tr_TR.ini
  11. +73
    -1
      lang/zh_TW.ini
  12. +4
    -4
      system/admin/admin.php
  13. +2
    -2
      system/admin/views/404.html.php
  14. +19
    -16
      system/admin/views/add-content.html.php
  15. +18
    -15
      system/admin/views/add-page.html.php
  16. +2
    -2
      system/admin/views/backup.html.php
  17. +1
    -1
      system/admin/views/categories.html.php
  18. +5
    -5
      system/admin/views/category-list.html.php
  19. +1
    -1
      system/admin/views/clear-cache.html.php
  20. +8
    -8
      system/admin/views/config-custom.html.php
  21. +9
    -9
      system/admin/views/config-metatags.html.php
  22. +7
    -7
      system/admin/views/config-performance.html.php
  23. +8
    -8
      system/admin/views/config-reading.html.php
  24. +8
    -8
      system/admin/views/config-widget.html.php
  25. +8
    -8
      system/admin/views/config.html.php
  26. +1
    -1
      system/admin/views/denied.html.php
  27. +22
    -19
      system/admin/views/edit-content.html.php
  28. +16
    -13
      system/admin/views/edit-page.html.php
  29. +5
    -5
      system/admin/views/import.html.php
  30. +5
    -5
      system/admin/views/layout.html.php
  31. +4
    -4
      system/admin/views/login.html.php
  32. +1
    -1
      system/admin/views/main.html.php
  33. +20
    -20
      system/admin/views/menu.html.php
  34. +3
    -3
      system/admin/views/popular-posts.html.php
  35. +5
    -5
      system/admin/views/posts-list.html.php
  36. +1
    -1
      system/admin/views/static-pages.html.php
  37. +3
    -3
      system/admin/views/update.html.php
  38. +1
    -1
      system/admin/views/updated-to.html.php
  39. +5
    -5
      system/admin/views/user-draft.html.php
  40. +6
    -6
      system/admin/views/user-posts.html.php

+ 73
- 1
lang/de_DE.ini View File

@ -93,4 +93,76 @@ Tools="Tools"
Check_update="Check update" Check_update="Check update"
Import_RSS="Import RSS" Import_RSS="Import RSS"
User="User" User="User"
Proudly_powered_by="Proudly powered by"
Proudly_powered_by="Proudly powered by"
Home="Home"
Type_to_search="Type to search"
Admin_panel_style_based_on="Admin panel style based on"
Sign_in_to_start_your_session="Sign in to start your session"
Back_to="Back to"
Login="Login"
User="User"
Password="Password"
Comma_separated_values="Comma separated values"
If_leave_empty_we_will_excerpt_it_from_the_content_below="If leave empty we will excerpt it from the content below"
optional="optional"
If_the_url_leave_empty_we_will_use_the_post_title="If the url leave empty we will use the post title"
If_the_url_leave_empty_we_will_use_the_page_title="If the url leave empty we will use the page title"
Only="Only"
Featured_Audio="Featured Audio"
Featured_Video="Featured Video"
Featured_Image="Featured Image"
Featured_Quote="Featured Quote"
Featured_Link="Featured Link"
Content="Content"
Preview="Preview"
Enter_image_URL="Enter image URL"
Upload="Upload"
Insert_Image="Insert Image"
This_page_doesnt_exist="This page doesn't exist !"
Would_you_like_to_try_our="Would you like to try our "
homepage="homepage"
instead="instead"
Your_backups="Your backups"
Create_backup="Create backup"
All_cache_has_been_deleted="All cache has been deleted !"
Edit_category="Edit category"
Date="Date"
Time="Time"
Views="Views"
No_available_backup="No available backup at this time."
You_dont_have_permission_to_access_this_page="You don't have permission to access this page"
Save_category="Save category"
Import_RSS_Feed_2.0="Import RSS Feed 2.0"
By_using_this_importer_you_are_agree_if_the_feed_is_yours_or_at_least_you_have_the_authority_to_publish_it="By using this importer you are agree if the feed is yours or at least you have the authority to publish it."
Feed_Url="Feed URL"
Add_source_link_optional="Add source link (optional)"
Import_Feed="Start Import Feed"
At_the_moment_you_are_using_auto_generated_menu="At the moment you are using auto generated menu."
Add_menu="Add menu"
Name="Name"
Link_name="Link name"
Slug="Slug"
item_slug="Insert Link URL"
CSS_Class_Optional="CSS Class (optional)"
item_class="Insert CSS class"
Add_link="Add link"
Save_Edit="Save Edit"
Save_Menu="Save menu"
Add_new_post="Add new post"
Add_new_page="Add new page"
Update_Available="Update Available"
Congrats_You_have_the_latest_version_of_HTMLy="Congrats! You have the latest version of HTMLy."
Update_to="Update to"
now="now"
Performance_Settings="Performance Settings"
General="General"
Reading="Reading"
Widget="Widget"
Metatags="Metatags"
Performance="Performance"
Custom="Reading"
General_Settings="General Settings"
Reading_Settings="Reading Settings"
Widget_Settings="Widget Settings"
Metatags_Settings="Metatags Settings"
Custom_Settings="Custom Settings"

+ 73
- 1
lang/en_US.ini View File

@ -93,4 +93,76 @@ Tools="Tools"
Check_update="Check update" Check_update="Check update"
Import_RSS="Import RSS" Import_RSS="Import RSS"
User="User" User="User"
Proudly_powered_by="Proudly powered by"
Proudly_powered_by="Proudly powered by"
Home="Home"
Type_to_search="Type to search"
Admin_panel_style_based_on="Admin panel style based on"
Sign_in_to_start_your_session="Sign in to start your session"
Back_to="Back to"
Login="Login"
User="User"
Password="Password"
Comma_separated_values="Comma separated values"
If_leave_empty_we_will_excerpt_it_from_the_content_below="If leave empty we will excerpt it from the content below"
optional="optional"
If_the_url_leave_empty_we_will_use_the_post_title="If the url leave empty we will use the post title"
If_the_url_leave_empty_we_will_use_the_page_title="If the url leave empty we will use the page title"
Only="Only"
Featured_Audio="Featured Audio"
Featured_Video="Featured Video"
Featured_Image="Featured Image"
Featured_Quote="Featured Quote"
Featured_Link="Featured Link"
Content="Content"
Preview="Preview"
Enter_image_URL="Enter image URL"
Upload="Upload"
Insert_Image="Insert Image"
This_page_doesnt_exist="This page doesn't exist !"
Would_you_like_to_try_our="Would you like to try our "
homepage="homepage"
instead="instead"
Your_backups="Your backups"
Create_backup="Create backup"
All_cache_has_been_deleted="All cache has been deleted !"
Edit_category="Edit category"
Date="Date"
Time="Time"
Views="Views"
No_available_backup="No available backup at this time."
You_dont_have_permission_to_access_this_page="You don't have permission to access this page"
Save_category="Save category"
Import_RSS_Feed_2.0="Import RSS Feed 2.0"
By_using_this_importer_you_are_agree_if_the_feed_is_yours_or_at_least_you_have_the_authority_to_publish_it="By using this importer you are agree if the feed is yours or at least you have the authority to publish it."
Feed_Url="Feed URL"
Add_source_link_optional="Add source link (optional)"
Import_Feed="Start Import Feed"
At_the_moment_you_are_using_auto_generated_menu="At the moment you are using auto generated menu."
Add_menu="Add menu"
Name="Name"
Link_name="Link name"
Slug="Slug"
item_slug="Insert Link URL"
CSS_Class_Optional="CSS Class (optional)"
item_class="Insert CSS class"
Add_link="Add link"
Save_Edit="Save Edit"
Save_Menu="Save menu"
Add_new_post="Add new post"
Add_new_page="Add new page"
Update_Available="Update Available"
Congrats_You_have_the_latest_version_of_HTMLy="Congrats! You have the latest version of HTMLy."
Update_to="Update to"
now="now"
Performance_Settings="Performance Settings"
General="General"
Reading="Reading"
Widget="Widget"
Metatags="Metatags"
Performance="Performance"
Custom="Reading"
General_Settings="General Settings"
Reading_Settings="Reading Settings"
Widget_Settings="Widget Settings"
Metatags_Settings="Metatags Settings"
Custom_Settings="Custom Settings"

+ 73
- 1
lang/es_ES.ini View File

@ -92,4 +92,76 @@ Tools="Tools"
Check_update="Check update" Check_update="Check update"
Import_RSS="Import RSS" Import_RSS="Import RSS"
User="User" User="User"
Proudly_powered_by="Proudly powered by"
Proudly_powered_by="Proudly powered by"
Home="Home"
Type_to_search="Type to search"
Admin_panel_style_based_on="Admin panel style based on"
Sign_in_to_start_your_session="Sign in to start your session"
Back_to="Back to"
Login="Login"
User="User"
Password="Password"
Comma_separated_values="Comma separated values"
If_leave_empty_we_will_excerpt_it_from_the_content_below="If leave empty we will excerpt it from the content below"
optional="optional"
If_the_url_leave_empty_we_will_use_the_post_title="If the url leave empty we will use the post title"
If_the_url_leave_empty_we_will_use_the_page_title="If the url leave empty we will use the page title"
Only="Only"
Featured_Audio="Featured Audio"
Featured_Video="Featured Video"
Featured_Image="Featured Image"
Featured_Quote="Featured Quote"
Featured_Link="Featured Link"
Content="Content"
Preview="Preview"
Enter_image_URL="Enter image URL"
Upload="Upload"
Insert_Image="Insert Image"
This_page_doesnt_exist="This page doesn't exist !"
Would_you_like_to_try_our="Would you like to try our "
homepage="homepage"
instead="instead"
Your_backups="Your backups"
Create_backup="Create backup"
All_cache_has_been_deleted="All cache has been deleted !"
Edit_category="Edit category"
Date="Date"
Time="Time"
Views="Views"
No_available_backup="No available backup at this time."
You_dont_have_permission_to_access_this_page="You don't have permission to access this page"
Save_category="Save category"
Import_RSS_Feed_2.0="Import RSS Feed 2.0"
By_using_this_importer_you_are_agree_if_the_feed_is_yours_or_at_least_you_have_the_authority_to_publish_it="By using this importer you are agree if the feed is yours or at least you have the authority to publish it."
Feed_Url="Feed URL"
Add_source_link_optional="Add source link (optional)"
Import_Feed="Start Import Feed"
At_the_moment_you_are_using_auto_generated_menu="At the moment you are using auto generated menu."
Add_menu="Add menu"
Name="Name"
Link_name="Link name"
Slug="Slug"
item_slug="Insert Link URL"
CSS_Class_Optional="CSS Class (optional)"
item_class="Insert CSS class"
Add_link="Add link"
Save_Edit="Save Edit"
Save_Menu="Save menu"
Add_new_post="Add new post"
Add_new_page="Add new page"
Update_Available="Update Available"
Congrats_You_have_the_latest_version_of_HTMLy="Congrats! You have the latest version of HTMLy."
Update_to="Update to"
now="now"
Performance_Settings="Performance Settings"
General="General"
Reading="Reading"
Widget="Widget"
Metatags="Metatags"
Performance="Performance"
Custom="Reading"
General_Settings="General Settings"
Reading_Settings="Reading Settings"
Widget_Settings="Widget Settings"
Metatags_Settings="Metatags Settings"
Custom_Settings="Custom Settings"

+ 73
- 1
lang/fr_FR.ini View File

@ -93,4 +93,76 @@ Tools="Tools"
Check_update="Check update" Check_update="Check update"
Import_RSS="Import RSS" Import_RSS="Import RSS"
User="User" User="User"
Proudly_powered_by="Proudly powered by"
Proudly_powered_by="Proudly powered by"
Home="Home"
Type_to_search="Type to search"
Admin_panel_style_based_on="Admin panel style based on"
Sign_in_to_start_your_session="Sign in to start your session"
Back_to="Back to"
Login="Login"
User="User"
Password="Password"
Comma_separated_values="Comma separated values"
If_leave_empty_we_will_excerpt_it_from_the_content_below="If leave empty we will excerpt it from the content below"
optional="optional"
If_the_url_leave_empty_we_will_use_the_post_title="If the url leave empty we will use the post title"
If_the_url_leave_empty_we_will_use_the_page_title="If the url leave empty we will use the page title"
Only="Only"
Featured_Audio="Featured Audio"
Featured_Video="Featured Video"
Featured_Image="Featured Image"
Featured_Quote="Featured Quote"
Featured_Link="Featured Link"
Content="Content"
Preview="Preview"
Enter_image_URL="Enter image URL"
Upload="Upload"
Insert_Image="Insert Image"
This_page_doesnt_exist="This page doesn't exist !"
Would_you_like_to_try_our="Would you like to try our "
homepage="homepage"
instead="instead"
Your_backups="Your backups"
Create_backup="Create backup"
All_cache_has_been_deleted="All cache has been deleted !"
Edit_category="Edit category"
Date="Date"
Time="Time"
Views="Views"
No_available_backup="No available backup at this time."
You_dont_have_permission_to_access_this_page="You don't have permission to access this page"
Save_category="Save category"
Import_RSS_Feed_2.0="Import RSS Feed 2.0"
By_using_this_importer_you_are_agree_if_the_feed_is_yours_or_at_least_you_have_the_authority_to_publish_it="By using this importer you are agree if the feed is yours or at least you have the authority to publish it."
Feed_Url="Feed URL"
Add_source_link_optional="Add source link (optional)"
Import_Feed="Start Import Feed"
At_the_moment_you_are_using_auto_generated_menu="At the moment you are using auto generated menu."
Add_menu="Add menu"
Name="Name"
Link_name="Link name"
Slug="Slug"
item_slug="Insert Link URL"
CSS_Class_Optional="CSS Class (optional)"
item_class="Insert CSS class"
Add_link="Add link"
Save_Edit="Save Edit"
Save_Menu="Save menu"
Add_new_post="Add new post"
Add_new_page="Add new page"
Update_Available="Update Available"
Congrats_You_have_the_latest_version_of_HTMLy="Congrats! You have the latest version of HTMLy."
Update_to="Update to"
now="now"
Performance_Settings="Performance Settings"
General="General"
Reading="Reading"
Widget="Widget"
Metatags="Metatags"
Performance="Performance"
Custom="Reading"
General_Settings="General Settings"
Reading_Settings="Reading Settings"
Widget_Settings="Widget Settings"
Metatags_Settings="Metatags Settings"
Custom_Settings="Custom Settings"

+ 73
- 1
lang/it_IT.ini View File

@ -93,4 +93,76 @@ Tools="Tools"
Check_update="Check update" Check_update="Check update"
Import_RSS="Import RSS" Import_RSS="Import RSS"
User="User" User="User"
Proudly_powered_by="Proudly powered by"
Proudly_powered_by="Proudly powered by"
Home="Home"
Type_to_search="Type to search"
Admin_panel_style_based_on="Admin panel style based on"
Sign_in_to_start_your_session="Sign in to start your session"
Back_to="Back to"
Login="Login"
User="User"
Password="Password"
Comma_separated_values="Comma separated values"
If_leave_empty_we_will_excerpt_it_from_the_content_below="If leave empty we will excerpt it from the content below"
optional="optional"
If_the_url_leave_empty_we_will_use_the_post_title="If the url leave empty we will use the post title"
If_the_url_leave_empty_we_will_use_the_page_title="If the url leave empty we will use the page title"
Only="Only"
Featured_Audio="Featured Audio"
Featured_Video="Featured Video"
Featured_Image="Featured Image"
Featured_Quote="Featured Quote"
Featured_Link="Featured Link"
Content="Content"
Preview="Preview"
Enter_image_URL="Enter image URL"
Upload="Upload"
Insert_Image="Insert Image"
This_page_doesnt_exist="This page doesn't exist !"
Would_you_like_to_try_our="Would you like to try our "
homepage="homepage"
instead="instead"
Your_backups="Your backups"
Create_backup="Create backup"
All_cache_has_been_deleted="All cache has been deleted !"
Edit_category="Edit category"
Date="Date"
Time="Time"
Views="Views"
No_available_backup="No available backup at this time."
You_dont_have_permission_to_access_this_page="You don't have permission to access this page"
Save_category="Save category"
Import_RSS_Feed_2.0="Import RSS Feed 2.0"
By_using_this_importer_you_are_agree_if_the_feed_is_yours_or_at_least_you_have_the_authority_to_publish_it="By using this importer you are agree if the feed is yours or at least you have the authority to publish it."
Feed_Url="Feed URL"
Add_source_link_optional="Add source link (optional)"
Import_Feed="Start Import Feed"
At_the_moment_you_are_using_auto_generated_menu="At the moment you are using auto generated menu."
Add_menu="Add menu"
Name="Name"
Link_name="Link name"
Slug="Slug"
item_slug="Insert Link URL"
CSS_Class_Optional="CSS Class (optional)"
item_class="Insert CSS class"
Add_link="Add link"
Save_Edit="Save Edit"
Save_Menu="Save menu"
Add_new_post="Add new post"
Add_new_page="Add new page"
Update_Available="Update Available"
Congrats_You_have_the_latest_version_of_HTMLy="Congrats! You have the latest version of HTMLy."
Update_to="Update to"
now="now"
Performance_Settings="Performance Settings"
General="General"
Reading="Reading"
Widget="Widget"
Metatags="Metatags"
Performance="Performance"
Custom="Reading"
General_Settings="General Settings"
Reading_Settings="Reading Settings"
Widget_Settings="Widget Settings"
Metatags_Settings="Metatags Settings"
Custom_Settings="Custom Settings"

+ 73
- 1
lang/pl_PL.ini View File

@ -94,4 +94,76 @@ Tools="Tools"
Check_update="Check update" Check_update="Check update"
Import_RSS="Import RSS" Import_RSS="Import RSS"
User="User" User="User"
Proudly_powered_by="Proudly powered by"
Proudly_powered_by="Proudly powered by"
Home="Home"
Type_to_search="Type to search"
Admin_panel_style_based_on="Admin panel style based on"
Sign_in_to_start_your_session="Sign in to start your session"
Back_to="Back to"
Login="Login"
User="User"
Password="Password"
Comma_separated_values="Comma separated values"
If_leave_empty_we_will_excerpt_it_from_the_content_below="If leave empty we will excerpt it from the content below"
optional="optional"
If_the_url_leave_empty_we_will_use_the_post_title="If the url leave empty we will use the post title"
If_the_url_leave_empty_we_will_use_the_page_title="If the url leave empty we will use the page title"
Only="Only"
Featured_Audio="Featured Audio"
Featured_Video="Featured Video"
Featured_Image="Featured Image"
Featured_Quote="Featured Quote"
Featured_Link="Featured Link"
Content="Content"
Preview="Preview"
Enter_image_URL="Enter image URL"
Upload="Upload"
Insert_Image="Insert Image"
This_page_doesnt_exist="This page doesn't exist !"
Would_you_like_to_try_our="Would you like to try our "
homepage="homepage"
instead="instead"
Your_backups="Your backups"
Create_backup="Create backup"
All_cache_has_been_deleted="All cache has been deleted !"
Edit_category="Edit category"
Date="Date"
Time="Time"
Views="Views"
No_available_backup="No available backup at this time."
You_dont_have_permission_to_access_this_page="You don't have permission to access this page"
Save_category="Save category"
Import_RSS_Feed_2.0="Import RSS Feed 2.0"
By_using_this_importer_you_are_agree_if_the_feed_is_yours_or_at_least_you_have_the_authority_to_publish_it="By using this importer you are agree if the feed is yours or at least you have the authority to publish it."
Feed_Url="Feed URL"
Add_source_link_optional="Add source link (optional)"
Import_Feed="Start Import Feed"
At_the_moment_you_are_using_auto_generated_menu="At the moment you are using auto generated menu."
Add_menu="Add menu"
Name="Name"
Link_name="Link name"
Slug="Slug"
item_slug="Insert Link URL"
CSS_Class_Optional="CSS Class (optional)"
item_class="Insert CSS class"
Add_link="Add link"
Save_Edit="Save Edit"
Save_Menu="Save menu"
Add_new_post="Add new post"
Add_new_page="Add new page"
Update_Available="Update Available"
Congrats_You_have_the_latest_version_of_HTMLy="Congrats! You have the latest version of HTMLy."
Update_to="Update to"
now="now"
Performance_Settings="Performance Settings"
General="General"
Reading="Reading"
Widget="Widget"
Metatags="Metatags"
Performance="Performance"
Custom="Reading"
General_Settings="General Settings"
Reading_Settings="Reading Settings"
Widget_Settings="Widget Settings"
Metatags_Settings="Metatags Settings"
Custom_Settings="Custom Settings"

+ 79
- 2
lang/pt_BR.ini View File

@ -17,7 +17,7 @@ Clear_cache = "Limpar cache"
Config = "Configurar" Config = "Configurar"
Contents = "Conteúdo" Contents = "Conteúdo"
Created = "Criado" Created = "Criado"
Delete = "Delete"
Delete = "Excluir"
Description = "Descrição" Description = "Descrição"
Draft = "Rascunho" Draft = "Rascunho"
Edit = "Editar" Edit = "Editar"
@ -93,4 +93,81 @@ Tools="Ferramentas"
Check_update="Verificar atualização" Check_update="Verificar atualização"
Import_RSS="Importar RSS" Import_RSS="Importar RSS"
User="Usuário" User="Usuário"
Proudly_powered_by="Orgulhosamente desenvolvido por"
Proudly_powered_by="Orgulhosamente desenvolvido por"
Home="Inicial"
Type_to_search="Digite para buscar"
Admin_panel_style_based_on="Painel de administração baseado no"
Sign_in_to_start_your_session="Faça login para iniciar a sessão"
Back_to="Voltar para"
Login="Logar"
User="Usuário"
Password="Senha"
Comma_separated_values="Os valores devem ser separados por virgula"
If_leave_empty_we_will_excerpt_it_from_the_content_below="Se deixar em branco, iremos extraí-lo do conteúdo abaixo"
optional="opcional"
If_the_url_leave_empty_we_will_use_the_post_title="Se a url estiver vazia, usaremos o título da postagem"
If_the_url_leave_empty_we_will_use_the_page_title="Se a url estiver vazia, usaremos o título da página"
Only="Somente"
Featured_Audio="Audio em destaque"
Featured_Video="Video em destaque"
Featured_Image="Imagem em destaque"
Featured_Quote="Citação em destaque"
Featured_Link="Link em destaque"
Content="Conteúdo"
Preview="Pré visualização"
Enter_image_URL="Insira a URL da imagem"
Upload="Carregar"
Insert_Image="Inserir Imagem"
This_page_doesnt_exist="A página requisitada não existe !"
Would_you_like_to_try_our="Poderia tentar a nossa "
homepage="página inicial"
instead="no lugar"
Your_backups="Seus backups"
Create_backup="Gerar backup"
All_cache_has_been_deleted="Todo cache foi excluído !"
Edit_category="Editar categoria"
Date="Data"
Time="Hora"
Views="Visualizações"
No_available_backup="Não há nenhum backup no momento."
You_dont_have_permission_to_access_this_page="Você não tem permissão para acessar esta página"
Save_category="Salvar categoria"
Import_RSS_Feed_2.0="Importar o Feed RSS 2.0"
By_using_this_importer_you_are_agree_if_the_feed_is_yours_or_at_least_you_have_the_authority_to_publish_it="Utilizando este importador você está de acordo que o feed é seu ou pelo menos tenha a autorização para publicar."
Feed_Url="URL do Feed"
Add_source_link_optional="Adicione o link da fonte (opcional)"
Import_Feed="Iniciar importação do feed"
At_the_moment_you_are_using_auto_generated_menu="No momento você está usando a geração automática de menus."
Add_menu="Adicionar menu"
Name="Nome"
Link_name="Nome do link"
Slug="Slug"
item_slug="Insira a URL do link"
CSS_Class_Optional="Classe CSS (opcional)"
item_class="Insira a classe CSS do link"
Add_link="Adicionar link"
Save_Edit="Salvar edição"
Save_Menu="Salvar menu"
Add_new_post="Adicionar nova postagem"
Add_new_page="Adicionar nova página"
Update_Available="Atualização disponível"
Congrats_You_have_the_latest_version_of_HTMLy="Parabêns ! Você tem a última versão do HTMLy."
Update_to="Atualizar para"
now="agora"
Performance_Settings="Configurações de Performance"
General="Geral"
Reading="Leitura"
Widget="Widget"
Metatags="Metatags"
Performance="Performance"
Custom="Customizar"
General_Settings="Configurações Gerais"
Reading_Settings="Configurações de Leitura"
Widget_Settings="Configurações dos Widgets"
Metatags_Settings="Configurações de Metatags"
Custom_Settings="Configurações customizadas"

+ 73
- 1
lang/ru_RU.ini View File

@ -94,4 +94,76 @@ Tools="Tools"
Check_update="Check update" Check_update="Check update"
Import_RSS="Import RSS" Import_RSS="Import RSS"
User="User" User="User"
Proudly_powered_by="Proudly powered by"
Proudly_powered_by="Proudly powered by"
Home="Home"
Type_to_search="Type to search"
Admin_panel_style_based_on="Admin panel style based on"
Sign_in_to_start_your_session="Sign in to start your session"
Back_to="Back to"
Login="Login"
User="User"
Password="Password"
Comma_separated_values="Comma separated values"
If_leave_empty_we_will_excerpt_it_from_the_content_below="If leave empty we will excerpt it from the content below"
optional="optional"
If_the_url_leave_empty_we_will_use_the_post_title="If the url leave empty we will use the post title"
If_the_url_leave_empty_we_will_use_the_page_title="If the url leave empty we will use the page title"
Only="Only"
Featured_Audio="Featured Audio"
Featured_Video="Featured Video"
Featured_Image="Featured Image"
Featured_Quote="Featured Quote"
Featured_Link="Featured Link"
Content="Content"
Preview="Preview"
Enter_image_URL="Enter image URL"
Upload="Upload"
Insert_Image="Insert Image"
This_page_doesnt_exist="This page doesn't exist !"
Would_you_like_to_try_our="Would you like to try our "
homepage="homepage"
instead="instead"
Your_backups="Your backups"
Create_backup="Create backup"
All_cache_has_been_deleted="All cache has been deleted !"
Edit_category="Edit category"
Date="Date"
Time="Time"
Views="Views"
No_available_backup="No available backup at this time."
You_dont_have_permission_to_access_this_page="You don't have permission to access this page"
Save_category="Save category"
Import_RSS_Feed_2.0="Import RSS Feed 2.0"
By_using_this_importer_you_are_agree_if_the_feed_is_yours_or_at_least_you_have_the_authority_to_publish_it="By using this importer you are agree if the feed is yours or at least you have the authority to publish it."
Feed_Url="Feed URL"
Add_source_link_optional="Add source link (optional)"
Import_Feed="Start Import Feed"
At_the_moment_you_are_using_auto_generated_menu="At the moment you are using auto generated menu."
Add_menu="Add menu"
Name="Name"
Link_name="Link name"
Slug="Slug"
item_slug="Insert Link URL"
CSS_Class_Optional="CSS Class (optional)"
item_class="Insert CSS class"
Add_link="Add link"
Save_Edit="Save Edit"
Save_Menu="Save menu"
Add_new_post="Add new post"
Add_new_page="Add new page"
Update_Available="Update Available"
Congrats_You_have_the_latest_version_of_HTMLy="Congrats! You have the latest version of HTMLy."
Update_to="Update to"
now="now"
Performance_Settings="Performance Settings"
General="General"
Reading="Reading"
Widget="Widget"
Metatags="Metatags"
Performance="Performance"
Custom="Reading"
General_Settings="General Settings"
Reading_Settings="Reading Settings"
Widget_Settings="Widget Settings"
Metatags_Settings="Metatags Settings"
Custom_Settings="Custom Settings"

+ 73
- 1
lang/sv_SE.ini View File

@ -111,4 +111,76 @@ Tools="Tools"
Check_update="Check update" Check_update="Check update"
Import_RSS="Import RSS" Import_RSS="Import RSS"
User="User" User="User"
Proudly_powered_by="Proudly powered by"
Proudly_powered_by="Proudly powered by"
Home="Home"
Type_to_search="Type to search"
Admin_panel_style_based_on="Admin panel style based on"
Sign_in_to_start_your_session="Sign in to start your session"
Back_to="Back to"
Login="Login"
User="User"
Password="Password"
Comma_separated_values="Comma separated values"
If_leave_empty_we_will_excerpt_it_from_the_content_below="If leave empty we will excerpt it from the content below"
optional="optional"
If_the_url_leave_empty_we_will_use_the_post_title="If the url leave empty we will use the post title"
If_the_url_leave_empty_we_will_use_the_page_title="If the url leave empty we will use the page title"
Only="Only"
Featured_Audio="Featured Audio"
Featured_Video="Featured Video"
Featured_Image="Featured Image"
Featured_Quote="Featured Quote"
Featured_Link="Featured Link"
Content="Content"
Preview="Preview"
Enter_image_URL="Enter image URL"
Upload="Upload"
Insert_Image="Insert Image"
This_page_doesnt_exist="This page doesn't exist !"
Would_you_like_to_try_our="Would you like to try our "
homepage="homepage"
instead="instead"
Your_backups="Your backups"
Create_backup="Create backup"
All_cache_has_been_deleted="All cache has been deleted !"
Edit_category="Edit category"
Date="Date"
Time="Time"
Views="Views"
No_available_backup="No available backup at this time."
You_dont_have_permission_to_access_this_page="You don't have permission to access this page"
Save_category="Save category"
Import_RSS_Feed_2.0="Import RSS Feed 2.0"
By_using_this_importer_you_are_agree_if_the_feed_is_yours_or_at_least_you_have_the_authority_to_publish_it="By using this importer you are agree if the feed is yours or at least you have the authority to publish it."
Feed_Url="Feed URL"
Add_source_link_optional="Add source link (optional)"
Import_Feed="Start Import Feed"
At_the_moment_you_are_using_auto_generated_menu="At the moment you are using auto generated menu."
Add_menu="Add menu"
Name="Name"
Link_name="Link name"
Slug="Slug"
item_slug="Insert Link URL"
CSS_Class_Optional="CSS Class (optional)"
item_class="Insert CSS class"
Add_link="Add link"
Save_Edit="Save Edit"
Save_Menu="Save menu"
Add_new_post="Add new post"
Add_new_page="Add new page"
Update_Available="Update Available"
Congrats_You_have_the_latest_version_of_HTMLy="Congrats! You have the latest version of HTMLy."
Update_to="Update to"
now="now"
Performance_Settings="Performance Settings"
General="General"
Reading="Reading"
Widget="Widget"
Metatags="Metatags"
Performance="Performance"
Custom="Reading"
General_Settings="General Settings"
Reading_Settings="Reading Settings"
Widget_Settings="Widget Settings"
Metatags_Settings="Metatags Settings"
Custom_Settings="Custom Settings"

+ 73
- 1
lang/tr_TR.ini View File

@ -93,4 +93,76 @@ Tools="Tools"
Check_update="Check update" Check_update="Check update"
Import_RSS="Import RSS" Import_RSS="Import RSS"
User="User" User="User"
Proudly_powered_by="Proudly powered by"
Proudly_powered_by="Proudly powered by"
Home="Home"
Type_to_search="Type to search"
Admin_panel_style_based_on="Admin panel style based on"
Sign_in_to_start_your_session="Sign in to start your session"
Back_to="Back to"
Login="Login"
User="User"
Password="Password"
Comma_separated_values="Comma separated values"
If_leave_empty_we_will_excerpt_it_from_the_content_below="If leave empty we will excerpt it from the content below"
optional="optional"
If_the_url_leave_empty_we_will_use_the_post_title="If the url leave empty we will use the post title"
If_the_url_leave_empty_we_will_use_the_page_title="If the url leave empty we will use the page title"
Only="Only"
Featured_Audio="Featured Audio"
Featured_Video="Featured Video"
Featured_Image="Featured Image"
Featured_Quote="Featured Quote"
Featured_Link="Featured Link"
Content="Content"
Preview="Preview"
Enter_image_URL="Enter image URL"
Upload="Upload"
Insert_Image="Insert Image"
This_page_doesnt_exist="This page doesn't exist !"
Would_you_like_to_try_our="Would you like to try our "
homepage="homepage"
instead="instead"
Your_backups="Your backups"
Create_backup="Create backup"
All_cache_has_been_deleted="All cache has been deleted !"
Edit_category="Edit category"
Date="Date"
Time="Time"
Views="Views"
No_available_backup="No available backup at this time."
You_dont_have_permission_to_access_this_page="You don't have permission to access this page"
Save_category="Save category"
Import_RSS_Feed_2.0="Import RSS Feed 2.0"
By_using_this_importer_you_are_agree_if_the_feed_is_yours_or_at_least_you_have_the_authority_to_publish_it="By using this importer you are agree if the feed is yours or at least you have the authority to publish it."
Feed_Url="Feed URL"
Add_source_link_optional="Add source link (optional)"
Import_Feed="Start Import Feed"
At_the_moment_you_are_using_auto_generated_menu="At the moment you are using auto generated menu."
Add_menu="Add menu"
Name="Name"
Link_name="Link name"
Slug="Slug"
item_slug="Insert Link URL"
CSS_Class_Optional="CSS Class (optional)"
item_class="Insert CSS class"
Add_link="Add link"
Save_Edit="Save Edit"
Save_Menu="Save menu"
Add_new_post="Add new post"
Add_new_page="Add new page"
Update_Available="Update Available"
Congrats_You_have_the_latest_version_of_HTMLy="Congrats! You have the latest version of HTMLy."
Update_to="Update to"
now="now"
Performance_Settings="Performance Settings"
General="General"
Reading="Reading"
Widget="Widget"
Metatags="Metatags"
Performance="Performance"
Custom="Reading"
General_Settings="General Settings"
Reading_Settings="Reading Settings"
Widget_Settings="Widget Settings"
Metatags_Settings="Metatags Settings"
Custom_Settings="Custom Settings"

+ 73
- 1
lang/zh_TW.ini View File

@ -93,4 +93,76 @@ Tools="Tools"
Check_update="Check update" Check_update="Check update"
Import_RSS="Import RSS" Import_RSS="Import RSS"
User="User" User="User"
Proudly_powered_by="Proudly powered by"
Proudly_powered_by="Proudly powered by"
Home="Home"
Type_to_search="Type to search"
Admin_panel_style_based_on="Admin panel style based on"
Sign_in_to_start_your_session="Sign in to start your session"
Back_to="Back to"
Login="Login"
User="User"
Password="Password"
Comma_separated_values="Comma separated values"
If_leave_empty_we_will_excerpt_it_from_the_content_below="If leave empty we will excerpt it from the content below"
optional="optional"
If_the_url_leave_empty_we_will_use_the_post_title="If the url leave empty we will use the post title"
If_the_url_leave_empty_we_will_use_the_page_title="If the url leave empty we will use the page title"
Only="Only"
Featured_Audio="Featured Audio"
Featured_Video="Featured Video"
Featured_Image="Featured Image"
Featured_Quote="Featured Quote"
Featured_Link="Featured Link"
Content="Content"
Preview="Preview"
Enter_image_URL="Enter image URL"
Upload="Upload"
Insert_Image="Insert Image"
This_page_doesnt_exist="This page doesn't exist !"
Would_you_like_to_try_our="Would you like to try our "
homepage="homepage"
instead="instead"
Your_backups="Your backups"
Create_backup="Create backup"
All_cache_has_been_deleted="All cache has been deleted !"
Edit_category="Edit category"
Date="Date"
Time="Time"
Views="Views"
No_available_backup="No available backup at this time."
You_dont_have_permission_to_access_this_page="You don't have permission to access this page"
Save_category="Save category"
Import_RSS_Feed_2.0="Import RSS Feed 2.0"
By_using_this_importer_you_are_agree_if_the_feed_is_yours_or_at_least_you_have_the_authority_to_publish_it="By using this importer you are agree if the feed is yours or at least you have the authority to publish it."
Feed_Url="Feed URL"
Add_source_link_optional="Add source link (optional)"
Import_Feed="Start Import Feed"
At_the_moment_you_are_using_auto_generated_menu="At the moment you are using auto generated menu."
Add_menu="Add menu"
Name="Name"
Link_name="Link name"
Slug="Slug"
item_slug="Insert Link URL"
CSS_Class_Optional="CSS Class (optional)"
item_class="Insert CSS class"
Add_link="Add link"
Save_Edit="Save Edit"
Save_Menu="Save menu"
Add_new_post="Add new post"
Add_new_page="Add new page"
Update_Available="Update Available"
Congrats_You_have_the_latest_version_of_HTMLy="Congrats! You have the latest version of HTMLy."
Update_to="Update to"
now="now"
Performance_Settings="Performance Settings"
General="General"
Reading="Reading"
Widget="Widget"
Metatags="Metatags"
Performance="Performance"
Custom="Reading"
General_Settings="General Settings"
Reading_Settings="Reading Settings"
Widget_Settings="Widget Settings"
Metatags_Settings="Metatags Settings"
Custom_Settings="Custom Settings"

+ 4
- 4
system/admin/admin.php View File

@ -823,7 +823,7 @@ function get_user_posts()
echo '<table class="table post-list">'; echo '<table class="table post-list">';
echo '<tr class="head"><th>' . i18n('Title') . '</th><th>' . i18n('Published') . '</th>'; echo '<tr class="head"><th>' . i18n('Title') . '</th><th>' . i18n('Published') . '</th>';
if (config("views.counter") == "true") if (config("views.counter") == "true")
echo '<th>Views</th>';
echo '<th>'.i18n('Views').'</th>';
echo '<th>' . i18n('Category') . '</th><th>' . i18n('Tags') . '</th><th>' . i18n('Operations') . '</th></tr>'; echo '<th>' . i18n('Category') . '</th><th>' . i18n('Tags') . '</th><th>' . i18n('Operations') . '</th></tr>';
$i = 0; $i = 0;
$len = count($posts); $len = count($posts);
@ -861,7 +861,7 @@ function get_user_pages()
echo '<table class="table post-list">'; echo '<table class="table post-list">';
echo '<tr class="head"><th>' . i18n('Title') . '</th>'; echo '<tr class="head"><th>' . i18n('Title') . '</th>';
if (config("views.counter") == "true") if (config("views.counter") == "true")
echo '<th>Views</th>';
echo '<th>'.i18n('Views').'</th>';
echo '<th>' . i18n('Operations') . '</th></tr>'; echo '<th>' . i18n('Operations') . '</th></tr>';
$i = 0; $i = 0;
$len = count($posts); $len = count($posts);
@ -907,7 +907,7 @@ function get_backup_files()
if (!empty($files)) { if (!empty($files)) {
krsort($files); krsort($files);
echo '<table class="table backup-list">'; echo '<table class="table backup-list">';
echo '<tr class="head"><th>' . i18n('Filename') . '</th><th>Date</th><th>' . i18n('Operations') . '</th></tr>';
echo '<tr class="head"><th>' . i18n('Filename') . '</th><th>'.i18n('Date').'</th><th>' . i18n('Operations') . '</th></tr>';
$i = 0; $i = 0;
$len = count($files); $len = count($files);
foreach ($files as $file) { foreach ($files as $file) {
@ -943,7 +943,7 @@ function get_backup_files()
} }
echo '</table>'; echo '</table>';
} else { } else {
echo 'No available backup!';
echo i18n('No_available_backup');
} }
} }
} }


+ 2
- 2
system/admin/views/404.html.php View File

@ -13,9 +13,9 @@
</head> </head>
<body> <body>
<div class="center message"> <div class="center message">
<h1>This page doesn't exist!</h1>
<h1><?php echo i18n('This_page_doesnt_exist');?></h1>
<p>Would you like to try our <a href="<?php echo site_url() ?>">homepage</a> instead?</p>
<p><?php echo i18n('Would_you_like_to_try_our');?> <a href="<?php echo site_url() ?>"><?php echo i18n('homepage');?></a> <?php echo i18n('instead');?> ?</p>
</div> </div>
</body> </body>
</html> </html>

+ 19
- 16
system/admin/views/add-content.html.php View File

@ -99,49 +99,49 @@ $( function() {
</select> </select>
<br> <br>
<label for="pTag">Tag <span class="required">*</span></label> <label for="pTag">Tag <span class="required">*</span></label>
<input type="text" class="form-control text <?php if (isset($postTag)) { if (empty($postTag)) { echo 'error';}} ?>" id="pTag" name="tag" value="<?php if (isset($postTag)) { echo $postTag; } ?>" placeholder="Comma-separated values"/>
<input type="text" class="form-control text <?php if (isset($postTag)) { if (empty($postTag)) { echo 'error';}} ?>" id="pTag" name="tag" value="<?php if (isset($postTag)) { echo $postTag; } ?>" placeholder="<?php echo i18n('Comma_separated_values');?>"/>
<br> <br>
<label for="pMeta"><?php echo i18n('Meta_description');?> (optional)</label>
<textarea id="pMeta" class="form-control" name="description" rows="3" cols="20" placeholder="If leave empty we will excerpt it from the content below"><?php if (isset($p->description)) { echo $p->description;} ?></textarea>
<label for="pMeta"><?php echo i18n('Meta_description');?> <?php echo i18n('optional');?></label>
<textarea id="pMeta" class="form-control" name="description" rows="3" cols="20" placeholder="<?php echo i18n('If_leave_empty_we_will_excerpt_it_from_the_content_below');?>"><?php if (isset($p->description)) { echo $p->description;} ?></textarea>
<br> <br>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<label for="pURL">Url (optional)</label>
<input type="text" class="form-control text" id="pURL" name="url" value="<?php if (isset($postUrl)) { echo $postUrl;} ?>" placeholder="If the url leave empty we will use the post title"/>
<label for="pURL">Url (<?php echo i18n('optional');?>)</label>
<input type="text" class="form-control text" id="pURL" name="url" value="<?php if (isset($postUrl)) { echo $postUrl;} ?>" placeholder="<?php echo i18n('If_the_url_leave_empty_we_will_use_the_post_title');?>"/>
<br> <br>
<?php if ($type == 'is_audio'):?> <?php if ($type == 'is_audio'):?>
<label for="pAudio">Featured Audio <span class="required">*</span> (SoundCloud Only)</label>
<label for="pAudio"><?php echo i18n('Featured_Audio');?> <span class="required">*</span> (SoundCloud <?php echo i18n('Only');?>)</label>
<textarea rows="2" cols="20" class="form-control text <?php if (isset($postAudio)) { if (empty($postAudio)) { echo 'error';} } ?>" id="pAudio" name="audio"><?php if (isset($postAudio)) { echo $postAudio;} ?></textarea> <textarea rows="2" cols="20" class="form-control text <?php if (isset($postAudio)) { if (empty($postAudio)) { echo 'error';} } ?>" id="pAudio" name="audio"><?php if (isset($postAudio)) { echo $postAudio;} ?></textarea>
<input type="hidden" name="is_audio" value="is_audio"> <input type="hidden" name="is_audio" value="is_audio">
<br> <br>
<?php endif;?> <?php endif;?>
<?php if ($type == 'is_video'):?> <?php if ($type == 'is_video'):?>
<label for="pVideo">Featured Video <span class="required">*</span> (Youtube Only)</label>
<label for="pVideo"><?php echo i18n('Featured_Video');?> <span class="required">*</span> (Youtube <?php echo i18n('Only');?>)</label>
<textarea rows="2" cols="20" class="form-control text <?php if (isset($postVideo)) { if (empty($postVideo)) { echo 'error';} } ?>" id="pVideo" name="video"><?php if (isset($postVideo)) { echo $postVideo;} ?></textarea> <textarea rows="2" cols="20" class="form-control text <?php if (isset($postVideo)) { if (empty($postVideo)) { echo 'error';} } ?>" id="pVideo" name="video"><?php if (isset($postVideo)) { echo $postVideo;} ?></textarea>
<input type="hidden" name="is_video" value="is_video"> <input type="hidden" name="is_video" value="is_video">
<br> <br>
<?php endif;?> <?php endif;?>
<?php if ($type == 'is_image'):?> <?php if ($type == 'is_image'):?>
<label for="pImage">Featured Image <span class="required">*</span></label>
<label for="pImage"><?php echo i18n('Featured_Image');?> <span class="required">*</span></label>
<textarea rows="2" cols="20" class="form-control text <?php if (isset($postImage)) { if (empty($postImage)) { echo 'error';} } ?>" id="pImage" name="image"><?php if (isset($postImage)) { echo $postImage;} ?></textarea> <textarea rows="2" cols="20" class="form-control text <?php if (isset($postImage)) { if (empty($postImage)) { echo 'error';} } ?>" id="pImage" name="image"><?php if (isset($postImage)) { echo $postImage;} ?></textarea>
<input type="hidden" name="is_image" value="is_image"> <input type="hidden" name="is_image" value="is_image">
<br> <br>
<?php endif;?> <?php endif;?>
<?php if ($type == 'is_quote'):?> <?php if ($type == 'is_quote'):?>
<label for="pQuote">Featured Quote <span class="required">*</span></label>
<label for="pQuote"><?php echo i18n('Featured_Quote');?> <span class="required">*</span></label>
<textarea rows="3" cols="20" class="form-control text <?php if (isset($postQuote)) { if (empty($postQuote)) { echo 'error';} } ?>" id="pQuote" name="quote"><?php if (isset($postQuote)) { echo $postQuote;} ?></textarea> <textarea rows="3" cols="20" class="form-control text <?php if (isset($postQuote)) { if (empty($postQuote)) { echo 'error';} } ?>" id="pQuote" name="quote"><?php if (isset($postQuote)) { echo $postQuote;} ?></textarea>
<input type="hidden" name="is_quote" value="is_quote"> <input type="hidden" name="is_quote" value="is_quote">
<br> <br>
<?php endif;?> <?php endif;?>
<?php if ($type == 'is_link'):?> <?php if ($type == 'is_link'):?>
<label for="pLink">Featured Link <span class="required">*</span></label>
<label for="pLink"><?php echo i18n('Featured_Link');?> <span class="required">*</span></label>
<textarea rows="2" cols="20" class="form-control text <?php if (isset($postLink)) { if (empty($postLink)) { echo 'error';} } ?>" id="pLink" name="link"><?php if (isset($postLink)) { echo $postLink;} ?></textarea> <textarea rows="2" cols="20" class="form-control text <?php if (isset($postLink)) { if (empty($postLink)) { echo 'error';} } ?>" id="pLink" name="link"><?php if (isset($postLink)) { echo $postLink;} ?></textarea>
<input type="hidden" name="is_link" value="is_link"> <input type="hidden" name="is_link" value="is_link">
<br> <br>
@ -156,7 +156,7 @@ $( function() {
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div> <div>
<label for="wmd-input">Content</label>
<label for="wmd-input"><?php echo i18n('Content');?></label>
<div id="wmd-button-bar" class="wmd-button-bar"></div> <div id="wmd-button-bar" class="wmd-button-bar"></div>
<textarea id="wmd-input" class="form-control wmd-input <?php if (isset($postContent)) { if (empty($postContent)) { echo 'error'; } } ?>" name="content" cols="20" rows="15"><?php if (isset($postContent)) { echo $postContent;} ?></textarea><br> <textarea id="wmd-input" class="form-control wmd-input <?php if (isset($postContent)) { if (empty($postContent)) { echo 'error'; } } ?>" name="content" cols="20" rows="15"><?php if (isset($postContent)) { echo $postContent;} ?></textarea><br>
<input type="submit" name="publish" class="btn btn-primary submit" value="<?php echo i18n('Publish');?>"/> <input type="submit" name="draft" class="btn btn-primary draft" value="<?php echo i18n('Save_as_draft');?>"/> <input type="submit" name="publish" class="btn btn-primary submit" value="<?php echo i18n('Publish');?>"/> <input type="submit" name="draft" class="btn btn-primary draft" value="<?php echo i18n('Save_as_draft');?>"/>
@ -164,7 +164,7 @@ $( function() {
</div> </div>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<label>Preview</label>
<label><?php echo i18n('Preview');?></label>
<br> <br>
<div id="wmd-preview" class="wmd-panel wmd-preview" style="width:100%;overflow:auto;"></div> <div id="wmd-preview" class="wmd-panel wmd-preview" style="width:100%;overflow:auto;"></div>
</div> </div>
@ -178,11 +178,14 @@ $( function() {
#wmd-preview img {max-width:100%;} #wmd-preview img {max-width:100%;}
</style> </style>
<div id="insertImageDialog" title="Insert Image">
<h4>URL</h4>
<input type="text" placeholder="Enter image URL" />
<h4>Upload</h4>
<div id="insertImageDialog" title="<?php echo i18n('Insert_Image');?>">
<label>URL</label>
<input type="text" size="48" placeholder="<?php echo i18n('Enter_image_URL');?>" />
<hr>
<form method="post" action="" enctype="multipart/form-data"> <form method="post" action="" enctype="multipart/form-data">
<label><?php echo i18n('Upload');?></label>
<input type="file" name="file" id="file" /> <input type="file" name="file" id="file" />
</form> </form>
</div> </div>


+ 18
- 15
system/admin/views/add-page.html.php View File

@ -18,20 +18,20 @@
<form method="POST"> <form method="POST">
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<label for="pTitle">Title <span class="required">*</span></label>
<label for="pTitle"><?php echo i18n('Title');?> <span class="required">*</span></label>
<input type="text" class="form-control text <?php if (isset($postTitle)) {if (empty($postTitle)) {echo 'error';}} ?>" id="pTitle" name="title" value="<?php if (isset($postTitle)) {echo $postTitle;} ?>"/> <input type="text" class="form-control text <?php if (isset($postTitle)) {if (empty($postTitle)) {echo 'error';}} ?>" id="pTitle" name="title" value="<?php if (isset($postTitle)) {echo $postTitle;} ?>"/>
<br> <br>
<?php if ($type == 'is_page') :?> <?php if ($type == 'is_page') :?>
<label for="pMeta">Meta Description (optional)</label>
<textarea id="pMeta" class="form-control" name="description" rows="3" cols="20" placeholder="If leave empty we will excerpt it from the content below"><?php if (isset($p->description)) {echo $p->description;} ?></textarea>
<label for="pMeta"><?php echo i18n('Meta_description');?> (<?php echo i18n('optional');?>)</label>
<textarea id="pMeta" class="form-control" name="description" rows="3" cols="20" placeholder="<?php echo i18n('If_leave_empty_we_will_excerpt_it_from_the_content_below');?>"><?php if (isset($p->description)) {echo $p->description;} ?></textarea>
<br> <br>
<?php endif;?> <?php endif;?>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<?php if ($type == 'is_page') :?> <?php if ($type == 'is_page') :?>
<label for="pURL">Url (optional)</label>
<input type="text" class="form-control text" id="pURL" name="url" value="<?php if (isset($postUrl)) {echo $postUrl;} ?>" placeholder="If the url leave empty we will use the page title"/>
<label for="pURL">Url (<?php echo i18n('optional');?>)</label>
<input type="text" class="form-control text" id="pURL" name="url" value="<?php if (isset($postUrl)) {echo $postUrl;} ?>" placeholder="<?php echo i18n('If_the_url_leave_empty_we_will_use_the_page_title');?>"/>
<br> <br>
<?php endif;?> <?php endif;?>
</div> </div>
@ -39,20 +39,20 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<label for="wmd-input">Content</label>
<label for="wmd-input"><?php echo i18n('Content');?></label>
<div id="wmd-button-bar" class="wmd-button-bar"></div> <div id="wmd-button-bar" class="wmd-button-bar"></div>
<textarea id="wmd-input" class="form-control wmd-input <?php if (isset($postContent)) {if (empty($postContent)) {echo 'error';}} ?>" name="content" cols="20" rows="10"><?php if (isset($postContent)) {echo $postContent;} ?></textarea> <textarea id="wmd-input" class="form-control wmd-input <?php if (isset($postContent)) {if (empty($postContent)) {echo 'error';}} ?>" name="content" cols="20" rows="10"><?php if (isset($postContent)) {echo $postContent;} ?></textarea>
<br> <br>
<input type="hidden" name="csrf_token" value="<?php echo get_csrf() ?>"> <input type="hidden" name="csrf_token" value="<?php echo get_csrf() ?>">
<?php if ($type == 'is_page') :?> <?php if ($type == 'is_page') :?>
<input type="submit" name="submit" class="btn btn-primary submit" value="Publish"/>
<input type="submit" name="submit" class="btn btn-primary submit" value="<?php echo i18n('Publish');?>"/>
<?php endif;?> <?php endif;?>
<?php if ($type == 'is_category') :?> <?php if ($type == 'is_category') :?>
<input type="submit" name="submit" class="btn btn-primary submit" value="Add category"/>
<input type="submit" name="submit" class="btn btn-primary submit" value="<?php echo i18n('Add_category');?>"/>
<?php endif;?> <?php endif;?>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<label>Preview</label>
<label><?php echo i18n('Preview');?></label>
<br> <br>
<div id="wmd-preview" class="wmd-panel wmd-preview" style="width:100%;overflow:auto;"></div> <div id="wmd-preview" class="wmd-panel wmd-preview" style="width:100%;overflow:auto;"></div>
</div> </div>
@ -65,15 +65,18 @@
.wmd-prompt-background {z-index:10!important;} .wmd-prompt-background {z-index:10!important;}
#wmd-preview img {max-width:100%;} #wmd-preview img {max-width:100%;}
</style> </style>
<div id="insertImageDialog" title="Insert Image">
<h4>URL</h4>
<input type="text" placeholder="Enter image URL" />
<h4>Upload</h4>
<div id="insertImageDialog" title="<?php echo i18n('Insert_Image');?>">
<label>URL</label>
<input type="text" size="48" placeholder="<?php echo i18n('Enter_image_URL');?>" />
<hr>
<form method="post" action="" enctype="multipart/form-data"> <form method="post" action="" enctype="multipart/form-data">
<label><?php echo i18n('Upload');?></label>
<input type="file" name="file" id="file" /> <input type="file" name="file" id="file" />
</form> </form>
</div>
</div>
</div> </div>
<!-- Declare the base path. Important --> <!-- Declare the base path. Important -->
<script type="text/javascript">var base_path = '<?php echo site_url() ?>';</script> <script type="text/javascript">var base_path = '<?php echo site_url() ?>';</script>

+ 2
- 2
system/admin/views/backup.html.php View File

@ -11,8 +11,8 @@ if (login()) {
} }
} }
?> ?>
<h2>Your backups</h2>
<h2><?php echo i18n('Your_backups');?></h2>
<br> <br>
<a class="btn btn-primary" href="<?php echo site_url() ?>admin/backup-start">Create backup</a>
<a class="btn btn-primary" href="<?php echo site_url() ?>admin/backup-start"><?php echo i18n('Create_backup');?></a>
<br><br> <br><br>
<?php echo get_backup_files() ?> <?php echo get_backup_files() ?>

+ 1
- 1
system/admin/views/categories.html.php View File

@ -1,6 +1,6 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php $desc = get_category_info(null); ?> <?php $desc = get_category_info(null); ?>
<h2>Categories</h2>
<h2><?php echo i18n("Categories");?></h2>
<br> <br>
<a class="btn btn-primary " href="<?php echo site_url();?>add/category"><?php echo i18n('Add_category');?></a> <a class="btn btn-primary " href="<?php echo site_url();?>add/category"><?php echo i18n('Add_category');?></a>
<br><br> <br><br>


+ 5
- 5
system/admin/views/category-list.html.php View File

@ -2,7 +2,7 @@
<h2 class="post-index"><?php echo $category->title ?></h2> <h2 class="post-index"><?php echo $category->title ?></h2>
<div><?php echo $category->body;?></div> <div><?php echo $category->body;?></div>
<br> <br>
<?php if ($category->url !== site_url() . 'category/uncategorized'):?><a class="btn btn-primary right" href="<?php echo $category->url;?>/edit?destination=admin/categories">Edit category</a><?php endif;?>
<?php if ($category->url !== site_url() . 'category/uncategorized'):?><a class="btn btn-primary right" href="<?php echo $category->url;?>/edit?destination=admin/categories"><?php echo i18n("Edit_category");?></a><?php endif;?>
<br><br> <br><br>
<?php if (!empty($posts)) { ?> <?php if (!empty($posts)) { ?>
<table class="table post-list"> <table class="table post-list">
@ -43,15 +43,15 @@
<div class="pager"> <div class="pager">
<ul class="pagination"> <ul class="pagination">
<?php if (!empty($pagination['prev'])) { ?> <?php if (!empty($pagination['prev'])) { ?>
<li class="newer page-item"><a class="page-link" href="?page=<?php echo $page - 1 ?>" rel="prev">&#8592; Newer</a></li>
<li class="newer page-item"><a class="page-link" href="?page=<?php echo $page - 1 ?>" rel="prev">&#8592; <?php echo i18n('Newer');?></a></li>
<?php } else { ?> <?php } else { ?>
<li class="page-item disabled" ><span class="page-link">&#8592; Newer</span></li>
<li class="page-item disabled" ><span class="page-link">&#8592; <?php echo i18n('Newer');?></span></li>
<?php } ?> <?php } ?>
<li class="page-number page-item disabled"><span class="page-link"><?php echo $pagination['pagenum'];?></span></li> <li class="page-number page-item disabled"><span class="page-link"><?php echo $pagination['pagenum'];?></span></li>
<?php if (!empty($pagination['next'])) { ?> <?php if (!empty($pagination['next'])) { ?>
<li class="older page-item" ><a class="page-link" href="?page=<?php echo $page + 1 ?>" rel="next">Older &#8594;</a></li>
<li class="older page-item" ><a class="page-link" href="?page=<?php echo $page + 1 ?>" rel="next"><?php echo i18n('Older');?> &#8594;</a></li>
<?php } else { ?> <?php } else { ?>
<li class="page-item disabled" ><span class="page-link">Older &#8594;</span></li>
<li class="page-item disabled" ><span class="page-link"><?php echo i18n('Older');?> &#8594;</span></li>
<?php } ?> <?php } ?>
</ul> </ul>
</div> </div>


+ 1
- 1
system/admin/views/clear-cache.html.php View File

@ -12,6 +12,6 @@ foreach (glob('cache/page/*.cache', GLOB_NOSORT) as $file) {
unlink($file); unlink($file);
} }
echo 'All cache has been deleted!';
echo i18n('All_cache_has_been_deleted');
?> ?>

+ 8
- 8
system/admin/views/config-custom.html.php View File

@ -1,15 +1,15 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2>Custom Settings</h2>
<h2><?php echo i18n('Custom_Settings');?></h2>
<br> <br>
<nav> <nav>
<div class="nav nav-tabs" id="nav-tab"> <div class="nav nav-tabs" id="nav-tab">
<a class="nav-item nav-link" id="nav-general-tab" href="<?php echo site_url();?>admin/config">General</a>
<a class="nav-item nav-link" id="nav-profile-tab" href="<?php echo site_url();?>admin/config/reading">Reading</a>
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget">Widget</a>
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags">Metatags</a>
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance">Performance</a>
<a class="nav-item nav-link active" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom">Custom</a>
</div>
<a class="nav-item nav-link" id="nav-general-tab" href="<?php echo site_url();?>admin/config"><?php echo i18n('General');?></a>
<a class="nav-item nav-link" id="nav-profile-tab" href="<?php echo site_url();?>admin/config/reading"><?php echo i18n('Reading');?></a>
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget"><?php echo i18n('Widget');?></a>
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags"><?php echo i18n('Metatags');?></a>
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance"><?php echo i18n('Performance');?></a>
<a class="nav-item nav-link active" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom"><?php echo i18n('Custom');?></a>
</div>
</nav> </nav>
<br><br> <br><br>
<p><u>hint:</u> Use <code>Ctrl</code>/<code>CMD</code> + <code>F</code> to search for your config key or value.</p> <p><u>hint:</u> Use <code>Ctrl</code>/<code>CMD</code> + <code>F</code> to search for your config key or value.</p>


+ 9
- 9
system/admin/views/config-metatags.html.php View File

@ -6,17 +6,17 @@ if (file_exists($config_file)) {
$array = parse_ini_file($config_file, true); $array = parse_ini_file($config_file, true);
} }
?> ?>
<h2>Metatags Settings</h2>
<h2><?php echo i18n('Metatags_Settings');?></h2>
<br> <br>
<nav>
<nav>
<div class="nav nav-tabs" id="nav-tab"> <div class="nav nav-tabs" id="nav-tab">
<a class="nav-item nav-link" id="nav-general-tab" href="<?php echo site_url();?>admin/config">General</a>
<a class="nav-item nav-link" id="nav-profile-tab" href="<?php echo site_url();?>admin/config/reading">Reading</a>
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget">Widget</a>
<a class="nav-item nav-link active" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags">Metatags</a>
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance">Performance</a>
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom">Custom</a>
</div>
<a class="nav-item nav-link" id="nav-general-tab" href="<?php echo site_url();?>admin/config"><?php echo i18n('General');?></a>
<a class="nav-item nav-link" id="nav-profile-tab" href="<?php echo site_url();?>admin/config/reading"><?php echo i18n('Reading');?></a>
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget"><?php echo i18n('Widget');?></a>
<a class="nav-item nav-link active" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags"><?php echo i18n('Metatags');?></a>
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance"><?php echo i18n('Performance');?></a>
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom"><?php echo i18n('Custom');?></a>
</div>
</nav> </nav>
<br><br> <br><br>
<form method="POST"> <form method="POST">


+ 7
- 7
system/admin/views/config-performance.html.php View File

@ -1,14 +1,14 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2>Performance Settings</h2>
<h2><?php echo i18n('Performance_Settings');?></h2>
<br> <br>
<nav> <nav>
<div class="nav nav-tabs" id="nav-tab"> <div class="nav nav-tabs" id="nav-tab">
<a class="nav-item nav-link" id="nav-general-tab" href="<?php echo site_url();?>admin/config">General</a>
<a class="nav-item nav-link" id="nav-profile-tab" href="<?php echo site_url();?>admin/config/reading">Reading</a>
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget">Widget</a>
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags">Metatags</a>
<a class="nav-item nav-link active" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance">Performance</a>
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom">Custom</a>
<a class="nav-item nav-link" id="nav-general-tab" href="<?php echo site_url();?>admin/config"><?php echo i18n('General');?></a>
<a class="nav-item nav-link" id="nav-profile-tab" href="<?php echo site_url();?>admin/config/reading"><?php echo i18n('Reading');?></a>
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget"><?php echo i18n('Widget');?></a>
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags"><?php echo i18n('Metatags');?></a>
<a class="nav-item nav-link active" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance"><?php echo i18n('Performance');?></a>
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom"><?php echo i18n('Custom');?></a>
</div> </div>
</nav> </nav>
<br><br> <br><br>


+ 8
- 8
system/admin/views/config-reading.html.php View File

@ -1,15 +1,15 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2>Reading Settings</h2>
<h2><?php echo i18n('Reading_Settings');?></h2>
<br> <br>
<nav> <nav>
<div class="nav nav-tabs" id="nav-tab"> <div class="nav nav-tabs" id="nav-tab">
<a class="nav-item nav-link" id="nav-general-tab" href="<?php echo site_url();?>admin/config">General</a>
<a class="nav-item nav-link active" id="nav-profile-tab" href="<?php echo site_url();?>admin/config/reading">Reading</a>
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget">Widget</a>
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags">Metatags</a>
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance">Performance</a>
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom">Custom</a>
</div>
<a class="nav-item nav-link" id="nav-general-tab" href="<?php echo site_url();?>admin/config"><?php echo i18n('General');?></a>
<a class="nav-item nav-link active" id="nav-profile-tab" href="<?php echo site_url();?>admin/config/reading"><?php echo i18n('Reading');?></a>
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget"><?php echo i18n('Widget');?></a>
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags"><?php echo i18n('Metatags');?></a>
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance"><?php echo i18n('Performance');?></a>
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom"><?php echo i18n('Custom');?></a>
</div>
</nav> </nav>
<br><br> <br><br>
<form method="POST"> <form method="POST">


+ 8
- 8
system/admin/views/config-widget.html.php View File

@ -1,15 +1,15 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2>Widget Settings</h2>
<h2><?php echo i18n('Widget_Settings');?></h2>
<br> <br>
<nav> <nav>
<div class="nav nav-tabs" id="nav-tab"> <div class="nav nav-tabs" id="nav-tab">
<a class="nav-item nav-link" id="nav-general-tab" href="<?php echo site_url();?>admin/config">General</a>
<a class="nav-item nav-link" id="nav-profile-tab" href="<?php echo site_url();?>admin/config/reading">Reading</a>
<a class="nav-item nav-link active" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget">Widget</a>
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags">Metatags</a>
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance">Performance</a>
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom">Custom</a>
</div>
<a class="nav-item nav-link" id="nav-general-tab" href="<?php echo site_url();?>admin/config"><?php echo i18n('General');?></a>
<a class="nav-item nav-link" id="nav-profile-tab" href="<?php echo site_url();?>admin/config/reading"><?php echo i18n('Reading');?></a>
<a class="nav-item nav-link active" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget"><?php echo i18n('Widget');?></a>
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags"><?php echo i18n('Metatags');?></a>
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance"><?php echo i18n('Performance');?></a>
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom"><?php echo i18n('Custom');?></a>
</div>
</nav> </nav>
<br><br> <br><br>
<form method="POST"> <form method="POST">


+ 8
- 8
system/admin/views/config.html.php View File

@ -1,15 +1,15 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2>General Settings</h2>
<h2><?php echo i18n('General_Settings')?></h2>
<br> <br>
<nav> <nav>
<div class="nav nav-tabs" id="nav-tab"> <div class="nav nav-tabs" id="nav-tab">
<a class="nav-item nav-link active" id="nav-general-tab" href="<?php echo site_url();?>admin/config">General</a>
<a class="nav-item nav-link" id="nav-profile-tab" href="<?php echo site_url();?>admin/config/reading">Reading</a>
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget">Widget</a>
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags">Metatags</a>
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance">Performance</a>
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom">Custom</a>
</div>
<a class="nav-item nav-link active" id="nav-general-tab" href="<?php echo site_url();?>admin/config"><?php echo i18n('General');?></a>
<a class="nav-item nav-link" id="nav-profile-tab" href="<?php echo site_url();?>admin/config/reading"><?php echo i18n('Reading');?></a>
<a class="nav-item nav-link" id="nav-widget-tab" href="<?php echo site_url();?>admin/config/widget"><?php echo i18n('Widget');?></a>
<a class="nav-item nav-link" id="nav-metatags-tab" href="<?php echo site_url();?>admin/config/metatags"><?php echo i18n('Metatags');?></a>
<a class="nav-item nav-link" id="nav-performance-tab" href="<?php echo site_url();?>admin/config/performance"><?php echo i18n('Performance');?></a>
<a class="nav-item nav-link" id="nav-custom-tab" href="<?php echo site_url();?>admin/config/custom"><?php echo i18n('Custom');?></a>
</div>
</nav> </nav>
<br><br> <br><br>
<form method="POST"> <form method="POST">


+ 1
- 1
system/admin/views/denied.html.php View File

@ -1,2 +1,2 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h1>You don't have permission to access this page</h1>
<h1><?echo i18n('You_dont_have_permission_to_access_this_page');?></h1>

+ 22
- 19
system/admin/views/edit-content.html.php View File

@ -144,60 +144,60 @@ $( function() {
</select> </select>
<br> <br>
<label for="pTag">Tag <span class="required">*</span></label> <label for="pTag">Tag <span class="required">*</span></label>
<input type="text" id="pTag" name="tag" class="form-control text <?php if (isset($postTag)) { if (empty($postTag)) { echo 'error'; } } ?>" value="<?php echo $oldtag ?>" placeholder="Comma-separated values"/>
<input type="text" id="pTag" name="tag" class="form-control text <?php if (isset($postTag)) { if (empty($postTag)) { echo 'error'; } } ?>" value="<?php echo $oldtag ?>" placeholder="<?php echo i18n('Comma_separated_values');?>"/>
<br> <br>
<label for="pMeta">Meta Description (optional)</label>
<textarea id="pMeta" class="form-control" name="description" rows="3" cols="20" placeholder="If leave empty we will excerpt it from the content below"><?php if (isset($p->description)) { echo $p->description; } else { echo $olddescription;} ?></textarea>
<label for="pMeta"><?php echo i18n('Meta_description');?> (<?php echo i18n('optional');?>)</label>
<textarea id="pMeta" class="form-control" name="description" rows="3" cols="20" placeholder="<?php echo i18n('If_leave_empty_we_will_excerpt_it_from_the_content_below');?>"><?php if (isset($p->description)) { echo $p->description; } else { echo $olddescription;} ?></textarea>
<br> <br>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-row"> <div class="form-row">
<div class="col"> <div class="col">
<label for="pDate">Date</label>
<label for="pDate"><?php echo i18n('Date');?></label>
<input type="date" id="pDate" name="date" class="form-control text" value="<?php echo date('Y-m-d', $postdate); ?>"> <input type="date" id="pDate" name="date" class="form-control text" value="<?php echo date('Y-m-d', $postdate); ?>">
</div> </div>
<div class="col"> <div class="col">
<label for="pTime">Time</label>
<label for="pTime"><?php echo i18n('Time');?></label>
<input step="1" type="time" id="pTime" name="time" class="form-control text" value="<?php echo $time->format('H:i:s'); ?>"> <input step="1" type="time" id="pTime" name="time" class="form-control text" value="<?php echo $time->format('H:i:s'); ?>">
</div> </div>
</div> </div>
<br> <br>
<label for="pURL">Url (optional)</label>
<input type="text" id="pURL" name="url" class="form-control text" value="<?php echo $oldmd ?>" placeholder="If the url leave empty we will use the post title"//>
<label for="pURL">Url (<?php echo i18n('optional');?>)</label>
<input type="text" id="pURL" name="url" class="form-control text" value="<?php echo $oldmd ?>" placeholder="<?php echo i18n('If_the_url_leave_empty_we_will_use_the_post_title');?>"//>
<br> <br>
<?php if ($type == 'is_audio'):?> <?php if ($type == 'is_audio'):?>
<label for="pAudio">Featured Audio <span class="required">*</span> (SoundCloud Only)</label>
<label for="pAudio"><?php echo i18n('Featured_Audio');?> <span class="required">*</span> (SoundCloud <?php echo i18n('Only');?>)</label>
<textarea rows="2" cols="20" class="form-control text <?php if (isset($postAudio)) { if (empty($postAudio)) { echo 'error';} } ?>" id="pAudio" name="audio"><?php echo $oldaudio; ?></textarea> <textarea rows="2" cols="20" class="form-control text <?php if (isset($postAudio)) { if (empty($postAudio)) { echo 'error';} } ?>" id="pAudio" name="audio"><?php echo $oldaudio; ?></textarea>
<input type="hidden" name="is_audio" value="is_audio"> <input type="hidden" name="is_audio" value="is_audio">
<br> <br>
<?php endif;?> <?php endif;?>
<?php if ($type == 'is_video'):?> <?php if ($type == 'is_video'):?>
<label for="pVideo">Featured Video <span class="required">*</span> (Youtube Only)</label>
<label for="pVideo"><?php echo i18n('Featured_Video');?> <span class="required">*</span> (Youtube <?php echo i18n('Only');?>)</label>
<textarea rows="2" cols="20" class="form-control text <?php if (isset($postVideo)) { if (empty($postVideo)) { echo 'error';} } ?>" id="pVideo" name="video"><?php echo $oldvideo ?></textarea> <textarea rows="2" cols="20" class="form-control text <?php if (isset($postVideo)) { if (empty($postVideo)) { echo 'error';} } ?>" id="pVideo" name="video"><?php echo $oldvideo ?></textarea>
<input type="hidden" name="is_video" value="is_video"> <input type="hidden" name="is_video" value="is_video">
<br> <br>
<?php endif;?> <?php endif;?>
<?php if ($type == 'is_image'):?> <?php if ($type == 'is_image'):?>
<label for="pImage">Featured Image <span class="required">*</span></label>
<label for="pImage"><?php echo i18n('Featured_Image');?> <span class="required">*</span></label>
<textarea rows="2" cols="20" class="form-control text <?php if (isset($postImage)) { if (empty($postImage)) { echo 'error';} } ?>" id="pImage" name="image"><?php echo $oldimage; ?></textarea> <textarea rows="2" cols="20" class="form-control text <?php if (isset($postImage)) { if (empty($postImage)) { echo 'error';} } ?>" id="pImage" name="image"><?php echo $oldimage; ?></textarea>
<input type="hidden" name="is_image" value="is_image"> <input type="hidden" name="is_image" value="is_image">
<br> <br>
<?php endif;?> <?php endif;?>
<?php if ($type == 'is_quote'):?> <?php if ($type == 'is_quote'):?>
<label for="pQuote">Featured Quote <span class="required">*</span></label>
<label for="pQuote"><?php echo i18n('Featured_Quote');?> <span class="required">*</span></label>
<textarea rows="3" cols="20" class="form-control text <?php if (isset($postQuote)) { if (empty($postQuote)) { echo 'error';} } ?>" id="pQuote" name="quote"><?php echo $oldquote ?></textarea> <textarea rows="3" cols="20" class="form-control text <?php if (isset($postQuote)) { if (empty($postQuote)) { echo 'error';} } ?>" id="pQuote" name="quote"><?php echo $oldquote ?></textarea>
<input type="hidden" name="is_quote" value="is_quote"> <input type="hidden" name="is_quote" value="is_quote">
<br> <br>
<?php endif;?> <?php endif;?>
<?php if ($type == 'is_link'):?> <?php if ($type == 'is_link'):?>
<label for="pLink">Featured Link <span class="required">*</span></label>
<label for="pLink"><?php echo i18n('Featured_Link');?> <span class="required">*</span></label>
<textarea rows="2" cols="20" class="form-control text <?php if (isset($postLink)) { if (empty($postLink)) { echo 'error';} } ?>" id="pLink" name="link"><?php echo $oldlink ?></textarea> <textarea rows="2" cols="20" class="form-control text <?php if (isset($postLink)) { if (empty($postLink)) { echo 'error';} } ?>" id="pLink" name="link"><?php echo $oldlink ?></textarea>
<input type="hidden" name="is_link" value="is_link"> <input type="hidden" name="is_link" value="is_link">
<br> <br>
@ -213,7 +213,7 @@ $( function() {
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div> <div>
<label for="wmd-input">Content</label>
<label for="wmd-input"><?php echo i18n('Content');?></label>
<div id="wmd-button-bar" class="wmd-button-bar"></div> <div id="wmd-button-bar" class="wmd-button-bar"></div>
<textarea id="wmd-input" class="form-control wmd-input <?php if (isset($postContent)) { if (empty($postContent)) { echo 'error'; } } ?>" name="content" cols="20" rows="15"><?php echo $oldcontent ?></textarea><br> <textarea id="wmd-input" class="form-control wmd-input <?php if (isset($postContent)) { if (empty($postContent)) { echo 'error'; } } ?>" name="content" cols="20" rows="15"><?php echo $oldcontent ?></textarea><br>
<?php if ($isdraft[4] == 'draft') { ?> <?php if ($isdraft[4] == 'draft') { ?>
@ -225,7 +225,7 @@ $( function() {
</div> </div>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<label>Preview</label>
<label><?php echo i18n('Preview');?></label>
<br> <br>
<div id="wmd-preview" class="wmd-panel wmd-preview" style="width:100%;overflow:auto;"></div> <div id="wmd-preview" class="wmd-panel wmd-preview" style="width:100%;overflow:auto;"></div>
</div> </div>
@ -239,15 +239,18 @@ $( function() {
#wmd-preview img {max-width:100%;} #wmd-preview img {max-width:100%;}
</style> </style>
<div id="insertImageDialog" title="Insert Image">
<h4>URL</h4>
<input type="text" placeholder="Enter image URL" />
<h4>Upload</h4>
<div id="insertImageDialog" title="<?php echo i18n('Insert_Image');?>">
<label>URL</label>
<input type="text" size="48" placeholder="<?php echo i18n('Enter_image_URL');?>" />
<hr>
<form method="post" action="" enctype="multipart/form-data"> <form method="post" action="" enctype="multipart/form-data">
<label><?php echo i18n('Upload');?></label>
<input type="file" name="file" id="file" /> <input type="file" name="file" id="file" />
</form> </form>
</div> </div>
</div> </div>
<!-- Declare the base path. Important --> <!-- Declare the base path. Important -->
<script type="text/javascript">var base_path = '<?php echo site_url() ?>';</script> <script type="text/javascript">var base_path = '<?php echo site_url() ?>';</script>


+ 16
- 13
system/admin/views/edit-page.html.php View File

@ -89,15 +89,15 @@ if ($type == 'is_frontpage') {
<?php if($type != 'is_frontpage' && $type != 'is_profile') { ?> <?php if($type != 'is_frontpage' && $type != 'is_profile') { ?>
<label for="pMeta"><?php echo i18n('Meta_description');?> (optional)</label> <label for="pMeta"><?php echo i18n('Meta_description');?> (optional)</label>
<br /> <br />
<textarea id="pMeta" class="form-control" name="description" rows="3" cols="20" placeholder"If leave empty we will excerpt it from the content below"><?php if (isset($p->description)) { echo $p->description;} else {echo $olddescription;}?></textarea>
<textarea id="pMeta" class="form-control" name="description" rows="3" cols="20" placeholder="<?php echo i18n('If_leave_empty_we_will_excerpt_it_from_the_content_below');?>"><?php if (isset($p->description)) { echo $p->description;} else {echo $olddescription;}?></textarea>
<br /><br /> <br /><br />
<?php } ?> <?php } ?>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<?php if($type != 'is_frontpage' && $type != 'is_profile') { ?> <?php if($type != 'is_frontpage' && $type != 'is_profile') { ?>
<label for="pURL">Url (optional)</label>
<label for="pURL">Url (<?php echo i18n('optional');?>)</label>
<br> <br>
<input type="text" id="pURL" name="url" class="form-control text" value="<?php echo $oldmd ?>" placeholder="If the url leave empty we will use the page title"/>
<input type="text" id="pURL" name="url" class="form-control text" value="<?php echo $oldmd ?>" placeholder="<?php echo i18n('If_the_url_leave_empty_we_will_use_the_page_title');?>"/>
<br> <br>
<?php } ?> <?php } ?>
</div> </div>
@ -105,44 +105,47 @@ if ($type == 'is_frontpage') {
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<label for="wmd-input">Content</label>
<label for="wmd-input"><?php echo i18n('Content');?></label>
<div id="wmd-button-bar" class="wmd-button-bar"></div> <div id="wmd-button-bar" class="wmd-button-bar"></div>
<textarea id="wmd-input" class="form-control wmd-input <?php if (isset($postContent)) {if (empty($postContent)) {echo 'error';}} ?>" name="content" cols="20" rows="10"><?php echo $oldcontent ?></textarea> <textarea id="wmd-input" class="form-control wmd-input <?php if (isset($postContent)) {if (empty($postContent)) {echo 'error';}} ?>" name="content" cols="20" rows="10"><?php echo $oldcontent ?></textarea>
<br> <br>
<input type="hidden" name="csrf_token" value="<?php echo get_csrf() ?>"> <input type="hidden" name="csrf_token" value="<?php echo get_csrf() ?>">
<?php if($type == 'is_frontpage' || $type == 'is_profile') { ?> <?php if($type == 'is_frontpage' || $type == 'is_profile') { ?>
<input type="submit" name="submit" class="btn btn-primary submit" value="Save"/>
<input type="submit" name="submit" class="btn btn-primary submit" value="<?php echo i18n('Save');?>"/>
<?php } elseif ($type == 'is_category') {?> <?php } elseif ($type == 'is_category') {?>
<input type="hidden" name="oldfile" class="text" value="<?php echo $url ?>"/> <input type="hidden" name="oldfile" class="text" value="<?php echo $url ?>"/>
<input type="submit" name="submit" class="btn btn-primary submit" value="Save category"/>
<input type="submit" name="submit" class="btn btn-primary submit" value="<?php echo i18n('Save_category');?>"/>
<?php } else {?> <?php } else {?>
<input type="hidden" name="oldfile" class="text" value="<?php echo $url ?>"/> <input type="hidden" name="oldfile" class="text" value="<?php echo $url ?>"/>
<input type="submit" name="submit" class="btn btn-primary submit" value="<?php echo i18n('Save');?>"/> <a class="btn btn-danger" href="<?php echo $delete ?>"><?php echo i18n('Delete');?></a> <input type="submit" name="submit" class="btn btn-primary submit" value="<?php echo i18n('Save');?>"/> <a class="btn btn-danger" href="<?php echo $delete ?>"><?php echo i18n('Delete');?></a>
<?php } ?> <?php } ?>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<label>Preview</label>
<label><?php echo i18n('Preview');?></label>
<br> <br>
<div id="wmd-preview" class="wmd-panel wmd-preview" style="width:100%;overflow:auto;"></div> <div id="wmd-preview" class="wmd-panel wmd-preview" style="width:100%;overflow:auto;"></div>
</div> </div>
</div> </div>
</form> </form>
</div> </div>
<style> <style>
#insertImageDialog { display:none; padding: 10px; font-size:12px;} #insertImageDialog { display:none; padding: 10px; font-size:12px;}
.wmd-prompt-background {z-index:10!important;} .wmd-prompt-background {z-index:10!important;}
#wmd-preview img {max-width:100%;} #wmd-preview img {max-width:100%;}
</style> </style>
<div id="insertImageDialog" title="Insert Image">
<h4>URL</h4>
<input type="text" placeholder="Enter image URL" />
<h4>Upload</h4>
<div id="insertImageDialog" title="<?php echo i18n('Insert_Image');?>">
<label>URL</label>
<input type="text" size="48" placeholder="<?php echo i18n('Enter_image_URL');?>" />
<hr>
<form method="post" action="" enctype="multipart/form-data"> <form method="post" action="" enctype="multipart/form-data">
<label><?php echo i18n('Upload');?></label>
<input type="file" name="file" id="file" /> <input type="file" name="file" id="file" />
</form> </form>
</div>
</div>
</div> </div>
<!-- Declare the base path. Important --> <!-- Declare the base path. Important -->
<script type="text/javascript">var base_path = '<?php echo site_url() ?>';</script> <script type="text/javascript">var base_path = '<?php echo site_url() ?>';</script>

+ 5
- 5
system/admin/views/import.html.php View File

@ -2,15 +2,15 @@
<?php if (isset($error)) { ?> <?php if (isset($error)) { ?>
<div class="error-message"><?php echo $error ?></div> <div class="error-message"><?php echo $error ?></div>
<?php } ?> <?php } ?>
<h1>Import RSS Feed 2.0</h1>
<p>By using this importer you are agree if the feed is yours, or at least you have the authority to publish it.</p>
<h1><?php echo i18n('Import_RSS_Feed_2.0');?></h1>
<p><?php echo i18n('By_using_this_importer_you_are_agree_if_the_feed_is_yours_or_at_least_you_have_the_authority_to_publish_it');?></p>
<form method="POST"> <form method="POST">
<label>Feed Url <span class="required">*</span></label><input type="url" class="form-control text <?php if (isset($url)) {
<label><?php echo i18n('Feed_Url');?> <span class="required">*</span></label><input type="url" class="form-control text <?php if (isset($url)) {
if (empty($url)) { if (empty($url)) {
echo 'error'; echo 'error';
} }
} ?>" name="url"/><br> } ?>" name="url"/><br>
Add source link (optional) <input type="checkbox" class="checkbox" name="credit" value="yes"/><br><br>
<?php echo i18n('Add_source_link_optional');?> <input type="checkbox" class="checkbox" name="credit" value="yes"/><br><br>
<input type="hidden" name="csrf_token" value="<?php echo get_csrf() ?>"> <input type="hidden" name="csrf_token" value="<?php echo get_csrf() ?>">
<input type="submit" name="submit" class="btn btn-primary submit" value="Import Feed"/>
<input type="submit" name="submit" class="btn btn-primary submit" value="<?php echo i18n('Import_Feed');?>"/>
</form> </form>

+ 5
- 5
system/admin/views/layout.html.php View File

@ -31,13 +31,13 @@
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fa fa-bars"></i></a> <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fa fa-bars"></i></a>
</li> </li>
<li class="nav-item d-none d-sm-inline-block"> <li class="nav-item d-none d-sm-inline-block">
<a href="<?php echo site_url();?>" class="nav-link">Home</a>
<a href="<?php echo site_url();?>" class="nav-link"><i class="fa fa-globe"></i> <?php echo i18n('Home')?></a>
</li> </li>
</ul> </ul>
<!-- SEARCH FORM --> <!-- SEARCH FORM -->
<form class="form-inline ml-3"> <form class="form-inline ml-3">
<input type="search" name="search" class="form-control" placeholder="Type to search">
<input type="search" name="search" class="form-control" placeholder="<?php echo i18n('Type_to_search')?>">
</form> </form>
@ -274,7 +274,7 @@
<footer class="main-footer"> <footer class="main-footer">
<!-- To the right --> <!-- To the right -->
<div class="float-right d-none d-sm-inline"> <div class="float-right d-none d-sm-inline">
<small>Admin panel style based on <a rel="nofollow" target="_blank" href="https://github.com/ColorlibHQ/AdminLTE">AdminLTE</a></small>
<small><?php echo i18n('Admin_panel_style_based_on');?> <a rel="nofollow" target="_blank" href="https://github.com/ColorlibHQ/AdminLTE">AdminLTE</a></small>
</div> </div>
<!-- Default to the left --> <!-- Default to the left -->
<?php echo i18n('Proudly_powered_by');?> <a href="https://www.htmly.com" target="_blank">HTMLy</a> <?php echo i18n('Proudly_powered_by');?> <a href="https://www.htmly.com" target="_blank">HTMLy</a>
@ -290,14 +290,14 @@
<!-- /.login-logo --> <!-- /.login-logo -->
<div class="card"> <div class="card">
<div class="card-body login-card-body"> <div class="card-body login-card-body">
<p class="login-box-msg">Sign in to start your session</p>
<p class="login-box-msg"><?php echo i18n('Sign_in_to_start_your_session');?></p>
<?php echo content();?> <?php echo content();?>
</div> </div>
<!-- /.login-card-body --> <!-- /.login-card-body -->
</div> </div>
<span><a href="<?php echo site_url();?>"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-left" viewBox="0 0 16 16"> <span><a href="<?php echo site_url();?>"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-left" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8z"/> <path fill-rule="evenodd" d="M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8z"/>
</svg> Back to <?php echo blog_title();?></a></span>
</svg> <?php echo i18n('Back_to'); ?> <?php echo blog_title();?></a></span>
</div> </div>
<?php } ?> <?php } ?>


+ 4
- 4
system/admin/views/login.html.php View File

@ -4,16 +4,16 @@
<div class="error-message"><?php echo $error ?></div> <div class="error-message"><?php echo $error ?></div>
<?php } ?> <?php } ?>
<?php if (!login()) { ?> <?php if (!login()) { ?>
<h1>Login</h1>
<h1><?php echo i18n('Login');?></h1>
<form method="POST" action="login"> <form method="POST" action="login">
<label>User <span class="required">*</span></label>
<label><?php echo i18n('User');?> <span class="required">*</span></label>
<input type="text" class="form-control <?php if (isset($username)) { <input type="text" class="form-control <?php if (isset($username)) {
if (empty($username)) { if (empty($username)) {
echo 'error'; echo 'error';
} }
} ?>" name="user" placeholder="Username"/> } ?>" name="user" placeholder="Username"/>
<br> <br>
<label>Password <span class="required">*</span></label>
<label><?php echo i18n('Password');?> <span class="required">*</span></label>
<input type="password" class="form-control <?php if (isset($password)) { <input type="password" class="form-control <?php if (isset($password)) {
if (empty($password)) { if (empty($password)) {
echo 'error'; echo 'error';
@ -26,7 +26,7 @@
<div class="g-recaptcha" data-sitekey="<?php echo config("google.reCaptcha.public"); ?>"></div> <div class="g-recaptcha" data-sitekey="<?php echo config("google.reCaptcha.public"); ?>"></div>
<br/> <br/>
<?php endif; ?> <?php endif; ?>
<input type="submit" class="btn btn-primary" name="submit" value="Login"/>
<input type="submit" class="btn btn-primary" name="submit" value="<?php echo i18n('Login');?>"/>
</form> </form>
<?php } else { <?php } else {
header('location: admin'); header('location: admin');

+ 1
- 1
system/admin/views/main.html.php View File

@ -1,6 +1,6 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php echo '<h2>' . i18n('Your_recent_posts') . '</h2>';?> <?php echo '<h2>' . i18n('Your_recent_posts') . '</h2>';?>
<br> <br>
<a class="btn btn-primary right" href="<?php echo site_url();?>admin/content">Add new post</a>
<a class="btn btn-primary right" href="<?php echo site_url();?>admin/content"><?php echo i18n('Add_content');?></a>
<br><br> <br><br>
<?php get_user_posts();?> <?php get_user_posts();?>

+ 20
- 20
system/admin/views/menu.html.php View File

@ -22,8 +22,8 @@ function parseMenus($menus) {
function parseMenu($menu) { function parseMenu($menu) {
$li = '<li class="dd-item" data-class="'. $menu->class .'" data-id="'. $menu->id .'" data-name="'.$menu->name.'" data-slug="'.htmlspecialchars($menu->slug, FILTER_SANITIZE_URL).'">'; $li = '<li class="dd-item" data-class="'. $menu->class .'" data-id="'. $menu->id .'" data-name="'.$menu->name.'" data-slug="'.htmlspecialchars($menu->slug, FILTER_SANITIZE_URL).'">';
$li .= '<div class="dd-handle">'.$menu->name.'</div>'; $li .= '<div class="dd-handle">'.$menu->name.'</div>';
$li .= '<span class="button-delete btn btn-danger btn-xs" data-owner-id="'.$menu->id.'">Delete</span>';
$li .= '<span class="button-edit btn btn-primary btn-xs" data-owner-id="'.$menu->id.'">Edit</span>';
$li .= '<span class="button-delete btn btn-danger btn-xs" style="margin-right:0.5rem" data-owner-id="'.$menu->id.'">'.i18n('Delete').'</span>';
$li .= '<span class="button-edit btn btn-primary btn-xs" data-owner-id="'.$menu->id.'">'.i18n('Edit').'</span>';
if (isset($menu->children)) { if (isset($menu->children)) {
$li .= parseMenus($menu->children); $li .= parseMenus($menu->children);
} }
@ -35,41 +35,41 @@ function parseMenu($menu) {
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<div class="dd nestable"><?php if (!empty($menu)) {echo $menu;} else {echo '<span>At the moment you are using auto-generated menu.</span><ol class="dd-list"></ol>';}?></div>
<div class="dd nestable"><?php if (!empty($menu)) {echo $menu;} else {echo '<span>'.i18n('At_the_moment_you_are_using_auto_generated_menu').'</span><ol class="dd-list"></ol>';}?></div>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<form id="menu-add"> <form id="menu-add">
<h4>Add menu</h4>
<h4><?php echo i18n('Add_menu');?></h4>
<div class="form-group"> <div class="form-group">
<label for="addInputName">Name</label>
<input type="text" class="form-control" id="addInputName" placeholder="Item name" required>
<label for="addInputName"><?php echo i18n('Name');?></label>
<input type="text" class="form-control" id="addInputName" placeholder="<?php echo i18n('Link_name')?>" required>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="addInputSlug">Slug</label>
<input type="text" class="form-control" id="addInputSlug" placeholder="item-slug" required>
<label for="addInputSlug"><?php echo i18n('Slug');?></label>
<input type="text" class="form-control" id="addInputSlug" placeholder="<?php echo i18n('item_slug');?>" required>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="addInputClass">CSS Class (Optional)</label>
<input type="text" class="form-control" id="addInputClass" placeholder="item-class">
<label for="addInputClass"><?php echo i18n('CSS_Class_Optional');?></label>
<input type="text" class="form-control" id="addInputClass" placeholder="<?php echo i18n('item_class');?>">
</div> </div>
<button class="btn btn-primary btn-sm" id="addButton">Add menu</button>
<button class="btn btn-primary btn-sm" id="addButton"><?php echo i18n('Add_link');?></button>
</form> </form>
<form id="menu-editor" style="display: none;"> <form id="menu-editor" style="display: none;">
<h4>Editing <span id="currentEditName"></span></h4> <h4>Editing <span id="currentEditName"></span></h4>
<div class="form-group"> <div class="form-group">
<label for="addInputName">Name</label>
<input type="text" class="form-control" id="editInputName" placeholder="Item name" required>
<label for="addInputName"><?php echo i18n('Name')?></label>
<input type="text" class="form-control" id="editInputName" placeholder="<?php echo i18n('Link_name')?>" required>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="addInputSlug">Slug</label>
<input type="text" class="form-control" id="editInputSlug" placeholder="item-slug">
<label for="addInputSlug"><?php echo i18n('Slug');?></label>
<input type="text" class="form-control" id="editInputSlug" placeholder="<?php echo i18n('item_slug');?>">
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="addInputClass">CSS Class (Optional)</label>
<input type="text" class="form-control" id="editInputClass" placeholder="item-class">
<label for="addInputClass"><?php echo i18n('CSS_Class_Optional');?></label>
<input type="text" class="form-control" id="editInputClass" placeholder="<?php echo i18n('item_class');?>">
</div> </div>
<button class="btn btn-primary btn-sm" id="editButton">Save Edit</button>
<button class="btn btn-primary btn-sm" id="editButton"><?php echo i18n('Save_Edit');?></button>
</form> </form>
</div> </div>
</div> </div>
@ -77,7 +77,7 @@ function parseMenu($menu) {
<div class="row"> <div class="row">
<div class="output-container"> <div class="output-container">
<div class="col"> <div class="col">
<button class="btn btn-primary" id="saveButton">Save Menu</button>
<button class="btn btn-primary" id="saveButton"><?php echo i18n('Save_Menu');?></button>
<form class="form" style="display:none;"> <form class="form" style="display:none;">
<textarea class="form-control" id="json-output" rows="5"></textarea> <textarea class="form-control" id="json-output" rows="5"></textarea>
</form> </form>
@ -108,7 +108,7 @@ function parseMenu($menu) {
success: function (response) { success: function (response) {
alert(response.message); alert(response.message);
}, },
});
});
}); });
</script> </script>
<style> <style>


+ 3
- 3
system/admin/views/popular-posts.html.php View File

@ -1,7 +1,7 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2 class="post-index"><?php echo $heading ?></h2> <h2 class="post-index"><?php echo $heading ?></h2>
<br> <br>
<a class="btn btn-primary right" href="<?php echo site_url();?>admin/content">Add new post</a>
<a class="btn btn-primary right" href="<?php echo site_url();?>admin/content"><?php echo i18n('Add_new_post');?></a>
<br><br> <br><br>
<?php if (!empty($posts)) { ?> <?php if (!empty($posts)) { ?>
<table class="table post-list"> <table class="table post-list">
@ -35,8 +35,8 @@
<td><a target="_blank" href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></td> <td><a target="_blank" href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></td>
<td><a href="<?php echo str_replace('category', 'admin/categories', $p->categoryUrl); ?>"><?php echo strip_tags($p->category);?></a></td> <td><a href="<?php echo str_replace('category', 'admin/categories', $p->categoryUrl); ?>"><?php echo strip_tags($p->category);?></a></td>
<td><?php echo $p->tag ?></td> <td><?php echo $p->tag ?></td>
<td><a class="btn btn-primary btn-xs" href="<?php echo $p->url ?>/edit?destination=admin/posts">Edit</a> <a
class="btn btn-danger btn-xs" href="<?php echo $p->url ?>/delete?destination=admin/posts">Delete</a></td>
<td><a class="btn btn-primary btn-xs" href="<?php echo $p->url ?>/edit?destination=admin/posts"><?php echo i18n('Edit');?></a> <a
class="btn btn-danger btn-xs" href="<?php echo $p->url ?>/delete?destination=admin/posts"><?php echo i18n('Delete');?></a></td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</table> </table>


+ 5
- 5
system/admin/views/posts-list.html.php View File

@ -1,7 +1,7 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2 class="post-index"><?php echo $heading ?></h2> <h2 class="post-index"><?php echo $heading ?></h2>
<br> <br>
<a class="btn btn-primary right" href="<?php echo site_url();?>admin/content">Add new post</a>
<a class="btn btn-primary right" href="<?php echo site_url();?>admin/content"><?php echo i18n('Add_new_post');?></a>
<br><br> <br><br>
<?php if (!empty($posts)) { ?> <?php if (!empty($posts)) { ?>
<table class="table post-list"> <table class="table post-list">
@ -45,15 +45,15 @@
<div class="pager"> <div class="pager">
<ul class="pagination"> <ul class="pagination">
<?php if (!empty($pagination['prev'])) { ?> <?php if (!empty($pagination['prev'])) { ?>
<li class="newer page-item"><a class="page-link" href="?page=<?php echo $page - 1 ?>" rel="prev">&#8592; Newer</a></li>
<li class="newer page-item"><a class="page-link" href="?page=<?php echo $page - 1 ?>" rel="prev">&#8592; <?php echo i18n('Newer');?></a></li>
<?php } else { ?> <?php } else { ?>
<li class="page-item disabled" ><span class="page-link">&#8592; Newer</span></li>
<li class="page-item disabled" ><span class="page-link">&#8592; <?php echo i18n('Newer');?></span></li>
<?php } ?> <?php } ?>
<li class="page-number page-item disabled"><span class="page-link"><?php echo $pagination['pagenum'];?></span></li> <li class="page-number page-item disabled"><span class="page-link"><?php echo $pagination['pagenum'];?></span></li>
<?php if (!empty($pagination['next'])) { ?> <?php if (!empty($pagination['next'])) { ?>
<li class="older page-item" ><a class="page-link" href="?page=<?php echo $page + 1 ?>" rel="next">Older &#8594;</a></li>
<li class="older page-item" ><a class="page-link" href="?page=<?php echo $page + 1 ?>" rel="next"><?php echo i18n('Older');?> &#8594;</a></li>
<?php } else { ?> <?php } else { ?>
<li class="page-item disabled" ><span class="page-link">Older &#8594;</span></li>
<li class="page-item disabled" ><span class="page-link"><?php echo i18n('Older');?> &#8594;</span></li>
<?php } ?> <?php } ?>
</ul> </ul>
</div> </div>


+ 1
- 1
system/admin/views/static-pages.html.php View File

@ -1,6 +1,6 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php echo '<h2>' . i18n('Static_pages') . '</h2>';?> <?php echo '<h2>' . i18n('Static_pages') . '</h2>';?>
<br> <br>
<a class="btn btn-primary right" href="<?php echo site_url();?>add/page">Add new page</a>
<a class="btn btn-primary right" href="<?php echo site_url();?>add/page"><?php echo i18n('Add_new_page');?></a>
<br><br> <br><br>
<?php get_user_pages(); ?> <?php get_user_pages(); ?>

+ 3
- 3
system/admin/views/update.html.php View File

@ -12,7 +12,7 @@ $updater = new HubUpdater(array(
if ($updater->able()) { if ($updater->able()) {
$info = $updater->getNewestInfo(); $info = $updater->getNewestInfo();
echo '<h2>Update Available</h2><hr>';
echo '<h2>'.i18n('Update_Available').'</h2><hr>';
echo '<h4>'. $info['name'] .'</h4>'; echo '<h4>'. $info['name'] .'</h4>';
echo '<p>Version: <strong>'. $info['tag_name'] .'</strong></p>'; echo '<p>Version: <strong>'. $info['tag_name'] .'</strong></p>';
echo '<h5>Release Notes</h5>'; echo '<h5>Release Notes</h5>';
@ -20,9 +20,9 @@ if ($updater->able()) {
echo \Michelf\MarkdownExtra::defaultTransform($info['body']); echo \Michelf\MarkdownExtra::defaultTransform($info['body']);
echo '</div>'; echo '</div>';
echo '<p><strong>Important:</strong> Please always backup your files before upgrading to newer version.</p>'; echo '<p><strong>Important:</strong> Please always backup your files before upgrading to newer version.</p>';
echo '<p><a class="btn btn-primary" href="' . site_url() . 'admin/update/now/' . $CSRF . '" alt="' . $info['name'] . '">Update to ' . $info['tag_name'] . ' now</a></p>';
echo '<p><a class="btn btn-primary" href="' . site_url() . 'admin/update/now/' . $CSRF . '" alt="' . $info['name'] . '">'.i18n('Update_to').' '. $info['tag_name'] . ' '.i18n('now').'</a></p>';
} else { } else {
echo '<h2>Congrats! You have the latest version of HTMLy</h2><hr>';
echo '<h2>'.i18n('Congrats_You_have_the_latest_version_of_HTMLy').'</h2><hr>';
$info = $updater->getCurrentInfo(); $info = $updater->getCurrentInfo();
echo '<h4>'. $info['name'] .'</h4>'; echo '<h4>'. $info['name'] .'</h4>';
echo '<p>Installed Version: <strong>'. $info['tag_name'] .'</strong></p>'; echo '<p>Installed Version: <strong>'. $info['tag_name'] .'</strong></p>';


+ 1
- 1
system/admin/views/updated-to.html.php View File

@ -1,4 +1,4 @@
<h3>Updated to<h3>
<h3><?php echo i18n('Updated_to');?><h3>
<h2>[<?php echo $info['tag_name']; ?>] <?php echo $info['name']; ?></h2> <h2>[<?php echo $info['tag_name']; ?>] <?php echo $info['name']; ?></h2>
<p><?php echo \Michelf\MarkdownExtra::defaultTransform($info['body']); ?></p> <p><?php echo \Michelf\MarkdownExtra::defaultTransform($info['body']); ?></p>
<?php require_once "system/upgrade/run.php"; ?> <?php require_once "system/upgrade/run.php"; ?>


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

@ -1,7 +1,7 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2 class="post-index"><?php echo $heading ?></h2> <h2 class="post-index"><?php echo $heading ?></h2>
<br> <br>
<a class="btn btn-primary right" href="<?php echo site_url();?>admin/content">Add new post</a>
<a class="btn btn-primary right" href="<?php echo site_url();?>admin/content"><?php echo i18n('Add_new_post');?></a>
<br><br> <br><br>
<?php if (!empty($posts)) { ?> <?php if (!empty($posts)) { ?>
<table class="table post-list"> <table class="table post-list">
@ -39,15 +39,15 @@
<div class="pager"> <div class="pager">
<ul class="pagination"> <ul class="pagination">
<?php if (!empty($pagination['prev'])) { ?> <?php if (!empty($pagination['prev'])) { ?>
<li class="newer page-item"><a class="page-link" href="?page=<?php echo $page - 1 ?>" rel="prev">&#8592; Newer</a></li>
<li class="newer page-item"><a class="page-link" href="?page=<?php echo $page - 1 ?>" rel="prev">&#8592; <?php echo i18n('Newer');?></a></li>
<?php } else { ?> <?php } else { ?>
<li class="page-item disabled" ><span class="page-link">&#8592; Newer</span></li>
<li class="page-item disabled" ><span class="page-link">&#8592; <?php echo i18n('Newer');?></span></li>
<?php } ?> <?php } ?>
<li class="page-number page-item disabled"><span class="page-link"><?php echo $pagination['pagenum'];?></span></li> <li class="page-number page-item disabled"><span class="page-link"><?php echo $pagination['pagenum'];?></span></li>
<?php if (!empty($pagination['next'])) { ?> <?php if (!empty($pagination['next'])) { ?>
<li class="older page-item" ><a class="page-link" href="?page=<?php echo $page + 1 ?>" rel="next">Older &#8594;</a></li>
<li class="older page-item" ><a class="page-link" href="?page=<?php echo $page + 1 ?>" rel="next"><?php echo i18n('Older');?> &#8594;</a></li>
<?php } else { ?> <?php } else { ?>
<li class="page-item disabled" ><span class="page-link">Older &#8594;</span></li>
<li class="page-item disabled" ><span class="page-link"><?php echo i18n('Older');?> &#8594;</span></li>
<?php } ?> <?php } ?>
</ul> </ul>
</div> </div>


+ 6
- 6
system/admin/views/user-posts.html.php View File

@ -1,7 +1,7 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2 class="post-index"><?php echo $heading ?></h2> <h2 class="post-index"><?php echo $heading ?></h2>
<br> <br>
<a class="btn btn-primary right" href="<?php echo site_url();?>admin/content">Add new post</a>
<a class="btn btn-primary right" href="<?php echo site_url();?>admin/content"><?php echo i18n('Add_new_post');?></a>
<br><br> <br><br>
<?php if (!empty($posts)) { ?> <?php if (!empty($posts)) { ?>
<table class="table post-list"> <table class="table post-list">
@ -36,7 +36,7 @@
<?php endif; ?> <?php endif; ?>
<td><a href="<?php echo str_replace('category', 'admin/categories', $p->categoryUrl); ?>"><?php echo strip_tags($p->category);?></a></td> <td><a href="<?php echo str_replace('category', 'admin/categories', $p->categoryUrl); ?>"><?php echo strip_tags($p->category);?></a></td>
<td><?php echo $p->tag ?></td> <td><?php echo $p->tag ?></td>
<td><a class="btn btn-primary btn-xs" href="<?php echo $p->url ?>/edit?destination=admin/mine">Edit</a> <a class="btn btn-danger btn-xs" href="<?php echo $p->url ?>/delete?destination=admin/mine"><?php echo i18n('Delete');?></a></td>
<td><a class="btn btn-primary btn-xs" href="<?php echo $p->url ?>/edit?destination=admin/mine"><?php echo i18n('Edit');?></a> <a class="btn btn-danger btn-xs" href="<?php echo $p->url ?>/delete?destination=admin/mine"><?php echo i18n('Delete');?></a></td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</table> </table>
@ -45,15 +45,15 @@
<div class="pager"> <div class="pager">
<ul class="pagination"> <ul class="pagination">
<?php if (!empty($pagination['prev'])) { ?> <?php if (!empty($pagination['prev'])) { ?>
<li class="newer page-item"><a class="page-link" href="?page=<?php echo $page - 1 ?>" rel="prev">&#8592; Newer</a></li>
<li class="newer page-item"><a class="page-link" href="?page=<?php echo $page - 1 ?>" rel="prev">&#8592; <?php echo i18n('Newer');?></a></li>
<?php } else { ?> <?php } else { ?>
<li class="page-item disabled" ><span class="page-link">&#8592; Newer</span></li>
<li class="page-item disabled" ><span class="page-link">&#8592; <?php echo i18n('Newer');?></span></li>
<?php } ?> <?php } ?>
<li class="page-number page-item disabled"><span class="page-link"><?php echo $pagination['pagenum'];?></span></li> <li class="page-number page-item disabled"><span class="page-link"><?php echo $pagination['pagenum'];?></span></li>
<?php if (!empty($pagination['next'])) { ?> <?php if (!empty($pagination['next'])) { ?>
<li class="older page-item" ><a class="page-link" href="?page=<?php echo $page + 1 ?>" rel="next">Older &#8594;</a></li>
<li class="older page-item" ><a class="page-link" href="?page=<?php echo $page + 1 ?>" rel="next"><?php echo i18n('Older');?> &#8594;</a></li>
<?php } else { ?> <?php } else { ?>
<li class="page-item disabled" ><span class="page-link">Older &#8594;</span></li>
<li class="page-item disabled" ><span class="page-link"><?php echo i18n('Older');?> &#8594;</span></li>
<?php } ?> <?php } ?>
</ul> </ul>
</div> </div>


Loading…
Cancel
Save