Skip to content

Commit

Permalink
Version 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
WebVPF committed Feb 1, 2023
1 parent 4bfe263 commit 773fd71
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
3 changes: 1 addition & 2 deletions lang/en/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
'settings' => [
'menu_label' => 'Robots',
'menu_desc' => 'Editing robots.txt',
'comment_rules_decs' => "<style>code{padding:1px 3px;background:#f2f1f1;color:#008080}body.dark code{background:var(--drk-hover-bg-color-b);color:var(--drk-color-b);border-radius:3px}</style>
<p>Directives:</p>
'comment_rules_decs' => "<p>Directives:</p>
<ul>
<li><code>User-agent</code> - The directive specifies the name of the automatic client known as search engine crawler that the rule applies to.</li>
<li><code>Allow</code> - A directory or page, relative to the root domain, that may be crawled by the user agent just mentioned.</li>
Expand Down
3 changes: 1 addition & 2 deletions lang/ru/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
'settings' => [
'menu_label' => 'Robots',
'menu_desc' => 'Редактирование robots.txt',
'comment_rules_decs' => "<style>code{padding:1px 3px;background:#f2f1f1;color:#008080}body.dark code{background:var(--drk-hover-bg-color-b);color:var(--drk-color-b);border-radius:3px}</style>
<p>Директивы:</p>
'comment_rules_decs' => "<p>Директивы:</p>
<ul>
<li><code>User-agent</code> - определяет к какому именно поисковому роботу относятся правила в группе.</li>
<li><code>Allow</code> - указывает на каталог или страницу относительно корневого домена, которые <strong>разрешено сканировать</strong>.</li>
Expand Down
3 changes: 1 addition & 2 deletions lang/uk/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
'settings' => [
'menu_label' => 'Robots',
'menu_desc' => 'Редагування robots.txt',
'comment_rules_decs' => "<style>code{padding:1px 3px;background:#f2f1f1;color:#008080}body.dark code{background:var(--drk-hover-bg-color-b);color:var(--drk-color-b);border-radius:3px}</style>
<p>Директиви:</p>
'comment_rules_decs' => "<p>Директиви:</p>
<ul>
<li><code>User-agent</code> - визначає до якого саме пошукового роботу відносяться правила у групі.</li>
<li><code>Allow</code> - вказує на каталог або сторінку щодо кореневого домену, які заборонено сканувати.</li>
Expand Down
12 changes: 12 additions & 0 deletions models/txt/_styles.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<style>
code {
padding: 1px 3px;
background: #f2f1f1;
color: #008080;
}
body.dark code {
background: var(--drk-hover-bg-color-b);
color: var(--drk-color-b);
border-radius: 3px;
}
</style>
4 changes: 4 additions & 0 deletions models/txt/fields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# ===================================

fields:
_styles:
type: partial
path: $/webvpf/robots/models/txt/_styles.php
cssClass: hidden
txt:
label: robots.txt
type: codeeditor
Expand Down
1 change: 1 addition & 0 deletions updates/version.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
1.0.0: First version of robots
1.0.1: Renaming settings code and settings url
1.0.2: Styles are in a separate file

0 comments on commit 773fd71

Please sign in to comment.