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
af1c0da9
Commit
af1c0da9
authored
Dec 20, 2018
by
Олег Гиммельшпах
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2627 - Арт Проект. Подключение турбо страниц для сайта task-on.com
parent
f8597da4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
common/modules/blog/models/Rss.php
common/modules/blog/models/Rss.php
+3
-1
No files found.
common/modules/blog/models/Rss.php
View file @
af1c0da9
...
@@ -60,11 +60,13 @@ class Rss extends BaseObject
...
@@ -60,11 +60,13 @@ class Rss extends BaseObject
])
])
->
all
();
->
all
();
foreach
(
$models
as
$model
)
{
foreach
(
$models
as
$model
)
{
$text
=
preg_replace
(
'/ (class|id|style)=".*?"/'
,
''
,
$model
->
text
);
$text
=
preg_replace
(
'/(<img[^>]+>)/'
,
'<figure>$1</figure>'
,
$text
);
$item
=
new
Item
();
$item
=
new
Item
();
$item
$item
->
title
(
$model
->
title
)
->
title
(
$model
->
title
)
->
link
(
Url
::
to
([
"/
{
$model
->
post
->
url
}
"
],
true
))
->
link
(
Url
::
to
([
"/
{
$model
->
post
->
url
}
"
],
true
))
->
turboContent
(
preg_replace
(
'/ (class|id|style)=".*?"/'
,
''
,
$model
->
text
)
)
->
turboContent
(
$text
)
->
pubDate
(
$model
->
created_at
)
->
pubDate
(
$model
->
created_at
)
->
appendTo
(
$channel
);
->
appendTo
(
$channel
);
}
}
...
...
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