mirror of
https://github.com/danpros/htmly.git
synced 2026-04-22 05:26:22 +05:30
updated config area to langs
This commit is contained in:
parent
af1a48307c
commit
64e608a713
19 changed files with 1196 additions and 122 deletions
|
|
@ -12,15 +12,15 @@
|
|||
</div>
|
||||
</nav>
|
||||
<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>pro tips:</u> You can creating custom config key and print out your config key value anywhere in your template.</p>
|
||||
<p><code><?php echo config('your.key'); ?></code></p>
|
||||
<p><?php echo i18n('hint_Use_CtrlCMDF_to_search_for_your_config_key_or_value');?></p>
|
||||
<p><?php echo i18n('pro_tips_You_can_creating_custom_config_key_and_print_out_your_config_key_value_anywhere_in_your_template');?></p>
|
||||
<p><code><?php echo config('<?php echo i18n('your_key');?>'); ?></code></p>
|
||||
<form method="POST">
|
||||
<input type="hidden" name="csrf_token" value="<?php echo get_csrf(); ?>">
|
||||
<table class="table" id="config">
|
||||
<tr>
|
||||
<td><input type="text" class="form-control" name="newKey" placeholder="Your New Config Key"></td>
|
||||
<td><input type="text" class="form-control" name="newValue" placeholder="Your New Value"></td>
|
||||
<td><input type="text" class="form-control" name="newKey" placeholder="<?php echo i18n('Your_New_Config_Key');?>"></td>
|
||||
<td><input type="text" class="form-control" name="newValue" placeholder="<?php echo i18n('Your_New_Value');?>"></td>
|
||||
</tr>
|
||||
<?php
|
||||
global $config_file;
|
||||
|
|
@ -39,5 +39,5 @@
|
|||
}
|
||||
?>
|
||||
</table>
|
||||
<input type="submit" class="form-control btn-primary btn-sm" style="width:100px;">
|
||||
<input type="submit" class="form-control btn-primary btn-sm" style="width:100px;" value="<?php echo i18n('Save');?>">
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -22,40 +22,40 @@ if (file_exists($config_file)) {
|
|||
<form method="POST">
|
||||
<input type="hidden" name="csrf_token" value="<?php echo get_csrf(); ?>">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">Permalink</label>
|
||||
<label class="col-sm-2 col-form-label"><?php echo i18n('Permalink');?></label>
|
||||
<div class="col-sm-10">
|
||||
<div class="col-sm-10">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-permalink.type" id="permalink.type1" value="default" <?php if (config('permalink.type') === 'default'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="permalink.type1">
|
||||
/year/month/your-post-slug
|
||||
<?php echo i18n('year_month_your_post_slug');?>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-permalink.type" id="permalink.type1" value="post" <?php if (config('permalink.type') === 'post'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="permalink.type2">
|
||||
/post/your-post-slug
|
||||
<?php echo i18n('post_your_post_slug');?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="description.char" class="col-sm-2 col-form-label">Meta description character</label>
|
||||
<label for="description.char" class="col-sm-2 col-form-label"><?php echo i18n('Meta_description_character');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" name="-config-description.char" class="form-control" id="description.char" value="<?php echo config('description.char');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="read.more" class="col-sm-2 col-form-label">Breadcrumb home text</label>
|
||||
<label for="read.more" class="col-sm-2 col-form-label"><?php echo i18n('Breadcrumb_home_text');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="-config-breadcrumb.home" class="form-control" id="breadcrumb.home" value="<?php echo valueMaker(config('breadcrumb.home'));?>" placeholder="Home">
|
||||
<input type="text" name="-config-breadcrumb.home" class="form-control" id="breadcrumb.home" value="<?php echo valueMaker(config('breadcrumb.home'));?>" placeholder="<?php echo i18n('Home');?>">
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<h4>Sitemap</h4>
|
||||
<h4><?php echo i18n('Sitemap');?></h4>
|
||||
<hr>
|
||||
<p>Valid values range from 0.0 to 1.0. See <a target="_blank" href="https://www.sitemaps.org/protocol.html">https://www.sitemaps.org/protocol.html</a></p>
|
||||
<p><?php echo i18n('Valid_values_range_from_0_to_1.0._See');?> <a target="_blank" href="https://www.sitemaps.org/protocol.html">https://www.sitemaps.org/protocol.html</a></p>
|
||||
<?php foreach($array as $key => $value) {?>
|
||||
<?php if (stripos($key, 'sitemap.priority') !== false):?>
|
||||
<div class="form-group row">
|
||||
|
|
@ -68,7 +68,7 @@ if (file_exists($config_file)) {
|
|||
<?php } ?>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-10">
|
||||
<button type="submit" class="btn btn-primary">Save config</button>
|
||||
<button type="submit" class="btn btn-primary"><?php echo i18n('Save_Config');?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -15,85 +15,85 @@
|
|||
<form method="POST">
|
||||
<input type="hidden" name="csrf_token" value="<?php echo get_csrf(); ?>">
|
||||
<div class="form-group row">
|
||||
<label for="cache.expiration" class="col-sm-2 col-form-label">Cache expiration</label>
|
||||
<label for="cache.expiration" class="col-sm-2 col-form-label"><?php echo i18n('Cache_expiration');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" name="-config-cache.expiration" class="form-control" id="cache.expiration" value="<?php echo config('cache.expiration');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">Cache off</label>
|
||||
<label class="col-sm-2 col-form-label"><?php echo i18n('Cache_off');?></label>
|
||||
<div class="col-sm-10">
|
||||
<div class="col-sm-10">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-cache.off" id="cache.off1" value="true" <?php if (config('cache.off') === 'true'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="cache.off1">
|
||||
Yes (not recommended)
|
||||
<?php echo i18n('Yes_not_recommended');?>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-cache.off" id="cache.off2" value="false" <?php if (config('cache.off') === 'false'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="cache.off2">
|
||||
No
|
||||
<?php echo i18n('Not');?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">Cache timestamp</label>
|
||||
<label class="col-sm-2 col-form-label"><?php echo i18n('Cache_timestamp');?></label>
|
||||
<div class="col-sm-10">
|
||||
<div class="col-sm-10">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-cache.timestamp" id="cache.timestamp1" value="true" <?php if (config('cache.timestamp') === 'true'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="cache.timestamp1">
|
||||
Enable
|
||||
<?php echo i18n('Enable');?>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-cache.timestamp" id="cache.timestamp2" value="false" <?php if (config('cache.timestamp') === 'false'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="generation.time2">
|
||||
Disable
|
||||
<?php echo i18n('Disable');?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">Page generation time</label>
|
||||
<label class="col-sm-2 col-form-label"><?php echo i18n('Page_generation_time');?></label>
|
||||
<div class="col-sm-10">
|
||||
<div class="col-sm-10">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-generation.time" id="generation.time1" value="true" <?php if (config('generation.time') === 'true'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="generation.time1">
|
||||
Enable
|
||||
<?php echo i18n('Enable');?>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-generation.time" id="generation.time2" value="false" <?php if (config('generation.time') === 'false'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="generation.time2">
|
||||
Disable
|
||||
<?php echo i18n('Disable');?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<h4>Github pre-release</h4>
|
||||
<h4><?php echo i18n('Github_pre_release');?></h4>
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">Pre-release</label>
|
||||
<label class="col-sm-2 col-form-label"><?php echo i18n('Pre_release');?></label>
|
||||
<div class="col-sm-10">
|
||||
<div class="col-sm-10">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-prerelease" id="prerelease1" value="true" <?php if (config('prerelease') === 'true'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="prerelease1">
|
||||
Yes I'm in
|
||||
<?php echo i18n('Yes_Im_in');?>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-prerelease" id="prerelease2" value="false" <?php if (config('prerelease') === 'false'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="prerelease2">
|
||||
Nope
|
||||
<?php echo i18n('Nope');?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -101,7 +101,7 @@
|
|||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-10">
|
||||
<button type="submit" class="btn btn-primary">Save config</button>
|
||||
<button type="submit" class="btn btn-primary"><?php echo i18n('Save_Config');?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -15,137 +15,137 @@
|
|||
<form method="POST">
|
||||
<input type="hidden" name="csrf_token" value="<?php echo get_csrf(); ?>">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">Front page displays</label>
|
||||
<label class="col-sm-2 col-form-label"><?php echo i18n('Front_page_displays');?></label>
|
||||
<div class="col-sm-10">
|
||||
<div class="col-sm-10">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-static.frontpage" id="static.frontpage1" value="false" <?php if (config('static.frontpage') === 'false'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="static.frontpage1">
|
||||
Your latest blog posts
|
||||
<?php echo i18n('Your_latest_blog_posts');?>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-static.frontpage" id="static.frontpage1" value="true" <?php if (config('static.frontpage') === 'true'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="static.frontpage2">
|
||||
Static page
|
||||
<?php echo i18n('Static_page');?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">Enable /blog URL</label>
|
||||
<label class="col-sm-2 col-form-label"><?php echo i18n('Enable_blog_URL');?></label>
|
||||
<div class="col-sm-10">
|
||||
<div class="col-sm-10">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-blog.enable" id="blog.enable1" value="true" <?php if (config('blog.enable') === 'true'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="blog.enable1">
|
||||
Enable
|
||||
<?php echo i18n('Enable');?>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-blog.enable" id="blog.enable2" value="false" <?php if (config('blog.enable') === 'false'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="blog.enable2">
|
||||
Disable
|
||||
<?php echo i18n('Disable');?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="posts.perpage" class="col-sm-2 col-form-label">Posts in front page show at most</label>
|
||||
<label for="posts.perpage" class="col-sm-2 col-form-label"><?php echo i18n('Posts_in_front_page_show_at_most');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" name="-config-posts.perpage" class="form-control" id="posts.perpage" value="<?php echo config('posts.perpage');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">Blog posts displayed as</label>
|
||||
<label class="col-sm-2 col-form-label"><?php echo i18n('Blog_posts_displayed_as');?></label>
|
||||
<div class="col-sm-10">
|
||||
<div class="col-sm-10">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-teaser.type" id="teaser.type1" value="full" <?php if (config('teaser.type') === 'full'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="teaser.type1">
|
||||
Full post
|
||||
<?php echo i18n('Full_post');?>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-teaser.type" id="teaser.type2" value="trimmed" <?php if (config('teaser.type') === 'trimmed'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="teaser.type2">
|
||||
Summary
|
||||
<?php echo i18n('Summary');?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="teaser.char" class="col-sm-2 col-form-label">Summary character</label>
|
||||
<label for="teaser.char" class="col-sm-2 col-form-label"><?php echo i18n('Summary_character');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" name="-config-teaser.char" class="form-control" id="teaser.char" value="<?php echo config('teaser.char');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="read.more" class="col-sm-2 col-form-label">Read more text</label>
|
||||
<label for="read.more" class="col-sm-2 col-form-label"><?php echo i18n('Read_more_text');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="-config-read.more" class="form-control" id="read.more" value="<?php echo valueMaker(config('read.more'));?>" placeholder="Read more">
|
||||
<input type="text" name="-config-read.more" class="form-control" id="read.more" value="<?php echo valueMaker(config('read.more'));?>" placeholder="<?php echo i18n('Read_more_text_placeholder');?>">
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<h4>Posts index settings</h4>
|
||||
<h4><?php echo i18n('Posts_index_settings');?></h4>
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<label for="category.perpage" class="col-sm-2 col-form-label">Posts in category page at most</label>
|
||||
<label for="category.perpage" class="col-sm-2 col-form-label"><?php echo i18n('Posts_in_category_page_at_most');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" name="-config-category.perpage" class="form-control" id="category.perpage" value="<?php echo config('category.perpage');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="archive.perpage" class="col-sm-2 col-form-label">Posts in archive page at most</label>
|
||||
<label for="archive.perpage" class="col-sm-2 col-form-label"><?php echo i18n('Posts_in_archive_page_at_most');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" name="-config-archive.perpage" class="form-control" id="archive.perpage" value="<?php echo config('archive.perpage');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="tag.perpage" class="col-sm-2 col-form-label">Posts in tag page at most</label>
|
||||
<label for="tag.perpage" class="col-sm-2 col-form-label"><?php echo i18n('Posts_in_tag_page_at_most');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" name="-config-tag.perpage" class="form-control" id="tag.perpage" value="<?php echo config('tag.perpage');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="search.perpage" class="col-sm-2 col-form-label">Posts in search result at most</label>
|
||||
<label for="search.perpage" class="col-sm-2 col-form-label"><?php echo i18n('Posts_in_search_result_at_most');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" name="-config-search.perpage" class="form-control" id="search.perpage" value="<?php echo config('search.perpage');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="type.perpage" class="col-sm-2 col-form-label">Posts in type page at most</label>
|
||||
<label for="type.perpage" class="col-sm-2 col-form-label"><?php echo i18n('Posts_in_type_page_at_most');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" name="-config-type.perpage" class="form-control" id="type.perpage" value="<?php echo config('type.perpage');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="profile.perpage" class="col-sm-2 col-form-label">Posts in profile page at most</label>
|
||||
<label for="profile.perpage" class="col-sm-2 col-form-label"><?php echo i18n('Posts_in_profile_page_at_most');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" name="-config-profile.perpage" class="form-control" id="profile.perpage" value="<?php echo config('profile.perpage');?>">
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<h4>RSS settings</h4>
|
||||
<h4><?php echo i18n('RSS_settings');?></h4>
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<label for="rss.count" class="col-sm-2 col-form-label">RSS feeds show the most recent</label>
|
||||
<label for="rss.count" class="col-sm-2 col-form-label"><?php echo i18n('RSS_feeds_show_the_most_recent');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" name="-config-rss.count" class="form-control" id="rss.count" value="<?php echo config('rss.count');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="rss.char" class="col-sm-2 col-form-label">RSS character</label>
|
||||
<label for="rss.char" class="col-sm-2 col-form-label"><?php echo i18n('RSS_character');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" name="-config-rss.char" class="form-control" id="rss.char" value="<?php echo config('rss.char');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-10">
|
||||
<button type="submit" class="btn btn-primary">Save config</button>
|
||||
<button type="submit" class="btn btn-primary"><?php echo i18n('Save_Config');?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -15,54 +15,54 @@
|
|||
<form method="POST">
|
||||
<input type="hidden" name="csrf_token" value="<?php echo get_csrf(); ?>">
|
||||
<div class="form-group row">
|
||||
<label for="related.count" class="col-sm-2 col-form-label">Related widget posts at most</label>
|
||||
<label for="related.count" class="col-sm-2 col-form-label"><?php echo i18n('Related_widget_posts_at_most');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" name="-config-related.count" class="form-control" id="related.count" value="<?php echo config('related.count');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="recent.count" class="col-sm-2 col-form-label">Recent posts widget at most</label>
|
||||
<label for="recent.count" class="col-sm-2 col-form-label"><?php echo i18n('Recent_posts_widget_at_most');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" name="-config-recent.count" class="form-control" id="recent.count" value="<?php echo config('recent.count');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">Popular posts widget</label>
|
||||
<label class="col-sm-2 col-form-label"><?php echo i18n('Popular_posts_widget');?></label>
|
||||
<div class="col-sm-10">
|
||||
<div class="col-sm-10">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-views.counter" id="views.counter1" value="true" <?php if (config('views.counter') === 'true'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="views.counter1">
|
||||
Enable popular posts widget
|
||||
<?php echo i18n('Enable');?>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-views.counter" id="views.counter2" value="false" <?php if (config('views.counter') === 'false'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="views.counter2">
|
||||
Disable popular posts widget
|
||||
<?php echo i18n('Disable');?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="popular.count" class="col-sm-2 col-form-label">Popular posts widget at most</label>
|
||||
<label for="popular.count" class="col-sm-2 col-form-label"><?php echo i18n('Popular_posts_widget_at_most');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" name="-config-popular.count" class="form-control" id="popular.count" value="<?php echo config('popular.count');?>">
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<h4>Comments</h4>
|
||||
<h4><?php echo i18n('Comments');?></h4>
|
||||
<hr>
|
||||
<p>To using Disqus or Facebook comment you need to provide Disqus shortname or Facebook App ID.</p>
|
||||
<p><?php echo i18n('To_using_Disqus_or_Facebook_comment_you_need_to_provide_Disqus_shortname_or_Facebook_App_ID');?></p>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">Comment system</label>
|
||||
<label class="col-sm-2 col-form-label"><?php echo i18n('Comment_system');?></label>
|
||||
<div class="col-sm-10">
|
||||
<div class="col-sm-10">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-comment.system" id="comment.system1" value="disable" <?php if (config('comment.system') === 'disable'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="comment.system1">
|
||||
Disabled
|
||||
<?php echo i18n('Disabled');?>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
|
|
@ -81,93 +81,93 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="disqus.shortname" class="col-sm-2 col-form-label">Disqus shortname</label>
|
||||
<label for="disqus.shortname" class="col-sm-2 col-form-label"><?php echo i18n('Disqus_shortname');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="-config-disqus.shortname" class="form-control" id="disqus.shortname" value="<?php echo valueMaker(config('disqus.shortname'));?>" placeholder="htmly">
|
||||
<input type="text" name="-config-disqus.shortname" class="form-control" id="disqus.shortname" value="<?php echo valueMaker(config('disqus.shortname'));?>" placeholder="<?php echo i18n('Disqus_shortname_placeholder');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="fb.appid" class="col-sm-2 col-form-label">Facebook App ID</label>
|
||||
<label for="fb.appid" class="col-sm-2 col-form-label"><?php echo i18n('Facebook_App_ID');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="-config-fb.appid" class="form-control" id="fb.appid" value="<?php echo valueMaker(config('fb.appid'));?>" placeholder="12345abcde">
|
||||
<input type="text" name="-config-fb.appid" class="form-control" id="fb.appid" value="<?php echo valueMaker(config('fb.appid'));?>" placeholder="<?php echo i18n('widget_key_placeholder');?>">
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<h4>Recaptcha</h4>
|
||||
<h4><?php echo i18n('Recaptcha');?></h4>
|
||||
<hr>
|
||||
<p>Get one here <a target="_blank" href="https://www.google.com/recaptcha/admin">https://www.google.com/recaptcha/admin</a>
|
||||
<p><?php echo i18n('Get_one_here');?> <a target="_blank" href="https://www.google.com/recaptcha/admin">https://www.google.com/recaptcha/admin</a>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">Recaptcha</label>
|
||||
<label class="col-sm-2 col-form-label"><?php echo i18n('Recaptcha');?></label>
|
||||
<div class="col-sm-10">
|
||||
<div class="col-sm-10">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-google.reCaptcha" id="google.reCaptcha1" value="true" <?php if (config('google.reCaptcha') === 'true'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="google.reCaptcha1">
|
||||
Enable recaptcha
|
||||
<?php echo i18n('Enable');?>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="-config-google.reCaptcha" id="google.reCaptcha2" value="false" <?php if (config('google.reCaptcha') === 'false'):?>checked<?php endif;?>>
|
||||
<label class="form-check-label" for="google.reCaptcha2">
|
||||
Disable recaptcha
|
||||
<?php echo i18n('Disable');?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="google.reCaptcha.public" class="col-sm-2 col-form-label">Site Key</label>
|
||||
<label for="google.reCaptcha.public" class="col-sm-2 col-form-label"><?php echo i18n('Site_Key');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="-config-google.reCaptcha.public" class="form-control" id="google.reCaptcha.public" value="<?php echo valueMaker(config('google.reCaptcha.public'));?>" placeholder="12345abcde">
|
||||
<input type="text" name="-config-google.reCaptcha.public" class="form-control" id="google.reCaptcha.public" value="<?php echo valueMaker(config('google.reCaptcha.public'));?>" placeholder="<?php echo i18n('widget_key_placeholder');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="google.reCaptcha.private" class="col-sm-2 col-form-label">Secret Key</label>
|
||||
<label for="google.reCaptcha.private" class="col-sm-2 col-form-label"><?php echo i18n('Secret_Key');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="-config-google.reCaptcha.private" class="form-control" id="google.reCaptcha.private" value="<?php echo valueMaker(config('google.reCaptcha.private'));?>" placeholder="12345abcde">
|
||||
<input type="text" name="-config-google.reCaptcha.private" class="form-control" id="google.reCaptcha.private" value="<?php echo valueMaker(config('google.reCaptcha.private'));?>" placeholder="<?php echo i18n('widget_key_placeholder');?>">
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<h4>Google Analytics</h4>
|
||||
<h4><?php echo i18n('Google_Analytics');?></h4>
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<label for="google.gtag.id" class="col-sm-2 col-form-label">Universal Analytics (gtag.js)</label>
|
||||
<label for="google.gtag.id" class="col-sm-2 col-form-label"><?php echo i18n('Universal_Analytics');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="-config-google.gtag.id" class="form-control" id="google.gtag.id" value="<?php echo valueMaker(config('google.gtag.id'));?>" placeholder="12345abcde">
|
||||
<input type="text" name="-config-google.gtag.id" class="form-control" id="google.gtag.id" value="<?php echo valueMaker(config('google.gtag.id'));?>" placeholder="<?php echo i18n('widget_key_placeholder');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="google.analytics.id" class="col-sm-2 col-form-label">Google Analytics (legacy)</label>
|
||||
<label for="google.analytics.id" class="col-sm-2 col-form-label"><?php echo i18n('Google_Analytics_legacy');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="-config-google.analytics.id" class="form-control" id="google.analytics.id" value="<?php echo valueMaker(config('google.analytics.id'));?>" placeholder="12345abcde">
|
||||
<small><em>This is legacy code. Usually new created analyics using gtag.js</em></small>
|
||||
<input type="text" name="-config-google.analytics.id" class="form-control" id="google.analytics.id" value="<?php echo valueMaker(config('google.analytics.id'));?>" placeholder="<?php echo i18n('widget_key_placeholder');?>">
|
||||
<small><em><?php echo i18n('This_is_legacy_code_usually_new_created_analytics_using_gtag_js');?></em></small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="google.wmt.id" class="col-sm-2 col-form-label">Google Search Console</label>
|
||||
<label for="google.wmt.id" class="col-sm-2 col-form-label"><?php echo i18n('Google_Search_Console');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="-config-google.wmt.id" class="form-control" id="google.wmt.id" value="<?php echo valueMaker(config('google.wmt.id'));?>" placeholder="12345abcde">
|
||||
<small><em>For google-site-verification meta</em></small>
|
||||
<input type="text" name="-config-google.wmt.id" class="form-control" id="google.wmt.id" value="<?php echo valueMaker(config('google.wmt.id'));?>" placeholder="<?php echo i18n('widget_key_placeholder');?>">
|
||||
<small><em><?php echo i18n('For_google_site_verification_meta');?></em></small>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<h4>Social Media</h4>
|
||||
<h4><?php echo i18n('Social_Media');?></h4>
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<label for="google.reCaptcha.private" class="col-sm-2 col-form-label">Twitter account</label>
|
||||
<label for="google.reCaptcha.private" class="col-sm-2 col-form-label"><?php echo i18n('Twitter_account');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="-config-social.twitter" class="form-control" id="social.twitter" value="<?php echo valueMaker(config('social.twitter'));?>" placeholder="https://twitter.com/gohtmly">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="google.reCaptcha.private" class="col-sm-2 col-form-label">Facebook page</label>
|
||||
<label for="google.reCaptcha.private" class="col-sm-2 col-form-label"><?php echo i18n('Facebook_page');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="-config-social.facebook" class="form-control" id="social.facebook" value="<?php echo valueMaker(config('social.facebook'));?>" placeholder="https://www.facebook.com/gohtmly">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-10">
|
||||
<button type="submit" class="btn btn-primary">Save config</button>
|
||||
<button type="submit" class="btn btn-primary"><?php echo i18n('Save_Config');?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -15,33 +15,33 @@
|
|||
<form method="POST">
|
||||
<input type="hidden" name="csrf_token" value="<?php echo get_csrf(); ?>">
|
||||
<div class="form-group row">
|
||||
<label for="site.url" class="col-sm-2 col-form-label">Address (URL)</label>
|
||||
<label for="site.url" class="col-sm-2 col-form-label"><?php echo i18n('Address_URL');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="-config-site.url" class="form-control" id="site.url" value="<?php echo valueMaker(config('site.url'));?>" placeholder="https://www.htmly.com">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="blog.title" class="col-sm-2 col-form-label">Blog title</label>
|
||||
<label for="blog.title" class="col-sm-2 col-form-label"><?php echo i18n('Blog_Title');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="-config-blog.title" class="form-control" id="blog.title" value="<?php echo valueMaker(config('blog.title'));?>" placeholder="My HTMLy Blog">
|
||||
<input type="text" name="-config-blog.title" class="form-control" id="blog.title" value="<?php echo valueMaker(config('blog.title'));?>" placeholder="<?php echo i18n('Blog_Title_Placeholder');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="blog.tagline" class="col-sm-2 col-form-label">Tagline</label>
|
||||
<label for="blog.tagline" class="col-sm-2 col-form-label"><?php echo i18n('Tagline');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="-config-blog.tagline" class="form-control" id="blog.tagline" value="<?php echo valueMaker(config('blog.tagline'));?>" placeholder="Databaseless PHP Blogging Platform">
|
||||
<small><em>In a few words, explain what this blog is about.</em></small>
|
||||
<input type="text" name="-config-blog.tagline" class="form-control" id="blog.tagline" value="<?php echo valueMaker(config('blog.tagline'));?>" placeholder="<?php echo i18n('Tagline_Placeholder');?>">
|
||||
<small><em><?php echo i18n('Tagline_description');?></em></small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="blog.description" class="col-sm-2 col-form-label">Description</label>
|
||||
<label for="blog.description" class="col-sm-2 col-form-label"><?php echo i18n('Description');?></label>
|
||||
<div class="col-sm-10">
|
||||
<textarea id="blog.description" name="-config-blog.description" class="form-control"><?php echo valueMaker(config('blog.description'));?></textarea>
|
||||
<small><em>In one paragraph, tell us more about your blog.</em></small>
|
||||
<small><em><?php echo i18n('Blog_Description');?></em></small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for=language" class="col-sm-2 col-form-label">Language</label>
|
||||
<label for=language" class="col-sm-2 col-form-label"><?php echo i18n('Language');?></label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" id="language" name="-config-language">
|
||||
<?php foreach (glob('lang/*.ini') as $file) { ?>
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for=language" class="col-sm-2 col-form-label">Timezone</label>
|
||||
<label for=language" class="col-sm-2 col-form-label"><?php echo i18n('Timezone');?></label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" id="timezone" name="-config-timezone">
|
||||
<?php foreach (timezone_identifiers_list() as $zone) { ?>
|
||||
|
|
@ -62,7 +62,7 @@
|
|||
</div>
|
||||
<div class="form-group row">
|
||||
<?php $time = new DateTime('NOW'); $date = $time->format("Y-m-d H:i:s");?>
|
||||
<label class="col-sm-2 col-form-label">Date Format</label>
|
||||
<label class="col-sm-2 col-form-label"><?php echo i18n('Date_Format');?></label>
|
||||
<div class="col-sm-10">
|
||||
<div class="col-sm-10">
|
||||
<div class="form-check">
|
||||
|
|
@ -105,7 +105,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for=views.root" class="col-sm-2 col-form-label">Blog Theme</label>
|
||||
<label for=views.root" class="col-sm-2 col-form-label"><?php echo i18n('Blog_Theme');?></label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" id="views.root" name="-config-views.root">
|
||||
<?php foreach (glob('themes/*/layout.html.php') as $folder) { ?>
|
||||
|
|
@ -116,14 +116,14 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="blog.copyright" class="col-sm-2 col-form-label">Copyright line</label>
|
||||
<label for="blog.copyright" class="col-sm-2 col-form-label"><?php echo i18n('Copyright_Line');?></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="-config-blog.copyright" class="form-control" id="blog.copyright" value="<?php echo valueMaker(config('blog.copyright'));?>" placeholder="(c) Your name.">
|
||||
<input type="text" name="-config-blog.copyright" class="form-control" id="blog.copyright" value="<?php echo valueMaker(config('blog.copyright'));?>" placeholder="<?php echo i18n('Copyright_Line_Placeholder');?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-10">
|
||||
<button type="submit" class="btn btn-primary">Save config</button>
|
||||
<button type="submit" class="btn btn-primary"><?php echo i18n('Save_Config');?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
Loading…
Add table
Add a link
Reference in a new issue