Browse Source

fix custom robots and layout

pull/475/head
Yaya Laressa 4 years ago
parent
commit
fdc95d85c0
3 changed files with 9 additions and 9 deletions
  1. +1
    -1
      system/admin/admin.php
  2. +1
    -1
      system/admin/views/config-metatags.html.php
  3. +7
    -7
      system/admin/views/content-type.html.php

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

@ -1084,7 +1084,7 @@ function get_backup_files()
$files = get_zip_files(); $files = get_zip_files();
if (!empty($files)) { if (!empty($files)) {
krsort($files); krsort($files);
echo '<table class="table backup-list">';
echo '<table id="htmly-table" class="table backup-list" style="width:100%">';
echo '<tr class="head"><th>' . i18n('Filename') . '</th><th>'.i18n('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);


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

@ -105,7 +105,7 @@ if(config('custom.robots') === 'false')
<div class="form-group row"> <div class="form-group row">
<label for="read.more" class="col-sm-2 col-form-label"><?php echo i18n('Custom_robots_txt_here');?></label> <label for="read.more" class="col-sm-2 col-form-label"><?php echo i18n('Custom_robots_txt_here');?></label>
<div class="col-sm-10"> <div class="col-sm-10">
<textarea id="robots1" name="robots" class="form-control" rows="10"><?php echo valueMaker(file_get_contents($custom_robots));?></textarea>
<textarea id="robots1" name="robots" class="form-control" rows="10"><?php echo file_get_contents($custom_robots);?></textarea>
<small><em><?php echo i18n('Guidelines_for_creating_a_robots_txt_see');?> <a target="_blank" href="https://developers.google.com/search/docs/advanced/robots/create-robots-txt">https://developers.google.com/search/docs/advanced/robots/create-robots-txt</a></em></small> <small><em><?php echo i18n('Guidelines_for_creating_a_robots_txt_see');?> <a target="_blank" href="https://developers.google.com/search/docs/advanced/robots/create-robots-txt">https://developers.google.com/search/docs/advanced/robots/create-robots-txt</a></em></small>
</div> </div>
</div> </div>


+ 7
- 7
system/admin/views/content-type.html.php View File

@ -1,10 +1,10 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?> <?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2><?php echo i18n('Add_content');?></h2> <h2><?php echo i18n('Add_content');?></h2>
<p><a href="<?php echo site_url();?>add/content?type=post"><?php echo i18n('Regular_post')?></a><br><?php echo i18n('Regular_post_comment')?>.</p>
<p><a href="<?php echo site_url();?>add/content?type=image"><?php echo i18n('Image_post')?></a><br><?php echo i18n('Image_post_comment')?>.</p>
<p><a href="<?php echo site_url();?>add/content?type=video"><?php echo i18n('Video_post')?></a><br><?php echo i18n('Video_post_comment')?>.</p>
<p><a href="<?php echo site_url();?>add/content?type=audio"><?php echo i18n('Audio_post')?></a><br><?php echo i18n('Audio_post_comment')?>.</p>
<p><a href="<?php echo site_url();?>add/content?type=link"><?php echo i18n('Link_post')?></a><br><?php echo i18n('Link_post_comment')?>.</p>
<p><a href="<?php echo site_url();?>add/content?type=quote"><?php echo i18n('Quote_post')?></a><br><?php echo i18n('Quote_post_comment')?>.</p>
<p><a href="<?php echo site_url();?>add/page"><?php echo i18n('Static_page')?></a><br><?php echo i18n('Static_page_comment')?>.</p>
<p><i class="fa fa-newspaper-o mr-1"></i><a href="<?php echo site_url();?>add/content?type=post"><?php echo i18n('Regular_post')?></a><br><?php echo i18n('Regular_post_comment')?>.</p>
<p><i class="fa fa-picture-o mr-1"></i><a href="<?php echo site_url();?>add/content?type=image"><?php echo i18n('Image_post')?></a><br><?php echo i18n('Image_post_comment')?>.</p>
<p><i class="fa fa-video-camera mr-1"></i><a href="<?php echo site_url();?>add/content?type=video"><?php echo i18n('Video_post')?></a><br><?php echo i18n('Video_post_comment')?>.</p>
<p><i class="fa fa-music mr-1"></i><a href="<?php echo site_url();?>add/content?type=audio"><?php echo i18n('Audio_post')?></a><br><?php echo i18n('Audio_post_comment')?>.</p>
<p><i class="fa fa-external-link mr-1"></i><a href="<?php echo site_url();?>add/content?type=link"><?php echo i18n('Link_post')?></a><br><?php echo i18n('Link_post_comment')?>.</p>
<p><i class="fa fa-quote-right mr-1"></i><a href="<?php echo site_url();?>add/content?type=quote"><?php echo i18n('Quote_post')?></a><br><?php echo i18n('Quote_post_comment')?>.</p>
<p><i class="fa fa-file-text-o mr-1"></i><a href="<?php echo site_url();?>add/page"><?php echo i18n('Static_page')?></a><br><?php echo i18n('Static_page_comment')?>.</p>

Loading…
Cancel
Save