Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
b7af0d73
Commit
b7af0d73
authored
Mar 11, 2019
by
john
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3010
parent
91462954
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
22 deletions
+32
-22
common/modules/documentation/views/page/view.php
common/modules/documentation/views/page/view.php
+28
-18
frontend/web/.htaccess
frontend/web/.htaccess
+4
-4
No files found.
common/modules/documentation/views/page/view.php
View file @
b7af0d73
...
@@ -9,6 +9,9 @@ use common\modules\documentation\models\DocList;
...
@@ -9,6 +9,9 @@ use common\modules\documentation\models\DocList;
DocumentationAsset
::
register
(
$this
);
DocumentationAsset
::
register
(
$this
);
$modelDocList
=
new
DocList
();
$modelDocList
=
new
DocList
();
$encodedUrl
=
yii\helpers\Url
::
current
([],
true
);
$encodedUrl
=
yii\helpers\Url
::
current
([],
true
);
?>
?>
...
@@ -64,8 +67,31 @@ $modelDocList = new DocList();
...
@@ -64,8 +67,31 @@ $modelDocList = new DocList();
<div
class=
"column"
>
<div
class=
"column"
>
<div
class=
"entry-share"
><span
class=
"text-muted"
>
Поделиться:
</span>
<div
class=
"entry-share"
><span
class=
"text-muted"
>
Поделиться:
</span>
<div
class=
"share-links"
>
<div
class=
"share-links"
>
<div
class=
"pluso"
data-background=
"transparent"
data-options=
"big,square,line,horizontal,nocounter,theme=04"
data-services=
"facebook,vkontakte,twitter,google"
></div>
<a
</div>
class=
"social-button shape-circle sb-facebook"
href=
"https://www.facebook.com/sharer/sharer.php?u=
<?=
$encodedUrl
?>
&t=
<?php
echo
$modelContent
->
name
?>
"
onclick=
"javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false;"
target=
"_blank"
data-toggle=
"tooltip"
data-placement=
"top"
data-original-title=
"Facebook"
><i
class=
"socicon-facebook"
></i></a>
<a
class=
"social-button shape-circle sb-twitter"
href=
"https://twitter.com/share?url=
<?=
$encodedUrl
?>
&text=
<?php
echo
$modelContent
->
name
?>
"
onclick=
"javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false;"
target=
"_blank"
data-toggle=
"tooltip"
data-placement=
"top"
data-original-title=
"Twitter"
><i
class=
"socicon-twitter"
></i></a>
<a
class=
"social-button shape-circle sb-google-plus"
href=
"https://plus.google.com/share?url=
<?=
$encodedUrl
?>
"
onclick=
"javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=350,width=480');return false;"
target=
"_blank"
data-toggle=
"tooltip"
data-placement=
"top"
data-original-title=
"Google +"
><i
class=
"socicon-googleplus"
></i></a></div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -124,20 +150,4 @@ $modelDocList = new DocList();
...
@@ -124,20 +150,4 @@ $modelDocList = new DocList();
</div>
</div>
</div>
</div>
</div>
</div>
<?php
$js
=
<<<JS
(function() {
if (window.pluso)if (typeof window.pluso.start == "function") return;
if (window.ifpluso==undefined) { window.ifpluso = 1;
var d = document, s = d.createElement('script'), g = 'getElementsByTagName';
s.type = 'text/javascript'; s.charset='UTF-8'; s.async = true;
s.src = ('https:' == window.location.protocol ? 'https' : 'http') + '://share.pluso.ru/pluso-like.js';
var h=d[g]('body')[0];
h.appendChild(s);
}})();
JS;
$this
->
registerJs
(
$js
);
?>
<?=
$this
->
render
(
'@app/views/layouts/footer'
)
?>
<?=
$this
->
render
(
'@app/views/layouts/footer'
)
?>
\ No newline at end of file
frontend/web/.htaccess
View file @
b7af0d73
...
@@ -5,17 +5,17 @@ RewriteCond %{HTTP_HOST} ^www.task-on\.com$ [NC]
...
@@ -5,17 +5,17 @@ RewriteCond %{HTTP_HOST} ^www.task-on\.com$ [NC]
RewriteRule
^(.*)$ http://task-on.com/$1 [R=301,L]
RewriteRule
^(.*)$ http://task-on.com/$1 [R=301,L]
RewriteCond
%{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteCond
%{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule
^index\.php$ http
s
://task-on.com/ [R=301,L]
RewriteRule
^index\.php$ http://task-on.com/ [R=301,L]
RewriteCond
%{HTTP_HOST} ^www\.(.*) [NC]
RewriteCond
%{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule
^(.*)$ http://%1/$1 [R=301,L]
RewriteRule
^(.*)$ http://%1/$1 [R=301,L]
RewriteCond
%{HTTP
S
}
off
RewriteCond
%{HTTP}
off
RewriteRule
(.*) http
s
://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteRule
(.*) http://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteCond
%{REQUEST_FILENAME} !-d
RewriteCond
%{REQUEST_FILENAME} !-d
RewriteCond
%{REQUEST_URI} ^(.+)/$
RewriteCond
%{REQUEST_URI} ^(.+)/$
RewriteRule
^(.+)/$ http
s
://task-on.com/$1 [R=301,L]
RewriteRule
^(.+)/$ http://task-on.com/$1 [R=301,L]
Redirect
301 /portfolio/appl /portfolio
Redirect
301 /portfolio/appl /portfolio
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment